blob: e14caeef6aa7d27105da384572874b641f89a98f [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
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 Criswell0c38eaf2003-09-10 15:17:25 +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'
468ac_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 Criswell0c38eaf2003-09-10 15:17:25 +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 Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell0c38eaf2003-09-10 15:17:25 +00001512 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell0c38eaf2003-09-10 15:17:25 +00001514 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001515
1516
John Criswell0c38eaf2003-09-10 15:17:25 +00001517 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001518
1519
John Criswell0c38eaf2003-09-10 15:17:25 +00001520 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001521
1522
John Criswell0c38eaf2003-09-10 15:17:25 +00001523 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001524
1525
John Criswell0c38eaf2003-09-10 15:17:25 +00001526 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001527
1528
John Criswell0c38eaf2003-09-10 15:17:25 +00001529 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001530
1531
John Criswell0c38eaf2003-09-10 15:17:25 +00001532 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001533
1534
John Criswell0c38eaf2003-09-10 15:17:25 +00001535 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001536
1537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell613758d2003-09-11 18:03:50 +00001628 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1629
1630
1631 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell613758d2003-09-11 18:03:50 +00001646 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell613758d2003-09-11 18:03:50 +00001652 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell0c38eaf2003-09-10 15:17:25 +00001697 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswell0c38eaf2003-09-10 15:17:25 +00001706 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell613758d2003-09-11 18:03:50 +00001724 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell0c38eaf2003-09-10 15:17:25 +00001781 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001788
1789
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell0c38eaf2003-09-10 15:17:25 +00001796 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell0c38eaf2003-09-10 15:17:25 +00001805 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswell0c38eaf2003-09-10 15:17:25 +00001808 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell0c38eaf2003-09-10 15:17:25 +00001814 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell0c38eaf2003-09-10 15:17:25 +00001817 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell0c38eaf2003-09-10 15:17:25 +00001823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell0c38eaf2003-09-10 15:17:25 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell0c38eaf2003-09-10 15:17:25 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell0c38eaf2003-09-10 15:17:25 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell0c38eaf2003-09-10 15:17:25 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell0c38eaf2003-09-10 15:17:25 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswell0c38eaf2003-09-10 15:17:25 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswell0c38eaf2003-09-10 15:17:25 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell0c38eaf2003-09-10 15:17:25 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell0c38eaf2003-09-10 15:17:25 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell0c38eaf2003-09-10 15:17:25 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001857
1858
John Criswell0c38eaf2003-09-10 15:17:25 +00001859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001860
1861
John Criswell0c38eaf2003-09-10 15:17:25 +00001862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell0c38eaf2003-09-10 15:17:25 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell0c38eaf2003-09-10 15:17:25 +00001868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell0c38eaf2003-09-10 15:17:25 +00001871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell0c38eaf2003-09-10 15:17:25 +00001874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell0c38eaf2003-09-10 15:17:25 +00001877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell0c38eaf2003-09-10 15:17:25 +00001880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell0c38eaf2003-09-10 15:17:25 +00001883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell0c38eaf2003-09-10 15:17:25 +00001886 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswell0c38eaf2003-09-10 15:17:25 +00001889 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswell0c38eaf2003-09-10 15:17:25 +00001892 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswell0c38eaf2003-09-10 15:17:25 +00001895 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell0c38eaf2003-09-10 15:17:25 +00001898 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell0c38eaf2003-09-10 15:17:25 +00001901 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell0c38eaf2003-09-10 15:17:25 +00001904 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell0c38eaf2003-09-10 15:17:25 +00001907 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswellffaaf3b2003-09-10 18:38:44 +00001910 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1911
1912
1913 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1914
1915
1916 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1917
1918
1919 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1920
1921
1922 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1923
1924
1925 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1926
1927
John Criswell0c38eaf2003-09-10 15:17:25 +00001928 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell0c38eaf2003-09-10 15:17:25 +00001931 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001932
1933
John Criswell0c38eaf2003-09-10 15:17:25 +00001934 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell0c38eaf2003-09-10 15:17:25 +00001937 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell0c38eaf2003-09-10 15:17:25 +00001940 ac_config_commands="$ac_config_commands tools/as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswell0c38eaf2003-09-10 15:17:25 +00001946 ac_config_commands="$ac_config_commands tools/dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswell0c38eaf2003-09-10 15:17:25 +00001949 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell0c38eaf2003-09-10 15:17:25 +00001952 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001953
1954
John Criswell0c38eaf2003-09-10 15:17:25 +00001955 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001956
1957
John Criswell0c38eaf2003-09-10 15:17:25 +00001958 ac_config_commands="$ac_config_commands tools/link/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell0c38eaf2003-09-10 15:17:25 +00001961 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands tools/opt/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0c38eaf2003-09-10 15:17:25 +00001970 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell0c38eaf2003-09-10 15:17:25 +00001973 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell0c38eaf2003-09-10 15:17:25 +00001976 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell0c38eaf2003-09-10 15:17:25 +00001979 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell0c38eaf2003-09-10 15:17:25 +00001982 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswell0c38eaf2003-09-10 15:17:25 +00002009 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
John Criswell0c38eaf2003-09-10 15:17:25 +00002012 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002013
2014
John Criswell0c38eaf2003-09-10 15:17:25 +00002015 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002016
2017
John Criswell0c38eaf2003-09-10 15:17:25 +00002018 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002019
2020
John Criswell0c38eaf2003-09-10 15:17:25 +00002021 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002022
2023
John Criswell0c38eaf2003-09-10 15:17:25 +00002024 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002025
2026
John Criswell0c38eaf2003-09-10 15:17:25 +00002027 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002028
2029
John Criswell392aaa32003-07-22 19:18:09 +00002030
2031
John Criswell7a73b802003-06-30 21:59:07 +00002032# Find a good install program. We prefer a C program (faster),
2033# so one script is as good as another. But avoid the broken or
2034# incompatible versions:
2035# SysV /etc/install, /usr/sbin/install
2036# SunOS /usr/etc/install
2037# IRIX /sbin/install
2038# AIX /bin/install
2039# AmigaOS /C/install, which installs bootblocks on floppy discs
2040# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2041# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2042# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2043# ./install, which can be erroneously created by make from ./install.sh.
2044echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2045echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2046if test -z "$INSTALL"; then
2047if test "${ac_cv_path_install+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 # Account for people who put trailing slashes in PATH elements.
2056case $as_dir/ in
2057 ./ | .// | /cC/* | \
2058 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2059 /usr/ucb/* ) ;;
2060 *)
2061 # OSF1 and SCO ODT 3.0 have their own names for install.
2062 # Don't use installbsd from OSF since it installs stuff as root
2063 # by default.
2064 for ac_prog in ginstall scoinst install; do
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2067 if test $ac_prog = install &&
2068 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2069 # AIX install. It has an incompatible calling convention.
2070 :
2071 elif test $ac_prog = install &&
2072 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2073 # program-specific install script used by HP pwplus--don't use.
2074 :
2075 else
2076 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2077 break 3
2078 fi
2079 fi
2080 done
2081 done
2082 ;;
2083esac
2084done
2085
2086
2087fi
2088 if test "${ac_cv_path_install+set}" = set; then
2089 INSTALL=$ac_cv_path_install
2090 else
2091 # As a last resort, use the slow shell script. We don't cache a
2092 # path for INSTALL within a source directory, because that will
2093 # break other packages using the cache if that directory is
2094 # removed, or if the path is relative.
2095 INSTALL=$ac_install_sh
2096 fi
2097fi
2098echo "$as_me:$LINENO: result: $INSTALL" >&5
2099echo "${ECHO_T}$INSTALL" >&6
2100
2101# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2102# It thinks the first close brace ends the variable substitution.
2103test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2104
2105test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2106
2107test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2108
2109
2110# Make sure we can run config.sub.
2111$ac_config_sub sun4 >/dev/null 2>&1 ||
2112 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2113echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2114 { (exit 1); exit 1; }; }
2115
2116echo "$as_me:$LINENO: checking build system type" >&5
2117echo $ECHO_N "checking build system type... $ECHO_C" >&6
2118if test "${ac_cv_build+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120else
2121 ac_cv_build_alias=$build_alias
2122test -z "$ac_cv_build_alias" &&
2123 ac_cv_build_alias=`$ac_config_guess`
2124test -z "$ac_cv_build_alias" &&
2125 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2126echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2127 { (exit 1); exit 1; }; }
2128ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2129 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2130echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2131 { (exit 1); exit 1; }; }
2132
2133fi
2134echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2135echo "${ECHO_T}$ac_cv_build" >&6
2136build=$ac_cv_build
2137build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2138build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2139build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2140
2141
2142echo "$as_me:$LINENO: checking host system type" >&5
2143echo $ECHO_N "checking host system type... $ECHO_C" >&6
2144if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147 ac_cv_host_alias=$host_alias
2148test -z "$ac_cv_host_alias" &&
2149 ac_cv_host_alias=$ac_cv_build_alias
2150ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2152echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2154
2155fi
2156echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157echo "${ECHO_T}$ac_cv_host" >&6
2158host=$ac_cv_host
2159host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2160host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2161host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2162
2163
2164echo "$as_me:$LINENO: checking target system type" >&5
2165echo $ECHO_N "checking target system type... $ECHO_C" >&6
2166if test "${ac_cv_target+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168else
2169 ac_cv_target_alias=$target_alias
2170test "x$ac_cv_target_alias" = "x" &&
2171 ac_cv_target_alias=$ac_cv_host_alias
2172ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2173 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2174echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2175 { (exit 1); exit 1; }; }
2176
2177fi
2178echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2179echo "${ECHO_T}$ac_cv_target" >&6
2180target=$ac_cv_target
2181target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2182target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2183target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2184
2185
2186# The aliases save the names the user supplied, while $host etc.
2187# will get canonicalized.
2188test -n "$target_alias" &&
2189 test "$program_prefix$program_suffix$program_transform_name" = \
2190 NONENONEs,x,x, &&
2191 program_prefix=${target_alias}-
2192
2193case $build in
2194 *i*86*) OS=Linux
2195
John Criswellf02dbf02003-07-22 20:07:49 +00002196 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002197
2198 ;;
2199
2200 *sparc*) OS=SunOS
2201
2202 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2203
2204 ;;
2205
2206 *) OS=Unknown
2207
2208 ;;
2209esac
2210
2211case $target in
2212 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2213
2214 ;;
2215esac
2216
John Criswell76595452003-07-01 22:07:39 +00002217case $target in
2218 *i*86*) ARCH=x86
2219
2220 ;;
2221 *sparc*solaris*) ARCH=Sparc
2222
2223 ;;
2224esac
2225
John Criswell7a73b802003-06-30 21:59:07 +00002226
2227ac_ext=cc
2228ac_cpp='$CXXCPP $CPPFLAGS'
2229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2232if test -n "$ac_tool_prefix"; then
2233 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2234 do
2235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2236set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2237echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239if test "${ac_cv_prog_CXX+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242 if test -n "$CXX"; then
2243 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2244else
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2255 fi
2256done
2257done
2258
2259fi
2260fi
2261CXX=$ac_cv_prog_CXX
2262if test -n "$CXX"; then
2263 echo "$as_me:$LINENO: result: $CXX" >&5
2264echo "${ECHO_T}$CXX" >&6
2265else
2266 echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6
2268fi
2269
2270 test -n "$CXX" && break
2271 done
2272fi
2273if test -z "$CXX"; then
2274 ac_ct_CXX=$CXX
2275 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2276do
2277 # Extract the first word of "$ac_prog", so it can be a program name with args.
2278set dummy $ac_prog; ac_word=$2
2279echo "$as_me:$LINENO: checking for $ac_word" >&5
2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284 if test -n "$ac_ct_CXX"; then
2285 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2286else
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_ac_ct_CXX="$ac_prog"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2297 fi
2298done
2299done
2300
2301fi
2302fi
2303ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2304if test -n "$ac_ct_CXX"; then
2305 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2306echo "${ECHO_T}$ac_ct_CXX" >&6
2307else
2308 echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6
2310fi
2311
2312 test -n "$ac_ct_CXX" && break
2313done
2314test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2315
2316 CXX=$ac_ct_CXX
2317fi
2318
2319
2320# Provide some information about the compiler.
2321echo "$as_me:$LINENO:" \
2322 "checking for C++ compiler version" >&5
2323ac_compiler=`set X $ac_compile; echo $2`
2324{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2325 (eval $ac_compiler --version </dev/null >&5) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2330 (eval $ac_compiler -v </dev/null >&5) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2334{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2335 (eval $ac_compiler -V </dev/null >&5) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }
2339
2340cat >conftest.$ac_ext <<_ACEOF
2341#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002342/* confdefs.h. */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002347
John Criswell7a73b802003-06-30 21:59:07 +00002348int
2349main ()
2350{
2351
2352 ;
2353 return 0;
2354}
2355_ACEOF
2356ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002357ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002358# Try to create an executable without -o first, disregard a.out.
2359# It will help us diagnose broken compilers, and finding out an intuition
2360# of exeext.
2361echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2362echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2363ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2364if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2365 (eval $ac_link_default) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 # Find the output, starting from the most likely. This scheme is
2370# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2371# resort.
2372
2373# Be careful to initialize this variable, since it used to be cached.
2374# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2375ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002376# b.out is created by i960 compilers.
2377for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2378do
2379 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002380 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2382 ;;
2383 conftest.$ac_ext )
2384 # This is the source file.
2385 ;;
2386 [ab].out )
2387 # We found the default executable, but exeext='' is most
2388 # certainly right.
2389 break;;
2390 *.* )
2391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2392 # FIXME: I believe we export ac_cv_exeext for Libtool,
2393 # but it would be cool to find out if it's true. Does anybody
2394 # maintain Libtool? --akim.
2395 export ac_cv_exeext
2396 break;;
2397 * )
2398 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002399 esac
2400done
2401else
2402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2406See \`config.log' for more details." >&5
2407echo "$as_me: error: C++ compiler cannot create executables
2408See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002409 { (exit 77); exit 77; }; }
2410fi
2411
2412ac_exeext=$ac_cv_exeext
2413echo "$as_me:$LINENO: result: $ac_file" >&5
2414echo "${ECHO_T}$ac_file" >&6
2415
2416# Check the compiler produces executables we can run. If not, either
2417# the compiler is broken, or we cross compile.
2418echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2419echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2420# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2421# If not cross compiling, check that we can run a simple program.
2422if test "$cross_compiling" != yes; then
2423 if { ac_try='./$ac_file'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 cross_compiling=no
2430 else
2431 if test "$cross_compiling" = maybe; then
2432 cross_compiling=yes
2433 else
2434 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002435If you meant to cross compile, use \`--host'.
2436See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002437echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002438If you meant to cross compile, use \`--host'.
2439See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002440 { (exit 1); exit 1; }; }
2441 fi
2442 fi
2443fi
2444echo "$as_me:$LINENO: result: yes" >&5
2445echo "${ECHO_T}yes" >&6
2446
John Criswell0c38eaf2003-09-10 15:17:25 +00002447rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002448ac_clean_files=$ac_clean_files_save
2449# Check the compiler produces executables we can run. If not, either
2450# the compiler is broken, or we cross compile.
2451echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2452echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2453echo "$as_me:$LINENO: result: $cross_compiling" >&5
2454echo "${ECHO_T}$cross_compiling" >&6
2455
2456echo "$as_me:$LINENO: checking for suffix of executables" >&5
2457echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2459 (eval $ac_link) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; then
2463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2464# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2465# work properly (i.e., refer to `conftest.exe'), while it won't with
2466# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002467for ac_file in conftest.exe conftest conftest.*; do
2468 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002469 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2472 export ac_cv_exeext
2473 break;;
2474 * ) break;;
2475 esac
2476done
2477else
John Criswell0c38eaf2003-09-10 15:17:25 +00002478 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2479See \`config.log' for more details." >&5
2480echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2481See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002482 { (exit 1); exit 1; }; }
2483fi
2484
2485rm -f conftest$ac_cv_exeext
2486echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2487echo "${ECHO_T}$ac_cv_exeext" >&6
2488
2489rm -f conftest.$ac_ext
2490EXEEXT=$ac_cv_exeext
2491ac_exeext=$EXEEXT
2492echo "$as_me:$LINENO: checking for suffix of object files" >&5
2493echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2494if test "${ac_cv_objext+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497 cat >conftest.$ac_ext <<_ACEOF
2498#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002499/* confdefs.h. */
2500_ACEOF
2501cat confdefs.h >>conftest.$ac_ext
2502cat >>conftest.$ac_ext <<_ACEOF
2503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002504
John Criswell7a73b802003-06-30 21:59:07 +00002505int
2506main ()
2507{
2508
2509 ;
2510 return 0;
2511}
2512_ACEOF
2513rm -f conftest.o conftest.obj
2514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; then
2519 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2520 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523 break;;
2524 esac
2525done
2526else
2527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: cannot compute suffix of object files: cannot compile
2533See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002534 { (exit 1); exit 1; }; }
2535fi
2536
2537rm -f conftest.$ac_cv_objext conftest.$ac_ext
2538fi
2539echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2540echo "${ECHO_T}$ac_cv_objext" >&6
2541OBJEXT=$ac_cv_objext
2542ac_objext=$OBJEXT
2543echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2544echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2545if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 cat >conftest.$ac_ext <<_ACEOF
2549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002555
John Criswell7a73b802003-06-30 21:59:07 +00002556int
2557main ()
2558{
2559#ifndef __GNUC__
2560 choke me
2561#endif
2562
2563 ;
2564 return 0;
2565}
2566_ACEOF
2567rm -f conftest.$ac_objext
2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569 (eval $ac_compile) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_compiler_gnu=yes
2580else
2581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002582sed 's/^/| /' conftest.$ac_ext >&5
2583
John Criswell7a73b802003-06-30 21:59:07 +00002584ac_compiler_gnu=no
2585fi
2586rm -f conftest.$ac_objext conftest.$ac_ext
2587ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2588
2589fi
2590echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2591echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2592GXX=`test $ac_compiler_gnu = yes && echo yes`
2593ac_test_CXXFLAGS=${CXXFLAGS+set}
2594ac_save_CXXFLAGS=$CXXFLAGS
2595CXXFLAGS="-g"
2596echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2597echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2598if test "${ac_cv_prog_cxx_g+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601 cat >conftest.$ac_ext <<_ACEOF
2602#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002603/* confdefs.h. */
2604_ACEOF
2605cat confdefs.h >>conftest.$ac_ext
2606cat >>conftest.$ac_ext <<_ACEOF
2607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002608
John Criswell7a73b802003-06-30 21:59:07 +00002609int
2610main ()
2611{
2612
2613 ;
2614 return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext
2618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 ac_cv_prog_cxx_g=yes
2630else
2631 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002632sed 's/^/| /' conftest.$ac_ext >&5
2633
John Criswell7a73b802003-06-30 21:59:07 +00002634ac_cv_prog_cxx_g=no
2635fi
2636rm -f conftest.$ac_objext conftest.$ac_ext
2637fi
2638echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2639echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2640if test "$ac_test_CXXFLAGS" = set; then
2641 CXXFLAGS=$ac_save_CXXFLAGS
2642elif test $ac_cv_prog_cxx_g = yes; then
2643 if test "$GXX" = yes; then
2644 CXXFLAGS="-g -O2"
2645 else
2646 CXXFLAGS="-g"
2647 fi
2648else
2649 if test "$GXX" = yes; then
2650 CXXFLAGS="-O2"
2651 else
2652 CXXFLAGS=
2653 fi
2654fi
2655for ac_declaration in \
2656 ''\
2657 '#include <stdlib.h>' \
2658 'extern "C" void std::exit (int) throw (); using std::exit;' \
2659 'extern "C" void std::exit (int); using std::exit;' \
2660 'extern "C" void exit (int) throw ();' \
2661 'extern "C" void exit (int);' \
2662 'void exit (int);'
2663do
2664 cat >conftest.$ac_ext <<_ACEOF
2665#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002666/* confdefs.h. */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002671#include <stdlib.h>
2672$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002673int
2674main ()
2675{
2676exit (42);
2677 ;
2678 return 0;
2679}
2680_ACEOF
2681rm -f conftest.$ac_objext
2682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -s conftest.$ac_objext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2693 :
2694else
2695 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002696sed 's/^/| /' conftest.$ac_ext >&5
2697
John Criswell7a73b802003-06-30 21:59:07 +00002698continue
2699fi
2700rm -f conftest.$ac_objext conftest.$ac_ext
2701 cat >conftest.$ac_ext <<_ACEOF
2702#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002703/* confdefs.h. */
2704_ACEOF
2705cat confdefs.h >>conftest.$ac_ext
2706cat >>conftest.$ac_ext <<_ACEOF
2707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002708$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002709int
2710main ()
2711{
2712exit (42);
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 break
2730else
2731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002732sed 's/^/| /' conftest.$ac_ext >&5
2733
John Criswell7a73b802003-06-30 21:59:07 +00002734fi
2735rm -f conftest.$ac_objext conftest.$ac_ext
2736done
2737rm -f conftest*
2738if test -n "$ac_declaration"; then
2739 echo '#ifdef __cplusplus' >>confdefs.h
2740 echo $ac_declaration >>confdefs.h
2741 echo '#endif' >>confdefs.h
2742fi
2743
2744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750ac_ext=c
2751ac_cpp='$CPP $CPPFLAGS'
2752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755if test -n "$ac_tool_prefix"; then
2756 for ac_prog in gcc
2757 do
2758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2760echo "$as_me:$LINENO: checking for $ac_word" >&5
2761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762if test "${ac_cv_prog_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779done
2780done
2781
2782fi
2783fi
2784CC=$ac_cv_prog_CC
2785if test -n "$CC"; then
2786 echo "$as_me:$LINENO: result: $CC" >&5
2787echo "${ECHO_T}$CC" >&6
2788else
2789 echo "$as_me:$LINENO: result: no" >&5
2790echo "${ECHO_T}no" >&6
2791fi
2792
2793 test -n "$CC" && break
2794 done
2795fi
2796if test -z "$CC"; then
2797 ac_ct_CC=$CC
2798 for ac_prog in gcc
2799do
2800 # Extract the first word of "$ac_prog", so it can be a program name with args.
2801set dummy $ac_prog; ac_word=$2
2802echo "$as_me:$LINENO: checking for $ac_word" >&5
2803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
2807 if test -n "$ac_ct_CC"; then
2808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_ac_ct_CC="$ac_prog"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821done
2822done
2823
2824fi
2825fi
2826ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827if test -n "$ac_ct_CC"; then
2828 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2829echo "${ECHO_T}$ac_ct_CC" >&6
2830else
2831 echo "$as_me:$LINENO: result: no" >&5
2832echo "${ECHO_T}no" >&6
2833fi
2834
2835 test -n "$ac_ct_CC" && break
2836done
2837
2838 CC=$ac_ct_CC
2839fi
2840
2841
John Criswell0c38eaf2003-09-10 15:17:25 +00002842test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2843See \`config.log' for more details." >&5
2844echo "$as_me: error: no acceptable C compiler found in \$PATH
2845See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002846 { (exit 1); exit 1; }; }
2847
2848# Provide some information about the compiler.
2849echo "$as_me:$LINENO:" \
2850 "checking for C compiler version" >&5
2851ac_compiler=`set X $ac_compile; echo $2`
2852{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2853 (eval $ac_compiler --version </dev/null >&5) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2858 (eval $ac_compiler -v </dev/null >&5) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2863 (eval $ac_compiler -V </dev/null >&5) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }
2867
2868echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2869echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2870if test "${ac_cv_c_compiler_gnu+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872else
2873 cat >conftest.$ac_ext <<_ACEOF
2874#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002875/* confdefs.h. */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002880
John Criswell7a73b802003-06-30 21:59:07 +00002881int
2882main ()
2883{
2884#ifndef __GNUC__
2885 choke me
2886#endif
2887
2888 ;
2889 return 0;
2890}
2891_ACEOF
2892rm -f conftest.$ac_objext
2893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } &&
2898 { ac_try='test -s conftest.$ac_objext'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 ac_compiler_gnu=yes
2905else
2906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002907sed 's/^/| /' conftest.$ac_ext >&5
2908
John Criswell7a73b802003-06-30 21:59:07 +00002909ac_compiler_gnu=no
2910fi
2911rm -f conftest.$ac_objext conftest.$ac_ext
2912ac_cv_c_compiler_gnu=$ac_compiler_gnu
2913
2914fi
2915echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2916echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2917GCC=`test $ac_compiler_gnu = yes && echo yes`
2918ac_test_CFLAGS=${CFLAGS+set}
2919ac_save_CFLAGS=$CFLAGS
2920CFLAGS="-g"
2921echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2922echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2923if test "${ac_cv_prog_cc_g+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926 cat >conftest.$ac_ext <<_ACEOF
2927#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002928/* confdefs.h. */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002933
John Criswell7a73b802003-06-30 21:59:07 +00002934int
2935main ()
2936{
2937
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 ac_cv_prog_cc_g=yes
2955else
2956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002957sed 's/^/| /' conftest.$ac_ext >&5
2958
John Criswell7a73b802003-06-30 21:59:07 +00002959ac_cv_prog_cc_g=no
2960fi
2961rm -f conftest.$ac_objext conftest.$ac_ext
2962fi
2963echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2964echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2965if test "$ac_test_CFLAGS" = set; then
2966 CFLAGS=$ac_save_CFLAGS
2967elif test $ac_cv_prog_cc_g = yes; then
2968 if test "$GCC" = yes; then
2969 CFLAGS="-g -O2"
2970 else
2971 CFLAGS="-g"
2972 fi
2973else
2974 if test "$GCC" = yes; then
2975 CFLAGS="-O2"
2976 else
2977 CFLAGS=
2978 fi
2979fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002980echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2981echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2982if test "${ac_cv_prog_cc_stdc+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985 ac_cv_prog_cc_stdc=no
2986ac_save_CC=$CC
2987cat >conftest.$ac_ext <<_ACEOF
2988#line $LINENO "configure"
2989/* confdefs.h. */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h. */
2994#include <stdarg.h>
2995#include <stdio.h>
2996#include <sys/types.h>
2997#include <sys/stat.h>
2998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2999struct buf { int x; };
3000FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001static char *e (p, i)
3002 char **p;
3003 int i;
3004{
3005 return p[i];
3006}
3007static char *f (char * (*g) (char **, int), char **p, ...)
3008{
3009 char *s;
3010 va_list v;
3011 va_start (v,p);
3012 s = g (p, va_arg (v,int));
3013 va_end (v);
3014 return s;
3015}
3016int test (int i, double x);
3017struct s1 {int (*f) (int a);};
3018struct s2 {int (*f) (double a);};
3019int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3020int argc;
3021char **argv;
3022int
3023main ()
3024{
3025return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030# Don't try gcc -ansi; that turns off useful extensions and
3031# breaks some systems' header files.
3032# AIX -qlanglvl=ansi
3033# Ultrix and OSF/1 -std1
3034# HP-UX 10.20 and later -Ae
3035# HP-UX older versions -Aa -D_HPUX_SOURCE
3036# SVR4 -Xc -D__EXTENSIONS__
3037for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3038do
3039 CC="$ac_save_CC $ac_arg"
3040 rm -f conftest.$ac_objext
3041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_cv_prog_cc_stdc=$ac_arg
3053break
3054else
3055 echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058fi
3059rm -f conftest.$ac_objext
3060done
3061rm -f conftest.$ac_ext conftest.$ac_objext
3062CC=$ac_save_CC
3063
3064fi
3065
3066case "x$ac_cv_prog_cc_stdc" in
3067 x|xno)
3068 echo "$as_me:$LINENO: result: none needed" >&5
3069echo "${ECHO_T}none needed" >&6 ;;
3070 *)
3071 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3072echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3073 CC="$CC $ac_cv_prog_cc_stdc" ;;
3074esac
3075
John Criswell7a73b802003-06-30 21:59:07 +00003076# Some people use a C++ compiler to compile C. Since we use `exit',
3077# in C++ we need to declare it. In case someone uses the same compiler
3078# for both compiling C and C++ we need to have the C++ compiler decide
3079# the declaration of exit, since it's the most demanding environment.
3080cat >conftest.$ac_ext <<_ACEOF
3081#ifndef __cplusplus
3082 choke me
3083#endif
3084_ACEOF
3085rm -f conftest.$ac_objext
3086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087 (eval $ac_compile) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 for ac_declaration in \
3098 ''\
3099 '#include <stdlib.h>' \
3100 'extern "C" void std::exit (int) throw (); using std::exit;' \
3101 'extern "C" void std::exit (int); using std::exit;' \
3102 'extern "C" void exit (int) throw ();' \
3103 'extern "C" void exit (int);' \
3104 'void exit (int);'
3105do
3106 cat >conftest.$ac_ext <<_ACEOF
3107#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003113#include <stdlib.h>
3114$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003115int
3116main ()
3117{
3118exit (42);
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext
3124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 :
3136else
3137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003138sed 's/^/| /' conftest.$ac_ext >&5
3139
John Criswell7a73b802003-06-30 21:59:07 +00003140continue
3141fi
3142rm -f conftest.$ac_objext conftest.$ac_ext
3143 cat >conftest.$ac_ext <<_ACEOF
3144#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003150$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003151int
3152main ()
3153{
3154exit (42);
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 break
3172else
3173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003174sed 's/^/| /' conftest.$ac_ext >&5
3175
John Criswell7a73b802003-06-30 21:59:07 +00003176fi
3177rm -f conftest.$ac_objext conftest.$ac_ext
3178done
3179rm -f conftest*
3180if test -n "$ac_declaration"; then
3181 echo '#ifdef __cplusplus' >>confdefs.h
3182 echo $ac_declaration >>confdefs.h
3183 echo '#endif' >>confdefs.h
3184fi
3185
3186else
3187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003188sed 's/^/| /' conftest.$ac_ext >&5
3189
John Criswell7a73b802003-06-30 21:59:07 +00003190fi
3191rm -f conftest.$ac_objext conftest.$ac_ext
3192ac_ext=c
3193ac_cpp='$CPP $CPPFLAGS'
3194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197
3198ac_ext=c
3199ac_cpp='$CPP $CPPFLAGS'
3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3205# On Suns, sometimes $CPP names a directory.
3206if test -n "$CPP" && test -d "$CPP"; then
3207 CPP=
3208fi
3209if test -z "$CPP"; then
3210 if test "${ac_cv_prog_CPP+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213 # Double quotes because CPP needs to be expanded
3214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215 do
3216 ac_preproc_ok=false
3217for ac_c_preproc_warn_flag in '' yes
3218do
3219 # Use a header file that comes with gcc, so configuring glibc
3220 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003223 # On the NeXT, cc -E runs the code through the compiler's parser,
3224 # not just through cpp. "Syntax error" is here to catch this case.
3225 cat >conftest.$ac_ext <<_ACEOF
3226#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232#ifdef __STDC__
3233# include <limits.h>
3234#else
3235# include <assert.h>
3236#endif
John Criswell7a73b802003-06-30 21:59:07 +00003237 Syntax error
3238_ACEOF
3239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003242 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 else
3250 ac_cpp_err=
3251 fi
3252else
3253 ac_cpp_err=yes
3254fi
3255if test -z "$ac_cpp_err"; then
3256 :
3257else
3258 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003259sed 's/^/| /' conftest.$ac_ext >&5
3260
John Criswell7a73b802003-06-30 21:59:07 +00003261 # Broken: fails on valid input.
3262continue
3263fi
3264rm -f conftest.err conftest.$ac_ext
3265
3266 # OK, works on sane cases. Now check whether non-existent headers
3267 # can be detected and how.
3268 cat >conftest.$ac_ext <<_ACEOF
3269#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003270/* confdefs.h. */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003275#include <ac_nonexistent.h>
3276_ACEOF
3277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3279 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003280 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null; then
3285 if test -s conftest.err; then
3286 ac_cpp_err=$ac_c_preproc_warn_flag
3287 else
3288 ac_cpp_err=
3289 fi
3290else
3291 ac_cpp_err=yes
3292fi
3293if test -z "$ac_cpp_err"; then
3294 # Broken: success on invalid input.
3295continue
3296else
3297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003298sed 's/^/| /' conftest.$ac_ext >&5
3299
John Criswell7a73b802003-06-30 21:59:07 +00003300 # Passes both tests.
3301ac_preproc_ok=:
3302break
3303fi
3304rm -f conftest.err conftest.$ac_ext
3305
3306done
3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308rm -f conftest.err conftest.$ac_ext
3309if $ac_preproc_ok; then
3310 break
3311fi
3312
3313 done
3314 ac_cv_prog_CPP=$CPP
3315
3316fi
3317 CPP=$ac_cv_prog_CPP
3318else
3319 ac_cv_prog_CPP=$CPP
3320fi
3321echo "$as_me:$LINENO: result: $CPP" >&5
3322echo "${ECHO_T}$CPP" >&6
3323ac_preproc_ok=false
3324for ac_c_preproc_warn_flag in '' yes
3325do
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
3332 cat >conftest.$ac_ext <<_ACEOF
3333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339#ifdef __STDC__
3340# include <limits.h>
3341#else
3342# include <assert.h>
3343#endif
John Criswell7a73b802003-06-30 21:59:07 +00003344 Syntax error
3345_ACEOF
3346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003349 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null; then
3354 if test -s conftest.err; then
3355 ac_cpp_err=$ac_c_preproc_warn_flag
3356 else
3357 ac_cpp_err=
3358 fi
3359else
3360 ac_cpp_err=yes
3361fi
3362if test -z "$ac_cpp_err"; then
3363 :
3364else
3365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003366sed 's/^/| /' conftest.$ac_ext >&5
3367
John Criswell7a73b802003-06-30 21:59:07 +00003368 # Broken: fails on valid input.
3369continue
3370fi
3371rm -f conftest.err conftest.$ac_ext
3372
3373 # OK, works on sane cases. Now check whether non-existent headers
3374 # can be detected and how.
3375 cat >conftest.$ac_ext <<_ACEOF
3376#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003377/* confdefs.h. */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003382#include <ac_nonexistent.h>
3383_ACEOF
3384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3386 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003387 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 else
3395 ac_cpp_err=
3396 fi
3397else
3398 ac_cpp_err=yes
3399fi
3400if test -z "$ac_cpp_err"; then
3401 # Broken: success on invalid input.
3402continue
3403else
3404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003405sed 's/^/| /' conftest.$ac_ext >&5
3406
John Criswell7a73b802003-06-30 21:59:07 +00003407 # Passes both tests.
3408ac_preproc_ok=:
3409break
3410fi
3411rm -f conftest.err conftest.$ac_ext
3412
3413done
3414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415rm -f conftest.err conftest.$ac_ext
3416if $ac_preproc_ok; then
3417 :
3418else
John Criswell0c38eaf2003-09-10 15:17:25 +00003419 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3420See \`config.log' for more details." >&5
3421echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3422See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003423 { (exit 1); exit 1; }; }
3424fi
3425
3426ac_ext=c
3427ac_cpp='$CPP $CPPFLAGS'
3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431
3432
3433if test "$GCC" != "yes"
3434then
3435 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3436echo "$as_me: error: gcc required but not found" >&2;}
3437 { (exit 1); exit 1; }; }
3438fi
3439
3440if test "$GXX" != "yes"
3441then
3442 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3443echo "$as_me: error: g++ required but not found" >&2;}
3444 { (exit 1); exit 1; }; }
3445fi
3446
John Criswellde00db22003-08-25 16:49:54 +00003447gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3448if test "$gccmajor" -lt "3"
3449then
3450 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3451echo "$as_me: error: gcc 3.x required" >&2;}
3452 { (exit 1); exit 1; }; }
3453fi
3454
John Criswell7a73b802003-06-30 21:59:07 +00003455 echo "$as_me:$LINENO: checking for GNU make" >&5
3456echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3457if test "${_cv_gnu_make_command+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460 _cv_gnu_make_command='' ;
3461 for a in "$MAKE" make gmake gnumake ; do
3462 if test -z "$a" ; then continue ; fi ;
3463 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3464 _cv_gnu_make_command=$a ;
3465 break;
3466 fi
3467 done ;
3468
3469fi
3470echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3471echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3472 if test "x$_cv_gnu_make_command" != "x" ; then
3473 ifGNUmake='' ;
3474 else
3475 ifGNUmake='#' ;
3476 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3477echo "${ECHO_T}\"Not found\"" >&6;
3478 fi
3479
3480
3481if test -z "$_cv_gnu_make_command"
3482then
3483 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3484echo "$as_me: error: GNU Make required but not found" >&2;}
3485 { (exit 1); exit 1; }; }
3486fi
3487
3488
3489echo "$as_me:$LINENO: checking " >&5
3490echo $ECHO_N "checking ... $ECHO_C" >&6
3491if test "${ac_cv_has_flex+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493else
3494 for ac_prog in flex lex
3495do
3496 # Extract the first word of "$ac_prog", so it can be a program name with args.
3497set dummy $ac_prog; ac_word=$2
3498echo "$as_me:$LINENO: checking for $ac_word" >&5
3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500if test "${ac_cv_prog_LEX+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503 if test -n "$LEX"; then
3504 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_LEX="$ac_prog"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517done
3518done
3519
3520fi
3521fi
3522LEX=$ac_cv_prog_LEX
3523if test -n "$LEX"; then
3524 echo "$as_me:$LINENO: result: $LEX" >&5
3525echo "${ECHO_T}$LEX" >&6
3526else
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
3529fi
3530
3531 test -n "$LEX" && break
3532done
3533test -n "$LEX" || LEX=":"
3534
3535if test -z "$LEXLIB"
3536then
3537 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3538echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3539if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 ac_check_lib_save_LIBS=$LIBS
3543LIBS="-lfl $LIBS"
3544cat >conftest.$ac_ext <<_ACEOF
3545#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003551
3552/* Override any gcc2 internal prototype to avoid an error. */
3553#ifdef __cplusplus
3554extern "C"
3555#endif
3556/* We use char because int might match the return type of a gcc2
3557 builtin and then its argument prototype would still apply. */
3558char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003559int
3560main ()
3561{
3562yywrap ();
3563 ;
3564 return 0;
3565}
3566_ACEOF
3567rm -f conftest.$ac_objext conftest$ac_exeext
3568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3569 (eval $ac_link) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -s conftest$ac_exeext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_cv_lib_fl_yywrap=yes
3580else
3581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003582sed 's/^/| /' conftest.$ac_ext >&5
3583
John Criswell7a73b802003-06-30 21:59:07 +00003584ac_cv_lib_fl_yywrap=no
3585fi
3586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3587LIBS=$ac_check_lib_save_LIBS
3588fi
3589echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3590echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3591if test $ac_cv_lib_fl_yywrap = yes; then
3592 LEXLIB="-lfl"
3593else
3594 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3595echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3596if test "${ac_cv_lib_l_yywrap+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599 ac_check_lib_save_LIBS=$LIBS
3600LIBS="-ll $LIBS"
3601cat >conftest.$ac_ext <<_ACEOF
3602#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003603/* confdefs.h. */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003608
3609/* Override any gcc2 internal prototype to avoid an error. */
3610#ifdef __cplusplus
3611extern "C"
3612#endif
3613/* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3615char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003616int
3617main ()
3618{
3619yywrap ();
3620 ;
3621 return 0;
3622}
3623_ACEOF
3624rm -f conftest.$ac_objext conftest$ac_exeext
3625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3626 (eval $ac_link) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -s conftest$ac_exeext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 ac_cv_lib_l_yywrap=yes
3637else
3638 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003639sed 's/^/| /' conftest.$ac_ext >&5
3640
John Criswell7a73b802003-06-30 21:59:07 +00003641ac_cv_lib_l_yywrap=no
3642fi
3643rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3644LIBS=$ac_check_lib_save_LIBS
3645fi
3646echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3647echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3648if test $ac_cv_lib_l_yywrap = yes; then
3649 LEXLIB="-ll"
3650fi
3651
3652fi
3653
3654fi
3655
3656if test "x$LEX" != "x:"; then
3657 echo "$as_me:$LINENO: checking lex output file root" >&5
3658echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3659if test "${ac_cv_prog_lex_root+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
3662 # The minimal lex program is just a single line: %%. But some broken lexes
3663# (Solaris, I think it was) want two %% lines, so accommodate them.
3664cat >conftest.l <<_ACEOF
3665%%
3666%%
3667_ACEOF
3668{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3669 (eval $LEX conftest.l) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }
3673if test -f lex.yy.c; then
3674 ac_cv_prog_lex_root=lex.yy
3675elif test -f lexyy.c; then
3676 ac_cv_prog_lex_root=lexyy
3677else
3678 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3679echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3680 { (exit 1); exit 1; }; }
3681fi
3682fi
3683echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3684echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3685rm -f conftest.l
3686LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3687
3688echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3689echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3690if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
3693 # POSIX says lex can declare yytext either as a pointer or an array; the
3694# default is implementation-dependent. Figure out which it is, since
3695# not all implementations provide the %pointer and %array declarations.
3696ac_cv_prog_lex_yytext_pointer=no
3697echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3698ac_save_LIBS=$LIBS
3699LIBS="$LIBS $LEXLIB"
3700cat >conftest.$ac_ext <<_ACEOF
3701`cat $LEX_OUTPUT_ROOT.c`
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_cv_prog_lex_yytext_pointer=yes
3716else
3717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003718sed 's/^/| /' conftest.$ac_ext >&5
3719
John Criswell7a73b802003-06-30 21:59:07 +00003720fi
3721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3722LIBS=$ac_save_LIBS
3723rm -f "${LEX_OUTPUT_ROOT}.c"
3724
3725fi
3726echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3727echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3728if test $ac_cv_prog_lex_yytext_pointer = yes; then
3729
3730cat >>confdefs.h <<\_ACEOF
3731#define YYTEXT_POINTER 1
3732_ACEOF
3733
3734fi
3735
3736fi
3737
3738fi
3739echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3740echo "${ECHO_T}$ac_cv_has_flex" >&6
3741if test "$LEX" != "flex"; then
3742 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3743echo "$as_me: error: flex not found but required" >&2;}
3744 { (exit 1); exit 1; }; }
3745fi
3746
3747echo "$as_me:$LINENO: checking " >&5
3748echo $ECHO_N "checking ... $ECHO_C" >&6
3749if test "${ac_cv_has_bison+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752 for ac_prog in 'bison -y' byacc
3753do
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755set dummy $ac_prog; ac_word=$2
3756echo "$as_me:$LINENO: checking for $ac_word" >&5
3757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758if test "${ac_cv_prog_YACC+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761 if test -n "$YACC"; then
3762 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_YACC="$ac_prog"
3772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775done
3776done
3777
3778fi
3779fi
3780YACC=$ac_cv_prog_YACC
3781if test -n "$YACC"; then
3782 echo "$as_me:$LINENO: result: $YACC" >&5
3783echo "${ECHO_T}$YACC" >&6
3784else
3785 echo "$as_me:$LINENO: result: no" >&5
3786echo "${ECHO_T}no" >&6
3787fi
3788
3789 test -n "$YACC" && break
3790done
3791test -n "$YACC" || YACC="yacc"
3792
3793
3794fi
3795echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3796echo "${ECHO_T}$ac_cv_has_bison" >&6
3797if test "$YACC" != "bison -y"; then
3798 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3799echo "$as_me: error: bison not found but required" >&2;}
3800 { (exit 1); exit 1; }; }
3801else
3802 YACC=bison
3803
3804fi
3805
3806
3807# Check whether --enable-shared or --disable-shared was given.
3808if test "${enable_shared+set}" = set; then
3809 enableval="$enable_shared"
3810 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003811 case $enableval in
3812 yes) enable_shared=yes ;;
3813 no) enable_shared=no ;;
3814 *)
3815 enable_shared=no
3816 # Look at the argument we got. We use all the common list separators.
3817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3818 for pkg in $enableval; do
3819 IFS="$lt_save_ifs"
3820 if test "X$pkg" = "X$p"; then
3821 enable_shared=yes
3822 fi
3823 done
3824 IFS="$lt_save_ifs"
3825 ;;
3826 esac
John Criswell7a73b802003-06-30 21:59:07 +00003827else
3828 enable_shared=yes
3829fi;
John Criswell47fdd832003-07-14 16:52:07 +00003830
John Criswell7a73b802003-06-30 21:59:07 +00003831# Check whether --enable-static or --disable-static was given.
3832if test "${enable_static+set}" = set; then
3833 enableval="$enable_static"
3834 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003835 case $enableval in
3836 yes) enable_static=yes ;;
3837 no) enable_static=no ;;
3838 *)
3839 enable_static=no
3840 # Look at the argument we got. We use all the common list separators.
3841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3842 for pkg in $enableval; do
3843 IFS="$lt_save_ifs"
3844 if test "X$pkg" = "X$p"; then
3845 enable_static=yes
3846 fi
3847 done
3848 IFS="$lt_save_ifs"
3849 ;;
3850 esac
John Criswell7a73b802003-06-30 21:59:07 +00003851else
3852 enable_static=yes
3853fi;
John Criswell47fdd832003-07-14 16:52:07 +00003854
John Criswell7a73b802003-06-30 21:59:07 +00003855# Check whether --enable-fast-install or --disable-fast-install was given.
3856if test "${enable_fast_install+set}" = set; then
3857 enableval="$enable_fast_install"
3858 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003859 case $enableval in
3860 yes) enable_fast_install=yes ;;
3861 no) enable_fast_install=no ;;
3862 *)
3863 enable_fast_install=no
3864 # Look at the argument we got. We use all the common list separators.
3865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3866 for pkg in $enableval; do
3867 IFS="$lt_save_ifs"
3868 if test "X$pkg" = "X$p"; then
3869 enable_fast_install=yes
3870 fi
3871 done
3872 IFS="$lt_save_ifs"
3873 ;;
3874 esac
John Criswell7a73b802003-06-30 21:59:07 +00003875else
3876 enable_fast_install=yes
3877fi;
John Criswell47fdd832003-07-14 16:52:07 +00003878
3879echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3880echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3881if test "${lt_cv_path_SED+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 # Loop through the user's path and test for sed and gsed.
3885# Then use that list of sed's as ones to test for truncation.
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for lt_ac_prog in sed gsed; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3894 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3895 fi
3896 done
3897 done
3898done
3899lt_ac_max=0
3900lt_ac_count=0
3901# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3902# along with /bin/sed that truncates output.
3903for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3904 test ! -f $lt_ac_sed && break
3905 cat /dev/null > conftest.in
3906 lt_ac_count=0
3907 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3908 # Check for GNU sed and select it if it is found.
3909 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3910 lt_cv_path_SED=$lt_ac_sed
3911 break
3912 fi
3913 while true; do
3914 cat conftest.in conftest.in >conftest.tmp
3915 mv conftest.tmp conftest.in
3916 cp conftest.in conftest.nl
3917 echo >>conftest.nl
3918 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3919 cmp -s conftest.out conftest.nl || break
3920 # 10000 chars as input seems more than enough
3921 test $lt_ac_count -gt 10 && break
3922 lt_ac_count=`expr $lt_ac_count + 1`
3923 if test $lt_ac_count -gt $lt_ac_max; then
3924 lt_ac_max=$lt_ac_count
3925 lt_cv_path_SED=$lt_ac_sed
3926 fi
3927 done
3928done
3929SED=$lt_cv_path_SED
3930
John Criswell7a73b802003-06-30 21:59:07 +00003931fi
3932
John Criswell47fdd832003-07-14 16:52:07 +00003933echo "$as_me:$LINENO: result: $SED" >&5
3934echo "${ECHO_T}$SED" >&6
3935
3936echo "$as_me:$LINENO: checking for egrep" >&5
3937echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3938if test "${ac_cv_prog_egrep+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3942 then ac_cv_prog_egrep='grep -E'
3943 else ac_cv_prog_egrep='egrep'
3944 fi
3945fi
3946echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3947echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3948 EGREP=$ac_cv_prog_egrep
3949
3950
John Criswell7a73b802003-06-30 21:59:07 +00003951
3952# Check whether --with-gnu-ld or --without-gnu-ld was given.
3953if test "${with_gnu_ld+set}" = set; then
3954 withval="$with_gnu_ld"
3955 test "$withval" = no || with_gnu_ld=yes
3956else
3957 with_gnu_ld=no
3958fi;
3959ac_prog=ld
3960if test "$GCC" = yes; then
3961 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003962 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3963echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003964 case $host in
3965 *-*-mingw*)
3966 # gcc leaves a trailing carriage return which upsets mingw
3967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3968 *)
3969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3970 esac
3971 case $ac_prog in
3972 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003973 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003974 re_direlt='/[^/][^/]*/\.\./'
3975 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003976 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003977 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003978 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003979 done
3980 test -z "$LD" && LD="$ac_prog"
3981 ;;
3982 "")
3983 # If it fails, then pretend we aren't using GCC.
3984 ac_prog=ld
3985 ;;
3986 *)
3987 # If it is relative, then search for the first ld in PATH.
3988 with_gnu_ld=unknown
3989 ;;
3990 esac
3991elif test "$with_gnu_ld" = yes; then
3992 echo "$as_me:$LINENO: checking for GNU ld" >&5
3993echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3994else
3995 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3996echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3997fi
3998if test "${lt_cv_path_LD+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004003 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004004 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004005 test -z "$ac_dir" && ac_dir=.
4006 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4007 lt_cv_path_LD="$ac_dir/$ac_prog"
4008 # Check to see if the program is GNU ld. I'd rather use --version,
4009 # but apparently some GNU ld's only accept -v.
4010 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004011 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4012 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004013 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004014 ;;
4015 *)
John Criswell7a73b802003-06-30 21:59:07 +00004016 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004017 ;;
4018 esac
John Criswell7a73b802003-06-30 21:59:07 +00004019 fi
4020 done
John Criswell47fdd832003-07-14 16:52:07 +00004021 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004022else
4023 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4024fi
4025fi
4026
4027LD="$lt_cv_path_LD"
4028if test -n "$LD"; then
4029 echo "$as_me:$LINENO: result: $LD" >&5
4030echo "${ECHO_T}$LD" >&6
4031else
4032 echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034fi
4035test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4036echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4037 { (exit 1); exit 1; }; }
4038echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4039echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4040if test "${lt_cv_prog_gnu_ld+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004044case `"$LD" -v 2>&1 </dev/null` in
4045*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004046 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004047 ;;
4048*)
John Criswell7a73b802003-06-30 21:59:07 +00004049 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004050 ;;
4051esac
John Criswell7a73b802003-06-30 21:59:07 +00004052fi
4053echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4054echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4055with_gnu_ld=$lt_cv_prog_gnu_ld
4056
4057
4058echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4059echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4060if test "${lt_cv_ld_reload_flag+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063 lt_cv_ld_reload_flag='-r'
4064fi
4065echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4066echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4067reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004068case $reload_flag in
4069"" | " "*) ;;
4070*) reload_flag=" $reload_flag" ;;
4071esac
4072reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004073
4074echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4075echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4076if test "${lt_cv_path_NM+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079 if test -n "$NM"; then
4080 # Let the user override the test.
4081 lt_cv_path_NM="$NM"
4082else
John Criswell47fdd832003-07-14 16:52:07 +00004083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004084 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004085 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004086 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004087 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004089 # Check to see if the nm accepts a BSD-compat flag.
4090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4091 # nm: unknown option "B" ignored
4092 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4094 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004095 lt_cv_path_NM="$tmp_nm -B"
4096 break
John Criswell47fdd832003-07-14 16:52:07 +00004097 ;;
4098 *)
4099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4100 */dev/null*)
4101 lt_cv_path_NM="$tmp_nm -p"
4102 break
4103 ;;
4104 *)
4105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4106 continue # so that we can try to find one that supports BSD flags
4107 ;;
4108 esac
4109 esac
John Criswell7a73b802003-06-30 21:59:07 +00004110 fi
4111 done
John Criswell47fdd832003-07-14 16:52:07 +00004112 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004113 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4114fi
4115fi
John Criswell47fdd832003-07-14 16:52:07 +00004116echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4117echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004118NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004119
4120echo "$as_me:$LINENO: checking whether ln -s works" >&5
4121echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4122LN_S=$as_ln_s
4123if test "$LN_S" = "ln -s"; then
4124 echo "$as_me:$LINENO: result: yes" >&5
4125echo "${ECHO_T}yes" >&6
4126else
4127 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4128echo "${ECHO_T}no, using $LN_S" >&6
4129fi
4130
John Criswell47fdd832003-07-14 16:52:07 +00004131echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4132echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004133if test "${lt_cv_deplibs_check_method+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136 lt_cv_file_magic_cmd='$MAGIC_CMD'
4137lt_cv_file_magic_test_file=
4138lt_cv_deplibs_check_method='unknown'
4139# Need to set the preceding variable on all platforms that support
4140# interlibrary dependencies.
4141# 'none' -- dependencies not supported.
4142# `unknown' -- same as none, but documents that we really don't know.
4143# 'pass_all' -- all dependencies passed with no checks.
4144# 'test_compile' -- check by making test program.
4145# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004146# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004147# If you have `file' or equivalent on your system and you're not sure
4148# whether `pass_all' will *always* work, you probably want this one.
4149
4150case $host_os in
4151aix4* | aix5*)
4152 lt_cv_deplibs_check_method=pass_all
4153 ;;
4154
4155beos*)
4156 lt_cv_deplibs_check_method=pass_all
4157 ;;
4158
4159bsdi4*)
4160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4161 lt_cv_file_magic_cmd='/usr/bin/file -L'
4162 lt_cv_file_magic_test_file=/shlib/libc.so
4163 ;;
4164
4165cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004166 # win32_libid is a shell function defined in ltmain.sh
4167 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4168 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004169 ;;
4170
4171darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004172 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004173 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4174 lt_cv_file_magic_cmd='/usr/bin/file -L'
4175 case "$host_os" in
4176 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004177 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004178 ;;
4179 *) # Darwin 1.3 on
4180 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4181 ;;
4182 esac
John Criswell47fdd832003-07-14 16:52:07 +00004183 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004184 ;;
4185
4186freebsd*)
4187 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4188 case $host_cpu in
4189 i*86 )
4190 # Not sure whether the presence of OpenBSD here was a mistake.
4191 # Let's accept both of them until this is cleared up.
4192 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4193 lt_cv_file_magic_cmd=/usr/bin/file
4194 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4195 ;;
4196 esac
4197 else
4198 lt_cv_deplibs_check_method=pass_all
4199 fi
4200 ;;
4201
4202gnu*)
4203 lt_cv_deplibs_check_method=pass_all
4204 ;;
4205
John Criswell47fdd832003-07-14 16:52:07 +00004206hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004207 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004208 case "$host_cpu" in
4209 ia64*)
4210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4211 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4212 ;;
4213 hppa*64*)
4214 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]'
4215 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4216 ;;
4217 *)
4218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4219 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4220 ;;
4221 esac
John Criswell7a73b802003-06-30 21:59:07 +00004222 ;;
4223
John Criswell47fdd832003-07-14 16:52:07 +00004224irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004225 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004226 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004227 # this will be overridden with pass_all, but let us keep it just in case
4228 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4229 ;;
4230 *)
4231 case $LD in
4232 *-32|*"-32 ") libmagic=32-bit;;
4233 *-n32|*"-n32 ") libmagic=N32;;
4234 *-64|*"-64 ") libmagic=64-bit;;
4235 *) libmagic=never-match;;
4236 esac
4237 # this will be overridden with pass_all, but let us keep it just in case
4238 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4239 ;;
4240 esac
4241 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4242 lt_cv_deplibs_check_method=pass_all
4243 ;;
4244
4245# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004246linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004247 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004248 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004249 lt_cv_deplibs_check_method=pass_all ;;
4250 *)
4251 # glibc up to 2.1.1 does not perform some relocations on ARM
4252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4253 esac
4254 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4255 ;;
4256
4257netbsd*)
4258 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004260 else
John Criswell47fdd832003-07-14 16:52:07 +00004261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004262 fi
4263 ;;
4264
4265newos6*)
4266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4267 lt_cv_file_magic_cmd=/usr/bin/file
4268 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4269 ;;
4270
John Criswell47fdd832003-07-14 16:52:07 +00004271nto-qnx)
4272 lt_cv_deplibs_check_method=unknown
4273 ;;
4274
John Criswell7a73b802003-06-30 21:59:07 +00004275openbsd*)
4276 lt_cv_file_magic_cmd=/usr/bin/file
4277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4280 else
4281 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4282 fi
4283 ;;
4284
4285osf3* | osf4* | osf5*)
4286 # this will be overridden with pass_all, but let us keep it just in case
4287 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4288 lt_cv_file_magic_test_file=/shlib/libc.so
4289 lt_cv_deplibs_check_method=pass_all
4290 ;;
4291
4292sco3.2v5*)
4293 lt_cv_deplibs_check_method=pass_all
4294 ;;
4295
4296solaris*)
4297 lt_cv_deplibs_check_method=pass_all
4298 lt_cv_file_magic_test_file=/lib/libc.so
4299 ;;
4300
John Criswell7a73b802003-06-30 21:59:07 +00004301sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4302 case $host_vendor in
4303 motorola)
4304 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]'
4305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4306 ;;
4307 ncr)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310 sequent)
4311 lt_cv_file_magic_cmd='/bin/file'
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4313 ;;
4314 sni)
4315 lt_cv_file_magic_cmd='/bin/file'
4316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4317 lt_cv_file_magic_test_file=/lib/libc.so
4318 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004319 siemens)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004322 esac
4323 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004324
4325sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004328esac
4329
4330fi
4331echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4332echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4333file_magic_cmd=$lt_cv_file_magic_cmd
4334deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004335test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004336
4337
4338
4339
John Criswell47fdd832003-07-14 16:52:07 +00004340# If no C compiler was specified, use CC.
4341LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004342
John Criswell47fdd832003-07-14 16:52:07 +00004343# Allow CC to be a program name with arguments.
4344compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004345
John Criswell47fdd832003-07-14 16:52:07 +00004346# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4347if test "${enable_libtool_lock+set}" = set; then
4348 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004349
John Criswell47fdd832003-07-14 16:52:07 +00004350fi;
4351test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004352
John Criswell47fdd832003-07-14 16:52:07 +00004353# Some flags need to be propagated to the compiler or linker for good
4354# libtool support.
4355case $host in
4356ia64-*-hpux*)
4357 # Find out which ABI we are using.
4358 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004364 case `/usr/bin/file conftest.$ac_objext` in
4365 *ELF-32*)
4366 HPUX_IA64_MODE="32"
4367 ;;
4368 *ELF-64*)
4369 HPUX_IA64_MODE="64"
4370 ;;
4371 esac
4372 fi
4373 rm -rf conftest*
4374 ;;
4375*-*-irix6*)
4376 # Find out which ABI we are using.
John Criswell613758d2003-09-11 18:03:50 +00004377 echo '#line 4377 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004382 (exit $ac_status); }; then
4383 if test "$lt_cv_prog_gnu_ld" = yes; then
4384 case `/usr/bin/file conftest.$ac_objext` in
4385 *32-bit*)
4386 LD="${LD-ld} -melf32bsmip"
4387 ;;
4388 *N32*)
4389 LD="${LD-ld} -melf32bmipn32"
4390 ;;
4391 *64-bit*)
4392 LD="${LD-ld} -melf64bmip"
4393 ;;
4394 esac
4395 else
4396 case `/usr/bin/file conftest.$ac_objext` in
4397 *32-bit*)
4398 LD="${LD-ld} -32"
4399 ;;
4400 *N32*)
4401 LD="${LD-ld} -n32"
4402 ;;
4403 *64-bit*)
4404 LD="${LD-ld} -64"
4405 ;;
4406 esac
4407 fi
4408 fi
4409 rm -rf conftest*
4410 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004411
John Criswell47fdd832003-07-14 16:52:07 +00004412x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4413 # Find out which ABI we are using.
4414 echo 'int i;' > conftest.$ac_ext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; then
4420 case "`/usr/bin/file conftest.o`" in
4421 *32-bit*)
4422 case $host in
4423 x86_64-*linux*)
4424 LD="${LD-ld} -m elf_i386"
4425 ;;
4426 ppc64-*linux*)
4427 LD="${LD-ld} -m elf32ppclinux"
4428 ;;
4429 s390x-*linux*)
4430 LD="${LD-ld} -m elf_s390"
4431 ;;
4432 sparc64-*linux*)
4433 LD="${LD-ld} -m elf32_sparc"
4434 ;;
4435 esac
4436 ;;
4437 *64-bit*)
4438 case $host in
4439 x86_64-*linux*)
4440 LD="${LD-ld} -m elf_x86_64"
4441 ;;
4442 ppc*-*linux*|powerpc*-*linux*)
4443 LD="${LD-ld} -m elf64ppc"
4444 ;;
4445 s390*-*linux*)
4446 LD="${LD-ld} -m elf64_s390"
4447 ;;
4448 sparc*-*linux*)
4449 LD="${LD-ld} -m elf64_sparc"
4450 ;;
4451 esac
4452 ;;
4453 esac
4454 fi
4455 rm -rf conftest*
4456 ;;
4457
4458*-*-sco3.2v5*)
4459 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4460 SAVE_CFLAGS="$CFLAGS"
4461 CFLAGS="$CFLAGS -belf"
4462 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4463echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4464if test "${lt_cv_cc_needs_belf+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 ac_ext=c
4468ac_cpp='$CPP $CPPFLAGS'
4469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472
4473 cat >conftest.$ac_ext <<_ACEOF
4474#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004480
John Criswell47fdd832003-07-14 16:52:07 +00004481int
4482main ()
John Criswell7a73b802003-06-30 21:59:07 +00004483{
John Criswell7a73b802003-06-30 21:59:07 +00004484
John Criswell47fdd832003-07-14 16:52:07 +00004485 ;
4486 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004487}
John Criswell47fdd832003-07-14 16:52:07 +00004488_ACEOF
4489rm -f conftest.$ac_objext conftest$ac_exeext
4490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004491 (eval $ac_link) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004494 (exit $ac_status); } &&
4495 { ac_try='test -s conftest$ac_exeext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004502else
John Criswell47fdd832003-07-14 16:52:07 +00004503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004504sed 's/^/| /' conftest.$ac_ext >&5
4505
John Criswell47fdd832003-07-14 16:52:07 +00004506lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004507fi
John Criswell47fdd832003-07-14 16:52:07 +00004508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4509 ac_ext=c
4510ac_cpp='$CPP $CPPFLAGS'
4511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514
John Criswell7a73b802003-06-30 21:59:07 +00004515fi
John Criswell47fdd832003-07-14 16:52:07 +00004516echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4517echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4518 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4519 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4520 CFLAGS="$SAVE_CFLAGS"
4521 fi
4522 ;;
4523
4524esac
4525
4526need_locks="$enable_libtool_lock"
4527
John Criswell7a73b802003-06-30 21:59:07 +00004528
4529
4530echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4531echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4532if test "${ac_cv_header_stdc+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535 cat >conftest.$ac_ext <<_ACEOF
4536#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004537/* confdefs.h. */
4538_ACEOF
4539cat confdefs.h >>conftest.$ac_ext
4540cat >>conftest.$ac_ext <<_ACEOF
4541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004542#include <stdlib.h>
4543#include <stdarg.h>
4544#include <string.h>
4545#include <float.h>
4546
John Criswell0c38eaf2003-09-10 15:17:25 +00004547int
4548main ()
4549{
4550
4551 ;
4552 return 0;
4553}
John Criswell7a73b802003-06-30 21:59:07 +00004554_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004555rm -f conftest.$ac_objext
4556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004558 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004560 (exit $ac_status); } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004567 ac_cv_header_stdc=yes
4568else
4569 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004573fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004574rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004575
4576if test $ac_cv_header_stdc = yes; then
4577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4578 cat >conftest.$ac_ext <<_ACEOF
4579#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004580/* confdefs.h. */
4581_ACEOF
4582cat confdefs.h >>conftest.$ac_ext
4583cat >>conftest.$ac_ext <<_ACEOF
4584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004585#include <string.h>
4586
4587_ACEOF
4588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004589 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004590 :
4591else
4592 ac_cv_header_stdc=no
4593fi
4594rm -f conftest*
4595
4596fi
4597
4598if test $ac_cv_header_stdc = yes; then
4599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4600 cat >conftest.$ac_ext <<_ACEOF
4601#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004602/* confdefs.h. */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004607#include <stdlib.h>
4608
4609_ACEOF
4610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004611 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004612 :
4613else
4614 ac_cv_header_stdc=no
4615fi
4616rm -f conftest*
4617
4618fi
4619
4620if test $ac_cv_header_stdc = yes; then
4621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4622 if test "$cross_compiling" = yes; then
4623 :
4624else
4625 cat >conftest.$ac_ext <<_ACEOF
4626#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004627/* confdefs.h. */
4628_ACEOF
4629cat confdefs.h >>conftest.$ac_ext
4630cat >>conftest.$ac_ext <<_ACEOF
4631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004632#include <ctype.h>
4633#if ((' ' & 0x0FF) == 0x020)
4634# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4635# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4636#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004637# define ISLOWER(c) \
4638 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004639 || ('j' <= (c) && (c) <= 'r') \
4640 || ('s' <= (c) && (c) <= 'z'))
4641# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4642#endif
4643
4644#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4645int
4646main ()
4647{
4648 int i;
4649 for (i = 0; i < 256; i++)
4650 if (XOR (islower (i), ISLOWER (i))
4651 || toupper (i) != TOUPPER (i))
4652 exit(2);
4653 exit (0);
4654}
4655_ACEOF
4656rm -f conftest$ac_exeext
4657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 :
4668else
4669 echo "$as_me: program exited with status $ac_status" >&5
4670echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004671sed 's/^/| /' conftest.$ac_ext >&5
4672
John Criswell7a73b802003-06-30 21:59:07 +00004673( exit $ac_status )
4674ac_cv_header_stdc=no
4675fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004676rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004677fi
4678fi
4679fi
4680echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4681echo "${ECHO_T}$ac_cv_header_stdc" >&6
4682if test $ac_cv_header_stdc = yes; then
4683
4684cat >>confdefs.h <<\_ACEOF
4685#define STDC_HEADERS 1
4686_ACEOF
4687
4688fi
4689
4690# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4701 inttypes.h stdint.h unistd.h
4702do
4703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4704echo "$as_me:$LINENO: checking for $ac_header" >&5
4705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4706if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708else
4709 cat >conftest.$ac_ext <<_ACEOF
4710#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004711/* confdefs.h. */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004716$ac_includes_default
4717
4718#include <$ac_header>
4719_ACEOF
4720rm -f conftest.$ac_objext
4721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 eval "$as_ac_Header=yes"
4733else
4734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004735sed 's/^/| /' conftest.$ac_ext >&5
4736
John Criswell7a73b802003-06-30 21:59:07 +00004737eval "$as_ac_Header=no"
4738fi
4739rm -f conftest.$ac_objext conftest.$ac_ext
4740fi
4741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4743if test `eval echo '${'$as_ac_Header'}'` = yes; then
4744 cat >>confdefs.h <<_ACEOF
4745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4746_ACEOF
4747
4748fi
4749
4750done
4751
4752
4753
4754for ac_header in dlfcn.h
4755do
4756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4757if eval "test \"\${$as_ac_Header+set}\" = set"; then
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762fi
4763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765else
4766 # Is the header compilable?
4767echo "$as_me:$LINENO: checking $ac_header usability" >&5
4768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4769cat >conftest.$ac_ext <<_ACEOF
4770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004771/* confdefs.h. */
4772_ACEOF
4773cat confdefs.h >>conftest.$ac_ext
4774cat >>conftest.$ac_ext <<_ACEOF
4775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004776$ac_includes_default
4777#include <$ac_header>
4778_ACEOF
4779rm -f conftest.$ac_objext
4780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781 (eval $ac_compile) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_header_compiler=yes
4792else
4793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004794sed 's/^/| /' conftest.$ac_ext >&5
4795
John Criswell7a73b802003-06-30 21:59:07 +00004796ac_header_compiler=no
4797fi
4798rm -f conftest.$ac_objext conftest.$ac_ext
4799echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4800echo "${ECHO_T}$ac_header_compiler" >&6
4801
4802# Is the header present?
4803echo "$as_me:$LINENO: checking $ac_header presence" >&5
4804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4805cat >conftest.$ac_ext <<_ACEOF
4806#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004807/* confdefs.h. */
4808_ACEOF
4809cat confdefs.h >>conftest.$ac_ext
4810cat >>conftest.$ac_ext <<_ACEOF
4811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004812#include <$ac_header>
4813_ACEOF
4814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4816 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004817 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } >/dev/null; then
4822 if test -s conftest.err; then
4823 ac_cpp_err=$ac_c_preproc_warn_flag
4824 else
4825 ac_cpp_err=
4826 fi
4827else
4828 ac_cpp_err=yes
4829fi
4830if test -z "$ac_cpp_err"; then
4831 ac_header_preproc=yes
4832else
4833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004834sed 's/^/| /' conftest.$ac_ext >&5
4835
John Criswell7a73b802003-06-30 21:59:07 +00004836 ac_header_preproc=no
4837fi
4838rm -f conftest.err conftest.$ac_ext
4839echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4840echo "${ECHO_T}$ac_header_preproc" >&6
4841
4842# So? What about this header?
4843case $ac_header_compiler:$ac_header_preproc in
4844 yes:no )
4845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4849 (
4850 cat <<\_ASBOX
4851## ------------------------------------ ##
4852## Report this to bug-autoconf@gnu.org. ##
4853## ------------------------------------ ##
4854_ASBOX
4855 ) |
4856 sed "s/^/$as_me: WARNING: /" >&2
4857 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004858 no:yes )
4859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4865 (
4866 cat <<\_ASBOX
4867## ------------------------------------ ##
4868## Report this to bug-autoconf@gnu.org. ##
4869## ------------------------------------ ##
4870_ASBOX
4871 ) |
4872 sed "s/^/$as_me: WARNING: /" >&2
4873 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004874esac
4875echo "$as_me:$LINENO: checking for $ac_header" >&5
4876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4877if eval "test \"\${$as_ac_Header+set}\" = set"; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
4880 eval "$as_ac_Header=$ac_header_preproc"
4881fi
4882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4884
4885fi
4886if test `eval echo '${'$as_ac_Header'}'` = yes; then
4887 cat >>confdefs.h <<_ACEOF
4888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4889_ACEOF
4890
4891fi
4892
4893done
4894
John Criswell47fdd832003-07-14 16:52:07 +00004895ac_ext=cc
4896ac_cpp='$CXXCPP $CPPFLAGS'
4897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4900echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4901echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4902if test -z "$CXXCPP"; then
4903 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
John Criswell47fdd832003-07-14 16:52:07 +00004906 # Double quotes because CXXCPP needs to be expanded
4907 for CXXCPP in "$CXX -E" "/lib/cpp"
4908 do
4909 ac_preproc_ok=false
4910for ac_cxx_preproc_warn_flag in '' yes
4911do
4912 # Use a header file that comes with gcc, so configuring glibc
4913 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004916 # On the NeXT, cc -E runs the code through the compiler's parser,
4917 # not just through cpp. "Syntax error" is here to catch this case.
4918 cat >conftest.$ac_ext <<_ACEOF
4919#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004920/* confdefs.h. */
4921_ACEOF
4922cat confdefs.h >>conftest.$ac_ext
4923cat >>conftest.$ac_ext <<_ACEOF
4924/* end confdefs.h. */
4925#ifdef __STDC__
4926# include <limits.h>
4927#else
4928# include <assert.h>
4929#endif
John Criswell47fdd832003-07-14 16:52:07 +00004930 Syntax error
4931_ACEOF
4932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4934 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004935 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } >/dev/null; then
4940 if test -s conftest.err; then
4941 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004942 else
John Criswell47fdd832003-07-14 16:52:07 +00004943 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004944 fi
John Criswell47fdd832003-07-14 16:52:07 +00004945else
4946 ac_cpp_err=yes
4947fi
4948if test -z "$ac_cpp_err"; then
4949 :
4950else
4951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004952sed 's/^/| /' conftest.$ac_ext >&5
4953
John Criswell47fdd832003-07-14 16:52:07 +00004954 # Broken: fails on valid input.
4955continue
4956fi
4957rm -f conftest.err conftest.$ac_ext
4958
4959 # OK, works on sane cases. Now check whether non-existent headers
4960 # can be detected and how.
4961 cat >conftest.$ac_ext <<_ACEOF
4962#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004963/* confdefs.h. */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004968#include <ac_nonexistent.h>
4969_ACEOF
4970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4972 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004973 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } >/dev/null; then
4978 if test -s conftest.err; then
4979 ac_cpp_err=$ac_cxx_preproc_warn_flag
4980 else
4981 ac_cpp_err=
4982 fi
4983else
4984 ac_cpp_err=yes
4985fi
4986if test -z "$ac_cpp_err"; then
4987 # Broken: success on invalid input.
4988continue
4989else
4990 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004991sed 's/^/| /' conftest.$ac_ext >&5
4992
John Criswell47fdd832003-07-14 16:52:07 +00004993 # Passes both tests.
4994ac_preproc_ok=:
4995break
4996fi
4997rm -f conftest.err conftest.$ac_ext
4998
4999done
5000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001rm -f conftest.err conftest.$ac_ext
5002if $ac_preproc_ok; then
5003 break
John Criswell7a73b802003-06-30 21:59:07 +00005004fi
5005
John Criswell47fdd832003-07-14 16:52:07 +00005006 done
5007 ac_cv_prog_CXXCPP=$CXXCPP
5008
5009fi
5010 CXXCPP=$ac_cv_prog_CXXCPP
5011else
5012 ac_cv_prog_CXXCPP=$CXXCPP
5013fi
5014echo "$as_me:$LINENO: result: $CXXCPP" >&5
5015echo "${ECHO_T}$CXXCPP" >&6
5016ac_preproc_ok=false
5017for ac_cxx_preproc_warn_flag in '' yes
5018do
5019 # Use a header file that comes with gcc, so configuring glibc
5020 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005023 # On the NeXT, cc -E runs the code through the compiler's parser,
5024 # not just through cpp. "Syntax error" is here to catch this case.
5025 cat >conftest.$ac_ext <<_ACEOF
5026#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
5032#ifdef __STDC__
5033# include <limits.h>
5034#else
5035# include <assert.h>
5036#endif
John Criswell47fdd832003-07-14 16:52:07 +00005037 Syntax error
5038_ACEOF
5039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5041 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005042 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null; then
5047 if test -s conftest.err; then
5048 ac_cpp_err=$ac_cxx_preproc_warn_flag
5049 else
5050 ac_cpp_err=
5051 fi
5052else
5053 ac_cpp_err=yes
5054fi
5055if test -z "$ac_cpp_err"; then
5056 :
5057else
5058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005059sed 's/^/| /' conftest.$ac_ext >&5
5060
John Criswell47fdd832003-07-14 16:52:07 +00005061 # Broken: fails on valid input.
5062continue
5063fi
5064rm -f conftest.err conftest.$ac_ext
5065
5066 # OK, works on sane cases. Now check whether non-existent headers
5067 # can be detected and how.
5068 cat >conftest.$ac_ext <<_ACEOF
5069#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005075#include <ac_nonexistent.h>
5076_ACEOF
5077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5079 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005080 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev/null; then
5085 if test -s conftest.err; then
5086 ac_cpp_err=$ac_cxx_preproc_warn_flag
5087 else
5088 ac_cpp_err=
5089 fi
5090else
5091 ac_cpp_err=yes
5092fi
5093if test -z "$ac_cpp_err"; then
5094 # Broken: success on invalid input.
5095continue
5096else
5097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005098sed 's/^/| /' conftest.$ac_ext >&5
5099
John Criswell47fdd832003-07-14 16:52:07 +00005100 # Passes both tests.
5101ac_preproc_ok=:
5102break
5103fi
5104rm -f conftest.err conftest.$ac_ext
5105
5106done
5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108rm -f conftest.err conftest.$ac_ext
5109if $ac_preproc_ok; then
5110 :
5111else
John Criswell0c38eaf2003-09-10 15:17:25 +00005112 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5113See \`config.log' for more details." >&5
5114echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5115See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005116 { (exit 1); exit 1; }; }
5117fi
5118
5119ac_ext=cc
5120ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124
5125
5126ac_ext=f
5127ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5128ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5130if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005131 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 +00005132 do
5133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5135echo "$as_me:$LINENO: checking for $ac_word" >&5
5136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5137if test "${ac_cv_prog_F77+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140 if test -n "$F77"; then
5141 ac_cv_prog_F77="$F77" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154done
5155done
5156
5157fi
5158fi
5159F77=$ac_cv_prog_F77
5160if test -n "$F77"; then
5161 echo "$as_me:$LINENO: result: $F77" >&5
5162echo "${ECHO_T}$F77" >&6
5163else
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166fi
5167
5168 test -n "$F77" && break
5169 done
5170fi
5171if test -z "$F77"; then
5172 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005173 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 +00005174do
5175 # Extract the first word of "$ac_prog", so it can be a program name with args.
5176set dummy $ac_prog; ac_word=$2
5177echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182 if test -n "$ac_ct_F77"; then
5183 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_F77="$ac_prog"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196done
5197done
5198
5199fi
5200fi
5201ac_ct_F77=$ac_cv_prog_ac_ct_F77
5202if test -n "$ac_ct_F77"; then
5203 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5204echo "${ECHO_T}$ac_ct_F77" >&6
5205else
5206 echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
5208fi
5209
5210 test -n "$ac_ct_F77" && break
5211done
5212
5213 F77=$ac_ct_F77
5214fi
5215
5216
5217# Provide some information about the compiler.
John Criswell613758d2003-09-11 18:03:50 +00005218echo "$as_me:5218:" \
John Criswell47fdd832003-07-14 16:52:07 +00005219 "checking for Fortran 77 compiler version" >&5
5220ac_compiler=`set X $ac_compile; echo $2`
5221{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5222 (eval $ac_compiler --version </dev/null >&5) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }
5226{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5227 (eval $ac_compiler -v </dev/null >&5) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }
5231{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5232 (eval $ac_compiler -V </dev/null >&5) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5236
5237# If we don't use `.F' as extension, the preprocessor is not run on the
5238# input file.
5239ac_save_ext=$ac_ext
5240ac_ext=F
5241echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5242echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5243if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246 cat >conftest.$ac_ext <<_ACEOF
5247 program main
5248#ifndef __GNUC__
5249 choke me
5250#endif
5251
5252 end
5253_ACEOF
5254rm -f conftest.$ac_objext
5255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -s conftest.$ac_objext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 (eval $ac_try) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_compiler_gnu=yes
5267else
5268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005269sed 's/^/| /' conftest.$ac_ext >&5
5270
John Criswell47fdd832003-07-14 16:52:07 +00005271ac_compiler_gnu=no
5272fi
5273rm -f conftest.$ac_objext conftest.$ac_ext
5274ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5275
5276fi
5277echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5278echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5279ac_ext=$ac_save_ext
5280G77=`test $ac_compiler_gnu = yes && echo yes`
5281ac_test_FFLAGS=${FFLAGS+set}
5282ac_save_FFLAGS=$FFLAGS
5283FFLAGS=
5284echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5285echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5286if test "${ac_cv_prog_f77_g+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
5289 FFLAGS=-g
5290cat >conftest.$ac_ext <<_ACEOF
5291 program main
5292
5293 end
5294_ACEOF
5295rm -f conftest.$ac_objext
5296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297 (eval $ac_compile) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -s conftest.$ac_objext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 ac_cv_prog_f77_g=yes
5308else
5309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005310sed 's/^/| /' conftest.$ac_ext >&5
5311
John Criswell47fdd832003-07-14 16:52:07 +00005312ac_cv_prog_f77_g=no
5313fi
5314rm -f conftest.$ac_objext conftest.$ac_ext
5315
5316fi
5317echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5318echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5319if test "$ac_test_FFLAGS" = set; then
5320 FFLAGS=$ac_save_FFLAGS
5321elif test $ac_cv_prog_f77_g = yes; then
5322 if test "$G77" = yes; then
5323 FFLAGS="-g -O2"
5324 else
5325 FFLAGS="-g"
5326 fi
5327else
5328 if test "$G77" = yes; then
5329 FFLAGS="-O2"
5330 else
5331 FFLAGS=
5332 fi
5333fi
5334ac_ext=c
5335ac_cpp='$CPP $CPPFLAGS'
5336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_c_compiler_gnu
5339
5340
5341
5342# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5343
5344# find the maximum length of command line arguments
5345echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5346echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5347if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350 i=0
5351 testring="ABCD"
5352
5353 case $build_os in
5354 msdosdjgpp*)
5355 # On DJGPP, this test can blow up pretty badly due to problems in libc
5356 # (any single argument exceeding 2000 bytes causes a buffer overrun
5357 # during glob expansion). Even if it were fixed, the result of this
5358 # check would be larger than it should be.
5359 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5360 ;;
5361
5362 gnu*)
5363 # Under GNU Hurd, this test is not required because there is
5364 # no limit to the length of command line arguments.
5365 # Libtool will interpret -1 as no limit whatsoever
5366 lt_cv_sys_max_cmd_len=-1;
5367 ;;
5368
5369 cygwin* | mingw*)
5370 # On Win9x/ME, this test blows up -- it succeeds, but takes
5371 # about 5 minutes as the teststring grows exponentially.
5372 # Worse, since 9x/ME are not pre-emptively multitasking,
5373 # you end up with a "frozen" computer, even though with patience
5374 # the test eventually succeeds (with a max line length of 256k).
5375 # Instead, let's just punt: use the minimum linelength reported by
5376 # all of the supported platforms: 8192 (on NT/2K/XP).
5377 lt_cv_sys_max_cmd_len=8192;
5378 ;;
5379
5380 *)
5381 # If test is not a shell built-in, we'll probably end up computing a
5382 # maximum length that is only half of the actual maximum length, but
5383 # we can't tell.
5384 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5385 = "XX$testring") >/dev/null 2>&1 &&
5386 new_result=`expr "X$testring" : ".*" 2>&1` &&
5387 lt_cv_sys_max_cmd_len=$new_result &&
5388 test $i != 17 # 1/2 MB should be enough
5389 do
5390 i=`expr $i + 1`
5391 testring=$testring$testring
5392 done
5393 testring=
5394 # Add a significant safety factor because C++ compilers can tack on massive
5395 # amounts of additional arguments before passing them to the linker.
5396 # It appears as though 1/2 is a usable value.
5397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5398 ;;
5399 esac
5400
5401fi
5402
5403if test -n $lt_cv_sys_max_cmd_len ; then
5404 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5405echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5406else
5407 echo "$as_me:$LINENO: result: none" >&5
5408echo "${ECHO_T}none" >&6
5409fi
5410
5411
5412
5413
5414# Check for command to grab the raw symbol name followed by C symbol from nm.
5415echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5416echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5417if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420
5421# These are sane defaults that work on at least a few old systems.
5422# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5423
5424# Character class describing NM global symbol codes.
5425symcode='[BCDEGRST]'
5426
5427# Regexp to match symbols that can be accessed directly from C.
5428sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5429
5430# Transform the above into a raw symbol and a C symbol.
5431symxfrm='\1 \2\3 \3'
5432
5433# Transform an extracted symbol line into a proper C declaration
5434lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5435
5436# Transform an extracted symbol line into symbol name and symbol address
5437lt_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'"
5438
5439# Define system-specific variables.
5440case $host_os in
5441aix*)
5442 symcode='[BCDT]'
5443 ;;
5444cygwin* | mingw* | pw32*)
5445 symcode='[ABCDGISTW]'
5446 ;;
5447hpux*) # Its linker distinguishes data from code symbols
5448 if test "$host_cpu" = ia64; then
5449 symcode='[ABCDEGRST]'
5450 fi
5451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5452 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'"
5453 ;;
5454irix* | nonstopux*)
5455 symcode='[BCDEGRST]'
5456 ;;
5457osf*)
5458 symcode='[BCDEGQRST]'
5459 ;;
5460solaris* | sysv5*)
5461 symcode='[BDT]'
5462 ;;
5463sysv4)
5464 symcode='[DFNSTU]'
5465 ;;
5466esac
5467
5468# Handle CRLF in mingw tool chain
5469opt_cr=
5470case $build_os in
5471mingw*)
5472 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5473 ;;
5474esac
5475
5476# If we're using GNU nm, then use its standard symbol codes.
5477case `$NM -V 2>&1` in
5478*GNU* | *'with BFD'*)
5479 symcode='[ABCDGISTW]' ;;
5480esac
5481
5482# Try without a prefix undercore, then with it.
5483for ac_symprfx in "" "_"; do
5484
5485 # Write the raw and C identifiers.
5486 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5487
5488 # Check to see that the pipe works correctly.
5489 pipe_works=no
5490
5491 rm -f conftest*
5492 cat > conftest.$ac_ext <<EOF
5493#ifdef __cplusplus
5494extern "C" {
5495#endif
5496char nm_test_var;
5497void nm_test_func(){}
5498#ifdef __cplusplus
5499}
5500#endif
5501int main(){nm_test_var='a';nm_test_func();return(0);}
5502EOF
5503
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; then
5509 # Now try to grab the symbols.
5510 nlist=conftest.nm
5511 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5512 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && test -s "$nlist"; then
5516 # Try sorting and uniquifying the output.
5517 if sort "$nlist" | uniq > "$nlist"T; then
5518 mv -f "$nlist"T "$nlist"
5519 else
5520 rm -f "$nlist"T
5521 fi
5522
5523 # Make sure that we snagged all the symbols we need.
5524 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5525 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5526 cat <<EOF > conftest.$ac_ext
5527#ifdef __cplusplus
5528extern "C" {
5529#endif
5530
5531EOF
5532 # Now generate the symbol file.
5533 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5534
5535 cat <<EOF >> conftest.$ac_ext
5536#if defined (__STDC__) && __STDC__
5537# define lt_ptr_t void *
5538#else
5539# define lt_ptr_t char *
5540# define const
5541#endif
5542
5543/* The mapping between symbol names and symbols. */
5544const struct {
5545 const char *name;
5546 lt_ptr_t address;
5547}
5548lt_preloaded_symbols[] =
5549{
5550EOF
5551 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5552 cat <<\EOF >> conftest.$ac_ext
5553 {0, (lt_ptr_t) 0}
5554};
5555
5556#ifdef __cplusplus
5557}
5558#endif
5559EOF
5560 # Now try linking the two files.
5561 mv conftest.$ac_objext conftstm.$ac_objext
5562 lt_save_LIBS="$LIBS"
5563 lt_save_CFLAGS="$CFLAGS"
5564 LIBS="conftstm.$ac_objext"
5565 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567 (eval $ac_link) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5571 pipe_works=yes
5572 fi
5573 LIBS="$lt_save_LIBS"
5574 CFLAGS="$lt_save_CFLAGS"
5575 else
5576 echo "cannot find nm_test_func in $nlist" >&5
5577 fi
5578 else
5579 echo "cannot find nm_test_var in $nlist" >&5
5580 fi
5581 else
5582 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5583 fi
5584 else
5585 echo "$progname: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5587 fi
5588 rm -f conftest* conftst*
5589
5590 # Do not use the global_symbol_pipe unless it works.
5591 if test "$pipe_works" = yes; then
5592 break
5593 else
5594 lt_cv_sys_global_symbol_pipe=
5595 fi
5596done
5597
5598fi
5599
5600if test -z "$lt_cv_sys_global_symbol_pipe"; then
5601 lt_cv_sys_global_symbol_to_cdecl=
5602fi
5603if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5604 echo "$as_me:$LINENO: result: failed" >&5
5605echo "${ECHO_T}failed" >&6
5606else
5607 echo "$as_me:$LINENO: result: ok" >&5
5608echo "${ECHO_T}ok" >&6
5609fi
5610
5611echo "$as_me:$LINENO: checking for objdir" >&5
5612echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5613if test "${lt_cv_objdir+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616 rm -f .libs 2>/dev/null
5617mkdir .libs 2>/dev/null
5618if test -d .libs; then
5619 lt_cv_objdir=.libs
5620else
5621 # MS-DOS does not allow filenames that begin with a dot.
5622 lt_cv_objdir=_libs
5623fi
5624rmdir .libs 2>/dev/null
5625fi
5626echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5627echo "${ECHO_T}$lt_cv_objdir" >&6
5628objdir=$lt_cv_objdir
5629
5630
5631
5632
5633
5634case $host_os in
5635aix3*)
5636 # AIX sometimes has problems with the GCC collect2 program. For some
5637 # reason, if we set the COLLECT_NAMES environment variable, the problems
5638 # vanish in a puff of smoke.
5639 if test "X${COLLECT_NAMES+set}" != Xset; then
5640 COLLECT_NAMES=
5641 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005642 fi
5643 ;;
5644esac
5645
John Criswell47fdd832003-07-14 16:52:07 +00005646# Sed substitution that helps us do robust quoting. It backslashifies
5647# metacharacters that are still active within double-quoted strings.
5648Xsed='sed -e s/^X//'
5649sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5650
5651# Same as above, but do not quote variable references.
5652double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5653
5654# Sed substitution to delay expansion of an escaped shell variable in a
5655# double_quote_subst'ed string.
5656delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5657
5658# Sed substitution to avoid accidental globbing in evaled expressions
5659no_glob_subst='s/\*/\\\*/g'
5660
5661# Constants:
5662rm="rm -f"
5663
5664# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005665default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005666can_build_shared=yes
5667
5668# All known linkers require a `.a' archive for static linking (except M$VC,
5669# which needs '.lib').
5670libext=a
5671ltmain="$ac_aux_dir/ltmain.sh"
5672ofile="$default_ofile"
5673with_gnu_ld="$lt_cv_prog_gnu_ld"
5674
5675if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5677set dummy ${ac_tool_prefix}ar; ac_word=$2
5678echo "$as_me:$LINENO: checking for $ac_word" >&5
5679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680if test "${ac_cv_prog_AR+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682else
5683 if test -n "$AR"; then
5684 ac_cv_prog_AR="$AR" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_AR="${ac_tool_prefix}ar"
5694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5696 fi
5697done
5698done
5699
5700fi
5701fi
5702AR=$ac_cv_prog_AR
5703if test -n "$AR"; then
5704 echo "$as_me:$LINENO: result: $AR" >&5
5705echo "${ECHO_T}$AR" >&6
5706else
5707 echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6
5709fi
5710
5711fi
5712if test -z "$ac_cv_prog_AR"; then
5713 ac_ct_AR=$AR
5714 # Extract the first word of "ar", so it can be a program name with args.
5715set dummy ar; ac_word=$2
5716echo "$as_me:$LINENO: checking for $ac_word" >&5
5717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721 if test -n "$ac_ct_AR"; then
5722 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ac_ct_AR="ar"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735done
5736done
5737
5738 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5739fi
5740fi
5741ac_ct_AR=$ac_cv_prog_ac_ct_AR
5742if test -n "$ac_ct_AR"; then
5743 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5744echo "${ECHO_T}$ac_ct_AR" >&6
5745else
5746 echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748fi
5749
5750 AR=$ac_ct_AR
5751else
5752 AR="$ac_cv_prog_AR"
5753fi
5754
John Criswell7a73b802003-06-30 21:59:07 +00005755if test -n "$ac_tool_prefix"; then
5756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5757set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5758echo "$as_me:$LINENO: checking for $ac_word" >&5
5759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5760if test "${ac_cv_prog_RANLIB+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762else
5763 if test -n "$RANLIB"; then
5764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5765else
5766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5776 fi
5777done
5778done
5779
5780fi
5781fi
5782RANLIB=$ac_cv_prog_RANLIB
5783if test -n "$RANLIB"; then
5784 echo "$as_me:$LINENO: result: $RANLIB" >&5
5785echo "${ECHO_T}$RANLIB" >&6
5786else
5787 echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
5789fi
5790
5791fi
5792if test -z "$ac_cv_prog_RANLIB"; then
5793 ac_ct_RANLIB=$RANLIB
5794 # Extract the first word of "ranlib", so it can be a program name with args.
5795set dummy ranlib; ac_word=$2
5796echo "$as_me:$LINENO: checking for $ac_word" >&5
5797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800else
5801 if test -n "$ac_ct_RANLIB"; then
5802 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_ac_ct_RANLIB="ranlib"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816done
5817
5818 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5819fi
5820fi
5821ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5822if test -n "$ac_ct_RANLIB"; then
5823 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5824echo "${ECHO_T}$ac_ct_RANLIB" >&6
5825else
5826 echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828fi
5829
5830 RANLIB=$ac_ct_RANLIB
5831else
5832 RANLIB="$ac_cv_prog_RANLIB"
5833fi
5834
5835if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5837set dummy ${ac_tool_prefix}strip; ac_word=$2
5838echo "$as_me:$LINENO: checking for $ac_word" >&5
5839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5840if test "${ac_cv_prog_STRIP+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843 if test -n "$STRIP"; then
5844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5845else
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857done
5858done
5859
5860fi
5861fi
5862STRIP=$ac_cv_prog_STRIP
5863if test -n "$STRIP"; then
5864 echo "$as_me:$LINENO: result: $STRIP" >&5
5865echo "${ECHO_T}$STRIP" >&6
5866else
5867 echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6
5869fi
5870
5871fi
5872if test -z "$ac_cv_prog_STRIP"; then
5873 ac_ct_STRIP=$STRIP
5874 # Extract the first word of "strip", so it can be a program name with args.
5875set dummy strip; ac_word=$2
5876echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881 if test -n "$ac_ct_STRIP"; then
5882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5883else
5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_ac_ct_STRIP="strip"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895done
5896done
5897
5898 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5899fi
5900fi
5901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5902if test -n "$ac_ct_STRIP"; then
5903 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5904echo "${ECHO_T}$ac_ct_STRIP" >&6
5905else
5906 echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6
5908fi
5909
5910 STRIP=$ac_ct_STRIP
5911else
5912 STRIP="$ac_cv_prog_STRIP"
5913fi
5914
5915
John Criswell7a73b802003-06-30 21:59:07 +00005916old_CC="$CC"
5917old_CFLAGS="$CFLAGS"
5918
5919# Set sane defaults for various variables
5920test -z "$AR" && AR=ar
5921test -z "$AR_FLAGS" && AR_FLAGS=cru
5922test -z "$AS" && AS=as
5923test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005924test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005925test -z "$DLLTOOL" && DLLTOOL=dlltool
5926test -z "$LD" && LD=ld
5927test -z "$LN_S" && LN_S="ln -s"
5928test -z "$MAGIC_CMD" && MAGIC_CMD=file
5929test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005930test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005931test -z "$OBJDUMP" && OBJDUMP=objdump
5932test -z "$RANLIB" && RANLIB=:
5933test -z "$STRIP" && STRIP=:
5934test -z "$ac_objext" && ac_objext=o
5935
John Criswell7a73b802003-06-30 21:59:07 +00005936# Determine commands to create old-style static archives.
5937old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5938old_postinstall_cmds='chmod 644 $oldlib'
5939old_postuninstall_cmds=
5940
5941if test -n "$RANLIB"; then
5942 case $host_os in
5943 openbsd*)
5944 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5945 ;;
5946 *)
5947 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5948 ;;
5949 esac
5950 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5951fi
5952
John Criswell47fdd832003-07-14 16:52:07 +00005953# Only perform the check for file, if the check method requires it
5954case $deplibs_check_method in
5955file_magic*)
5956 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5957 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5958echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5959if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005961else
John Criswell47fdd832003-07-14 16:52:07 +00005962 case $MAGIC_CMD in
5963[\\/*] | ?:[\\/]*)
5964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5965 ;;
5966*)
5967 lt_save_MAGIC_CMD="$MAGIC_CMD"
5968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5970 for ac_dir in $ac_dummy; do
5971 IFS="$lt_save_ifs"
5972 test -z "$ac_dir" && ac_dir=.
5973 if test -f $ac_dir/${ac_tool_prefix}file; then
5974 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5975 if test -n "$file_magic_test_file"; then
5976 case $deplibs_check_method in
5977 "file_magic "*)
5978 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5981 $EGREP "$file_magic_regex" > /dev/null; then
5982 :
5983 else
5984 cat <<EOF 1>&2
5985
5986*** Warning: the command libtool uses to detect shared libraries,
5987*** $file_magic_cmd, produces output that libtool cannot recognize.
5988*** The result is that libtool may fail to recognize shared libraries
5989*** as such. This will affect the creation of libtool libraries that
5990*** depend on shared libraries, but programs linked with such libtool
5991*** libraries will work regardless of this problem. Nevertheless, you
5992*** may want to report the problem to your system manager and/or to
5993*** bug-libtool@gnu.org
5994
5995EOF
5996 fi ;;
5997 esac
5998 fi
5999 break
6000 fi
6001 done
6002 IFS="$lt_save_ifs"
6003 MAGIC_CMD="$lt_save_MAGIC_CMD"
6004 ;;
6005esac
John Criswell7a73b802003-06-30 21:59:07 +00006006fi
John Criswell7a73b802003-06-30 21:59:07 +00006007
John Criswell47fdd832003-07-14 16:52:07 +00006008MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6009if test -n "$MAGIC_CMD"; then
6010 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6011echo "${ECHO_T}$MAGIC_CMD" >&6
6012else
6013 echo "$as_me:$LINENO: result: no" >&5
6014echo "${ECHO_T}no" >&6
6015fi
John Criswell7a73b802003-06-30 21:59:07 +00006016
John Criswell47fdd832003-07-14 16:52:07 +00006017if test -z "$lt_cv_path_MAGIC_CMD"; then
6018 if test -n "$ac_tool_prefix"; then
6019 echo "$as_me:$LINENO: checking for file" >&5
6020echo $ECHO_N "checking for file... $ECHO_C" >&6
6021if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024 case $MAGIC_CMD in
6025[\\/*] | ?:[\\/]*)
6026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6027 ;;
6028*)
6029 lt_save_MAGIC_CMD="$MAGIC_CMD"
6030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6032 for ac_dir in $ac_dummy; do
6033 IFS="$lt_save_ifs"
6034 test -z "$ac_dir" && ac_dir=.
6035 if test -f $ac_dir/file; then
6036 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6037 if test -n "$file_magic_test_file"; then
6038 case $deplibs_check_method in
6039 "file_magic "*)
6040 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6043 $EGREP "$file_magic_regex" > /dev/null; then
6044 :
6045 else
6046 cat <<EOF 1>&2
6047
6048*** Warning: the command libtool uses to detect shared libraries,
6049*** $file_magic_cmd, produces output that libtool cannot recognize.
6050*** The result is that libtool may fail to recognize shared libraries
6051*** as such. This will affect the creation of libtool libraries that
6052*** depend on shared libraries, but programs linked with such libtool
6053*** libraries will work regardless of this problem. Nevertheless, you
6054*** may want to report the problem to your system manager and/or to
6055*** bug-libtool@gnu.org
6056
6057EOF
6058 fi ;;
6059 esac
6060 fi
6061 break
6062 fi
6063 done
6064 IFS="$lt_save_ifs"
6065 MAGIC_CMD="$lt_save_MAGIC_CMD"
6066 ;;
6067esac
6068fi
6069
6070MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6071if test -n "$MAGIC_CMD"; then
6072 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6073echo "${ECHO_T}$MAGIC_CMD" >&6
6074else
6075 echo "$as_me:$LINENO: result: no" >&5
6076echo "${ECHO_T}no" >&6
6077fi
6078
6079 else
6080 MAGIC_CMD=:
6081 fi
6082fi
6083
6084 fi
6085 ;;
6086esac
6087
6088enable_dlopen=no
6089enable_win32_dll=no
6090
6091# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6092if test "${enable_libtool_lock+set}" = set; then
6093 enableval="$enable_libtool_lock"
6094
6095fi;
6096test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6097
John Criswell7a73b802003-06-30 21:59:07 +00006098
6099# Check whether --with-pic or --without-pic was given.
6100if test "${with_pic+set}" = set; then
6101 withval="$with_pic"
6102 pic_mode="$withval"
6103else
6104 pic_mode=default
6105fi;
6106test -z "$pic_mode" && pic_mode=default
6107
John Criswell47fdd832003-07-14 16:52:07 +00006108# Use C for the default configuration in the libtool script
6109tagname=
6110lt_save_CC="$CC"
6111ac_ext=c
6112ac_cpp='$CPP $CPPFLAGS'
6113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115ac_compiler_gnu=$ac_cv_c_compiler_gnu
6116
6117
6118# Source file extension for C test sources.
6119ac_ext=c
6120
6121# Object file extension for compiled C test sources.
6122objext=o
6123objext=$objext
6124
6125# Code to be used in simple compile tests
6126lt_simple_compile_test_code="int some_variable = 0;\n"
6127
6128# Code to be used in simple link tests
6129lt_simple_link_test_code='int main(){return(0);}\n'
6130
6131
6132# If no C compiler was specified, use CC.
6133LTCC=${LTCC-"$CC"}
6134
6135# Allow CC to be a program name with arguments.
6136compiler=$CC
6137
6138
6139#
6140# Check for any special shared library compilation flags.
6141#
6142lt_prog_cc_shlib=
6143if test "$GCC" = no; then
6144 case $host_os in
6145 sco3.2v5*)
6146 lt_prog_cc_shlib='-belf'
6147 ;;
6148 esac
6149fi
6150if test -n "$lt_prog_cc_shlib"; then
6151 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6152echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6153 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6154 else
6155 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6156echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6157 lt_cv_prog_cc_can_build_shared=no
6158 fi
6159fi
6160
6161
6162#
6163# Check to make sure the static flag actually works.
6164#
6165echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6166echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6167if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
John Criswell47fdd832003-07-14 16:52:07 +00006170 lt_prog_compiler_static_works=no
6171 save_LDFLAGS="$LDFLAGS"
6172 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6173 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6175 # The compiler can only warn and ignore the option if not recognized
6176 # So say no if there are warnings
6177 if test -s conftest.err; then
6178 # Append any errors to the config.log.
6179 cat conftest.err 1>&5
6180 else
6181 lt_prog_compiler_static_works=yes
6182 fi
6183 fi
6184 $rm conftest*
6185 LDFLAGS="$save_LDFLAGS"
6186
6187fi
6188echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6189echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6190
6191if test x"$lt_prog_compiler_static_works" = xyes; then
6192 :
6193else
6194 lt_prog_compiler_static=
6195fi
6196
6197
6198
6199## CAVEAT EMPTOR:
6200## There is no encapsulation within the following macros, do not change
6201## the running order or otherwise move them around unless you know exactly
6202## what you are doing...
6203
6204lt_prog_compiler_no_builtin_flag=
6205
6206if test "$GCC" = yes; then
6207 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6208
6209 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6210echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6211if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214 lt_cv_prog_compiler_rtti_exceptions=no
6215 ac_outfile=conftest.$ac_objext
6216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6217 lt_compiler_flag="-fno-rtti -fno-exceptions"
6218 # Insert the option either (1) after the last *FLAGS variable, or
6219 # (2) before a word containing "conftest.", or (3) at the end.
6220 # Note that $ac_compile itself does not contain backslashes and begins
6221 # with a dollar sign (not a hyphen), so the echo should work correctly.
6222 # The option is referenced via a variable to avoid confusing sed.
6223 lt_compile=`echo "$ac_compile" | $SED \
6224 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6226 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +00006227 (eval echo "\"\$as_me:6227: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006228 (eval "$lt_compile" 2>conftest.err)
6229 ac_status=$?
6230 cat conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +00006231 echo "$as_me:6231: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006232 if (exit $ac_status) && test -s "$ac_outfile"; then
6233 # The compiler can only warn and ignore the option if not recognized
6234 # So say no if there are warnings
6235 if test ! -s conftest.err; then
6236 lt_cv_prog_compiler_rtti_exceptions=yes
6237 fi
6238 fi
6239 $rm conftest*
6240
6241fi
6242echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6243echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6244
6245if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6246 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6247else
6248 :
6249fi
6250
6251fi
6252
6253lt_prog_compiler_wl=
6254lt_prog_compiler_pic=
6255lt_prog_compiler_static=
6256
6257echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6258echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006259
6260 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006261 lt_prog_compiler_wl='-Wl,'
6262 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006263
6264 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006265 aix*)
6266 # All AIX code is PIC.
6267 if test "$host_cpu" = ia64; then
6268 # AIX 5 now supports IA64 processor
6269 lt_prog_compiler_static='-Bstatic'
6270 fi
John Criswell7a73b802003-06-30 21:59:07 +00006271 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006272
John Criswell7a73b802003-06-30 21:59:07 +00006273 amigaos*)
6274 # FIXME: we need at least 68020 code to build shared libraries, but
6275 # adding the `-m68020' flag to GCC prevents building anything better,
6276 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006277 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006278 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006279
6280 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006281 # PIC is the default for these OSes.
6282 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006283
6284 mingw* | pw32* | os2*)
6285 # This hack is so that the source file can tell whether it is being
6286 # built for inclusion in a dll (and should export symbols for example).
6287 lt_prog_compiler_pic='-DDLL_EXPORT'
6288 ;;
6289
John Criswell7a73b802003-06-30 21:59:07 +00006290 darwin* | rhapsody*)
6291 # PIC is the default on this platform
6292 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006293 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006294 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006295
6296 msdosdjgpp*)
6297 # Just because we use GCC doesn't mean we suddenly get shared libraries
6298 # on systems that don't support them.
6299 lt_prog_compiler_can_build_shared=no
6300 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006301 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006302
John Criswell7a73b802003-06-30 21:59:07 +00006303 sysv4*MP*)
6304 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006305 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006306 fi
6307 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006308
6309 hpux*)
6310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6311 # not for PA HP-UX.
6312 case "$host_cpu" in
6313 hppa*64*|ia64*)
6314 # +Z the default
6315 ;;
6316 *)
6317 lt_prog_compiler_pic='-fPIC'
6318 ;;
6319 esac
6320 ;;
6321
John Criswell7a73b802003-06-30 21:59:07 +00006322 *)
John Criswell47fdd832003-07-14 16:52:07 +00006323 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006324 ;;
6325 esac
6326 else
John Criswell47fdd832003-07-14 16:52:07 +00006327 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006328 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006329 aix*)
6330 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006331 if test "$host_cpu" = ia64; then
6332 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006333 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006334 else
John Criswell47fdd832003-07-14 16:52:07 +00006335 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006336 fi
6337 ;;
6338
John Criswell47fdd832003-07-14 16:52:07 +00006339 mingw* | pw32* | os2*)
6340 # This hack is so that the source file can tell whether it is being
6341 # built for inclusion in a dll (and should export symbols for example).
6342 lt_prog_compiler_pic='-DDLL_EXPORT'
6343 ;;
6344
John Criswell7a73b802003-06-30 21:59:07 +00006345 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006346 lt_prog_compiler_wl='-Wl,'
6347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6348 # not for PA HP-UX.
6349 case "$host_cpu" in
6350 hppa*64*|ia64*)
6351 # +Z the default
6352 ;;
6353 *)
6354 lt_prog_compiler_pic='+Z'
6355 ;;
6356 esac
6357 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6358 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006359 ;;
6360
John Criswell47fdd832003-07-14 16:52:07 +00006361 irix5* | irix6* | nonstopux*)
6362 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006363 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006364 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006365 ;;
6366
6367 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006368 lt_prog_compiler_pic='-KPIC'
6369 lt_prog_compiler_static='-Bstatic'
6370 ;;
6371
6372 linux*)
6373 case $CC in
6374 icc|ecc)
6375 lt_prog_compiler_wl='-Wl,'
6376 lt_prog_compiler_pic='-KPIC'
6377 lt_prog_compiler_static='-static'
6378 ;;
6379 ccc)
6380 lt_prog_compiler_wl='-Wl,'
6381 # All Alpha code is PIC.
6382 lt_prog_compiler_static='-non_shared'
6383 ;;
6384 esac
John Criswell7a73b802003-06-30 21:59:07 +00006385 ;;
6386
6387 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006388 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006389 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006390 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006391 ;;
6392
6393 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006394 lt_prog_compiler_pic='-Kpic'
6395 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006396 ;;
6397
6398 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006399 lt_prog_compiler_wl='-Wl,'
6400 lt_prog_compiler_pic='-KPIC'
6401 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006402 ;;
6403
6404 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006405 lt_prog_compiler_wl='-Qoption ld '
6406 lt_prog_compiler_pic='-PIC'
6407 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006408 ;;
6409
6410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006411 lt_prog_compiler_wl='-Wl,'
6412 lt_prog_compiler_pic='-KPIC'
6413 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006414 ;;
6415
6416 sysv4*MP*)
6417 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006418 lt_prog_compiler_pic='-Kconform_pic'
6419 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006420 fi
6421 ;;
6422
John Criswell47fdd832003-07-14 16:52:07 +00006423 uts4*)
6424 lt_prog_compiler_pic='-pic'
6425 lt_prog_compiler_static='-Bstatic'
6426 ;;
6427
John Criswell7a73b802003-06-30 21:59:07 +00006428 *)
John Criswell47fdd832003-07-14 16:52:07 +00006429 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006430 ;;
6431 esac
6432 fi
6433
John Criswell47fdd832003-07-14 16:52:07 +00006434echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6435echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006436
John Criswell47fdd832003-07-14 16:52:07 +00006437#
6438# Check to make sure the PIC flag actually works.
6439#
6440if test -n "$lt_prog_compiler_pic"; then
6441 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6442echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6443if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445else
John Criswell47fdd832003-07-14 16:52:07 +00006446 lt_prog_compiler_pic_works=no
6447 ac_outfile=conftest.$ac_objext
6448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6450 # Insert the option either (1) after the last *FLAGS variable, or
6451 # (2) before a word containing "conftest.", or (3) at the end.
6452 # Note that $ac_compile itself does not contain backslashes and begins
6453 # with a dollar sign (not a hyphen), so the echo should work correctly.
6454 # The option is referenced via a variable to avoid confusing sed.
6455 lt_compile=`echo "$ac_compile" | $SED \
6456 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6458 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +00006459 (eval echo "\"\$as_me:6459: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006460 (eval "$lt_compile" 2>conftest.err)
6461 ac_status=$?
6462 cat conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +00006463 echo "$as_me:6463: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006464 if (exit $ac_status) && test -s "$ac_outfile"; then
6465 # The compiler can only warn and ignore the option if not recognized
6466 # So say no if there are warnings
6467 if test ! -s conftest.err; then
6468 lt_prog_compiler_pic_works=yes
6469 fi
6470 fi
6471 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006472
John Criswell47fdd832003-07-14 16:52:07 +00006473fi
6474echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6475echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006476
John Criswell47fdd832003-07-14 16:52:07 +00006477if test x"$lt_prog_compiler_pic_works" = xyes; then
6478 case $lt_prog_compiler_pic in
6479 "" | " "*) ;;
6480 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6481 esac
John Criswell7a73b802003-06-30 21:59:07 +00006482else
John Criswell47fdd832003-07-14 16:52:07 +00006483 lt_prog_compiler_pic=
6484 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006485fi
6486
John Criswell7a73b802003-06-30 21:59:07 +00006487fi
John Criswell47fdd832003-07-14 16:52:07 +00006488case "$host_os" in
6489 # For platforms which do not support PIC, -DPIC is meaningless:
6490 *djgpp*)
6491 lt_prog_compiler_pic=
6492 ;;
6493 *)
6494 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6495 ;;
6496esac
John Criswell7a73b802003-06-30 21:59:07 +00006497
John Criswell7a73b802003-06-30 21:59:07 +00006498echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6499echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006500if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
John Criswell47fdd832003-07-14 16:52:07 +00006503 lt_cv_prog_compiler_c_o=no
6504 $rm -r conftest 2>/dev/null
6505 mkdir conftest
6506 cd conftest
6507 mkdir out
6508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006509
John Criswell47fdd832003-07-14 16:52:07 +00006510 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6511 # that will create temporary files in the current directory regardless of
6512 # the output directory. Thus, making CWD read-only will cause this test
6513 # to fail, enabling locking or at least warning the user not to do parallel
6514 # builds.
6515 chmod -w .
6516
6517 lt_compiler_flag="-o out/conftest2.$ac_objext"
6518 # Insert the option either (1) after the last *FLAGS variable, or
6519 # (2) before a word containing "conftest.", or (3) at the end.
6520 # Note that $ac_compile itself does not contain backslashes and begins
6521 # with a dollar sign (not a hyphen), so the echo should work correctly.
6522 lt_compile=`echo "$ac_compile" | $SED \
6523 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6525 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +00006526 (eval echo "\"\$as_me:6526: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006527 (eval "$lt_compile" 2>out/conftest.err)
6528 ac_status=$?
6529 cat out/conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +00006530 echo "$as_me:6530: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6532 then
6533 # The compiler can only warn and ignore the option if not recognized
6534 # So say no if there are warnings
6535 if test ! -s out/conftest.err; then
6536 lt_cv_prog_compiler_c_o=yes
6537 fi
6538 fi
6539 chmod u+w .
6540 $rm conftest* out/*
6541 rmdir out
6542 cd ..
6543 rmdir conftest
6544 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006545
6546fi
John Criswell47fdd832003-07-14 16:52:07 +00006547echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6548echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006549
John Criswell7a73b802003-06-30 21:59:07 +00006550
John Criswell7a73b802003-06-30 21:59:07 +00006551hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006552if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006553 # do not overwrite the value of need_locks provided by the user
6554 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6555echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6556 hard_links=yes
6557 $rm conftest*
6558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6559 touch conftest.a
6560 ln conftest.a conftest.b 2>&5 || hard_links=no
6561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6562 echo "$as_me:$LINENO: result: $hard_links" >&5
6563echo "${ECHO_T}$hard_links" >&6
6564 if test "$hard_links" = no; then
6565 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6566echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6567 need_locks=warn
6568 fi
6569else
6570 need_locks=no
6571fi
John Criswell7a73b802003-06-30 21:59:07 +00006572
John Criswell47fdd832003-07-14 16:52:07 +00006573echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6574echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6575
6576 runpath_var=
6577 allow_undefined_flag=
6578 enable_shared_with_static_runtimes=no
6579 archive_cmds=
6580 archive_expsym_cmds=
6581 old_archive_From_new_cmds=
6582 old_archive_from_expsyms_cmds=
6583 export_dynamic_flag_spec=
6584 whole_archive_flag_spec=
6585 thread_safe_flag_spec=
6586 hardcode_libdir_flag_spec=
6587 hardcode_libdir_flag_spec_ld=
6588 hardcode_libdir_separator=
6589 hardcode_direct=no
6590 hardcode_minus_L=no
6591 hardcode_shlibpath_var=unsupported
6592 link_all_deplibs=unknown
6593 hardcode_automatic=no
6594 module_cmds=
6595 module_expsym_cmds=
6596 always_export_symbols=no
6597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6598 # include_expsyms should be a list of space-separated symbols to be *always*
6599 # included in the symbol list
6600 include_expsyms=
6601 # exclude_expsyms can be an extended regexp of symbols to exclude
6602 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6603 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6604 # as well as any symbol that contains `d'.
6605 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6606 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6607 # platforms (ab)use it in PIC code, but their linkers get confused if
6608 # the symbol is explicitly referenced. Since portable code cannot
6609 # rely on this symbol name, it's probably fine to never include it in
6610 # preloaded symbol tables.
6611 extract_expsyms_cmds=
6612
6613 case $host_os in
6614 cygwin* | mingw* | pw32*)
6615 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6616 # When not using gcc, we currently assume that we are using
6617 # Microsoft Visual C++.
6618 if test "$GCC" != yes; then
6619 with_gnu_ld=no
6620 fi
6621 ;;
6622 openbsd*)
6623 with_gnu_ld=no
6624 ;;
6625 esac
6626
6627 ld_shlibs=yes
6628 if test "$with_gnu_ld" = yes; then
6629 # If archive_cmds runs LD, not CC, wlarc should be empty
6630 wlarc='${wl}'
6631
6632 # See if GNU ld supports shared libraries.
6633 case $host_os in
6634 aix3* | aix4* | aix5*)
6635 # On AIX/PPC, the GNU linker is very broken
6636 if test "$host_cpu" != ia64; then
6637 ld_shlibs=no
6638 cat <<EOF 1>&2
6639
6640*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6641*** to be unable to reliably create shared libraries on AIX.
6642*** Therefore, libtool is disabling shared libraries support. If you
6643*** really care for shared libraries, you may want to modify your PATH
6644*** so that a non-GNU linker is found, and then restart.
6645
6646EOF
6647 fi
6648 ;;
6649
6650 amigaos*)
6651 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)'
6652 hardcode_libdir_flag_spec='-L$libdir'
6653 hardcode_minus_L=yes
6654
6655 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6656 # that the semantics of dynamic libraries on AmigaOS, at least up
6657 # to version 4, is to share data among multiple programs linked
6658 # with the same dynamic library. Since this doesn't match the
6659 # behavior of shared libraries on other platforms, we can't use
6660 # them.
6661 ld_shlibs=no
6662 ;;
6663
6664 beos*)
6665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6666 allow_undefined_flag=unsupported
6667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6668 # support --undefined. This deserves some investigation. FIXME
6669 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6670 else
6671 ld_shlibs=no
6672 fi
6673 ;;
6674
6675 cygwin* | mingw* | pw32*)
6676 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6677 # as there is no search path for DLLs.
6678 hardcode_libdir_flag_spec='-L$libdir'
6679 allow_undefined_flag=unsupported
6680 always_export_symbols=no
6681 enable_shared_with_static_runtimes=yes
6682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6683
6684 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6686 # If the export-symbols file already is a .def file (1st line
6687 # is EXPORTS), use it as is; otherwise, prepend...
6688 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6689 cp $export_symbols $output_objdir/$soname.def;
6690 else
6691 echo EXPORTS > $output_objdir/$soname.def;
6692 cat $export_symbols >> $output_objdir/$soname.def;
6693 fi~
6694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6695 else
6696 ld_shlibs=no
6697 fi
6698 ;;
6699
6700 netbsd*)
6701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6702 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6703 wlarc=
6704 else
6705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6707 fi
6708 ;;
6709
6710 solaris* | sysv5*)
6711 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6712 ld_shlibs=no
6713 cat <<EOF 1>&2
6714
6715*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6716*** create shared libraries on Solaris systems. Therefore, libtool
6717*** is disabling shared libraries support. We urge you to upgrade GNU
6718*** binutils to release 2.9.1 or newer. Another option is to modify
6719*** your PATH or compiler configuration so that the native linker is
6720*** used, and then restart.
6721
6722EOF
6723 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6726 else
6727 ld_shlibs=no
6728 fi
6729 ;;
6730
6731 sunos4*)
6732 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6733 wlarc=
6734 hardcode_direct=yes
6735 hardcode_shlibpath_var=no
6736 ;;
6737
6738 *)
6739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6742 else
6743 ld_shlibs=no
6744 fi
6745 ;;
6746 esac
6747
6748 if test "$ld_shlibs" = yes; then
6749 runpath_var=LD_RUN_PATH
6750 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6751 export_dynamic_flag_spec='${wl}--export-dynamic'
6752 # ancient GNU ld didn't support --whole-archive et. al.
6753 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6754 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6755 else
6756 whole_archive_flag_spec=
6757 fi
6758 fi
6759 else
6760 # PORTME fill in a description of your system's linker (not GNU ld)
6761 case $host_os in
6762 aix3*)
6763 allow_undefined_flag=unsupported
6764 always_export_symbols=yes
6765 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'
6766 # Note: this linker hardcodes the directories in LIBPATH if there
6767 # are no directories specified by -L.
6768 hardcode_minus_L=yes
6769 if test "$GCC" = yes && test -z "$link_static_flag"; then
6770 # Neither direct hardcoding nor static linking is supported with a
6771 # broken collect2.
6772 hardcode_direct=unsupported
6773 fi
6774 ;;
6775
6776 aix4* | aix5*)
6777 if test "$host_cpu" = ia64; then
6778 # On IA64, the linker does run time linking by default, so we don't
6779 # have to do anything special.
6780 aix_use_runtimelinking=no
6781 exp_sym_flag='-Bexport'
6782 no_entry_flag=""
6783 else
6784 # If we're using GNU nm, then we don't want the "-C" option.
6785 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6786 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6787 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'
6788 else
6789 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'
6790 fi
6791 aix_use_runtimelinking=no
6792
6793 # Test if we are trying to use run time linking or normal
6794 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6795 # need to do runtime linking.
6796 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6797 for ld_flag in $LDFLAGS; do
6798 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6799 aix_use_runtimelinking=yes
6800 break
6801 fi
6802 done
6803 esac
6804
6805 exp_sym_flag='-bexport'
6806 no_entry_flag='-bnoentry'
6807 fi
6808
6809 # When large executables or shared objects are built, AIX ld can
6810 # have problems creating the table of contents. If linking a library
6811 # or program results in "error TOC overflow" add -mminimal-toc to
6812 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6813 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6814
6815 archive_cmds=''
6816 hardcode_direct=yes
6817 hardcode_libdir_separator=':'
6818 link_all_deplibs=yes
6819
6820 if test "$GCC" = yes; then
6821 case $host_os in aix4.012|aix4.012.*)
6822 # We only want to do this on AIX 4.2 and lower, the check
6823 # below for broken collect2 doesn't work under 4.3+
6824 collect2name=`${CC} -print-prog-name=collect2`
6825 if test -f "$collect2name" && \
6826 strings "$collect2name" | grep resolve_lib_name >/dev/null
6827 then
6828 # We have reworked collect2
6829 hardcode_direct=yes
6830 else
6831 # We have old collect2
6832 hardcode_direct=unsupported
6833 # It fails to find uninstalled libraries when the uninstalled
6834 # path is not listed in the libpath. Setting hardcode_minus_L
6835 # to unsupported forces relinking
6836 hardcode_minus_L=yes
6837 hardcode_libdir_flag_spec='-L$libdir'
6838 hardcode_libdir_separator=
6839 fi
6840 esac
6841 shared_flag='-shared'
6842 else
6843 # not using gcc
6844 if test "$host_cpu" = ia64; then
6845 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6846 # chokes on -Wl,-G. The following line is correct:
6847 shared_flag='-G'
6848 else
6849 if test "$aix_use_runtimelinking" = yes; then
6850 shared_flag='${wl}-G'
6851 else
6852 shared_flag='${wl}-bM:SRE'
6853 fi
6854 fi
6855 fi
6856
6857 # It seems that -bexpall does not export symbols beginning with
6858 # underscore (_), so it is better to generate a list of symbols to export.
6859 always_export_symbols=yes
6860 if test "$aix_use_runtimelinking" = yes; then
6861 # Warning - without using the other runtime loading flags (-brtl),
6862 # -berok will link without error, but may produce a broken library.
6863 allow_undefined_flag='-berok'
6864 # Determine the default libpath from the value encoded in an empty executable.
6865 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006866#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006867/* confdefs.h. */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006872
John Criswell7a73b802003-06-30 21:59:07 +00006873int
6874main ()
6875{
John Criswell47fdd832003-07-14 16:52:07 +00006876
John Criswell7a73b802003-06-30 21:59:07 +00006877 ;
6878 return 0;
6879}
6880_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006881rm -f conftest.$ac_objext conftest$ac_exeext
6882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006887 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006893
John Criswell47fdd832003-07-14 16:52:07 +00006894aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6895}'`
6896# Check for a 64-bit object if we didn't find anything.
6897if 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; }
6898}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006899else
6900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006901sed 's/^/| /' conftest.$ac_ext >&5
6902
John Criswell7a73b802003-06-30 21:59:07 +00006903fi
John Criswell47fdd832003-07-14 16:52:07 +00006904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006906
John Criswell47fdd832003-07-14 16:52:07 +00006907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6908 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"
6909 else
6910 if test "$host_cpu" = ia64; then
6911 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6912 allow_undefined_flag="-z nodefs"
6913 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"
6914 else
6915 # Determine the default libpath from the value encoded in an empty executable.
6916 cat >conftest.$ac_ext <<_ACEOF
6917#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006918/* confdefs.h. */
6919_ACEOF
6920cat confdefs.h >>conftest.$ac_ext
6921cat >>conftest.$ac_ext <<_ACEOF
6922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006923
John Criswell47fdd832003-07-14 16:52:07 +00006924int
6925main ()
6926{
John Criswell7a73b802003-06-30 21:59:07 +00006927
John Criswell47fdd832003-07-14 16:52:07 +00006928 ;
6929 return 0;
6930}
6931_ACEOF
6932rm -f conftest.$ac_objext conftest$ac_exeext
6933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934 (eval $ac_link) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -s conftest$ac_exeext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006944
John Criswell47fdd832003-07-14 16:52:07 +00006945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6946}'`
6947# Check for a 64-bit object if we didn't find anything.
6948if 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; }
6949}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006950else
John Criswell47fdd832003-07-14 16:52:07 +00006951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006952sed 's/^/| /' conftest.$ac_ext >&5
6953
John Criswell47fdd832003-07-14 16:52:07 +00006954fi
6955rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6956if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006957
John Criswell47fdd832003-07-14 16:52:07 +00006958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6959 # Warning - without using the other run time loading flags,
6960 # -berok will link without error, but may produce a broken library.
6961 no_undefined_flag=' ${wl}-bernotok'
6962 allow_undefined_flag=' ${wl}-berok'
6963 # -bexpall does not export symbols beginning with underscore (_)
6964 always_export_symbols=yes
6965 # Exported symbols can be pulled into shared objects from archives
6966 whole_archive_flag_spec=' '
6967 archive_cmds_need_lc=yes
6968 # This is similar to how AIX traditionally builds it's shared libraries.
6969 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 +00006970 fi
6971 fi
John Criswell7a73b802003-06-30 21:59:07 +00006972 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006973
6974 amigaos*)
6975 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)'
6976 hardcode_libdir_flag_spec='-L$libdir'
6977 hardcode_minus_L=yes
6978 # see comment about different semantics on the GNU ld section
6979 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006980 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006981
John Criswell47fdd832003-07-14 16:52:07 +00006982 bsdi4*)
6983 export_dynamic_flag_spec=-rdynamic
6984 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006985
John Criswell47fdd832003-07-14 16:52:07 +00006986 cygwin* | mingw* | pw32*)
6987 # When not using gcc, we currently assume that we are using
6988 # Microsoft Visual C++.
6989 # hardcode_libdir_flag_spec is actually meaningless, as there is
6990 # no search path for DLLs.
6991 hardcode_libdir_flag_spec=' '
6992 allow_undefined_flag=unsupported
6993 # Tell ltmain to make .lib files, not .a files.
6994 libext=lib
6995 # Tell ltmain to make .dll files, not .so files.
6996 shrext=".dll"
6997 # FIXME: Setting linknames here is a bad hack.
6998 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6999 # The linker will automatically build a .lib file if we build a DLL.
7000 old_archive_From_new_cmds='true'
7001 # FIXME: Should let the user specify the lib program.
7002 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7003 fix_srcfile_path='`cygpath -w "$srcfile"`'
7004 enable_shared_with_static_runtimes=yes
7005 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007006
John Criswell47fdd832003-07-14 16:52:07 +00007007 darwin* | rhapsody*)
7008 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7009 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007010 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007011 rhapsody* | darwin1.[012])
7012 allow_undefined_flag='-undefined suppress'
7013 ;;
7014 *) # Darwin 1.3 on
7015 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007016 ;;
7017 esac
John Criswell47fdd832003-07-14 16:52:07 +00007018 # FIXME: Relying on posixy $() will cause problems for
7019 # cross-compilation, but unfortunately the echo tests do not
7020 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7021 # `"' quotes if we put them in here... so don't!
7022 lt_int_apple_cc_single_mod=no
7023 output_verbose_link_cmd='echo'
7024 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7025 lt_int_apple_cc_single_mod=yes
7026 fi
7027 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7028 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7029 else
7030 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'
7031 fi
7032 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7033 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7034 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7035 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}'
7036 else
7037 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}'
7038 fi
7039 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}'
7040 hardcode_direct=no
7041 hardcode_automatic=yes
7042 hardcode_shlibpath_var=unsupported
7043 whole_archive_flag_spec='-all_load $convenience'
7044 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007045 fi
John Criswell47fdd832003-07-14 16:52:07 +00007046 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007047
John Criswell47fdd832003-07-14 16:52:07 +00007048 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007050 hardcode_libdir_flag_spec='-L$libdir'
7051 hardcode_shlibpath_var=no
7052 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007053
John Criswell47fdd832003-07-14 16:52:07 +00007054 freebsd1*)
7055 ld_shlibs=no
7056 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007057
John Criswell47fdd832003-07-14 16:52:07 +00007058 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7059 # support. Future versions do this automatically, but an explicit c++rt0.o
7060 # does not break anything, and helps significantly (at the cost of a little
7061 # extra space).
7062 freebsd2.2*)
7063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7064 hardcode_libdir_flag_spec='-R$libdir'
7065 hardcode_direct=yes
7066 hardcode_shlibpath_var=no
7067 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007068
John Criswell47fdd832003-07-14 16:52:07 +00007069 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7070 freebsd2*)
7071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7072 hardcode_direct=yes
7073 hardcode_minus_L=yes
7074 hardcode_shlibpath_var=no
7075 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007076
John Criswell47fdd832003-07-14 16:52:07 +00007077 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7078 freebsd*)
7079 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7080 hardcode_libdir_flag_spec='-R$libdir'
7081 hardcode_direct=yes
7082 hardcode_shlibpath_var=no
7083 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007084
John Criswell47fdd832003-07-14 16:52:07 +00007085 hpux9*)
7086 if test "$GCC" = yes; then
7087 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'
7088 else
7089 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'
7090 fi
7091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7092 hardcode_libdir_separator=:
7093 hardcode_direct=yes
7094
7095 # hardcode_minus_L: Not really in the search PATH,
7096 # but as the default location of the library.
7097 hardcode_minus_L=yes
7098 export_dynamic_flag_spec='${wl}-E'
7099 ;;
7100
7101 hpux10* | hpux11*)
7102 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7103 case "$host_cpu" in
7104 hppa*64*|ia64*)
7105 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7106 ;;
7107 *)
7108 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7109 ;;
7110 esac
7111 else
7112 case "$host_cpu" in
7113 hppa*64*|ia64*)
7114 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7115 ;;
7116 *)
7117 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7118 ;;
7119 esac
7120 fi
7121 if test "$with_gnu_ld" = no; then
7122 case "$host_cpu" in
7123 hppa*64*)
7124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7125 hardcode_libdir_flag_spec_ld='+b $libdir'
7126 hardcode_libdir_separator=:
7127 hardcode_direct=no
7128 hardcode_shlibpath_var=no
7129 ;;
7130 ia64*)
7131 hardcode_libdir_flag_spec='-L$libdir'
7132 hardcode_direct=no
7133 hardcode_shlibpath_var=no
7134
7135 # hardcode_minus_L: Not really in the search PATH,
7136 # but as the default location of the library.
7137 hardcode_minus_L=yes
7138 ;;
7139 *)
7140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7141 hardcode_libdir_separator=:
7142 hardcode_direct=yes
7143 export_dynamic_flag_spec='${wl}-E'
7144
7145 # hardcode_minus_L: Not really in the search PATH,
7146 # but as the default location of the library.
7147 hardcode_minus_L=yes
7148 ;;
7149 esac
7150 fi
7151 ;;
7152
7153 irix5* | irix6* | nonstopux*)
7154 if test "$GCC" = yes; then
7155 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'
7156 else
7157 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'
7158 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7159 fi
7160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7161 hardcode_libdir_separator=:
7162 link_all_deplibs=yes
7163 ;;
7164
7165 netbsd*)
7166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7168 else
7169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7170 fi
7171 hardcode_libdir_flag_spec='-R$libdir'
7172 hardcode_direct=yes
7173 hardcode_shlibpath_var=no
7174 ;;
7175
7176 newsos6)
7177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7178 hardcode_direct=yes
7179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7180 hardcode_libdir_separator=:
7181 hardcode_shlibpath_var=no
7182 ;;
7183
7184 openbsd*)
7185 hardcode_direct=yes
7186 hardcode_shlibpath_var=no
7187 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7188 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7189 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7190 export_dynamic_flag_spec='${wl}-E'
7191 else
7192 case $host_os in
7193 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7195 hardcode_libdir_flag_spec='-R$libdir'
7196 ;;
7197 *)
7198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7199 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7200 ;;
7201 esac
7202 fi
7203 ;;
7204
7205 os2*)
7206 hardcode_libdir_flag_spec='-L$libdir'
7207 hardcode_minus_L=yes
7208 allow_undefined_flag=unsupported
7209 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'
7210 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7211 ;;
7212
7213 osf3*)
7214 if test "$GCC" = yes; then
7215 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7216 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'
7217 else
7218 allow_undefined_flag=' -expect_unresolved \*'
7219 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'
7220 fi
7221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7222 hardcode_libdir_separator=:
7223 ;;
7224
7225 osf4* | osf5*) # as osf3* with the addition of -msym flag
7226 if test "$GCC" = yes; then
7227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7228 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'
7229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7230 else
7231 allow_undefined_flag=' -expect_unresolved \*'
7232 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'
7233 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7234 $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'
7235
7236 # Both c and cxx compiler support -rpath directly
7237 hardcode_libdir_flag_spec='-rpath $libdir'
7238 fi
7239 hardcode_libdir_separator=:
7240 ;;
7241
7242 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7244 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007245 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007246 runpath_var=LD_RUN_PATH
7247 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007248 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007249
John Criswell47fdd832003-07-14 16:52:07 +00007250 solaris*)
7251 no_undefined_flag=' -z text'
7252 if test "$GCC" = yes; then
7253 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7254 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7255 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7256 else
7257 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7258 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7259 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7260 fi
7261 hardcode_libdir_flag_spec='-R$libdir'
7262 hardcode_shlibpath_var=no
7263 case $host_os in
7264 solaris2.[0-5] | solaris2.[0-5].*) ;;
7265 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7266 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7267 esac
7268 link_all_deplibs=yes
7269 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007270
John Criswell47fdd832003-07-14 16:52:07 +00007271 sunos4*)
7272 if test "x$host_vendor" = xsequent; then
7273 # Use $CC to link under sequent, because it throws in some extra .o
7274 # files that make .init and .fini sections work.
7275 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7276 else
7277 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7278 fi
7279 hardcode_libdir_flag_spec='-L$libdir'
7280 hardcode_direct=yes
7281 hardcode_minus_L=yes
7282 hardcode_shlibpath_var=no
7283 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007284
John Criswell47fdd832003-07-14 16:52:07 +00007285 sysv4)
7286 case $host_vendor in
7287 sni)
7288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289 hardcode_direct=yes # is this really true???
7290 ;;
7291 siemens)
7292 ## LD is ld it makes a PLAMLIB
7293 ## CC just makes a GrossModule.
7294 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7295 reload_cmds='$CC -r -o $output$reload_objs'
7296 hardcode_direct=no
7297 ;;
7298 motorola)
7299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7301 ;;
7302 esac
7303 runpath_var='LD_RUN_PATH'
7304 hardcode_shlibpath_var=no
7305 ;;
7306
7307 sysv4.3*)
7308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309 hardcode_shlibpath_var=no
7310 export_dynamic_flag_spec='-Bexport'
7311 ;;
7312
7313 sysv4*MP*)
7314 if test -d /usr/nec; then
7315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316 hardcode_shlibpath_var=no
7317 runpath_var=LD_RUN_PATH
7318 hardcode_runpath_var=yes
7319 ld_shlibs=yes
7320 fi
7321 ;;
7322
7323 sysv4.2uw2*)
7324 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7325 hardcode_direct=yes
7326 hardcode_minus_L=no
7327 hardcode_shlibpath_var=no
7328 hardcode_runpath_var=yes
7329 runpath_var=LD_RUN_PATH
7330 ;;
7331
7332 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7333 no_undefined_flag='${wl}-z ${wl}text'
7334 if test "$GCC" = yes; then
7335 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7336 else
7337 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 fi
7339 runpath_var='LD_RUN_PATH'
7340 hardcode_shlibpath_var=no
7341 ;;
7342
7343 sysv5*)
7344 no_undefined_flag=' -z text'
7345 # $CC -shared without GNU ld will not create a library from C++
7346 # object files and a static libstdc++, better avoid it by now
7347 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7350 hardcode_libdir_flag_spec=
7351 hardcode_shlibpath_var=no
7352 runpath_var='LD_RUN_PATH'
7353 ;;
7354
7355 uts4*)
7356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357 hardcode_libdir_flag_spec='-L$libdir'
7358 hardcode_shlibpath_var=no
7359 ;;
7360
7361 *)
7362 ld_shlibs=no
7363 ;;
7364 esac
7365 fi
7366
John Criswell7a73b802003-06-30 21:59:07 +00007367echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7368echo "${ECHO_T}$ld_shlibs" >&6
7369test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007370
John Criswell47fdd832003-07-14 16:52:07 +00007371variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7372if test "$GCC" = yes; then
7373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7374fi
7375
7376#
7377# Do we need to explicitly link libc?
7378#
7379case "x$archive_cmds_need_lc" in
7380x|xyes)
7381 # Assume -lc should be added
7382 archive_cmds_need_lc=yes
7383
7384 if test "$enable_shared" = yes && test "$GCC" = yes; then
7385 case $archive_cmds in
7386 *'~'*)
7387 # FIXME: we may have to deal with multi-command sequences.
7388 ;;
7389 '$CC '*)
7390 # Test whether the compiler implicitly links with -lc since on some
7391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7392 # to ld, don't add -lc before -lgcc.
7393 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7394echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7395 $rm conftest*
7396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7397
7398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7399 (eval $ac_compile) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } 2>conftest.err; then
7403 soname=conftest
7404 lib=conftest
7405 libobjs=conftest.$ac_objext
7406 deplibs=
7407 wl=$lt_prog_compiler_wl
7408 compiler_flags=-v
7409 linker_flags=-v
7410 verstring=
7411 output_objdir=.
7412 libname=conftest
7413 lt_save_allow_undefined_flag=$allow_undefined_flag
7414 allow_undefined_flag=
7415 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7416 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }
7420 then
7421 archive_cmds_need_lc=no
7422 else
7423 archive_cmds_need_lc=yes
7424 fi
7425 allow_undefined_flag=$lt_save_allow_undefined_flag
7426 else
7427 cat conftest.err 1>&5
7428 fi
7429 $rm conftest*
7430 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7431echo "${ECHO_T}$archive_cmds_need_lc" >&6
7432 ;;
7433 esac
7434 fi
7435 ;;
7436esac
7437
John Criswell7a73b802003-06-30 21:59:07 +00007438echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7439echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7440hardcode_action=
7441if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007442 test -n "$runpath_var " || \
7443 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007444
7445 # We can hardcode non-existant directories.
7446 if test "$hardcode_direct" != no &&
7447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7448 # have to relink, otherwise we might link with an installed library
7449 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007450 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007451 test "$hardcode_minus_L" != no; then
7452 # Linking always hardcodes the temporary library directory.
7453 hardcode_action=relink
7454 else
7455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7456 hardcode_action=immediate
7457 fi
7458else
7459 # We cannot hardcode anything, or else we can only hardcode existing
7460 # directories.
7461 hardcode_action=unsupported
7462fi
7463echo "$as_me:$LINENO: result: $hardcode_action" >&5
7464echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007465
John Criswell47fdd832003-07-14 16:52:07 +00007466if test "$hardcode_action" = relink; then
7467 # Fast installation is not supported
7468 enable_fast_install=no
7469elif test "$shlibpath_overrides_runpath" = yes ||
7470 test "$enable_shared" = no; then
7471 # Fast installation is not necessary
7472 enable_fast_install=needless
7473fi
7474
John Criswell7a73b802003-06-30 21:59:07 +00007475striplib=
7476old_striplib=
7477echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7478echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7479if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7480 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7481 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7482 echo "$as_me:$LINENO: result: yes" >&5
7483echo "${ECHO_T}yes" >&6
7484else
John Criswell47fdd832003-07-14 16:52:07 +00007485# FIXME - insert some real tests, host_os isn't really good enough
7486 case $host_os in
7487 darwin*)
7488 if test -n "$STRIP" ; then
7489 striplib="$STRIP -x"
7490 echo "$as_me:$LINENO: result: yes" >&5
7491echo "${ECHO_T}yes" >&6
7492 else
John Criswell7a73b802003-06-30 21:59:07 +00007493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
7495fi
John Criswell47fdd832003-07-14 16:52:07 +00007496 ;;
7497 *)
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
7500 ;;
7501 esac
7502fi
John Criswell7a73b802003-06-30 21:59:07 +00007503
John Criswell7a73b802003-06-30 21:59:07 +00007504echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7505echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7506library_names_spec=
7507libname_spec='lib$name'
7508soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007509shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007510postinstall_cmds=
7511postuninstall_cmds=
7512finish_cmds=
7513finish_eval=
7514shlibpath_var=
7515shlibpath_overrides_runpath=unknown
7516version_type=none
7517dynamic_linker="$host_os ld.so"
7518sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007519if test "$GCC" = yes; then
7520 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7521 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7522 # if the path contains ";" then we assume it to be the separator
7523 # otherwise default to the standard path separator (i.e. ":") - it is
7524 # assumed that no part of a normal pathname contains ";" but that should
7525 # okay in the real world where ";" in dirpaths is itself problematic.
7526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7527 else
7528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7529 fi
7530else
7531 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7532fi
7533need_lib_prefix=unknown
7534hardcode_into_libs=no
7535
7536# when you set need_version to no, make sure it does not cause -set_version
7537# flags to be left without arguments
7538need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007539
7540case $host_os in
7541aix3*)
7542 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007544 shlibpath_var=LIBPATH
7545
John Criswell47fdd832003-07-14 16:52:07 +00007546 # AIX 3 has no versioning support, so we append a major version to the name.
7547 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007548 ;;
7549
7550aix4* | aix5*)
7551 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007552 need_lib_prefix=no
7553 need_version=no
7554 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007555 if test "$host_cpu" = ia64; then
7556 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007557 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007558 shlibpath_var=LD_LIBRARY_PATH
7559 else
7560 # With GCC up to 2.95.x, collect2 would create an import file
7561 # for dependence libraries. The import file would start with
7562 # the line `#! .'. This would cause the generated library to
7563 # depend on `.', always an invalid library. This was fixed in
7564 # development snapshots of GCC prior to 3.0.
7565 case $host_os in
7566 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7568 echo ' yes '
7569 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7570 :
7571 else
7572 can_build_shared=no
7573 fi
7574 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007575 esac
John Criswell47fdd832003-07-14 16:52:07 +00007576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7577 # soname into executable. Probably we can add versioning support to
7578 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007579 if test "$aix_use_runtimelinking" = yes; then
7580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7581 # instead of lib<name>.a to let people know that these are not
7582 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007584 else
7585 # We preserve .a as extension for shared libraries through AIX4.2
7586 # and later when we are not doing run time linking.
7587 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007588 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007589 fi
7590 shlibpath_var=LIBPATH
7591 fi
7592 ;;
7593
7594amigaos*)
7595 library_names_spec='$libname.ixlibrary $libname.a'
7596 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7597 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'
7598 ;;
7599
7600beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007601 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007602 dynamic_linker="$host_os ld.so"
7603 shlibpath_var=LIBRARY_PATH
7604 ;;
7605
7606bsdi4*)
7607 version_type=linux
7608 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7610 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007611 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7612 shlibpath_var=LD_LIBRARY_PATH
7613 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7614 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007615 # the default ld.so.conf also contains /usr/contrib/lib and
7616 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7617 # libtool to hard-code these into programs
7618 ;;
7619
7620cygwin* | mingw* | pw32*)
7621 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007622 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007623 need_version=no
7624 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007625
John Criswell7a73b802003-06-30 21:59:07 +00007626 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007627 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007628 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7630 postinstall_cmds='base_file=`basename \${file}`~
7631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007632 dldir=$destdir/`dirname \$dlpath`~
7633 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007634 $install_prog $dir/$dlname \$dldir/$dlname'
7635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007636 dlpath=$dir/\$dldll~
7637 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007638 shlibpath_overrides_runpath=yes
7639
7640 case $host_os in
7641 cygwin*)
7642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7643 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7644 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7645 ;;
7646 mingw*)
7647 # MinGW DLLs use traditional 'lib' prefix
7648 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7649 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7650 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7651 # It is most probably a Windows format PATH printed by
7652 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7653 # path with ; separators, and with drive letters. We can handle the
7654 # drive letters (cygwin fileutils understands them), so leave them,
7655 # especially as we might pass files found there to a mingw objdump,
7656 # which wouldn't understand a cygwinified path. Ahh.
7657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7658 else
7659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7660 fi
7661 ;;
7662 pw32*)
7663 # pw32 DLLs use 'pw' prefix rather than 'lib'
7664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7665 ;;
7666 esac
John Criswell7a73b802003-06-30 21:59:07 +00007667 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007668
John Criswell7a73b802003-06-30 21:59:07 +00007669 *)
John Criswell47fdd832003-07-14 16:52:07 +00007670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007671 ;;
7672 esac
7673 dynamic_linker='Win32 ld.exe'
7674 # FIXME: first we should search . and the directory the executable is in
7675 shlibpath_var=PATH
7676 ;;
7677
7678darwin* | rhapsody*)
7679 dynamic_linker="$host_os dyld"
7680 version_type=darwin
7681 need_lib_prefix=no
7682 need_version=no
7683 # FIXME: Relying on posixy $() will cause problems for
7684 # cross-compilation, but unfortunately the echo tests do not
7685 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007686 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7687 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007688 shlibpath_overrides_runpath=yes
7689 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007690 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7691 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7692 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7693 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"`
7694 fi
7695 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7696 ;;
7697
7698dgux*)
7699 version_type=linux
7700 need_lib_prefix=no
7701 need_version=no
7702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7703 soname_spec='${libname}${release}${shared_ext}$major'
7704 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007705 ;;
7706
7707freebsd1*)
7708 dynamic_linker=no
7709 ;;
7710
7711freebsd*)
7712 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7713 version_type=freebsd-$objformat
7714 case $version_type in
7715 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007717 need_version=no
7718 need_lib_prefix=no
7719 ;;
7720 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007722 need_version=yes
7723 ;;
7724 esac
7725 shlibpath_var=LD_LIBRARY_PATH
7726 case $host_os in
7727 freebsd2*)
7728 shlibpath_overrides_runpath=yes
7729 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007730 freebsd3.01* | freebsdelf3.01*)
7731 shlibpath_overrides_runpath=yes
7732 hardcode_into_libs=yes
7733 ;;
7734 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007735 shlibpath_overrides_runpath=no
7736 hardcode_into_libs=yes
7737 ;;
7738 esac
7739 ;;
7740
7741gnu*)
7742 version_type=linux
7743 need_lib_prefix=no
7744 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7746 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007747 shlibpath_var=LD_LIBRARY_PATH
7748 hardcode_into_libs=yes
7749 ;;
7750
7751hpux9* | hpux10* | hpux11*)
7752 # Give a soname corresponding to the major version so that dld.sl refuses to
7753 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007754 version_type=sunos
7755 need_lib_prefix=no
7756 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007757 case "$host_cpu" in
7758 ia64*)
7759 shrext='.so'
7760 hardcode_into_libs=yes
7761 dynamic_linker="$host_os dld.so"
7762 shlibpath_var=LD_LIBRARY_PATH
7763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7765 soname_spec='${libname}${release}${shared_ext}$major'
7766 if test "X$HPUX_IA64_MODE" = X32; then
7767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7768 else
7769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7770 fi
7771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7772 ;;
7773 hppa*64*)
7774 shrext='.sl'
7775 hardcode_into_libs=yes
7776 dynamic_linker="$host_os dld.sl"
7777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7780 soname_spec='${libname}${release}${shared_ext}$major'
7781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7783 ;;
7784 *)
7785 shrext='.sl'
7786 dynamic_linker="$host_os dld.sl"
7787 shlibpath_var=SHLIB_PATH
7788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7790 soname_spec='${libname}${release}${shared_ext}$major'
7791 ;;
7792 esac
John Criswell7a73b802003-06-30 21:59:07 +00007793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7794 postinstall_cmds='chmod 555 $lib'
7795 ;;
7796
John Criswell47fdd832003-07-14 16:52:07 +00007797irix5* | irix6* | nonstopux*)
7798 case $host_os in
7799 nonstopux*) version_type=nonstopux ;;
7800 *)
7801 if test "$lt_cv_prog_gnu_ld" = yes; then
7802 version_type=linux
7803 else
7804 version_type=irix
7805 fi ;;
7806 esac
John Criswell7a73b802003-06-30 21:59:07 +00007807 need_lib_prefix=no
7808 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007809 soname_spec='${libname}${release}${shared_ext}$major'
7810 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 +00007811 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007812 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007813 libsuff= shlibsuff=
7814 ;;
7815 *)
7816 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007817 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7818 libsuff= shlibsuff= libmagic=32-bit;;
7819 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7820 libsuff=32 shlibsuff=N32 libmagic=N32;;
7821 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7822 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007823 *) libsuff= shlibsuff= libmagic=never-match;;
7824 esac
7825 ;;
7826 esac
7827 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7828 shlibpath_overrides_runpath=no
7829 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7830 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007831 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007832 ;;
7833
7834# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007835linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007836 dynamic_linker=no
7837 ;;
7838
7839# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007840linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007841 version_type=linux
7842 need_lib_prefix=no
7843 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7847 shlibpath_var=LD_LIBRARY_PATH
7848 shlibpath_overrides_runpath=no
7849 # This implies no fast_install, which is unacceptable.
7850 # Some rework will be needed to allow for fast_install
7851 # before this can be enabled.
7852 hardcode_into_libs=yes
7853
7854 # We used to test for /lib/ld.so.1 and disable shared libraries on
7855 # powerpc, because MkLinux only supported shared libraries with the
7856 # GNU dynamic linker. Since this was broken with cross compilers,
7857 # most powerpc-linux boxes support dynamic linking these days and
7858 # people can always --disable-shared, the test was removed, and we
7859 # assume the GNU/Linux dynamic linker is in use.
7860 dynamic_linker='GNU/Linux ld.so'
7861 ;;
7862
7863netbsd*)
7864 version_type=sunos
7865 need_lib_prefix=no
7866 need_version=no
7867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7870 dynamic_linker='NetBSD (a.out) ld.so'
7871 else
John Criswell47fdd832003-07-14 16:52:07 +00007872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7873 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007874 dynamic_linker='NetBSD ld.elf_so'
7875 fi
7876 shlibpath_var=LD_LIBRARY_PATH
7877 shlibpath_overrides_runpath=yes
7878 hardcode_into_libs=yes
7879 ;;
7880
7881newsos6)
7882 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7884 shlibpath_var=LD_LIBRARY_PATH
7885 shlibpath_overrides_runpath=yes
7886 ;;
7887
7888nto-qnx)
7889 version_type=linux
7890 need_lib_prefix=no
7891 need_version=no
7892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007894 shlibpath_var=LD_LIBRARY_PATH
7895 shlibpath_overrides_runpath=yes
7896 ;;
7897
7898openbsd*)
7899 version_type=sunos
7900 need_lib_prefix=no
7901 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7904 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007905 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 +00007906 case $host_os in
7907 openbsd2.[89] | openbsd2.[89].*)
7908 shlibpath_overrides_runpath=no
7909 ;;
7910 *)
7911 shlibpath_overrides_runpath=yes
7912 ;;
7913 esac
John Criswell7a73b802003-06-30 21:59:07 +00007914 else
7915 shlibpath_overrides_runpath=yes
7916 fi
John Criswell7a73b802003-06-30 21:59:07 +00007917 ;;
7918
7919os2*)
7920 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007921 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007922 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007923 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007924 dynamic_linker='OS/2 ld.exe'
7925 shlibpath_var=LIBPATH
7926 ;;
7927
7928osf3* | osf4* | osf5*)
7929 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007930 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007931 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007932 soname_spec='${libname}${release}${shared_ext}$major'
7933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007934 shlibpath_var=LD_LIBRARY_PATH
7935 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7936 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7937 ;;
7938
7939sco3.2v5*)
7940 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007941 soname_spec='${libname}${release}${shared_ext}$major'
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007943 shlibpath_var=LD_LIBRARY_PATH
7944 ;;
7945
7946solaris*)
7947 version_type=linux
7948 need_lib_prefix=no
7949 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7951 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007952 shlibpath_var=LD_LIBRARY_PATH
7953 shlibpath_overrides_runpath=yes
7954 hardcode_into_libs=yes
7955 # ldd complains unless libraries are executable
7956 postinstall_cmds='chmod +x $lib'
7957 ;;
7958
7959sunos4*)
7960 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7963 shlibpath_var=LD_LIBRARY_PATH
7964 shlibpath_overrides_runpath=yes
7965 if test "$with_gnu_ld" = yes; then
7966 need_lib_prefix=no
7967 fi
7968 need_version=yes
7969 ;;
7970
7971sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7972 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7974 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007975 shlibpath_var=LD_LIBRARY_PATH
7976 case $host_vendor in
7977 sni)
7978 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007979 need_lib_prefix=no
7980 export_dynamic_flag_spec='${wl}-Blargedynsym'
7981 runpath_var=LD_RUN_PATH
7982 ;;
7983 siemens)
7984 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007985 ;;
7986 motorola)
7987 need_lib_prefix=no
7988 need_version=no
7989 shlibpath_overrides_runpath=no
7990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7991 ;;
7992 esac
7993 ;;
7994
John Criswell7a73b802003-06-30 21:59:07 +00007995sysv4*MP*)
7996 if test -d /usr/nec ;then
7997 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007998 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7999 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008000 shlibpath_var=LD_LIBRARY_PATH
8001 fi
8002 ;;
8003
John Criswell47fdd832003-07-14 16:52:07 +00008004uts4*)
8005 version_type=linux
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007 soname_spec='${libname}${release}${shared_ext}$major'
8008 shlibpath_var=LD_LIBRARY_PATH
8009 ;;
8010
John Criswell7a73b802003-06-30 21:59:07 +00008011*)
8012 dynamic_linker=no
8013 ;;
8014esac
8015echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8016echo "${ECHO_T}$dynamic_linker" >&6
8017test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008018
8019if test "x$enable_dlopen" != xyes; then
8020 enable_dlopen=unknown
8021 enable_dlopen_self=unknown
8022 enable_dlopen_self_static=unknown
8023else
8024 lt_cv_dlopen=no
8025 lt_cv_dlopen_libs=
8026
8027 case $host_os in
8028 beos*)
8029 lt_cv_dlopen="load_add_on"
8030 lt_cv_dlopen_libs=
8031 lt_cv_dlopen_self=yes
8032 ;;
8033
John Criswell47fdd832003-07-14 16:52:07 +00008034 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008035 lt_cv_dlopen="LoadLibrary"
8036 lt_cv_dlopen_libs=
8037 ;;
8038
John Criswell47fdd832003-07-14 16:52:07 +00008039 cygwin*)
8040 lt_cv_dlopen="dlopen"
8041 lt_cv_dlopen_libs=
8042 ;;
8043
8044 darwin*)
8045 # if libdl is installed we need to link against it
8046 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8047echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8048if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051 ac_check_lib_save_LIBS=$LIBS
8052LIBS="-ldl $LIBS"
8053cat >conftest.$ac_ext <<_ACEOF
8054#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008055/* confdefs.h. */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008060
8061/* Override any gcc2 internal prototype to avoid an error. */
8062#ifdef __cplusplus
8063extern "C"
8064#endif
8065/* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8067char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008068int
8069main ()
8070{
8071dlopen ();
8072 ;
8073 return 0;
8074}
8075_ACEOF
8076rm -f conftest.$ac_objext conftest$ac_exeext
8077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_lib_dl_dlopen=yes
8089else
8090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008091sed 's/^/| /' conftest.$ac_ext >&5
8092
John Criswell47fdd832003-07-14 16:52:07 +00008093ac_cv_lib_dl_dlopen=no
8094fi
8095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8096LIBS=$ac_check_lib_save_LIBS
8097fi
8098echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8099echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8100if test $ac_cv_lib_dl_dlopen = yes; then
8101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8102else
8103
8104 lt_cv_dlopen="dyld"
8105 lt_cv_dlopen_libs=
8106 lt_cv_dlopen_self=yes
8107
8108fi
8109
8110 ;;
8111
John Criswell7a73b802003-06-30 21:59:07 +00008112 *)
8113 echo "$as_me:$LINENO: checking for shl_load" >&5
8114echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8115if test "${ac_cv_func_shl_load+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117else
8118 cat >conftest.$ac_ext <<_ACEOF
8119#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008125/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008126 which can conflict with char shl_load (); below.
8127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128 <limits.h> exists even on freestanding compilers. */
8129#ifdef __STDC__
8130# include <limits.h>
8131#else
8132# include <assert.h>
8133#endif
John Criswell7a73b802003-06-30 21:59:07 +00008134/* Override any gcc2 internal prototype to avoid an error. */
8135#ifdef __cplusplus
8136extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008137{
John Criswell7a73b802003-06-30 21:59:07 +00008138#endif
8139/* We use char because int might match the return type of a gcc2
8140 builtin and then its argument prototype would still apply. */
8141char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008142/* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145#if defined (__stub_shl_load) || defined (__stub___shl_load)
8146choke me
8147#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008148char (*f) () = shl_load;
8149#endif
8150#ifdef __cplusplus
8151}
John Criswell7a73b802003-06-30 21:59:07 +00008152#endif
8153
John Criswell0c38eaf2003-09-10 15:17:25 +00008154int
8155main ()
8156{
8157return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008158 ;
8159 return 0;
8160}
8161_ACEOF
8162rm -f conftest.$ac_objext conftest$ac_exeext
8163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -s conftest$ac_exeext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_cv_func_shl_load=yes
8175else
8176 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008177sed 's/^/| /' conftest.$ac_ext >&5
8178
John Criswell7a73b802003-06-30 21:59:07 +00008179ac_cv_func_shl_load=no
8180fi
8181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8182fi
8183echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8184echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8185if test $ac_cv_func_shl_load = yes; then
8186 lt_cv_dlopen="shl_load"
8187else
8188 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8189echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8190if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193 ac_check_lib_save_LIBS=$LIBS
8194LIBS="-ldld $LIBS"
8195cat >conftest.$ac_ext <<_ACEOF
8196#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008197/* confdefs.h. */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008202
8203/* Override any gcc2 internal prototype to avoid an error. */
8204#ifdef __cplusplus
8205extern "C"
8206#endif
8207/* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8209char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008210int
8211main ()
8212{
8213shl_load ();
8214 ;
8215 return 0;
8216}
8217_ACEOF
8218rm -f conftest.$ac_objext conftest$ac_exeext
8219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_lib_dld_shl_load=yes
8231else
8232 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008233sed 's/^/| /' conftest.$ac_ext >&5
8234
John Criswell7a73b802003-06-30 21:59:07 +00008235ac_cv_lib_dld_shl_load=no
8236fi
8237rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8238LIBS=$ac_check_lib_save_LIBS
8239fi
8240echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8241echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8242if test $ac_cv_lib_dld_shl_load = yes; then
8243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8244else
8245 echo "$as_me:$LINENO: checking for dlopen" >&5
8246echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8247if test "${ac_cv_func_dlopen+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250 cat >conftest.$ac_ext <<_ACEOF
8251#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008252/* confdefs.h. */
8253_ACEOF
8254cat confdefs.h >>conftest.$ac_ext
8255cat >>conftest.$ac_ext <<_ACEOF
8256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008257/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008258 which can conflict with char dlopen (); below.
8259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260 <limits.h> exists even on freestanding compilers. */
8261#ifdef __STDC__
8262# include <limits.h>
8263#else
8264# include <assert.h>
8265#endif
John Criswell7a73b802003-06-30 21:59:07 +00008266/* Override any gcc2 internal prototype to avoid an error. */
8267#ifdef __cplusplus
8268extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008269{
John Criswell7a73b802003-06-30 21:59:07 +00008270#endif
8271/* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8273char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008274/* The GNU C library defines this for functions which it implements
8275 to always fail with ENOSYS. Some functions are actually named
8276 something starting with __ and the normal name is an alias. */
8277#if defined (__stub_dlopen) || defined (__stub___dlopen)
8278choke me
8279#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008280char (*f) () = dlopen;
8281#endif
8282#ifdef __cplusplus
8283}
John Criswell7a73b802003-06-30 21:59:07 +00008284#endif
8285
John Criswell0c38eaf2003-09-10 15:17:25 +00008286int
8287main ()
8288{
8289return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008290 ;
8291 return 0;
8292}
8293_ACEOF
8294rm -f conftest.$ac_objext conftest$ac_exeext
8295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_func_dlopen=yes
8307else
8308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008309sed 's/^/| /' conftest.$ac_ext >&5
8310
John Criswell7a73b802003-06-30 21:59:07 +00008311ac_cv_func_dlopen=no
8312fi
8313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8314fi
8315echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8316echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8317if test $ac_cv_func_dlopen = yes; then
8318 lt_cv_dlopen="dlopen"
8319else
8320 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8321echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8322if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else
8325 ac_check_lib_save_LIBS=$LIBS
8326LIBS="-ldl $LIBS"
8327cat >conftest.$ac_ext <<_ACEOF
8328#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008329/* confdefs.h. */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008334
8335/* Override any gcc2 internal prototype to avoid an error. */
8336#ifdef __cplusplus
8337extern "C"
8338#endif
8339/* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8341char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008342int
8343main ()
8344{
8345dlopen ();
8346 ;
8347 return 0;
8348}
8349_ACEOF
8350rm -f conftest.$ac_objext conftest$ac_exeext
8351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352 (eval $ac_link) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_lib_dl_dlopen=yes
8363else
8364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008365sed 's/^/| /' conftest.$ac_ext >&5
8366
John Criswell7a73b802003-06-30 21:59:07 +00008367ac_cv_lib_dl_dlopen=no
8368fi
8369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8370LIBS=$ac_check_lib_save_LIBS
8371fi
8372echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8373echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8374if test $ac_cv_lib_dl_dlopen = yes; then
8375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8376else
8377 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8378echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8379if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382 ac_check_lib_save_LIBS=$LIBS
8383LIBS="-lsvld $LIBS"
8384cat >conftest.$ac_ext <<_ACEOF
8385#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008386/* confdefs.h. */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008391
8392/* Override any gcc2 internal prototype to avoid an error. */
8393#ifdef __cplusplus
8394extern "C"
8395#endif
8396/* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8398char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008399int
8400main ()
8401{
8402dlopen ();
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext conftest$ac_exeext
8408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_lib_svld_dlopen=yes
8420else
8421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008422sed 's/^/| /' conftest.$ac_ext >&5
8423
John Criswell7a73b802003-06-30 21:59:07 +00008424ac_cv_lib_svld_dlopen=no
8425fi
8426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8427LIBS=$ac_check_lib_save_LIBS
8428fi
8429echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8430echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8431if test $ac_cv_lib_svld_dlopen = yes; then
8432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8433else
8434 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8435echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8436if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438else
8439 ac_check_lib_save_LIBS=$LIBS
8440LIBS="-ldld $LIBS"
8441cat >conftest.$ac_ext <<_ACEOF
8442#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008443/* confdefs.h. */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008448
8449/* Override any gcc2 internal prototype to avoid an error. */
8450#ifdef __cplusplus
8451extern "C"
8452#endif
8453/* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008456int
8457main ()
8458{
8459dld_link ();
8460 ;
8461 return 0;
8462}
8463_ACEOF
8464rm -f conftest.$ac_objext conftest$ac_exeext
8465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_lib_dld_dld_link=yes
8477else
8478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008479sed 's/^/| /' conftest.$ac_ext >&5
8480
John Criswell7a73b802003-06-30 21:59:07 +00008481ac_cv_lib_dld_dld_link=no
8482fi
8483rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8484LIBS=$ac_check_lib_save_LIBS
8485fi
8486echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8487echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8488if test $ac_cv_lib_dld_dld_link = yes; then
8489 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8490fi
8491
8492
8493fi
8494
8495
8496fi
8497
8498
8499fi
8500
8501
8502fi
8503
8504
8505fi
8506
8507 ;;
8508 esac
8509
8510 if test "x$lt_cv_dlopen" != xno; then
8511 enable_dlopen=yes
8512 else
8513 enable_dlopen=no
8514 fi
8515
8516 case $lt_cv_dlopen in
8517 dlopen)
8518 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008519 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008520
8521 save_LDFLAGS="$LDFLAGS"
8522 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8523
8524 save_LIBS="$LIBS"
8525 LIBS="$lt_cv_dlopen_libs $LIBS"
8526
8527 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8528echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8529if test "${lt_cv_dlopen_self+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
8532 if test "$cross_compiling" = yes; then :
8533 lt_cv_dlopen_self=cross
8534else
John Criswell47fdd832003-07-14 16:52:07 +00008535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008536 lt_status=$lt_dlunknown
8537 cat > conftest.$ac_ext <<EOF
John Criswell613758d2003-09-11 18:03:50 +00008538#line 8538 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008539#include "confdefs.h"
8540
8541#if HAVE_DLFCN_H
8542#include <dlfcn.h>
8543#endif
8544
8545#include <stdio.h>
8546
8547#ifdef RTLD_GLOBAL
8548# define LT_DLGLOBAL RTLD_GLOBAL
8549#else
8550# ifdef DL_GLOBAL
8551# define LT_DLGLOBAL DL_GLOBAL
8552# else
8553# define LT_DLGLOBAL 0
8554# endif
8555#endif
8556
8557/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8558 find out it does not work in some platform. */
8559#ifndef LT_DLLAZY_OR_NOW
8560# ifdef RTLD_LAZY
8561# define LT_DLLAZY_OR_NOW RTLD_LAZY
8562# else
8563# ifdef DL_LAZY
8564# define LT_DLLAZY_OR_NOW DL_LAZY
8565# else
8566# ifdef RTLD_NOW
8567# define LT_DLLAZY_OR_NOW RTLD_NOW
8568# else
8569# ifdef DL_NOW
8570# define LT_DLLAZY_OR_NOW DL_NOW
8571# else
8572# define LT_DLLAZY_OR_NOW 0
8573# endif
8574# endif
8575# endif
8576# endif
8577#endif
8578
8579#ifdef __cplusplus
8580extern "C" void exit (int);
8581#endif
8582
8583void fnord() { int i=42;}
8584int main ()
8585{
8586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8587 int status = $lt_dlunknown;
8588
8589 if (self)
8590 {
8591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8592 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8593 /* dlclose (self); */
8594 }
8595
8596 exit (status);
8597}
8598EOF
8599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600 (eval $ac_link) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8604 (./conftest; exit; ) 2>/dev/null
8605 lt_status=$?
8606 case x$lt_status in
8607 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8608 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8609 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8610 esac
8611 else :
8612 # compilation failed
8613 lt_cv_dlopen_self=no
8614 fi
8615fi
8616rm -fr conftest*
8617
8618
8619fi
8620echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8621echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8622
8623 if test "x$lt_cv_dlopen_self" = xyes; then
8624 LDFLAGS="$LDFLAGS $link_static_flag"
8625 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8626echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8627if test "${lt_cv_dlopen_self_static+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629else
8630 if test "$cross_compiling" = yes; then :
8631 lt_cv_dlopen_self_static=cross
8632else
John Criswell47fdd832003-07-14 16:52:07 +00008633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008634 lt_status=$lt_dlunknown
8635 cat > conftest.$ac_ext <<EOF
John Criswell613758d2003-09-11 18:03:50 +00008636#line 8636 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008637#include "confdefs.h"
8638
8639#if HAVE_DLFCN_H
8640#include <dlfcn.h>
8641#endif
8642
8643#include <stdio.h>
8644
8645#ifdef RTLD_GLOBAL
8646# define LT_DLGLOBAL RTLD_GLOBAL
8647#else
8648# ifdef DL_GLOBAL
8649# define LT_DLGLOBAL DL_GLOBAL
8650# else
8651# define LT_DLGLOBAL 0
8652# endif
8653#endif
8654
8655/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8656 find out it does not work in some platform. */
8657#ifndef LT_DLLAZY_OR_NOW
8658# ifdef RTLD_LAZY
8659# define LT_DLLAZY_OR_NOW RTLD_LAZY
8660# else
8661# ifdef DL_LAZY
8662# define LT_DLLAZY_OR_NOW DL_LAZY
8663# else
8664# ifdef RTLD_NOW
8665# define LT_DLLAZY_OR_NOW RTLD_NOW
8666# else
8667# ifdef DL_NOW
8668# define LT_DLLAZY_OR_NOW DL_NOW
8669# else
8670# define LT_DLLAZY_OR_NOW 0
8671# endif
8672# endif
8673# endif
8674# endif
8675#endif
8676
8677#ifdef __cplusplus
8678extern "C" void exit (int);
8679#endif
8680
8681void fnord() { int i=42;}
8682int main ()
8683{
8684 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8685 int status = $lt_dlunknown;
8686
8687 if (self)
8688 {
8689 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8690 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8691 /* dlclose (self); */
8692 }
8693
8694 exit (status);
8695}
8696EOF
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698 (eval $ac_link) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8702 (./conftest; exit; ) 2>/dev/null
8703 lt_status=$?
8704 case x$lt_status in
8705 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8706 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8707 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8708 esac
8709 else :
8710 # compilation failed
8711 lt_cv_dlopen_self_static=no
8712 fi
8713fi
8714rm -fr conftest*
8715
8716
8717fi
8718echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8719echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8720 fi
8721
8722 CPPFLAGS="$save_CPPFLAGS"
8723 LDFLAGS="$save_LDFLAGS"
8724 LIBS="$save_LIBS"
8725 ;;
8726 esac
8727
8728 case $lt_cv_dlopen_self in
8729 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8730 *) enable_dlopen_self=unknown ;;
8731 esac
8732
8733 case $lt_cv_dlopen_self_static in
8734 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8735 *) enable_dlopen_self_static=unknown ;;
8736 esac
8737fi
8738
8739
John Criswell47fdd832003-07-14 16:52:07 +00008740# Report which librarie types wil actually be built
8741echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8742echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8743echo "$as_me:$LINENO: result: $can_build_shared" >&5
8744echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008745
John Criswell47fdd832003-07-14 16:52:07 +00008746echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8747echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8748test "$can_build_shared" = "no" && enable_shared=no
8749
8750# On AIX, shared libraries and static libraries use the same namespace, and
8751# are all built from PIC.
8752case "$host_os" in
8753aix3*)
8754 test "$enable_shared" = yes && enable_static=no
8755 if test -n "$RANLIB"; then
8756 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8757 postinstall_cmds='$RANLIB $lib'
8758 fi
8759 ;;
8760
8761aix4*)
8762 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8763 test "$enable_shared" = yes && enable_static=no
8764 fi
8765 ;;
8766 darwin* | rhapsody*)
8767 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8768 archive_cmds_need_lc=no
8769 case "$host_os" in
8770 rhapsody* | darwin1.[012])
8771 allow_undefined_flag='-undefined suppress'
8772 ;;
8773 *) # Darwin 1.3 on
8774 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8775 ;;
8776 esac
8777 # FIXME: Relying on posixy $() will cause problems for
8778 # cross-compilation, but unfortunately the echo tests do not
8779 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8780 # `"' quotes if we put them in here... so don't!
8781 output_verbose_link_cmd='echo'
8782 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8783 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8784 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8785 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}'
8786 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}'
8787 hardcode_direct=no
8788 hardcode_automatic=yes
8789 hardcode_shlibpath_var=unsupported
8790 whole_archive_flag_spec='-all_load $convenience'
8791 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008792 fi
John Criswell7a73b802003-06-30 21:59:07 +00008793 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008794esac
8795echo "$as_me:$LINENO: result: $enable_shared" >&5
8796echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008797
John Criswell47fdd832003-07-14 16:52:07 +00008798echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8799echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8800# Make sure either enable_shared or enable_static is yes.
8801test "$enable_shared" = yes || enable_static=yes
8802echo "$as_me:$LINENO: result: $enable_static" >&5
8803echo "${ECHO_T}$enable_static" >&6
8804
8805# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008806# libtool distribution, otherwise you forgot to ship ltmain.sh
8807# with your package, and you will get complaints that there are
8808# no rules to generate ltmain.sh.
8809if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008810 # See if we are running on zsh, and set the options which allow our commands through
8811 # without removal of \ escapes.
8812 if test -n "${ZSH_VERSION+set}" ; then
8813 setopt NO_GLOB_SUBST
8814 fi
John Criswell7a73b802003-06-30 21:59:07 +00008815 # Now quote all the things that may contain metacharacters while being
8816 # careful not to overquote the AC_SUBSTed values. We take copies of the
8817 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008818 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8819 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8820 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8821 deplibs_check_method reload_flag reload_cmds need_locks \
8822 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8823 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008824 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008825 old_postinstall_cmds old_postuninstall_cmds \
8826 compiler \
8827 CC \
8828 LD \
8829 lt_prog_compiler_wl \
8830 lt_prog_compiler_pic \
8831 lt_prog_compiler_static \
8832 lt_prog_compiler_no_builtin_flag \
8833 export_dynamic_flag_spec \
8834 thread_safe_flag_spec \
8835 whole_archive_flag_spec \
8836 enable_shared_with_static_runtimes \
8837 old_archive_cmds \
8838 old_archive_from_new_cmds \
8839 predep_objects \
8840 postdep_objects \
8841 predeps \
8842 postdeps \
8843 compiler_lib_search_path \
8844 archive_cmds \
8845 archive_expsym_cmds \
8846 postinstall_cmds \
8847 postuninstall_cmds \
8848 old_archive_from_expsyms_cmds \
8849 allow_undefined_flag \
8850 no_undefined_flag \
8851 export_symbols_cmds \
8852 hardcode_libdir_flag_spec \
8853 hardcode_libdir_flag_spec_ld \
8854 hardcode_libdir_separator \
8855 hardcode_automatic \
8856 module_cmds \
8857 module_expsym_cmds \
8858 lt_cv_prog_compiler_c_o \
8859 exclude_expsyms \
8860 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008861
8862 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008863 old_archive_cmds | \
8864 old_archive_from_new_cmds | \
8865 archive_cmds | \
8866 archive_expsym_cmds | \
8867 module_cmds | \
8868 module_expsym_cmds | \
8869 old_archive_from_expsyms_cmds | \
8870 export_symbols_cmds | \
8871 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008872 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008873 old_postinstall_cmds | old_postuninstall_cmds | \
8874 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008875 # Double-quote double-evaled strings.
8876 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8877 ;;
8878 *)
8879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8880 ;;
8881 esac
8882 done
8883
John Criswell47fdd832003-07-14 16:52:07 +00008884 case $lt_echo in
8885 *'\$0 --fallback-echo"')
8886 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8887 ;;
8888 esac
8889
8890cfgfile="${ofile}T"
8891 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8892 $rm -f "$cfgfile"
8893 { echo "$as_me:$LINENO: creating $ofile" >&5
8894echo "$as_me: creating $ofile" >&6;}
8895
8896 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008897#! $SHELL
8898
John Criswell47fdd832003-07-14 16:52:07 +00008899# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008900# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8901# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8902#
John Criswell47fdd832003-07-14 16:52:07 +00008903# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8904# Free Software Foundation, Inc.
8905#
8906# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008907# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8908#
8909# This program is free software; you can redistribute it and/or modify
8910# it under the terms of the GNU General Public License as published by
8911# the Free Software Foundation; either version 2 of the License, or
8912# (at your option) any later version.
8913#
8914# This program is distributed in the hope that it will be useful, but
8915# WITHOUT ANY WARRANTY; without even the implied warranty of
8916# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8917# General Public License for more details.
8918#
8919# You should have received a copy of the GNU General Public License
8920# along with this program; if not, write to the Free Software
8921# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8922#
8923# As a special exception to the GNU General Public License, if you
8924# distribute this file as part of a program that contains a
8925# configuration script generated by Autoconf, you may include it under
8926# the same distribution terms that you use for the rest of that program.
8927
John Criswell47fdd832003-07-14 16:52:07 +00008928# A sed program that does not truncate output.
8929SED=$lt_SED
8930
John Criswell7a73b802003-06-30 21:59:07 +00008931# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008932Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008933
8934# The HP-UX ksh and POSIX shell print the target directory to stdout
8935# if CDPATH is set.
8936if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8937
John Criswell47fdd832003-07-14 16:52:07 +00008938# The names of the tagged configurations supported by this script.
8939available_tags=
8940
John Criswell7a73b802003-06-30 21:59:07 +00008941# ### BEGIN LIBTOOL CONFIG
8942
8943# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8944
8945# Shell to use when invoking shell scripts.
8946SHELL=$lt_SHELL
8947
8948# Whether or not to build shared libraries.
8949build_libtool_libs=$enable_shared
8950
8951# Whether or not to build static libraries.
8952build_old_libs=$enable_static
8953
8954# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008955build_libtool_need_lc=$archive_cmds_need_lc
8956
8957# Whether or not to disallow shared libs when runtime libs are static
8958allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008959
8960# Whether or not to optimize for fast installation.
8961fast_install=$enable_fast_install
8962
8963# The host system.
8964host_alias=$host_alias
8965host=$host
8966
8967# An echo program that does not interpret backslashes.
8968echo=$lt_echo
8969
8970# The archiver.
8971AR=$lt_AR
8972AR_FLAGS=$lt_AR_FLAGS
8973
John Criswell47fdd832003-07-14 16:52:07 +00008974# A C compiler.
8975LTCC=$lt_LTCC
8976
8977# A language-specific compiler.
8978CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008979
8980# Is the compiler the GNU C compiler?
8981with_gcc=$GCC
8982
John Criswell47fdd832003-07-14 16:52:07 +00008983# An ERE matcher.
8984EGREP=$lt_EGREP
8985
John Criswell7a73b802003-06-30 21:59:07 +00008986# The linker used to build libraries.
8987LD=$lt_LD
8988
8989# Whether we need hard or soft links.
8990LN_S=$lt_LN_S
8991
8992# A BSD-compatible nm program.
8993NM=$lt_NM
8994
8995# A symbol stripping program
8996STRIP=$STRIP
8997
8998# Used to examine libraries when file_magic_cmd begins "file"
8999MAGIC_CMD=$MAGIC_CMD
9000
9001# Used on cygwin: DLL creation program.
9002DLLTOOL="$DLLTOOL"
9003
9004# Used on cygwin: object dumper.
9005OBJDUMP="$OBJDUMP"
9006
9007# Used on cygwin: assembler.
9008AS="$AS"
9009
9010# The name of the directory that contains temporary libtool files.
9011objdir=$objdir
9012
9013# How to create reloadable object files.
9014reload_flag=$lt_reload_flag
9015reload_cmds=$lt_reload_cmds
9016
9017# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009018wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009019
9020# Object file suffix (normally "o").
9021objext="$ac_objext"
9022
9023# Old archive suffix (normally "a").
9024libext="$libext"
9025
John Criswell47fdd832003-07-14 16:52:07 +00009026# Shared library suffix (normally ".so").
9027shrext='$shrext'
9028
John Criswell7a73b802003-06-30 21:59:07 +00009029# Executable file suffix (normally "").
9030exeext="$exeext"
9031
9032# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009033pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009034pic_mode=$pic_mode
9035
John Criswell47fdd832003-07-14 16:52:07 +00009036# What is the maximum length of a command?
9037max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009038
John Criswell47fdd832003-07-14 16:52:07 +00009039# Does compiler simultaneously support -c and -o options?
9040compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009041
9042# Must we lock files when doing compilation ?
9043need_locks=$lt_need_locks
9044
9045# Do we need the lib prefix for modules?
9046need_lib_prefix=$need_lib_prefix
9047
9048# Do we need a version for libraries?
9049need_version=$need_version
9050
9051# Whether dlopen is supported.
9052dlopen_support=$enable_dlopen
9053
9054# Whether dlopen of programs is supported.
9055dlopen_self=$enable_dlopen_self
9056
9057# Whether dlopen of statically linked programs is supported.
9058dlopen_self_static=$enable_dlopen_self_static
9059
9060# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009061link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009062
9063# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009064no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009065
9066# Compiler flag to allow reflexive dlopens.
9067export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9068
9069# Compiler flag to generate shared objects directly from archives.
9070whole_archive_flag_spec=$lt_whole_archive_flag_spec
9071
9072# Compiler flag to generate thread-safe objects.
9073thread_safe_flag_spec=$lt_thread_safe_flag_spec
9074
9075# Library versioning type.
9076version_type=$version_type
9077
9078# Format of library name prefix.
9079libname_spec=$lt_libname_spec
9080
9081# List of archive names. First name is the real one, the rest are links.
9082# The last name is the one that the linker finds with -lNAME.
9083library_names_spec=$lt_library_names_spec
9084
9085# The coded name of the library, if different from the real name.
9086soname_spec=$lt_soname_spec
9087
9088# Commands used to build and install an old-style archive.
9089RANLIB=$lt_RANLIB
9090old_archive_cmds=$lt_old_archive_cmds
9091old_postinstall_cmds=$lt_old_postinstall_cmds
9092old_postuninstall_cmds=$lt_old_postuninstall_cmds
9093
9094# Create an old-style archive from a shared archive.
9095old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9096
9097# Create a temporary old-style archive to link instead of a shared archive.
9098old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9099
9100# Commands used to build and install a shared archive.
9101archive_cmds=$lt_archive_cmds
9102archive_expsym_cmds=$lt_archive_expsym_cmds
9103postinstall_cmds=$lt_postinstall_cmds
9104postuninstall_cmds=$lt_postuninstall_cmds
9105
John Criswell47fdd832003-07-14 16:52:07 +00009106# Commands used to build a loadable module (assumed same as above if empty)
9107module_cmds=$lt_module_cmds
9108module_expsym_cmds=$lt_module_expsym_cmds
9109
John Criswell7a73b802003-06-30 21:59:07 +00009110# Commands to strip libraries.
9111old_striplib=$lt_old_striplib
9112striplib=$lt_striplib
9113
John Criswell47fdd832003-07-14 16:52:07 +00009114# Dependencies to place before the objects being linked to create a
9115# shared library.
9116predep_objects=$lt_predep_objects
9117
9118# Dependencies to place after the objects being linked to create a
9119# shared library.
9120postdep_objects=$lt_postdep_objects
9121
9122# Dependencies to place before the objects being linked to create a
9123# shared library.
9124predeps=$lt_predeps
9125
9126# Dependencies to place after the objects being linked to create a
9127# shared library.
9128postdeps=$lt_postdeps
9129
9130# The library search path used internally by the compiler when linking
9131# a shared library.
9132compiler_lib_search_path=$lt_compiler_lib_search_path
9133
John Criswell7a73b802003-06-30 21:59:07 +00009134# Method to check whether dependent libraries are shared objects.
9135deplibs_check_method=$lt_deplibs_check_method
9136
9137# Command to use when deplibs_check_method == file_magic.
9138file_magic_cmd=$lt_file_magic_cmd
9139
9140# Flag that allows shared libraries with undefined symbols to be built.
9141allow_undefined_flag=$lt_allow_undefined_flag
9142
9143# Flag that forces no undefined symbols.
9144no_undefined_flag=$lt_no_undefined_flag
9145
9146# Commands used to finish a libtool library installation in a directory.
9147finish_cmds=$lt_finish_cmds
9148
9149# Same as above, but a single script fragment to be evaled but not shown.
9150finish_eval=$lt_finish_eval
9151
9152# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009153global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009154
9155# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009156global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009157
9158# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009159global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009160
9161# This is the shared library runtime path variable.
9162runpath_var=$runpath_var
9163
9164# This is the shared library path variable.
9165shlibpath_var=$shlibpath_var
9166
9167# Is shlibpath searched before the hard-coded library search path?
9168shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9169
9170# How to hardcode a shared library path into an executable.
9171hardcode_action=$hardcode_action
9172
9173# Whether we should hardcode library paths into libraries.
9174hardcode_into_libs=$hardcode_into_libs
9175
9176# Flag to hardcode \$libdir into a binary during linking.
9177# This must work even if \$libdir does not exist.
9178hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9179
John Criswell47fdd832003-07-14 16:52:07 +00009180# If ld is used when linking, flag to hardcode \$libdir into
9181# a binary during linking. This must work even if \$libdir does
9182# not exist.
9183hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9184
John Criswell7a73b802003-06-30 21:59:07 +00009185# Whether we need a single -rpath flag with a separated argument.
9186hardcode_libdir_separator=$lt_hardcode_libdir_separator
9187
John Criswell47fdd832003-07-14 16:52:07 +00009188# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009189# resulting binary.
9190hardcode_direct=$hardcode_direct
9191
9192# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9193# resulting binary.
9194hardcode_minus_L=$hardcode_minus_L
9195
9196# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9197# the resulting binary.
9198hardcode_shlibpath_var=$hardcode_shlibpath_var
9199
John Criswell47fdd832003-07-14 16:52:07 +00009200# Set to yes if building a shared library automatically hardcodes DIR into the library
9201# and all subsequent libraries and executables linked against it.
9202hardcode_automatic=$hardcode_automatic
9203
John Criswell7a73b802003-06-30 21:59:07 +00009204# Variables whose values should be saved in libtool wrapper scripts and
9205# restored at relink time.
9206variables_saved_for_relink="$variables_saved_for_relink"
9207
9208# Whether libtool must link a program against all its dependency libraries.
9209link_all_deplibs=$link_all_deplibs
9210
9211# Compile-time system search path for libraries
9212sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9213
9214# Run-time system search path for libraries
9215sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9216
9217# Fix the shell variable \$srcfile for the compiler.
9218fix_srcfile_path="$fix_srcfile_path"
9219
9220# Set to yes if exported symbols are required.
9221always_export_symbols=$always_export_symbols
9222
9223# The commands to list exported symbols.
9224export_symbols_cmds=$lt_export_symbols_cmds
9225
9226# The commands to extract the exported symbol list from a shared archive.
9227extract_expsyms_cmds=$lt_extract_expsyms_cmds
9228
9229# Symbols that should not be listed in the preloaded symbols.
9230exclude_expsyms=$lt_exclude_expsyms
9231
9232# Symbols that must always be exported.
9233include_expsyms=$lt_include_expsyms
9234
9235# ### END LIBTOOL CONFIG
9236
9237__EOF__
9238
John Criswell47fdd832003-07-14 16:52:07 +00009239
John Criswell7a73b802003-06-30 21:59:07 +00009240 case $host_os in
9241 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009242 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009243
9244# AIX sometimes has problems with the GCC collect2 program. For some
9245# reason, if we set the COLLECT_NAMES environment variable, the problems
9246# vanish in a puff of smoke.
9247if test "X${COLLECT_NAMES+set}" != Xset; then
9248 COLLECT_NAMES=
9249 export COLLECT_NAMES
9250fi
9251EOF
9252 ;;
9253 esac
9254
John Criswell7a73b802003-06-30 21:59:07 +00009255 # We use sed instead of cat because bash on DJGPP gets confused if
9256 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9257 # text mode, it properly converts lines to CR/LF. This bash problem
9258 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009259 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009260
John Criswell47fdd832003-07-14 16:52:07 +00009261 mv -f "$cfgfile" "$ofile" || \
9262 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009263 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009264
9265else
9266 # If there is no Makefile yet, we rely on a make rule to execute
9267 # `config.status --recheck' to rerun these tests and create the
9268 # libtool script then.
9269 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009270fi
John Criswell7a73b802003-06-30 21:59:07 +00009271
9272
John Criswell47fdd832003-07-14 16:52:07 +00009273ac_ext=c
9274ac_cpp='$CPP $CPPFLAGS'
9275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9277ac_compiler_gnu=$ac_cv_c_compiler_gnu
9278
9279CC="$lt_save_CC"
9280
9281
9282# Check whether --with-tags or --without-tags was given.
9283if test "${with_tags+set}" = set; then
9284 withval="$with_tags"
9285 tagnames="$withval"
9286fi;
9287
9288if test -f "$ltmain" && test -n "$tagnames"; then
9289 if test ! -f "${ofile}"; then
9290 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9291echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9292 fi
9293
9294 if test -z "$LTCC"; then
9295 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9296 if test -z "$LTCC"; then
9297 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9298echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9299 else
9300 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9301echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9302 fi
9303 fi
9304
9305 # Extract list of available tagged configurations in $ofile.
9306 # Note that this assumes the entire list is on one line.
9307 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9308
9309 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9310 for tagname in $tagnames; do
9311 IFS="$lt_save_ifs"
9312 # Check whether tagname contains only valid characters
9313 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9314 "") ;;
9315 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9316echo "$as_me: error: invalid tag name: $tagname" >&2;}
9317 { (exit 1); exit 1; }; }
9318 ;;
9319 esac
9320
9321 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9322 then
9323 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9324echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9325 { (exit 1); exit 1; }; }
9326 fi
9327
9328 # Update the list of available tags.
9329 if test -n "$tagname"; then
9330 echo appending configuration tag \"$tagname\" to $ofile
9331
9332 case $tagname in
9333 CXX)
9334 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9335 ac_ext=cc
9336ac_cpp='$CXXCPP $CPPFLAGS'
9337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9340
9341
9342
9343
9344archive_cmds_need_lc_CXX=no
9345allow_undefined_flag_CXX=
9346always_export_symbols_CXX=no
9347archive_expsym_cmds_CXX=
9348export_dynamic_flag_spec_CXX=
9349hardcode_direct_CXX=no
9350hardcode_libdir_flag_spec_CXX=
9351hardcode_libdir_flag_spec_ld_CXX=
9352hardcode_libdir_separator_CXX=
9353hardcode_minus_L_CXX=no
9354hardcode_automatic_CXX=no
9355module_cmds_CXX=
9356module_expsym_cmds_CXX=
9357link_all_deplibs_CXX=unknown
9358old_archive_cmds_CXX=$old_archive_cmds
9359no_undefined_flag_CXX=
9360whole_archive_flag_spec_CXX=
9361enable_shared_with_static_runtimes_CXX=no
9362
9363# Dependencies to place before and after the object being linked:
9364predep_objects_CXX=
9365postdep_objects_CXX=
9366predeps_CXX=
9367postdeps_CXX=
9368compiler_lib_search_path_CXX=
9369
9370# Source file extension for C++ test sources.
9371ac_ext=cc
9372
9373# Object file extension for compiled C++ test sources.
9374objext=o
9375objext_CXX=$objext
9376
9377# Code to be used in simple compile tests
9378lt_simple_compile_test_code="int some_variable = 0;\n"
9379
9380# Code to be used in simple link tests
9381lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9382
9383# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9384
9385# If no C compiler was specified, use CC.
9386LTCC=${LTCC-"$CC"}
9387
9388# Allow CC to be a program name with arguments.
9389compiler=$CC
9390
9391
9392# Allow CC to be a program name with arguments.
9393lt_save_CC=$CC
9394lt_save_LD=$LD
9395lt_save_GCC=$GCC
9396GCC=$GXX
9397lt_save_with_gnu_ld=$with_gnu_ld
9398lt_save_path_LD=$lt_cv_path_LD
9399if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9400 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9401else
9402 unset lt_cv_prog_gnu_ld
9403fi
9404if test -n "${lt_cv_path_LDCXX+set}"; then
9405 lt_cv_path_LD=$lt_cv_path_LDCXX
9406else
9407 unset lt_cv_path_LD
9408fi
9409test -z "${LDCXX+set}" || LD=$LDCXX
9410CC=${CXX-"c++"}
9411compiler=$CC
9412compiler_CXX=$CC
9413cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9414
9415# We don't want -fno-exception wen compiling C++ code, so set the
9416# no_builtin_flag separately
9417if test "$GXX" = yes; then
9418 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9419else
9420 lt_prog_compiler_no_builtin_flag_CXX=
9421fi
9422
9423if test "$GXX" = yes; then
9424 # Set up default GNU C++ configuration
9425
9426
9427# Check whether --with-gnu-ld or --without-gnu-ld was given.
9428if test "${with_gnu_ld+set}" = set; then
9429 withval="$with_gnu_ld"
9430 test "$withval" = no || with_gnu_ld=yes
9431else
9432 with_gnu_ld=no
9433fi;
9434ac_prog=ld
9435if test "$GCC" = yes; then
9436 # Check if gcc -print-prog-name=ld gives a path.
9437 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9438echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9439 case $host in
9440 *-*-mingw*)
9441 # gcc leaves a trailing carriage return which upsets mingw
9442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9443 *)
9444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9445 esac
9446 case $ac_prog in
9447 # Accept absolute paths.
9448 [\\/]* | ?:[\\/]*)
9449 re_direlt='/[^/][^/]*/\.\./'
9450 # Canonicalize the path of ld
9451 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9452 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9453 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9454 done
9455 test -z "$LD" && LD="$ac_prog"
9456 ;;
9457 "")
9458 # If it fails, then pretend we aren't using GCC.
9459 ac_prog=ld
9460 ;;
9461 *)
9462 # If it is relative, then search for the first ld in PATH.
9463 with_gnu_ld=unknown
9464 ;;
9465 esac
9466elif test "$with_gnu_ld" = yes; then
9467 echo "$as_me:$LINENO: checking for GNU ld" >&5
9468echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9469else
9470 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9471echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9472fi
9473if test "${lt_cv_path_LD+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476 if test -z "$LD"; then
9477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9478 for ac_dir in $PATH; do
9479 IFS="$lt_save_ifs"
9480 test -z "$ac_dir" && ac_dir=.
9481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9482 lt_cv_path_LD="$ac_dir/$ac_prog"
9483 # Check to see if the program is GNU ld. I'd rather use --version,
9484 # but apparently some GNU ld's only accept -v.
9485 # Break only if it was the GNU/non-GNU ld that we prefer.
9486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9487 *GNU* | *'with BFD'*)
9488 test "$with_gnu_ld" != no && break
9489 ;;
9490 *)
9491 test "$with_gnu_ld" != yes && break
9492 ;;
9493 esac
9494 fi
9495 done
9496 IFS="$lt_save_ifs"
9497else
9498 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9499fi
9500fi
9501
9502LD="$lt_cv_path_LD"
9503if test -n "$LD"; then
9504 echo "$as_me:$LINENO: result: $LD" >&5
9505echo "${ECHO_T}$LD" >&6
9506else
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
9509fi
9510test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9511echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9512 { (exit 1); exit 1; }; }
9513echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9514echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9515if test "${lt_cv_prog_gnu_ld+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9519case `"$LD" -v 2>&1 </dev/null` in
9520*GNU* | *'with BFD'*)
9521 lt_cv_prog_gnu_ld=yes
9522 ;;
9523*)
9524 lt_cv_prog_gnu_ld=no
9525 ;;
9526esac
9527fi
9528echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9529echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9530with_gnu_ld=$lt_cv_prog_gnu_ld
9531
9532
9533
9534 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9535 # archiving commands below assume that GNU ld is being used.
9536 if test "$with_gnu_ld" = yes; then
9537 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538 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'
9539
9540 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9541 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9542
9543 # If archive_cmds runs LD, not CC, wlarc should be empty
9544 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9545 # investigate it a little bit more. (MM)
9546 wlarc='${wl}'
9547
9548 # ancient GNU ld didn't support --whole-archive et. al.
9549 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9550 grep 'no-whole-archive' > /dev/null; then
9551 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9552 else
9553 whole_archive_flag_spec_CXX=
9554 fi
9555 else
9556 with_gnu_ld=no
9557 wlarc=
9558
9559 # A generic and very simple default shared library creation
9560 # command for GNU C++ for the case where it uses the native
9561 # linker, instead of GNU ld. If possible, this setting should
9562 # overridden to take advantage of the native linker features on
9563 # the platform it is being used on.
9564 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9565 fi
9566
9567 # Commands to make compiler produce verbose output that lists
9568 # what "hidden" libraries, object files and flags are used when
9569 # linking a shared library.
9570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9571
9572else
9573 GXX=no
9574 with_gnu_ld=no
9575 wlarc=
9576fi
9577
9578# PORTME: fill in a description of your system's C++ link characteristics
9579echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9580echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9581ld_shlibs_CXX=yes
9582case $host_os in
9583 aix3*)
9584 # FIXME: insert proper C++ library support
9585 ld_shlibs_CXX=no
9586 ;;
9587 aix4* | aix5*)
9588 if test "$host_cpu" = ia64; then
9589 # On IA64, the linker does run time linking by default, so we don't
9590 # have to do anything special.
9591 aix_use_runtimelinking=no
9592 exp_sym_flag='-Bexport'
9593 no_entry_flag=""
9594 else
9595 aix_use_runtimelinking=no
9596
9597 # Test if we are trying to use run time linking or normal
9598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9599 # need to do runtime linking.
9600 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9601 for ld_flag in $LDFLAGS; do
9602 case $ld_flag in
9603 *-brtl*)
9604 aix_use_runtimelinking=yes
9605 break
9606 ;;
9607 esac
9608 done
9609 esac
9610
9611 exp_sym_flag='-bexport'
9612 no_entry_flag='-bnoentry'
9613 fi
9614
9615 # When large executables or shared objects are built, AIX ld can
9616 # have problems creating the table of contents. If linking a library
9617 # or program results in "error TOC overflow" add -mminimal-toc to
9618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9620
9621 archive_cmds_CXX=''
9622 hardcode_direct_CXX=yes
9623 hardcode_libdir_separator_CXX=':'
9624 link_all_deplibs_CXX=yes
9625
9626 if test "$GXX" = yes; then
9627 case $host_os in aix4.012|aix4.012.*)
9628 # We only want to do this on AIX 4.2 and lower, the check
9629 # below for broken collect2 doesn't work under 4.3+
9630 collect2name=`${CC} -print-prog-name=collect2`
9631 if test -f "$collect2name" && \
9632 strings "$collect2name" | grep resolve_lib_name >/dev/null
9633 then
9634 # We have reworked collect2
9635 hardcode_direct_CXX=yes
9636 else
9637 # We have old collect2
9638 hardcode_direct_CXX=unsupported
9639 # It fails to find uninstalled libraries when the uninstalled
9640 # path is not listed in the libpath. Setting hardcode_minus_L
9641 # to unsupported forces relinking
9642 hardcode_minus_L_CXX=yes
9643 hardcode_libdir_flag_spec_CXX='-L$libdir'
9644 hardcode_libdir_separator_CXX=
9645 fi
9646 esac
9647 shared_flag='-shared'
9648 else
9649 # not using gcc
9650 if test "$host_cpu" = ia64; then
9651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9652 # chokes on -Wl,-G. The following line is correct:
9653 shared_flag='-G'
9654 else
9655 if test "$aix_use_runtimelinking" = yes; then
9656 shared_flag='${wl}-G'
9657 else
9658 shared_flag='${wl}-bM:SRE'
9659 fi
9660 fi
9661 fi
9662
9663 # It seems that -bexpall does not export symbols beginning with
9664 # underscore (_), so it is better to generate a list of symbols to export.
9665 always_export_symbols_CXX=yes
9666 if test "$aix_use_runtimelinking" = yes; then
9667 # Warning - without using the other runtime loading flags (-brtl),
9668 # -berok will link without error, but may produce a broken library.
9669 allow_undefined_flag_CXX='-berok'
9670 # Determine the default libpath from the value encoded in an empty executable.
9671 cat >conftest.$ac_ext <<_ACEOF
9672#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009673/* confdefs.h. */
9674_ACEOF
9675cat confdefs.h >>conftest.$ac_ext
9676cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009678
John Criswell47fdd832003-07-14 16:52:07 +00009679int
9680main ()
9681{
9682
9683 ;
9684 return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
9688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699
9700aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9701}'`
9702# Check for a 64-bit object if we didn't find anything.
9703if 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; }
9704}'`; fi
9705else
9706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009707sed 's/^/| /' conftest.$ac_ext >&5
9708
John Criswell47fdd832003-07-14 16:52:07 +00009709fi
9710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9712
9713 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9714
9715 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"
9716 else
9717 if test "$host_cpu" = ia64; then
9718 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9719 allow_undefined_flag_CXX="-z nodefs"
9720 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"
9721 else
9722 # Determine the default libpath from the value encoded in an empty executable.
9723 cat >conftest.$ac_ext <<_ACEOF
9724#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009730
John Criswell47fdd832003-07-14 16:52:07 +00009731int
9732main ()
9733{
9734
9735 ;
9736 return 0;
9737}
9738_ACEOF
9739rm -f conftest.$ac_objext conftest$ac_exeext
9740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest$ac_exeext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751
9752aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9753}'`
9754# Check for a 64-bit object if we didn't find anything.
9755if 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; }
9756}'`; fi
9757else
9758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009759sed 's/^/| /' conftest.$ac_ext >&5
9760
John Criswell47fdd832003-07-14 16:52:07 +00009761fi
9762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9766 # Warning - without using the other run time loading flags,
9767 # -berok will link without error, but may produce a broken library.
9768 no_undefined_flag_CXX=' ${wl}-bernotok'
9769 allow_undefined_flag_CXX=' ${wl}-berok'
9770 # -bexpall does not export symbols beginning with underscore (_)
9771 always_export_symbols_CXX=yes
9772 # Exported symbols can be pulled into shared objects from archives
9773 whole_archive_flag_spec_CXX=' '
9774 archive_cmds_need_lc_CXX=yes
9775 # This is similar to how AIX traditionally builds it's shared libraries.
9776 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'
9777 fi
9778 fi
9779 ;;
9780 chorus*)
9781 case $cc_basename in
9782 *)
9783 # FIXME: insert proper C++ library support
9784 ld_shlibs_CXX=no
9785 ;;
9786 esac
9787 ;;
9788
9789 cygwin* | mingw* | pw32*)
9790 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9791 # as there is no search path for DLLs.
9792 hardcode_libdir_flag_spec_CXX='-L$libdir'
9793 allow_undefined_flag_CXX=unsupported
9794 always_export_symbols_CXX=no
9795 enable_shared_with_static_runtimes_CXX=yes
9796
9797 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9798 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'
9799 # If the export-symbols file already is a .def file (1st line
9800 # is EXPORTS), use it as is; otherwise, prepend...
9801 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9802 cp $export_symbols $output_objdir/$soname.def;
9803 else
9804 echo EXPORTS > $output_objdir/$soname.def;
9805 cat $export_symbols >> $output_objdir/$soname.def;
9806 fi~
9807 $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'
9808 else
9809 ld_shlibs_CXX=no
9810 fi
9811 ;;
9812
9813 darwin* | rhapsody*)
9814 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9815 archive_cmds_need_lc_CXX=no
9816 case "$host_os" in
9817 rhapsody* | darwin1.[012])
9818 allow_undefined_flag_CXX='-undefined suppress'
9819 ;;
9820 *) # Darwin 1.3 on
9821 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9822 ;;
9823 esac
9824 lt_int_apple_cc_single_mod=no
9825 output_verbose_link_cmd='echo'
9826 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9827 lt_int_apple_cc_single_mod=yes
9828 fi
9829 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9830 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9831 else
9832 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'
9833 fi
9834 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9835
9836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9837 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9838 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}'
9839 else
9840 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}'
9841 fi
9842 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}'
9843 hardcode_direct_CXX=no
9844 hardcode_automatic_CXX=yes
9845 hardcode_shlibpath_var_CXX=unsupported
9846 whole_archive_flag_spec_CXX='-all_load $convenience'
9847 link_all_deplibs_CXX=yes
9848 fi
9849 ;;
9850
9851 dgux*)
9852 case $cc_basename in
9853 ec++)
9854 # FIXME: insert proper C++ library support
9855 ld_shlibs_CXX=no
9856 ;;
9857 ghcx)
9858 # Green Hills C++ Compiler
9859 # FIXME: insert proper C++ library support
9860 ld_shlibs_CXX=no
9861 ;;
9862 *)
9863 # FIXME: insert proper C++ library support
9864 ld_shlibs_CXX=no
9865 ;;
9866 esac
9867 ;;
9868 freebsd12*)
9869 # C++ shared libraries reported to be fairly broken before switch to ELF
9870 ld_shlibs_CXX=no
9871 ;;
9872 freebsd-elf*)
9873 archive_cmds_need_lc_CXX=no
9874 ;;
9875 freebsd*)
9876 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9877 # conventions
9878 ld_shlibs_CXX=yes
9879 ;;
9880 gnu*)
9881 ;;
9882 hpux9*)
9883 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9884 hardcode_libdir_separator_CXX=:
9885 export_dynamic_flag_spec_CXX='${wl}-E'
9886 hardcode_direct_CXX=yes
9887 hardcode_minus_L_CXX=yes # Not in the search PATH,
9888 # but as the default
9889 # location of the library.
9890
9891 case $cc_basename in
9892 CC)
9893 # FIXME: insert proper C++ library support
9894 ld_shlibs_CXX=no
9895 ;;
9896 aCC)
9897 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'
9898 # Commands to make compiler produce verbose output that lists
9899 # what "hidden" libraries, object files and flags are used when
9900 # linking a shared library.
9901 #
9902 # There doesn't appear to be a way to prevent this compiler from
9903 # explicitly linking system object files so we need to strip them
9904 # from the output so that they don't get included in the library
9905 # dependencies.
9906 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'
9907 ;;
9908 *)
9909 if test "$GXX" = yes; then
9910 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'
9911 else
9912 # FIXME: insert proper C++ library support
9913 ld_shlibs_CXX=no
9914 fi
9915 ;;
9916 esac
9917 ;;
9918 hpux10*|hpux11*)
9919 if test $with_gnu_ld = no; then
9920 case "$host_cpu" in
9921 hppa*64*)
9922 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9923 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9924 hardcode_libdir_separator_CXX=:
9925 ;;
9926 ia64*)
9927 hardcode_libdir_flag_spec_CXX='-L$libdir'
9928 ;;
9929 *)
9930 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9931 hardcode_libdir_separator_CXX=:
9932 export_dynamic_flag_spec_CXX='${wl}-E'
9933 ;;
9934 esac
9935 fi
9936 case "$host_cpu" in
9937 hppa*64*)
9938 hardcode_direct_CXX=no
9939 hardcode_shlibpath_var_CXX=no
9940 ;;
9941 ia64*)
9942 hardcode_direct_CXX=no
9943 hardcode_shlibpath_var_CXX=no
9944 hardcode_minus_L_CXX=yes # Not in the search PATH,
9945 # but as the default
9946 # location of the library.
9947 ;;
9948 *)
9949 hardcode_direct_CXX=yes
9950 hardcode_minus_L_CXX=yes # Not in the search PATH,
9951 # but as the default
9952 # location of the library.
9953 ;;
9954 esac
9955
9956 case $cc_basename in
9957 CC)
9958 # FIXME: insert proper C++ library support
9959 ld_shlibs_CXX=no
9960 ;;
9961 aCC)
9962 case "$host_cpu" in
9963 hppa*64*|ia64*)
9964 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9965 ;;
9966 *)
9967 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9968 ;;
9969 esac
9970 # Commands to make compiler produce verbose output that lists
9971 # what "hidden" libraries, object files and flags are used when
9972 # linking a shared library.
9973 #
9974 # There doesn't appear to be a way to prevent this compiler from
9975 # explicitly linking system object files so we need to strip them
9976 # from the output so that they don't get included in the library
9977 # dependencies.
9978 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'
9979 ;;
9980 *)
9981 if test "$GXX" = yes; then
9982 if test $with_gnu_ld = no; then
9983 case "$host_cpu" in
9984 ia64*|hppa*64*)
9985 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9986 ;;
9987 *)
9988 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'
9989 ;;
9990 esac
9991 fi
9992 else
9993 # FIXME: insert proper C++ library support
9994 ld_shlibs_CXX=no
9995 fi
9996 ;;
9997 esac
9998 ;;
9999 irix5* | irix6*)
10000 case $cc_basename in
10001 CC)
10002 # SGI C++
10003 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'
10004
10005 # Archives containing C++ object files must be created using
10006 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10007 # necessary to make sure instantiated templates are included
10008 # in the archive.
10009 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10010 ;;
10011 *)
10012 if test "$GXX" = yes; then
10013 if test "$with_gnu_ld" = no; then
10014 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'
10015 else
10016 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'
10017 fi
10018 fi
10019 link_all_deplibs_CXX=yes
10020 ;;
10021 esac
10022 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10023 hardcode_libdir_separator_CXX=:
10024 ;;
10025 linux*)
10026 case $cc_basename in
10027 KCC)
10028 # Kuck and Associates, Inc. (KAI) C++ Compiler
10029
10030 # KCC will only create a shared library if the output file
10031 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10032 # to its proper name (with version) after linking.
10033 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'
10034 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'
10035 # Commands to make compiler produce verbose output that lists
10036 # what "hidden" libraries, object files and flags are used when
10037 # linking a shared library.
10038 #
10039 # There doesn't appear to be a way to prevent this compiler from
10040 # explicitly linking system object files so we need to strip them
10041 # from the output so that they don't get included in the library
10042 # dependencies.
10043 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'
10044
10045 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10047
10048 # Archives containing C++ object files must be created using
10049 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10050 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10051 ;;
10052 icpc)
10053 # Intel C++
10054 with_gnu_ld=yes
10055 archive_cmds_need_lc_CXX=no
10056 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 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'
10058 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10060 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10061 ;;
10062 cxx)
10063 # Compaq C++
10064 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10065 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'
10066
10067 runpath_var=LD_RUN_PATH
10068 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10069 hardcode_libdir_separator_CXX=:
10070
10071 # Commands to make compiler produce verbose output that lists
10072 # what "hidden" libraries, object files and flags are used when
10073 # linking a shared library.
10074 #
10075 # There doesn't appear to be a way to prevent this compiler from
10076 # explicitly linking system object files so we need to strip them
10077 # from the output so that they don't get included in the library
10078 # dependencies.
10079 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'
10080 ;;
10081 esac
10082 ;;
10083 lynxos*)
10084 # FIXME: insert proper C++ library support
10085 ld_shlibs_CXX=no
10086 ;;
10087 m88k*)
10088 # FIXME: insert proper C++ library support
10089 ld_shlibs_CXX=no
10090 ;;
10091 mvs*)
10092 case $cc_basename in
10093 cxx)
10094 # FIXME: insert proper C++ library support
10095 ld_shlibs_CXX=no
10096 ;;
10097 *)
10098 # FIXME: insert proper C++ library support
10099 ld_shlibs_CXX=no
10100 ;;
10101 esac
10102 ;;
10103 netbsd*)
10104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10105 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10106 wlarc=
10107 hardcode_libdir_flag_spec_CXX='-R$libdir'
10108 hardcode_direct_CXX=yes
10109 hardcode_shlibpath_var_CXX=no
10110 fi
10111 # Workaround some broken pre-1.5 toolchains
10112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10113 ;;
10114 osf3*)
10115 case $cc_basename in
10116 KCC)
10117 # Kuck and Associates, Inc. (KAI) C++ Compiler
10118
10119 # KCC will only create a shared library if the output file
10120 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10121 # to its proper name (with version) after linking.
10122 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'
10123
10124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10125 hardcode_libdir_separator_CXX=:
10126
10127 # Archives containing C++ object files must be created using
10128 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10129 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10130
10131 ;;
10132 RCC)
10133 # Rational C++ 2.4.1
10134 # FIXME: insert proper C++ library support
10135 ld_shlibs_CXX=no
10136 ;;
10137 cxx)
10138 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10139 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'
10140
10141 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10142 hardcode_libdir_separator_CXX=:
10143
10144 # Commands to make compiler produce verbose output that lists
10145 # what "hidden" libraries, object files and flags are used when
10146 # linking a shared library.
10147 #
10148 # There doesn't appear to be a way to prevent this compiler from
10149 # explicitly linking system object files so we need to strip them
10150 # from the output so that they don't get included in the library
10151 # dependencies.
10152 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'
10153 ;;
10154 *)
10155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10156 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10157 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'
10158
10159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10160 hardcode_libdir_separator_CXX=:
10161
10162 # Commands to make compiler produce verbose output that lists
10163 # what "hidden" libraries, object files and flags are used when
10164 # linking a shared library.
10165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10166
10167 else
10168 # FIXME: insert proper C++ library support
10169 ld_shlibs_CXX=no
10170 fi
10171 ;;
10172 esac
10173 ;;
10174 osf4* | osf5*)
10175 case $cc_basename in
10176 KCC)
10177 # Kuck and Associates, Inc. (KAI) C++ Compiler
10178
10179 # KCC will only create a shared library if the output file
10180 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10181 # to its proper name (with version) after linking.
10182 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'
10183
10184 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10185 hardcode_libdir_separator_CXX=:
10186
10187 # Archives containing C++ object files must be created using
10188 # the KAI C++ compiler.
10189 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10190 ;;
10191 RCC)
10192 # Rational C++ 2.4.1
10193 # FIXME: insert proper C++ library support
10194 ld_shlibs_CXX=no
10195 ;;
10196 cxx)
10197 allow_undefined_flag_CXX=' -expect_unresolved \*'
10198 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'
10199 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10200 echo "-hidden">> $lib.exp~
10201 $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~
10202 $rm $lib.exp'
10203
10204 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10205 hardcode_libdir_separator_CXX=:
10206
10207 # Commands to make compiler produce verbose output that lists
10208 # what "hidden" libraries, object files and flags are used when
10209 # linking a shared library.
10210 #
10211 # There doesn't appear to be a way to prevent this compiler from
10212 # explicitly linking system object files so we need to strip them
10213 # from the output so that they don't get included in the library
10214 # dependencies.
10215 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'
10216 ;;
10217 *)
10218 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10219 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10220 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'
10221
10222 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10223 hardcode_libdir_separator_CXX=:
10224
10225 # Commands to make compiler produce verbose output that lists
10226 # what "hidden" libraries, object files and flags are used when
10227 # linking a shared library.
10228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10229
10230 else
10231 # FIXME: insert proper C++ library support
10232 ld_shlibs_CXX=no
10233 fi
10234 ;;
10235 esac
10236 ;;
10237 psos*)
10238 # FIXME: insert proper C++ library support
10239 ld_shlibs_CXX=no
10240 ;;
10241 sco*)
10242 archive_cmds_need_lc_CXX=no
10243 case $cc_basename in
10244 CC)
10245 # FIXME: insert proper C++ library support
10246 ld_shlibs_CXX=no
10247 ;;
10248 *)
10249 # FIXME: insert proper C++ library support
10250 ld_shlibs_CXX=no
10251 ;;
10252 esac
10253 ;;
10254 sunos4*)
10255 case $cc_basename in
10256 CC)
10257 # Sun C++ 4.x
10258 # FIXME: insert proper C++ library support
10259 ld_shlibs_CXX=no
10260 ;;
10261 lcc)
10262 # Lucid
10263 # FIXME: insert proper C++ library support
10264 ld_shlibs_CXX=no
10265 ;;
10266 *)
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 ;;
10270 esac
10271 ;;
10272 solaris*)
10273 case $cc_basename in
10274 CC)
10275 # Sun C++ 4.2, 5.x and Centerline C++
10276 no_undefined_flag_CXX=' -zdefs'
10277 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10278 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10279 $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'
10280
10281 hardcode_libdir_flag_spec_CXX='-R$libdir'
10282 hardcode_shlibpath_var_CXX=no
10283 case $host_os in
10284 solaris2.0-5 | solaris2.0-5.*) ;;
10285 *)
10286 # The C++ compiler is used as linker so we must use $wl
10287 # flag to pass the commands to the underlying system
10288 # linker.
10289 # Supported since Solaris 2.6 (maybe 2.5.1?)
10290 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10291 ;;
10292 esac
10293 link_all_deplibs_CXX=yes
10294
10295 # Commands to make compiler produce verbose output that lists
10296 # what "hidden" libraries, object files and flags are used when
10297 # linking a shared library.
10298 #
10299 # There doesn't appear to be a way to prevent this compiler from
10300 # explicitly linking system object files so we need to strip them
10301 # from the output so that they don't get included in the library
10302 # dependencies.
10303 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'
10304
10305 # Archives containing C++ object files must be created using
10306 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10307 # necessary to make sure instantiated templates are included
10308 # in the archive.
10309 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10310 ;;
10311 gcx)
10312 # Green Hills C++ Compiler
10313 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10314
10315 # The C++ compiler must be used to create the archive.
10316 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10317 ;;
10318 *)
10319 # GNU C++ compiler with Solaris linker
10320 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10321 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10322 if $CC --version | grep -v '^2\.7' > /dev/null; then
10323 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10324 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10325 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10326
10327 # Commands to make compiler produce verbose output that lists
10328 # what "hidden" libraries, object files and flags are used when
10329 # linking a shared library.
10330 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10331 else
10332 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10333 # platform.
10334 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10335 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10336 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10337
10338 # Commands to make compiler produce verbose output that lists
10339 # what "hidden" libraries, object files and flags are used when
10340 # linking a shared library.
10341 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10342 fi
10343
10344 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10345 fi
10346 ;;
10347 esac
10348 ;;
10349 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10350 archive_cmds_need_lc_CXX=no
10351 ;;
10352 tandem*)
10353 case $cc_basename in
10354 NCC)
10355 # NonStop-UX NCC 3.20
10356 # FIXME: insert proper C++ library support
10357 ld_shlibs_CXX=no
10358 ;;
10359 *)
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10362 ;;
10363 esac
10364 ;;
10365 vxworks*)
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10368 ;;
10369 *)
10370 # FIXME: insert proper C++ library support
10371 ld_shlibs_CXX=no
10372 ;;
10373esac
10374echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10375echo "${ECHO_T}$ld_shlibs_CXX" >&6
10376test "$ld_shlibs_CXX" = no && can_build_shared=no
10377
10378GCC_CXX="$GXX"
10379LD_CXX="$LD"
10380
10381## CAVEAT EMPTOR:
10382## There is no encapsulation within the following macros, do not change
10383## the running order or otherwise move them around unless you know exactly
10384## what you are doing...
10385
10386cat > conftest.$ac_ext <<EOF
10387class Foo
10388{
10389public:
10390 Foo (void) { a = 0; }
10391private:
10392 int a;
10393};
10394EOF
10395
10396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; then
10401 # Parse the compiler output and extract the necessary
10402 # objects, libraries and library flags.
10403
10404 # Sentinel used to keep track of whether or not we are before
10405 # the conftest object file.
10406 pre_test_object_deps_done=no
10407
10408 # The `*' in the case matches for architectures that use `case' in
10409 # $output_verbose_cmd can trigger glob expansion during the loop
10410 # eval without this substitution.
10411 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10412
10413 for p in `eval $output_verbose_link_cmd`; do
10414 case $p in
10415
10416 -L* | -R* | -l*)
10417 # Some compilers place space between "-{L,R}" and the path.
10418 # Remove the space.
10419 if test $p = "-L" \
10420 || test $p = "-R"; then
10421 prev=$p
10422 continue
10423 else
10424 prev=
10425 fi
10426
10427 if test "$pre_test_object_deps_done" = no; then
10428 case $p in
10429 -L* | -R*)
10430 # Internal compiler library paths should come after those
10431 # provided the user. The postdeps already come after the
10432 # user supplied libs so there is no need to process them.
10433 if test -z "$compiler_lib_search_path_CXX"; then
10434 compiler_lib_search_path_CXX="${prev}${p}"
10435 else
10436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10437 fi
10438 ;;
10439 # The "-l" case would never come before the object being
10440 # linked, so don't bother handling this case.
10441 esac
10442 else
10443 if test -z "$postdeps_CXX"; then
10444 postdeps_CXX="${prev}${p}"
10445 else
10446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10447 fi
10448 fi
10449 ;;
10450
10451 *.$objext)
10452 # This assumes that the test object file only shows up
10453 # once in the compiler output.
10454 if test "$p" = "conftest.$objext"; then
10455 pre_test_object_deps_done=yes
10456 continue
10457 fi
10458
10459 if test "$pre_test_object_deps_done" = no; then
10460 if test -z "$predep_objects_CXX"; then
10461 predep_objects_CXX="$p"
10462 else
10463 predep_objects_CXX="$predep_objects_CXX $p"
10464 fi
10465 else
10466 if test -z "$postdep_objects_CXX"; then
10467 postdep_objects_CXX="$p"
10468 else
10469 postdep_objects_CXX="$postdep_objects_CXX $p"
10470 fi
10471 fi
10472 ;;
10473
10474 *) ;; # Ignore the rest.
10475
10476 esac
10477 done
10478
10479 # Clean up.
10480 rm -f a.out a.exe
10481else
10482 echo "libtool.m4: error: problem compiling CXX test program"
10483fi
10484
10485$rm -f confest.$objext
10486
10487case " $postdeps_CXX " in
10488*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10489esac
10490
10491lt_prog_compiler_wl_CXX=
10492lt_prog_compiler_pic_CXX=
10493lt_prog_compiler_static_CXX=
10494
10495echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10496echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10497
10498 # C++ specific cases for pic, static, wl, etc.
10499 if test "$GXX" = yes; then
10500 lt_prog_compiler_wl_CXX='-Wl,'
10501 lt_prog_compiler_static_CXX='-static'
10502
10503 case $host_os in
10504 aix*)
10505 # All AIX code is PIC.
10506 if test "$host_cpu" = ia64; then
10507 # AIX 5 now supports IA64 processor
10508 lt_prog_compiler_static_CXX='-Bstatic'
10509 fi
10510 ;;
10511 amigaos*)
10512 # FIXME: we need at least 68020 code to build shared libraries, but
10513 # adding the `-m68020' flag to GCC prevents building anything better,
10514 # like `-m68040'.
10515 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10516 ;;
10517 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10518 # PIC is the default for these OSes.
10519 ;;
10520 mingw* | os2* | pw32*)
10521 # This hack is so that the source file can tell whether it is being
10522 # built for inclusion in a dll (and should export symbols for example).
10523 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10524 ;;
10525 darwin* | rhapsody*)
10526 # PIC is the default on this platform
10527 # Common symbols not allowed in MH_DYLIB files
10528 lt_prog_compiler_pic_CXX='-fno-common'
10529 ;;
10530 *djgpp*)
10531 # DJGPP does not support shared libraries at all
10532 lt_prog_compiler_pic_CXX=
10533 ;;
10534 sysv4*MP*)
10535 if test -d /usr/nec; then
10536 lt_prog_compiler_pic_CXX=-Kconform_pic
10537 fi
10538 ;;
10539 hpux*)
10540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10541 # not for PA HP-UX.
10542 case "$host_cpu" in
10543 hppa*64*|ia64*)
10544 ;;
10545 *)
10546 lt_prog_compiler_pic_CXX='-fPIC'
10547 ;;
10548 esac
10549 ;;
10550 *)
10551 lt_prog_compiler_pic_CXX='-fPIC'
10552 ;;
10553 esac
10554 else
10555 case $host_os in
10556 aix4* | aix5*)
10557 # All AIX code is PIC.
10558 if test "$host_cpu" = ia64; then
10559 # AIX 5 now supports IA64 processor
10560 lt_prog_compiler_static_CXX='-Bstatic'
10561 else
10562 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10563 fi
10564 ;;
10565 chorus*)
10566 case $cc_basename in
10567 cxch68)
10568 # Green Hills C++ Compiler
10569 # _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"
10570 ;;
10571 esac
10572 ;;
10573 dgux*)
10574 case $cc_basename in
10575 ec++)
10576 lt_prog_compiler_pic_CXX='-KPIC'
10577 ;;
10578 ghcx)
10579 # Green Hills C++ Compiler
10580 lt_prog_compiler_pic_CXX='-pic'
10581 ;;
10582 *)
10583 ;;
10584 esac
10585 ;;
10586 freebsd*)
10587 # FreeBSD uses GNU C++
10588 ;;
10589 hpux9* | hpux10* | hpux11*)
10590 case $cc_basename in
10591 CC)
10592 lt_prog_compiler_wl_CXX='-Wl,'
10593 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10594 if test "$host_cpu" != ia64; then
10595 lt_prog_compiler_pic_CXX='+Z'
10596 fi
10597 ;;
10598 aCC)
10599 lt_prog_compiler_wl_CXX='-Wl,'
10600 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10601 case "$host_cpu" in
10602 hppa*64*|ia64*)
10603 # +Z the default
10604 ;;
10605 *)
10606 lt_prog_compiler_pic_CXX='+Z'
10607 ;;
10608 esac
10609 ;;
10610 *)
10611 ;;
10612 esac
10613 ;;
10614 irix5* | irix6* | nonstopux*)
10615 case $cc_basename in
10616 CC)
10617 lt_prog_compiler_wl_CXX='-Wl,'
10618 lt_prog_compiler_static_CXX='-non_shared'
10619 # CC pic flag -KPIC is the default.
10620 ;;
10621 *)
10622 ;;
10623 esac
10624 ;;
10625 linux*)
10626 case $cc_basename in
10627 KCC)
10628 # KAI C++ Compiler
10629 lt_prog_compiler_wl_CXX='--backend -Wl,'
10630 lt_prog_compiler_pic_CXX='-fPIC'
10631 ;;
10632 icpc)
10633 # Intel C++
10634 lt_prog_compiler_wl_CXX='-Wl,'
10635 lt_prog_compiler_pic_CXX='-KPIC'
10636 lt_prog_compiler_static_CXX='-static'
10637 ;;
10638 cxx)
10639 # Compaq C++
10640 # Make sure the PIC flag is empty. It appears that all Alpha
10641 # Linux and Compaq Tru64 Unix objects are PIC.
10642 lt_prog_compiler_pic_CXX=
10643 lt_prog_compiler_static_CXX='-non_shared'
10644 ;;
10645 *)
10646 ;;
10647 esac
10648 ;;
10649 lynxos*)
10650 ;;
10651 m88k*)
10652 ;;
10653 mvs*)
10654 case $cc_basename in
10655 cxx)
10656 lt_prog_compiler_pic_CXX='-W c,exportall'
10657 ;;
10658 *)
10659 ;;
10660 esac
10661 ;;
10662 netbsd*)
10663 ;;
10664 osf3* | osf4* | osf5*)
10665 case $cc_basename in
10666 KCC)
10667 lt_prog_compiler_wl_CXX='--backend -Wl,'
10668 ;;
10669 RCC)
10670 # Rational C++ 2.4.1
10671 lt_prog_compiler_pic_CXX='-pic'
10672 ;;
10673 cxx)
10674 # Digital/Compaq C++
10675 lt_prog_compiler_wl_CXX='-Wl,'
10676 # Make sure the PIC flag is empty. It appears that all Alpha
10677 # Linux and Compaq Tru64 Unix objects are PIC.
10678 lt_prog_compiler_pic_CXX=
10679 lt_prog_compiler_static_CXX='-non_shared'
10680 ;;
10681 *)
10682 ;;
10683 esac
10684 ;;
10685 psos*)
10686 ;;
10687 sco*)
10688 case $cc_basename in
10689 CC)
10690 lt_prog_compiler_pic_CXX='-fPIC'
10691 ;;
10692 *)
10693 ;;
10694 esac
10695 ;;
10696 solaris*)
10697 case $cc_basename in
10698 CC)
10699 # Sun C++ 4.2, 5.x and Centerline C++
10700 lt_prog_compiler_pic_CXX='-KPIC'
10701 lt_prog_compiler_static_CXX='-Bstatic'
10702 lt_prog_compiler_wl_CXX='-Qoption ld '
10703 ;;
10704 gcx)
10705 # Green Hills C++ Compiler
10706 lt_prog_compiler_pic_CXX='-PIC'
10707 ;;
10708 *)
10709 ;;
10710 esac
10711 ;;
10712 sunos4*)
10713 case $cc_basename in
10714 CC)
10715 # Sun C++ 4.x
10716 lt_prog_compiler_pic_CXX='-pic'
10717 lt_prog_compiler_static_CXX='-Bstatic'
10718 ;;
10719 lcc)
10720 # Lucid
10721 lt_prog_compiler_pic_CXX='-pic'
10722 ;;
10723 *)
10724 ;;
10725 esac
10726 ;;
10727 tandem*)
10728 case $cc_basename in
10729 NCC)
10730 # NonStop-UX NCC 3.20
10731 lt_prog_compiler_pic_CXX='-KPIC'
10732 ;;
10733 *)
10734 ;;
10735 esac
10736 ;;
10737 unixware*)
10738 ;;
10739 vxworks*)
10740 ;;
10741 *)
10742 lt_prog_compiler_can_build_shared_CXX=no
10743 ;;
10744 esac
10745 fi
10746
10747echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10748echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10749
10750#
10751# Check to make sure the PIC flag actually works.
10752#
10753if test -n "$lt_prog_compiler_pic_CXX"; then
10754 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10755echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10756if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10758else
10759 lt_prog_compiler_pic_works_CXX=no
10760 ac_outfile=conftest.$ac_objext
10761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10762 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10763 # Insert the option either (1) after the last *FLAGS variable, or
10764 # (2) before a word containing "conftest.", or (3) at the end.
10765 # Note that $ac_compile itself does not contain backslashes and begins
10766 # with a dollar sign (not a hyphen), so the echo should work correctly.
10767 # The option is referenced via a variable to avoid confusing sed.
10768 lt_compile=`echo "$ac_compile" | $SED \
10769 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10771 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +000010772 (eval echo "\"\$as_me:10772: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010773 (eval "$lt_compile" 2>conftest.err)
10774 ac_status=$?
10775 cat conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +000010776 echo "$as_me:10776: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010777 if (exit $ac_status) && test -s "$ac_outfile"; then
10778 # The compiler can only warn and ignore the option if not recognized
10779 # So say no if there are warnings
10780 if test ! -s conftest.err; then
10781 lt_prog_compiler_pic_works_CXX=yes
10782 fi
10783 fi
10784 $rm conftest*
10785
10786fi
10787echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10788echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10789
10790if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10791 case $lt_prog_compiler_pic_CXX in
10792 "" | " "*) ;;
10793 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10794 esac
10795else
10796 lt_prog_compiler_pic_CXX=
10797 lt_prog_compiler_can_build_shared_CXX=no
10798fi
10799
10800fi
10801case "$host_os" in
10802 # For platforms which do not support PIC, -DPIC is meaningless:
10803 *djgpp*)
10804 lt_prog_compiler_pic_CXX=
10805 ;;
10806 *)
10807 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10808 ;;
10809esac
10810
10811echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10812echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10813if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 lt_cv_prog_compiler_c_o_CXX=no
10817 $rm -r conftest 2>/dev/null
10818 mkdir conftest
10819 cd conftest
10820 mkdir out
10821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10822
10823 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10824 # that will create temporary files in the current directory regardless of
10825 # the output directory. Thus, making CWD read-only will cause this test
10826 # to fail, enabling locking or at least warning the user not to do parallel
10827 # builds.
10828 chmod -w .
10829
10830 lt_compiler_flag="-o out/conftest2.$ac_objext"
10831 # Insert the option either (1) after the last *FLAGS variable, or
10832 # (2) before a word containing "conftest.", or (3) at the end.
10833 # Note that $ac_compile itself does not contain backslashes and begins
10834 # with a dollar sign (not a hyphen), so the echo should work correctly.
10835 lt_compile=`echo "$ac_compile" | $SED \
10836 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10838 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +000010839 (eval echo "\"\$as_me:10839: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010840 (eval "$lt_compile" 2>out/conftest.err)
10841 ac_status=$?
10842 cat out/conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +000010843 echo "$as_me:10843: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10845 then
10846 # The compiler can only warn and ignore the option if not recognized
10847 # So say no if there are warnings
10848 if test ! -s out/conftest.err; then
10849 lt_cv_prog_compiler_c_o_CXX=yes
10850 fi
10851 fi
10852 chmod u+w .
10853 $rm conftest* out/*
10854 rmdir out
10855 cd ..
10856 rmdir conftest
10857 $rm conftest*
10858
10859fi
10860echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10861echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10862
10863
10864hard_links="nottested"
10865if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10866 # do not overwrite the value of need_locks provided by the user
10867 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10868echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10869 hard_links=yes
10870 $rm conftest*
10871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10872 touch conftest.a
10873 ln conftest.a conftest.b 2>&5 || hard_links=no
10874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10875 echo "$as_me:$LINENO: result: $hard_links" >&5
10876echo "${ECHO_T}$hard_links" >&6
10877 if test "$hard_links" = no; then
10878 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10879echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10880 need_locks=warn
10881 fi
10882else
10883 need_locks=no
10884fi
10885
10886echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10887echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10888
10889 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10890 case $host_os in
10891 aix4* | aix5*)
10892 # If we're using GNU nm, then we don't want the "-C" option.
10893 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10894 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10895 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'
10896 else
10897 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'
10898 fi
10899 ;;
10900 pw32*)
10901 export_symbols_cmds_CXX="$ltdll_cmds"
10902 ;;
10903 cygwin* | mingw*)
10904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10905 ;;
10906 *)
10907 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10908 ;;
10909 esac
10910
10911echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10912echo "${ECHO_T}$ld_shlibs_CXX" >&6
10913test "$ld_shlibs_CXX" = no && can_build_shared=no
10914
10915variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10916if test "$GCC" = yes; then
10917 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10918fi
10919
10920#
10921# Do we need to explicitly link libc?
10922#
10923case "x$archive_cmds_need_lc_CXX" in
10924x|xyes)
10925 # Assume -lc should be added
10926 archive_cmds_need_lc_CXX=yes
10927
10928 if test "$enable_shared" = yes && test "$GCC" = yes; then
10929 case $archive_cmds_CXX in
10930 *'~'*)
10931 # FIXME: we may have to deal with multi-command sequences.
10932 ;;
10933 '$CC '*)
10934 # Test whether the compiler implicitly links with -lc since on some
10935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10936 # to ld, don't add -lc before -lgcc.
10937 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10938echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10939 $rm conftest*
10940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10941
10942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10943 (eval $ac_compile) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } 2>conftest.err; then
10947 soname=conftest
10948 lib=conftest
10949 libobjs=conftest.$ac_objext
10950 deplibs=
10951 wl=$lt_prog_compiler_wl_CXX
10952 compiler_flags=-v
10953 linker_flags=-v
10954 verstring=
10955 output_objdir=.
10956 libname=conftest
10957 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10958 allow_undefined_flag_CXX=
10959 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10960 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }
10964 then
10965 archive_cmds_need_lc_CXX=no
10966 else
10967 archive_cmds_need_lc_CXX=yes
10968 fi
10969 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10970 else
10971 cat conftest.err 1>&5
10972 fi
10973 $rm conftest*
10974 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10975echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10976 ;;
10977 esac
10978 fi
10979 ;;
10980esac
10981
10982echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10983echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10984hardcode_action_CXX=
10985if test -n "$hardcode_libdir_flag_spec_CXX" || \
10986 test -n "$runpath_var CXX" || \
10987 test "X$hardcode_automatic_CXX"="Xyes" ; then
10988
10989 # We can hardcode non-existant directories.
10990 if test "$hardcode_direct_CXX" != no &&
10991 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10992 # have to relink, otherwise we might link with an installed library
10993 # when we should be linking with a yet-to-be-installed one
10994 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10995 test "$hardcode_minus_L_CXX" != no; then
10996 # Linking always hardcodes the temporary library directory.
10997 hardcode_action_CXX=relink
10998 else
10999 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11000 hardcode_action_CXX=immediate
11001 fi
11002else
11003 # We cannot hardcode anything, or else we can only hardcode existing
11004 # directories.
11005 hardcode_action_CXX=unsupported
11006fi
11007echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11008echo "${ECHO_T}$hardcode_action_CXX" >&6
11009
11010if test "$hardcode_action_CXX" = relink; then
11011 # Fast installation is not supported
11012 enable_fast_install=no
11013elif test "$shlibpath_overrides_runpath" = yes ||
11014 test "$enable_shared" = no; then
11015 # Fast installation is not necessary
11016 enable_fast_install=needless
11017fi
11018
11019striplib=
11020old_striplib=
11021echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11022echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11023if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11024 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11025 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11026 echo "$as_me:$LINENO: result: yes" >&5
11027echo "${ECHO_T}yes" >&6
11028else
11029# FIXME - insert some real tests, host_os isn't really good enough
11030 case $host_os in
11031 darwin*)
11032 if test -n "$STRIP" ; then
11033 striplib="$STRIP -x"
11034 echo "$as_me:$LINENO: result: yes" >&5
11035echo "${ECHO_T}yes" >&6
11036 else
11037 echo "$as_me:$LINENO: result: no" >&5
11038echo "${ECHO_T}no" >&6
11039fi
11040 ;;
11041 *)
11042 echo "$as_me:$LINENO: result: no" >&5
11043echo "${ECHO_T}no" >&6
11044 ;;
11045 esac
11046fi
11047
11048echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11049echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11050library_names_spec=
11051libname_spec='lib$name'
11052soname_spec=
11053shrext=".so"
11054postinstall_cmds=
11055postuninstall_cmds=
11056finish_cmds=
11057finish_eval=
11058shlibpath_var=
11059shlibpath_overrides_runpath=unknown
11060version_type=none
11061dynamic_linker="$host_os ld.so"
11062sys_lib_dlsearch_path_spec="/lib /usr/lib"
11063if test "$GCC" = yes; then
11064 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11065 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11066 # if the path contains ";" then we assume it to be the separator
11067 # otherwise default to the standard path separator (i.e. ":") - it is
11068 # assumed that no part of a normal pathname contains ";" but that should
11069 # okay in the real world where ";" in dirpaths is itself problematic.
11070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11071 else
11072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11073 fi
11074else
11075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11076fi
11077need_lib_prefix=unknown
11078hardcode_into_libs=no
11079
11080# when you set need_version to no, make sure it does not cause -set_version
11081# flags to be left without arguments
11082need_version=unknown
11083
11084case $host_os in
11085aix3*)
11086 version_type=linux
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11088 shlibpath_var=LIBPATH
11089
11090 # AIX 3 has no versioning support, so we append a major version to the name.
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 ;;
11093
11094aix4* | aix5*)
11095 version_type=linux
11096 need_lib_prefix=no
11097 need_version=no
11098 hardcode_into_libs=yes
11099 if test "$host_cpu" = ia64; then
11100 # AIX 5 supports IA64
11101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 else
11104 # With GCC up to 2.95.x, collect2 would create an import file
11105 # for dependence libraries. The import file would start with
11106 # the line `#! .'. This would cause the generated library to
11107 # depend on `.', always an invalid library. This was fixed in
11108 # development snapshots of GCC prior to 3.0.
11109 case $host_os in
11110 aix4 | aix4.[01] | aix4.[01].*)
11111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11112 echo ' yes '
11113 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11114 :
11115 else
11116 can_build_shared=no
11117 fi
11118 ;;
11119 esac
11120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11121 # soname into executable. Probably we can add versioning support to
11122 # collect2, so additional links can be useful in future.
11123 if test "$aix_use_runtimelinking" = yes; then
11124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11125 # instead of lib<name>.a to let people know that these are not
11126 # typical AIX shared libraries.
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 else
11129 # We preserve .a as extension for shared libraries through AIX4.2
11130 # and later when we are not doing run time linking.
11131 library_names_spec='${libname}${release}.a $libname.a'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 fi
11134 shlibpath_var=LIBPATH
11135 fi
11136 ;;
11137
11138amigaos*)
11139 library_names_spec='$libname.ixlibrary $libname.a'
11140 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11141 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'
11142 ;;
11143
11144beos*)
11145 library_names_spec='${libname}${shared_ext}'
11146 dynamic_linker="$host_os ld.so"
11147 shlibpath_var=LIBRARY_PATH
11148 ;;
11149
11150bsdi4*)
11151 version_type=linux
11152 need_version=no
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11159 # the default ld.so.conf also contains /usr/contrib/lib and
11160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11161 # libtool to hard-code these into programs
11162 ;;
11163
11164cygwin* | mingw* | pw32*)
11165 version_type=windows
11166 shrext=".dll"
11167 need_version=no
11168 need_lib_prefix=no
11169
11170 case $GCC,$host_os in
11171 yes,cygwin* | yes,mingw* | yes,pw32*)
11172 library_names_spec='$libname.dll.a'
11173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11174 postinstall_cmds='base_file=`basename \${file}`~
11175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11176 dldir=$destdir/`dirname \$dlpath`~
11177 test -d \$dldir || mkdir -p \$dldir~
11178 $install_prog $dir/$dlname \$dldir/$dlname'
11179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11180 dlpath=$dir/\$dldll~
11181 $rm \$dlpath'
11182 shlibpath_overrides_runpath=yes
11183
11184 case $host_os in
11185 cygwin*)
11186 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11187 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11188 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11189 ;;
11190 mingw*)
11191 # MinGW DLLs use traditional 'lib' prefix
11192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11193 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11194 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11195 # It is most probably a Windows format PATH printed by
11196 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11197 # path with ; separators, and with drive letters. We can handle the
11198 # drive letters (cygwin fileutils understands them), so leave them,
11199 # especially as we might pass files found there to a mingw objdump,
11200 # which wouldn't understand a cygwinified path. Ahh.
11201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11202 else
11203 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11204 fi
11205 ;;
11206 pw32*)
11207 # pw32 DLLs use 'pw' prefix rather than 'lib'
11208 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11209 ;;
11210 esac
11211 ;;
11212
11213 *)
11214 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11215 ;;
11216 esac
11217 dynamic_linker='Win32 ld.exe'
11218 # FIXME: first we should search . and the directory the executable is in
11219 shlibpath_var=PATH
11220 ;;
11221
11222darwin* | rhapsody*)
11223 dynamic_linker="$host_os dyld"
11224 version_type=darwin
11225 need_lib_prefix=no
11226 need_version=no
11227 # FIXME: Relying on posixy $() will cause problems for
11228 # cross-compilation, but unfortunately the echo tests do not
11229 # yet detect zsh echo's removal of \ escapes.
11230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11231 soname_spec='${libname}${release}${major}$shared_ext'
11232 shlibpath_overrides_runpath=yes
11233 shlibpath_var=DYLD_LIBRARY_PATH
11234 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11236 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11237 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"`
11238 fi
11239 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11240 ;;
11241
11242dgux*)
11243 version_type=linux
11244 need_lib_prefix=no
11245 need_version=no
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 ;;
11250
11251freebsd1*)
11252 dynamic_linker=no
11253 ;;
11254
11255freebsd*)
11256 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11257 version_type=freebsd-$objformat
11258 case $version_type in
11259 freebsd-elf*)
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11261 need_version=no
11262 need_lib_prefix=no
11263 ;;
11264 freebsd-*)
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11266 need_version=yes
11267 ;;
11268 esac
11269 shlibpath_var=LD_LIBRARY_PATH
11270 case $host_os in
11271 freebsd2*)
11272 shlibpath_overrides_runpath=yes
11273 ;;
11274 freebsd3.01* | freebsdelf3.01*)
11275 shlibpath_overrides_runpath=yes
11276 hardcode_into_libs=yes
11277 ;;
11278 *) # from 3.2 on
11279 shlibpath_overrides_runpath=no
11280 hardcode_into_libs=yes
11281 ;;
11282 esac
11283 ;;
11284
11285gnu*)
11286 version_type=linux
11287 need_lib_prefix=no
11288 need_version=no
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 hardcode_into_libs=yes
11293 ;;
11294
11295hpux9* | hpux10* | hpux11*)
11296 # Give a soname corresponding to the major version so that dld.sl refuses to
11297 # link against other versions.
11298 version_type=sunos
11299 need_lib_prefix=no
11300 need_version=no
11301 case "$host_cpu" in
11302 ia64*)
11303 shrext='.so'
11304 hardcode_into_libs=yes
11305 dynamic_linker="$host_os dld.so"
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 if test "X$HPUX_IA64_MODE" = X32; then
11311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11312 else
11313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11314 fi
11315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11316 ;;
11317 hppa*64*)
11318 shrext='.sl'
11319 hardcode_into_libs=yes
11320 dynamic_linker="$host_os dld.sl"
11321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11327 ;;
11328 *)
11329 shrext='.sl'
11330 dynamic_linker="$host_os dld.sl"
11331 shlibpath_var=SHLIB_PATH
11332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 ;;
11336 esac
11337 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11338 postinstall_cmds='chmod 555 $lib'
11339 ;;
11340
11341irix5* | irix6* | nonstopux*)
11342 case $host_os in
11343 nonstopux*) version_type=nonstopux ;;
11344 *)
11345 if test "$lt_cv_prog_gnu_ld" = yes; then
11346 version_type=linux
11347 else
11348 version_type=irix
11349 fi ;;
11350 esac
11351 need_lib_prefix=no
11352 need_version=no
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11355 case $host_os in
11356 irix5* | nonstopux*)
11357 libsuff= shlibsuff=
11358 ;;
11359 *)
11360 case $LD in # libtool.m4 will add one of these switches to LD
11361 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11362 libsuff= shlibsuff= libmagic=32-bit;;
11363 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11364 libsuff=32 shlibsuff=N32 libmagic=N32;;
11365 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11366 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11367 *) libsuff= shlibsuff= libmagic=never-match;;
11368 esac
11369 ;;
11370 esac
11371 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11372 shlibpath_overrides_runpath=no
11373 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11374 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11375 hardcode_into_libs=yes
11376 ;;
11377
11378# No shared lib support for Linux oldld, aout, or coff.
11379linux*oldld* | linux*aout* | linux*coff*)
11380 dynamic_linker=no
11381 ;;
11382
11383# This must be Linux ELF.
11384linux*)
11385 version_type=linux
11386 need_lib_prefix=no
11387 need_version=no
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 shlibpath_overrides_runpath=no
11393 # This implies no fast_install, which is unacceptable.
11394 # Some rework will be needed to allow for fast_install
11395 # before this can be enabled.
11396 hardcode_into_libs=yes
11397
11398 # We used to test for /lib/ld.so.1 and disable shared libraries on
11399 # powerpc, because MkLinux only supported shared libraries with the
11400 # GNU dynamic linker. Since this was broken with cross compilers,
11401 # most powerpc-linux boxes support dynamic linking these days and
11402 # people can always --disable-shared, the test was removed, and we
11403 # assume the GNU/Linux dynamic linker is in use.
11404 dynamic_linker='GNU/Linux ld.so'
11405 ;;
11406
11407netbsd*)
11408 version_type=sunos
11409 need_lib_prefix=no
11410 need_version=no
11411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11414 dynamic_linker='NetBSD (a.out) ld.so'
11415 else
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11417 soname_spec='${libname}${release}${shared_ext}$major'
11418 dynamic_linker='NetBSD ld.elf_so'
11419 fi
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=yes
11422 hardcode_into_libs=yes
11423 ;;
11424
11425newsos6)
11426 version_type=linux
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=yes
11430 ;;
11431
11432nto-qnx)
11433 version_type=linux
11434 need_lib_prefix=no
11435 need_version=no
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437 soname_spec='${libname}${release}${shared_ext}$major'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 shlibpath_overrides_runpath=yes
11440 ;;
11441
11442openbsd*)
11443 version_type=sunos
11444 need_lib_prefix=no
11445 need_version=no
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11450 case $host_os in
11451 openbsd2.[89] | openbsd2.[89].*)
11452 shlibpath_overrides_runpath=no
11453 ;;
11454 *)
11455 shlibpath_overrides_runpath=yes
11456 ;;
11457 esac
11458 else
11459 shlibpath_overrides_runpath=yes
11460 fi
11461 ;;
11462
11463os2*)
11464 libname_spec='$name'
11465 shrext=".dll"
11466 need_lib_prefix=no
11467 library_names_spec='$libname${shared_ext} $libname.a'
11468 dynamic_linker='OS/2 ld.exe'
11469 shlibpath_var=LIBPATH
11470 ;;
11471
11472osf3* | osf4* | osf5*)
11473 version_type=osf
11474 need_lib_prefix=no
11475 need_version=no
11476 soname_spec='${libname}${release}${shared_ext}$major'
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11481 ;;
11482
11483sco3.2v5*)
11484 version_type=osf
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 shlibpath_var=LD_LIBRARY_PATH
11488 ;;
11489
11490solaris*)
11491 version_type=linux
11492 need_lib_prefix=no
11493 need_version=no
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=yes
11498 hardcode_into_libs=yes
11499 # ldd complains unless libraries are executable
11500 postinstall_cmds='chmod +x $lib'
11501 ;;
11502
11503sunos4*)
11504 version_type=sunos
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11506 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509 if test "$with_gnu_ld" = yes; then
11510 need_lib_prefix=no
11511 fi
11512 need_version=yes
11513 ;;
11514
11515sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11516 version_type=linux
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 case $host_vendor in
11521 sni)
11522 shlibpath_overrides_runpath=no
11523 need_lib_prefix=no
11524 export_dynamic_flag_spec='${wl}-Blargedynsym'
11525 runpath_var=LD_RUN_PATH
11526 ;;
11527 siemens)
11528 need_lib_prefix=no
11529 ;;
11530 motorola)
11531 need_lib_prefix=no
11532 need_version=no
11533 shlibpath_overrides_runpath=no
11534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11535 ;;
11536 esac
11537 ;;
11538
11539sysv4*MP*)
11540 if test -d /usr/nec ;then
11541 version_type=linux
11542 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11543 soname_spec='$libname${shared_ext}.$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 fi
11546 ;;
11547
11548uts4*)
11549 version_type=linux
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 ;;
11554
11555*)
11556 dynamic_linker=no
11557 ;;
11558esac
11559echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11560echo "${ECHO_T}$dynamic_linker" >&6
11561test "$dynamic_linker" = no && can_build_shared=no
11562
11563if test "x$enable_dlopen" != xyes; then
11564 enable_dlopen=unknown
11565 enable_dlopen_self=unknown
11566 enable_dlopen_self_static=unknown
11567else
11568 lt_cv_dlopen=no
11569 lt_cv_dlopen_libs=
11570
11571 case $host_os in
11572 beos*)
11573 lt_cv_dlopen="load_add_on"
11574 lt_cv_dlopen_libs=
11575 lt_cv_dlopen_self=yes
11576 ;;
11577
11578 mingw* | pw32*)
11579 lt_cv_dlopen="LoadLibrary"
11580 lt_cv_dlopen_libs=
11581 ;;
11582
11583 cygwin*)
11584 lt_cv_dlopen="dlopen"
11585 lt_cv_dlopen_libs=
11586 ;;
11587
11588 darwin*)
11589 # if libdl is installed we need to link against it
11590 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11591echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11592if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594else
11595 ac_check_lib_save_LIBS=$LIBS
11596LIBS="-ldl $LIBS"
11597cat >conftest.$ac_ext <<_ACEOF
11598#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011604
11605/* Override any gcc2 internal prototype to avoid an error. */
11606#ifdef __cplusplus
11607extern "C"
11608#endif
11609/* We use char because int might match the return type of a gcc2
11610 builtin and then its argument prototype would still apply. */
11611char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011612int
11613main ()
11614{
11615dlopen ();
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext conftest$ac_exeext
11621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -s conftest$ac_exeext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_cv_lib_dl_dlopen=yes
11633else
11634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011635sed 's/^/| /' conftest.$ac_ext >&5
11636
John Criswell47fdd832003-07-14 16:52:07 +000011637ac_cv_lib_dl_dlopen=no
11638fi
11639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11640LIBS=$ac_check_lib_save_LIBS
11641fi
11642echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11643echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11644if test $ac_cv_lib_dl_dlopen = yes; then
11645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11646else
11647
11648 lt_cv_dlopen="dyld"
11649 lt_cv_dlopen_libs=
11650 lt_cv_dlopen_self=yes
11651
11652fi
11653
11654 ;;
11655
11656 *)
11657 echo "$as_me:$LINENO: checking for shl_load" >&5
11658echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11659if test "${ac_cv_func_shl_load+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661else
11662 cat >conftest.$ac_ext <<_ACEOF
11663#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011669/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011670 which can conflict with char shl_load (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11673#ifdef __STDC__
11674# include <limits.h>
11675#else
11676# include <assert.h>
11677#endif
John Criswell47fdd832003-07-14 16:52:07 +000011678/* Override any gcc2 internal prototype to avoid an error. */
11679#ifdef __cplusplus
11680extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011681{
John Criswell47fdd832003-07-14 16:52:07 +000011682#endif
11683/* We use char because int might match the return type of a gcc2
11684 builtin and then its argument prototype would still apply. */
11685char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011686/* The GNU C library defines this for functions which it implements
11687 to always fail with ENOSYS. Some functions are actually named
11688 something starting with __ and the normal name is an alias. */
11689#if defined (__stub_shl_load) || defined (__stub___shl_load)
11690choke me
11691#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011692char (*f) () = shl_load;
11693#endif
11694#ifdef __cplusplus
11695}
John Criswell47fdd832003-07-14 16:52:07 +000011696#endif
11697
John Criswell0c38eaf2003-09-10 15:17:25 +000011698int
11699main ()
11700{
11701return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011702 ;
11703 return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext conftest$ac_exeext
11707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708 (eval $ac_link) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -s conftest$ac_exeext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 ac_cv_func_shl_load=yes
11719else
11720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011721sed 's/^/| /' conftest.$ac_ext >&5
11722
John Criswell47fdd832003-07-14 16:52:07 +000011723ac_cv_func_shl_load=no
11724fi
11725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11726fi
11727echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11728echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11729if test $ac_cv_func_shl_load = yes; then
11730 lt_cv_dlopen="shl_load"
11731else
11732 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11733echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11734if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736else
11737 ac_check_lib_save_LIBS=$LIBS
11738LIBS="-ldld $LIBS"
11739cat >conftest.$ac_ext <<_ACEOF
11740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011746
11747/* Override any gcc2 internal prototype to avoid an error. */
11748#ifdef __cplusplus
11749extern "C"
11750#endif
11751/* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11753char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011754int
11755main ()
11756{
11757shl_load ();
11758 ;
11759 return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext conftest$ac_exeext
11763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_cv_lib_dld_shl_load=yes
11775else
11776 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011777sed 's/^/| /' conftest.$ac_ext >&5
11778
John Criswell47fdd832003-07-14 16:52:07 +000011779ac_cv_lib_dld_shl_load=no
11780fi
11781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11782LIBS=$ac_check_lib_save_LIBS
11783fi
11784echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11785echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11786if test $ac_cv_lib_dld_shl_load = yes; then
11787 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11788else
11789 echo "$as_me:$LINENO: checking for dlopen" >&5
11790echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11791if test "${ac_cv_func_dlopen+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793else
11794 cat >conftest.$ac_ext <<_ACEOF
11795#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011796/* confdefs.h. */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011801/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011802 which can conflict with char dlopen (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11805#ifdef __STDC__
11806# include <limits.h>
11807#else
11808# include <assert.h>
11809#endif
John Criswell47fdd832003-07-14 16:52:07 +000011810/* Override any gcc2 internal prototype to avoid an error. */
11811#ifdef __cplusplus
11812extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011813{
John Criswell47fdd832003-07-14 16:52:07 +000011814#endif
11815/* We use char because int might match the return type of a gcc2
11816 builtin and then its argument prototype would still apply. */
11817char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011818/* The GNU C library defines this for functions which it implements
11819 to always fail with ENOSYS. Some functions are actually named
11820 something starting with __ and the normal name is an alias. */
11821#if defined (__stub_dlopen) || defined (__stub___dlopen)
11822choke me
11823#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011824char (*f) () = dlopen;
11825#endif
11826#ifdef __cplusplus
11827}
John Criswell47fdd832003-07-14 16:52:07 +000011828#endif
11829
John Criswell0c38eaf2003-09-10 15:17:25 +000011830int
11831main ()
11832{
11833return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011834 ;
11835 return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext conftest$ac_exeext
11839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 ac_cv_func_dlopen=yes
11851else
11852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011853sed 's/^/| /' conftest.$ac_ext >&5
11854
John Criswell47fdd832003-07-14 16:52:07 +000011855ac_cv_func_dlopen=no
11856fi
11857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11858fi
11859echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11860echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11861if test $ac_cv_func_dlopen = yes; then
11862 lt_cv_dlopen="dlopen"
11863else
11864 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11865echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11866if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869 ac_check_lib_save_LIBS=$LIBS
11870LIBS="-ldl $LIBS"
11871cat >conftest.$ac_ext <<_ACEOF
11872#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011878
11879/* Override any gcc2 internal prototype to avoid an error. */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883/* We use char because int might match the return type of a gcc2
11884 builtin and then its argument prototype would still apply. */
11885char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011886int
11887main ()
11888{
11889dlopen ();
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894rm -f conftest.$ac_objext conftest$ac_exeext
11895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -s conftest$ac_exeext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 ac_cv_lib_dl_dlopen=yes
11907else
11908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011909sed 's/^/| /' conftest.$ac_ext >&5
11910
John Criswell47fdd832003-07-14 16:52:07 +000011911ac_cv_lib_dl_dlopen=no
11912fi
11913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11914LIBS=$ac_check_lib_save_LIBS
11915fi
11916echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11917echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11918if test $ac_cv_lib_dl_dlopen = yes; then
11919 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11920else
11921 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11922echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11923if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 ac_check_lib_save_LIBS=$LIBS
11927LIBS="-lsvld $LIBS"
11928cat >conftest.$ac_ext <<_ACEOF
11929#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011930/* confdefs.h. */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011935
11936/* Override any gcc2 internal prototype to avoid an error. */
11937#ifdef __cplusplus
11938extern "C"
11939#endif
11940/* We use char because int might match the return type of a gcc2
11941 builtin and then its argument prototype would still apply. */
11942char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011943int
11944main ()
11945{
11946dlopen ();
11947 ;
11948 return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext conftest$ac_exeext
11952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953 (eval $ac_link) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -s conftest$ac_exeext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 ac_cv_lib_svld_dlopen=yes
11964else
11965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011966sed 's/^/| /' conftest.$ac_ext >&5
11967
John Criswell47fdd832003-07-14 16:52:07 +000011968ac_cv_lib_svld_dlopen=no
11969fi
11970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11971LIBS=$ac_check_lib_save_LIBS
11972fi
11973echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11974echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11975if test $ac_cv_lib_svld_dlopen = yes; then
11976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11977else
11978 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11979echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11980if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983 ac_check_lib_save_LIBS=$LIBS
11984LIBS="-ldld $LIBS"
11985cat >conftest.$ac_ext <<_ACEOF
11986#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011992
11993/* Override any gcc2 internal prototype to avoid an error. */
11994#ifdef __cplusplus
11995extern "C"
11996#endif
11997/* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
11999char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012000int
12001main ()
12002{
12003dld_link ();
12004 ;
12005 return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext conftest$ac_exeext
12009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_cv_lib_dld_dld_link=yes
12021else
12022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012023sed 's/^/| /' conftest.$ac_ext >&5
12024
John Criswell47fdd832003-07-14 16:52:07 +000012025ac_cv_lib_dld_dld_link=no
12026fi
12027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12028LIBS=$ac_check_lib_save_LIBS
12029fi
12030echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12031echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12032if test $ac_cv_lib_dld_dld_link = yes; then
12033 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12034fi
12035
12036
12037fi
12038
12039
12040fi
12041
12042
12043fi
12044
12045
12046fi
12047
12048
12049fi
12050
12051 ;;
12052 esac
12053
12054 if test "x$lt_cv_dlopen" != xno; then
12055 enable_dlopen=yes
12056 else
12057 enable_dlopen=no
12058 fi
12059
12060 case $lt_cv_dlopen in
12061 dlopen)
12062 save_CPPFLAGS="$CPPFLAGS"
12063 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12064
12065 save_LDFLAGS="$LDFLAGS"
12066 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12067
12068 save_LIBS="$LIBS"
12069 LIBS="$lt_cv_dlopen_libs $LIBS"
12070
12071 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12072echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12073if test "${lt_cv_dlopen_self+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075else
12076 if test "$cross_compiling" = yes; then :
12077 lt_cv_dlopen_self=cross
12078else
12079 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12080 lt_status=$lt_dlunknown
12081 cat > conftest.$ac_ext <<EOF
John Criswell613758d2003-09-11 18:03:50 +000012082#line 12082 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012083#include "confdefs.h"
12084
12085#if HAVE_DLFCN_H
12086#include <dlfcn.h>
12087#endif
12088
12089#include <stdio.h>
12090
12091#ifdef RTLD_GLOBAL
12092# define LT_DLGLOBAL RTLD_GLOBAL
12093#else
12094# ifdef DL_GLOBAL
12095# define LT_DLGLOBAL DL_GLOBAL
12096# else
12097# define LT_DLGLOBAL 0
12098# endif
12099#endif
12100
12101/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12102 find out it does not work in some platform. */
12103#ifndef LT_DLLAZY_OR_NOW
12104# ifdef RTLD_LAZY
12105# define LT_DLLAZY_OR_NOW RTLD_LAZY
12106# else
12107# ifdef DL_LAZY
12108# define LT_DLLAZY_OR_NOW DL_LAZY
12109# else
12110# ifdef RTLD_NOW
12111# define LT_DLLAZY_OR_NOW RTLD_NOW
12112# else
12113# ifdef DL_NOW
12114# define LT_DLLAZY_OR_NOW DL_NOW
12115# else
12116# define LT_DLLAZY_OR_NOW 0
12117# endif
12118# endif
12119# endif
12120# endif
12121#endif
12122
12123#ifdef __cplusplus
12124extern "C" void exit (int);
12125#endif
12126
12127void fnord() { int i=42;}
12128int main ()
12129{
12130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12131 int status = $lt_dlunknown;
12132
12133 if (self)
12134 {
12135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12136 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12137 /* dlclose (self); */
12138 }
12139
12140 exit (status);
12141}
12142EOF
12143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12144 (eval $ac_link) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12148 (./conftest; exit; ) 2>/dev/null
12149 lt_status=$?
12150 case x$lt_status in
12151 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12152 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12153 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12154 esac
12155 else :
12156 # compilation failed
12157 lt_cv_dlopen_self=no
12158 fi
12159fi
12160rm -fr conftest*
12161
12162
12163fi
12164echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12165echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12166
12167 if test "x$lt_cv_dlopen_self" = xyes; then
12168 LDFLAGS="$LDFLAGS $link_static_flag"
12169 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12170echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12171if test "${lt_cv_dlopen_self_static+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173else
12174 if test "$cross_compiling" = yes; then :
12175 lt_cv_dlopen_self_static=cross
12176else
12177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12178 lt_status=$lt_dlunknown
12179 cat > conftest.$ac_ext <<EOF
John Criswell613758d2003-09-11 18:03:50 +000012180#line 12180 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012181#include "confdefs.h"
12182
12183#if HAVE_DLFCN_H
12184#include <dlfcn.h>
12185#endif
12186
12187#include <stdio.h>
12188
12189#ifdef RTLD_GLOBAL
12190# define LT_DLGLOBAL RTLD_GLOBAL
12191#else
12192# ifdef DL_GLOBAL
12193# define LT_DLGLOBAL DL_GLOBAL
12194# else
12195# define LT_DLGLOBAL 0
12196# endif
12197#endif
12198
12199/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12200 find out it does not work in some platform. */
12201#ifndef LT_DLLAZY_OR_NOW
12202# ifdef RTLD_LAZY
12203# define LT_DLLAZY_OR_NOW RTLD_LAZY
12204# else
12205# ifdef DL_LAZY
12206# define LT_DLLAZY_OR_NOW DL_LAZY
12207# else
12208# ifdef RTLD_NOW
12209# define LT_DLLAZY_OR_NOW RTLD_NOW
12210# else
12211# ifdef DL_NOW
12212# define LT_DLLAZY_OR_NOW DL_NOW
12213# else
12214# define LT_DLLAZY_OR_NOW 0
12215# endif
12216# endif
12217# endif
12218# endif
12219#endif
12220
12221#ifdef __cplusplus
12222extern "C" void exit (int);
12223#endif
12224
12225void fnord() { int i=42;}
12226int main ()
12227{
12228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12229 int status = $lt_dlunknown;
12230
12231 if (self)
12232 {
12233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12234 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12235 /* dlclose (self); */
12236 }
12237
12238 exit (status);
12239}
12240EOF
12241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12242 (eval $ac_link) 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12246 (./conftest; exit; ) 2>/dev/null
12247 lt_status=$?
12248 case x$lt_status in
12249 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12250 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12251 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12252 esac
12253 else :
12254 # compilation failed
12255 lt_cv_dlopen_self_static=no
12256 fi
12257fi
12258rm -fr conftest*
12259
12260
12261fi
12262echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12263echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12264 fi
12265
12266 CPPFLAGS="$save_CPPFLAGS"
12267 LDFLAGS="$save_LDFLAGS"
12268 LIBS="$save_LIBS"
12269 ;;
12270 esac
12271
12272 case $lt_cv_dlopen_self in
12273 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12274 *) enable_dlopen_self=unknown ;;
12275 esac
12276
12277 case $lt_cv_dlopen_self_static in
12278 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12279 *) enable_dlopen_self_static=unknown ;;
12280 esac
12281fi
12282
12283
12284# The else clause should only fire when bootstrapping the
12285# libtool distribution, otherwise you forgot to ship ltmain.sh
12286# with your package, and you will get complaints that there are
12287# no rules to generate ltmain.sh.
12288if test -f "$ltmain"; then
12289 # See if we are running on zsh, and set the options which allow our commands through
12290 # without removal of \ escapes.
12291 if test -n "${ZSH_VERSION+set}" ; then
12292 setopt NO_GLOB_SUBST
12293 fi
12294 # Now quote all the things that may contain metacharacters while being
12295 # careful not to overquote the AC_SUBSTed values. We take copies of the
12296 # variables and quote the copies for generation of the libtool script.
12297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12300 deplibs_check_method reload_flag reload_cmds need_locks \
12301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12302 lt_cv_sys_global_symbol_to_c_name_address \
12303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12304 old_postinstall_cmds old_postuninstall_cmds \
12305 compiler_CXX \
12306 CC_CXX \
12307 LD_CXX \
12308 lt_prog_compiler_wl_CXX \
12309 lt_prog_compiler_pic_CXX \
12310 lt_prog_compiler_static_CXX \
12311 lt_prog_compiler_no_builtin_flag_CXX \
12312 export_dynamic_flag_spec_CXX \
12313 thread_safe_flag_spec_CXX \
12314 whole_archive_flag_spec_CXX \
12315 enable_shared_with_static_runtimes_CXX \
12316 old_archive_cmds_CXX \
12317 old_archive_from_new_cmds_CXX \
12318 predep_objects_CXX \
12319 postdep_objects_CXX \
12320 predeps_CXX \
12321 postdeps_CXX \
12322 compiler_lib_search_path_CXX \
12323 archive_cmds_CXX \
12324 archive_expsym_cmds_CXX \
12325 postinstall_cmds_CXX \
12326 postuninstall_cmds_CXX \
12327 old_archive_from_expsyms_cmds_CXX \
12328 allow_undefined_flag_CXX \
12329 no_undefined_flag_CXX \
12330 export_symbols_cmds_CXX \
12331 hardcode_libdir_flag_spec_CXX \
12332 hardcode_libdir_flag_spec_ld_CXX \
12333 hardcode_libdir_separator_CXX \
12334 hardcode_automatic_CXX \
12335 module_cmds_CXX \
12336 module_expsym_cmds_CXX \
12337 lt_cv_prog_compiler_c_o_CXX \
12338 exclude_expsyms_CXX \
12339 include_expsyms_CXX; do
12340
12341 case $var in
12342 old_archive_cmds_CXX | \
12343 old_archive_from_new_cmds_CXX | \
12344 archive_cmds_CXX | \
12345 archive_expsym_cmds_CXX | \
12346 module_cmds_CXX | \
12347 module_expsym_cmds_CXX | \
12348 old_archive_from_expsyms_cmds_CXX | \
12349 export_symbols_cmds_CXX | \
12350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12351 postinstall_cmds | postuninstall_cmds | \
12352 old_postinstall_cmds | old_postuninstall_cmds | \
12353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12354 # Double-quote double-evaled strings.
12355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12356 ;;
12357 *)
12358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12359 ;;
12360 esac
12361 done
12362
12363 case $lt_echo in
12364 *'\$0 --fallback-echo"')
12365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12366 ;;
12367 esac
12368
12369cfgfile="$ofile"
12370
12371 cat <<__EOF__ >> "$cfgfile"
12372# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12373
12374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12375
12376# Shell to use when invoking shell scripts.
12377SHELL=$lt_SHELL
12378
12379# Whether or not to build shared libraries.
12380build_libtool_libs=$enable_shared
12381
12382# Whether or not to build static libraries.
12383build_old_libs=$enable_static
12384
12385# Whether or not to add -lc for building shared libraries.
12386build_libtool_need_lc=$archive_cmds_need_lc_CXX
12387
12388# Whether or not to disallow shared libs when runtime libs are static
12389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12390
12391# Whether or not to optimize for fast installation.
12392fast_install=$enable_fast_install
12393
12394# The host system.
12395host_alias=$host_alias
12396host=$host
12397
12398# An echo program that does not interpret backslashes.
12399echo=$lt_echo
12400
12401# The archiver.
12402AR=$lt_AR
12403AR_FLAGS=$lt_AR_FLAGS
12404
12405# A C compiler.
12406LTCC=$lt_LTCC
12407
12408# A language-specific compiler.
12409CC=$lt_compiler_CXX
12410
12411# Is the compiler the GNU C compiler?
12412with_gcc=$GCC_CXX
12413
12414# An ERE matcher.
12415EGREP=$lt_EGREP
12416
12417# The linker used to build libraries.
12418LD=$lt_LD_CXX
12419
12420# Whether we need hard or soft links.
12421LN_S=$lt_LN_S
12422
12423# A BSD-compatible nm program.
12424NM=$lt_NM
12425
12426# A symbol stripping program
12427STRIP=$STRIP
12428
12429# Used to examine libraries when file_magic_cmd begins "file"
12430MAGIC_CMD=$MAGIC_CMD
12431
12432# Used on cygwin: DLL creation program.
12433DLLTOOL="$DLLTOOL"
12434
12435# Used on cygwin: object dumper.
12436OBJDUMP="$OBJDUMP"
12437
12438# Used on cygwin: assembler.
12439AS="$AS"
12440
12441# The name of the directory that contains temporary libtool files.
12442objdir=$objdir
12443
12444# How to create reloadable object files.
12445reload_flag=$lt_reload_flag
12446reload_cmds=$lt_reload_cmds
12447
12448# How to pass a linker flag through the compiler.
12449wl=$lt_lt_prog_compiler_wl_CXX
12450
12451# Object file suffix (normally "o").
12452objext="$ac_objext"
12453
12454# Old archive suffix (normally "a").
12455libext="$libext"
12456
12457# Shared library suffix (normally ".so").
12458shrext='$shrext'
12459
12460# Executable file suffix (normally "").
12461exeext="$exeext"
12462
12463# Additional compiler flags for building library objects.
12464pic_flag=$lt_lt_prog_compiler_pic_CXX
12465pic_mode=$pic_mode
12466
12467# What is the maximum length of a command?
12468max_cmd_len=$lt_cv_sys_max_cmd_len
12469
12470# Does compiler simultaneously support -c and -o options?
12471compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12472
12473# Must we lock files when doing compilation ?
12474need_locks=$lt_need_locks
12475
12476# Do we need the lib prefix for modules?
12477need_lib_prefix=$need_lib_prefix
12478
12479# Do we need a version for libraries?
12480need_version=$need_version
12481
12482# Whether dlopen is supported.
12483dlopen_support=$enable_dlopen
12484
12485# Whether dlopen of programs is supported.
12486dlopen_self=$enable_dlopen_self
12487
12488# Whether dlopen of statically linked programs is supported.
12489dlopen_self_static=$enable_dlopen_self_static
12490
12491# Compiler flag to prevent dynamic linking.
12492link_static_flag=$lt_lt_prog_compiler_static_CXX
12493
12494# Compiler flag to turn off builtin functions.
12495no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12496
12497# Compiler flag to allow reflexive dlopens.
12498export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12499
12500# Compiler flag to generate shared objects directly from archives.
12501whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12502
12503# Compiler flag to generate thread-safe objects.
12504thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12505
12506# Library versioning type.
12507version_type=$version_type
12508
12509# Format of library name prefix.
12510libname_spec=$lt_libname_spec
12511
12512# List of archive names. First name is the real one, the rest are links.
12513# The last name is the one that the linker finds with -lNAME.
12514library_names_spec=$lt_library_names_spec
12515
12516# The coded name of the library, if different from the real name.
12517soname_spec=$lt_soname_spec
12518
12519# Commands used to build and install an old-style archive.
12520RANLIB=$lt_RANLIB
12521old_archive_cmds=$lt_old_archive_cmds_CXX
12522old_postinstall_cmds=$lt_old_postinstall_cmds
12523old_postuninstall_cmds=$lt_old_postuninstall_cmds
12524
12525# Create an old-style archive from a shared archive.
12526old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12527
12528# Create a temporary old-style archive to link instead of a shared archive.
12529old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12530
12531# Commands used to build and install a shared archive.
12532archive_cmds=$lt_archive_cmds_CXX
12533archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12534postinstall_cmds=$lt_postinstall_cmds
12535postuninstall_cmds=$lt_postuninstall_cmds
12536
12537# Commands used to build a loadable module (assumed same as above if empty)
12538module_cmds=$lt_module_cmds_CXX
12539module_expsym_cmds=$lt_module_expsym_cmds_CXX
12540
12541# Commands to strip libraries.
12542old_striplib=$lt_old_striplib
12543striplib=$lt_striplib
12544
12545# Dependencies to place before the objects being linked to create a
12546# shared library.
12547predep_objects=$lt_predep_objects_CXX
12548
12549# Dependencies to place after the objects being linked to create a
12550# shared library.
12551postdep_objects=$lt_postdep_objects_CXX
12552
12553# Dependencies to place before the objects being linked to create a
12554# shared library.
12555predeps=$lt_predeps_CXX
12556
12557# Dependencies to place after the objects being linked to create a
12558# shared library.
12559postdeps=$lt_postdeps_CXX
12560
12561# The library search path used internally by the compiler when linking
12562# a shared library.
12563compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12564
12565# Method to check whether dependent libraries are shared objects.
12566deplibs_check_method=$lt_deplibs_check_method
12567
12568# Command to use when deplibs_check_method == file_magic.
12569file_magic_cmd=$lt_file_magic_cmd
12570
12571# Flag that allows shared libraries with undefined symbols to be built.
12572allow_undefined_flag=$lt_allow_undefined_flag_CXX
12573
12574# Flag that forces no undefined symbols.
12575no_undefined_flag=$lt_no_undefined_flag_CXX
12576
12577# Commands used to finish a libtool library installation in a directory.
12578finish_cmds=$lt_finish_cmds
12579
12580# Same as above, but a single script fragment to be evaled but not shown.
12581finish_eval=$lt_finish_eval
12582
12583# Take the output of nm and produce a listing of raw symbols and C names.
12584global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12585
12586# Transform the output of nm in a proper C declaration
12587global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12588
12589# Transform the output of nm in a C name address pair
12590global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12591
12592# This is the shared library runtime path variable.
12593runpath_var=$runpath_var
12594
12595# This is the shared library path variable.
12596shlibpath_var=$shlibpath_var
12597
12598# Is shlibpath searched before the hard-coded library search path?
12599shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12600
12601# How to hardcode a shared library path into an executable.
12602hardcode_action=$hardcode_action_CXX
12603
12604# Whether we should hardcode library paths into libraries.
12605hardcode_into_libs=$hardcode_into_libs
12606
12607# Flag to hardcode \$libdir into a binary during linking.
12608# This must work even if \$libdir does not exist.
12609hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12610
12611# If ld is used when linking, flag to hardcode \$libdir into
12612# a binary during linking. This must work even if \$libdir does
12613# not exist.
12614hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12615
12616# Whether we need a single -rpath flag with a separated argument.
12617hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12618
12619# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12620# resulting binary.
12621hardcode_direct=$hardcode_direct_CXX
12622
12623# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12624# resulting binary.
12625hardcode_minus_L=$hardcode_minus_L_CXX
12626
12627# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12628# the resulting binary.
12629hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12630
12631# Set to yes if building a shared library automatically hardcodes DIR into the library
12632# and all subsequent libraries and executables linked against it.
12633hardcode_automatic=$hardcode_automatic_CXX
12634
12635# Variables whose values should be saved in libtool wrapper scripts and
12636# restored at relink time.
12637variables_saved_for_relink="$variables_saved_for_relink"
12638
12639# Whether libtool must link a program against all its dependency libraries.
12640link_all_deplibs=$link_all_deplibs_CXX
12641
12642# Compile-time system search path for libraries
12643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12644
12645# Run-time system search path for libraries
12646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12647
12648# Fix the shell variable \$srcfile for the compiler.
12649fix_srcfile_path="$fix_srcfile_path_CXX"
12650
12651# Set to yes if exported symbols are required.
12652always_export_symbols=$always_export_symbols_CXX
12653
12654# The commands to list exported symbols.
12655export_symbols_cmds=$lt_export_symbols_cmds_CXX
12656
12657# The commands to extract the exported symbol list from a shared archive.
12658extract_expsyms_cmds=$lt_extract_expsyms_cmds
12659
12660# Symbols that should not be listed in the preloaded symbols.
12661exclude_expsyms=$lt_exclude_expsyms_CXX
12662
12663# Symbols that must always be exported.
12664include_expsyms=$lt_include_expsyms_CXX
12665
12666# ### END LIBTOOL TAG CONFIG: $tagname
12667
12668__EOF__
12669
12670
12671else
12672 # If there is no Makefile yet, we rely on a make rule to execute
12673 # `config.status --recheck' to rerun these tests and create the
12674 # libtool script then.
12675 test -f Makefile && make "$ltmain"
12676fi
12677
12678
12679ac_ext=c
12680ac_cpp='$CPP $CPPFLAGS'
12681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685CC=$lt_save_CC
12686LDCXX=$LD
12687LD=$lt_save_LD
12688GCC=$lt_save_GCC
12689with_gnu_ldcxx=$with_gnu_ld
12690with_gnu_ld=$lt_save_with_gnu_ld
12691lt_cv_path_LDCXX=$lt_cv_path_LD
12692lt_cv_path_LD=$lt_save_path_LD
12693lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12694lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12695
12696 else
12697 tagname=""
12698 fi
12699 ;;
12700
12701 F77)
12702 if test -n "$F77" && test "X$F77" != "Xno"; then
12703
12704ac_ext=f
12705ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12706ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12708
12709
12710archive_cmds_need_lc_F77=no
12711allow_undefined_flag_F77=
12712always_export_symbols_F77=no
12713archive_expsym_cmds_F77=
12714export_dynamic_flag_spec_F77=
12715hardcode_direct_F77=no
12716hardcode_libdir_flag_spec_F77=
12717hardcode_libdir_flag_spec_ld_F77=
12718hardcode_libdir_separator_F77=
12719hardcode_minus_L_F77=no
12720hardcode_automatic_F77=no
12721module_cmds_F77=
12722module_expsym_cmds_F77=
12723link_all_deplibs_F77=unknown
12724old_archive_cmds_F77=$old_archive_cmds
12725no_undefined_flag_F77=
12726whole_archive_flag_spec_F77=
12727enable_shared_with_static_runtimes_F77=no
12728
12729# Source file extension for f77 test sources.
12730ac_ext=f
12731
12732# Object file extension for compiled f77 test sources.
12733objext=o
12734objext_F77=$objext
12735
12736# Code to be used in simple compile tests
12737lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12738
12739# Code to be used in simple link tests
12740lt_simple_link_test_code=" program t\n end\n"
12741
12742# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12743
12744# If no C compiler was specified, use CC.
12745LTCC=${LTCC-"$CC"}
12746
12747# Allow CC to be a program name with arguments.
12748compiler=$CC
12749
12750
12751# Allow CC to be a program name with arguments.
12752lt_save_CC="$CC"
12753CC=${F77-"f77"}
12754compiler=$CC
12755compiler_F77=$CC
12756cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12757
12758echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12759echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12760echo "$as_me:$LINENO: result: $can_build_shared" >&5
12761echo "${ECHO_T}$can_build_shared" >&6
12762
12763echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12764echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12765test "$can_build_shared" = "no" && enable_shared=no
12766
12767# On AIX, shared libraries and static libraries use the same namespace, and
12768# are all built from PIC.
12769case "$host_os" in
12770aix3*)
12771 test "$enable_shared" = yes && enable_static=no
12772 if test -n "$RANLIB"; then
12773 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12774 postinstall_cmds='$RANLIB $lib'
12775 fi
12776 ;;
12777aix4*)
12778 test "$enable_shared" = yes && enable_static=no
12779 ;;
12780esac
12781echo "$as_me:$LINENO: result: $enable_shared" >&5
12782echo "${ECHO_T}$enable_shared" >&6
12783
12784echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12785echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12786# Make sure either enable_shared or enable_static is yes.
12787test "$enable_shared" = yes || enable_static=yes
12788echo "$as_me:$LINENO: result: $enable_static" >&5
12789echo "${ECHO_T}$enable_static" >&6
12790
12791test "$ld_shlibs_F77" = no && can_build_shared=no
12792
12793GCC_F77="$G77"
12794LD_F77="$LD"
12795
12796lt_prog_compiler_wl_F77=
12797lt_prog_compiler_pic_F77=
12798lt_prog_compiler_static_F77=
12799
12800echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12801echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12802
12803 if test "$GCC" = yes; then
12804 lt_prog_compiler_wl_F77='-Wl,'
12805 lt_prog_compiler_static_F77='-static'
12806
12807 case $host_os in
12808 aix*)
12809 # All AIX code is PIC.
12810 if test "$host_cpu" = ia64; then
12811 # AIX 5 now supports IA64 processor
12812 lt_prog_compiler_static_F77='-Bstatic'
12813 fi
12814 ;;
12815
12816 amigaos*)
12817 # FIXME: we need at least 68020 code to build shared libraries, but
12818 # adding the `-m68020' flag to GCC prevents building anything better,
12819 # like `-m68040'.
12820 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12821 ;;
12822
12823 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12824 # PIC is the default for these OSes.
12825 ;;
12826
12827 mingw* | pw32* | os2*)
12828 # This hack is so that the source file can tell whether it is being
12829 # built for inclusion in a dll (and should export symbols for example).
12830 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12831 ;;
12832
12833 darwin* | rhapsody*)
12834 # PIC is the default on this platform
12835 # Common symbols not allowed in MH_DYLIB files
12836 lt_prog_compiler_pic_F77='-fno-common'
12837 ;;
12838
12839 msdosdjgpp*)
12840 # Just because we use GCC doesn't mean we suddenly get shared libraries
12841 # on systems that don't support them.
12842 lt_prog_compiler_can_build_shared_F77=no
12843 enable_shared=no
12844 ;;
12845
12846 sysv4*MP*)
12847 if test -d /usr/nec; then
12848 lt_prog_compiler_pic_F77=-Kconform_pic
12849 fi
12850 ;;
12851
12852 hpux*)
12853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12854 # not for PA HP-UX.
12855 case "$host_cpu" in
12856 hppa*64*|ia64*)
12857 # +Z the default
12858 ;;
12859 *)
12860 lt_prog_compiler_pic_F77='-fPIC'
12861 ;;
12862 esac
12863 ;;
12864
12865 *)
12866 lt_prog_compiler_pic_F77='-fPIC'
12867 ;;
12868 esac
12869 else
12870 # PORTME Check for flag to pass linker flags through the system compiler.
12871 case $host_os in
12872 aix*)
12873 lt_prog_compiler_wl_F77='-Wl,'
12874 if test "$host_cpu" = ia64; then
12875 # AIX 5 now supports IA64 processor
12876 lt_prog_compiler_static_F77='-Bstatic'
12877 else
12878 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12879 fi
12880 ;;
12881
12882 mingw* | pw32* | os2*)
12883 # This hack is so that the source file can tell whether it is being
12884 # built for inclusion in a dll (and should export symbols for example).
12885 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12886 ;;
12887
12888 hpux9* | hpux10* | hpux11*)
12889 lt_prog_compiler_wl_F77='-Wl,'
12890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12891 # not for PA HP-UX.
12892 case "$host_cpu" in
12893 hppa*64*|ia64*)
12894 # +Z the default
12895 ;;
12896 *)
12897 lt_prog_compiler_pic_F77='+Z'
12898 ;;
12899 esac
12900 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12901 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12902 ;;
12903
12904 irix5* | irix6* | nonstopux*)
12905 lt_prog_compiler_wl_F77='-Wl,'
12906 # PIC (with -KPIC) is the default.
12907 lt_prog_compiler_static_F77='-non_shared'
12908 ;;
12909
12910 newsos6)
12911 lt_prog_compiler_pic_F77='-KPIC'
12912 lt_prog_compiler_static_F77='-Bstatic'
12913 ;;
12914
12915 linux*)
12916 case $CC in
12917 icc|ecc)
12918 lt_prog_compiler_wl_F77='-Wl,'
12919 lt_prog_compiler_pic_F77='-KPIC'
12920 lt_prog_compiler_static_F77='-static'
12921 ;;
12922 ccc)
12923 lt_prog_compiler_wl_F77='-Wl,'
12924 # All Alpha code is PIC.
12925 lt_prog_compiler_static_F77='-non_shared'
12926 ;;
12927 esac
12928 ;;
12929
12930 osf3* | osf4* | osf5*)
12931 lt_prog_compiler_wl_F77='-Wl,'
12932 # All OSF/1 code is PIC.
12933 lt_prog_compiler_static_F77='-non_shared'
12934 ;;
12935
12936 sco3.2v5*)
12937 lt_prog_compiler_pic_F77='-Kpic'
12938 lt_prog_compiler_static_F77='-dn'
12939 ;;
12940
12941 solaris*)
12942 lt_prog_compiler_wl_F77='-Wl,'
12943 lt_prog_compiler_pic_F77='-KPIC'
12944 lt_prog_compiler_static_F77='-Bstatic'
12945 ;;
12946
12947 sunos4*)
12948 lt_prog_compiler_wl_F77='-Qoption ld '
12949 lt_prog_compiler_pic_F77='-PIC'
12950 lt_prog_compiler_static_F77='-Bstatic'
12951 ;;
12952
12953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12954 lt_prog_compiler_wl_F77='-Wl,'
12955 lt_prog_compiler_pic_F77='-KPIC'
12956 lt_prog_compiler_static_F77='-Bstatic'
12957 ;;
12958
12959 sysv4*MP*)
12960 if test -d /usr/nec ;then
12961 lt_prog_compiler_pic_F77='-Kconform_pic'
12962 lt_prog_compiler_static_F77='-Bstatic'
12963 fi
12964 ;;
12965
12966 uts4*)
12967 lt_prog_compiler_pic_F77='-pic'
12968 lt_prog_compiler_static_F77='-Bstatic'
12969 ;;
12970
12971 *)
12972 lt_prog_compiler_can_build_shared_F77=no
12973 ;;
12974 esac
12975 fi
12976
12977echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12978echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12979
12980#
12981# Check to make sure the PIC flag actually works.
12982#
12983if test -n "$lt_prog_compiler_pic_F77"; then
12984 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12985echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12986if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988else
12989 lt_prog_compiler_pic_works_F77=no
12990 ac_outfile=conftest.$ac_objext
12991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12992 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12993 # Insert the option either (1) after the last *FLAGS variable, or
12994 # (2) before a word containing "conftest.", or (3) at the end.
12995 # Note that $ac_compile itself does not contain backslashes and begins
12996 # with a dollar sign (not a hyphen), so the echo should work correctly.
12997 # The option is referenced via a variable to avoid confusing sed.
12998 lt_compile=`echo "$ac_compile" | $SED \
12999 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13001 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +000013002 (eval echo "\"\$as_me:13002: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013003 (eval "$lt_compile" 2>conftest.err)
13004 ac_status=$?
13005 cat conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +000013006 echo "$as_me:13006: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013007 if (exit $ac_status) && test -s "$ac_outfile"; then
13008 # The compiler can only warn and ignore the option if not recognized
13009 # So say no if there are warnings
13010 if test ! -s conftest.err; then
13011 lt_prog_compiler_pic_works_F77=yes
13012 fi
13013 fi
13014 $rm conftest*
13015
13016fi
13017echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13018echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13019
13020if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13021 case $lt_prog_compiler_pic_F77 in
13022 "" | " "*) ;;
13023 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13024 esac
13025else
13026 lt_prog_compiler_pic_F77=
13027 lt_prog_compiler_can_build_shared_F77=no
13028fi
13029
13030fi
13031case "$host_os" in
13032 # For platforms which do not support PIC, -DPIC is meaningless:
13033 *djgpp*)
13034 lt_prog_compiler_pic_F77=
13035 ;;
13036 *)
13037 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13038 ;;
13039esac
13040
13041echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13042echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13043if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13045else
13046 lt_cv_prog_compiler_c_o_F77=no
13047 $rm -r conftest 2>/dev/null
13048 mkdir conftest
13049 cd conftest
13050 mkdir out
13051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13052
13053 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13054 # that will create temporary files in the current directory regardless of
13055 # the output directory. Thus, making CWD read-only will cause this test
13056 # to fail, enabling locking or at least warning the user not to do parallel
13057 # builds.
13058 chmod -w .
13059
13060 lt_compiler_flag="-o out/conftest2.$ac_objext"
13061 # Insert the option either (1) after the last *FLAGS variable, or
13062 # (2) before a word containing "conftest.", or (3) at the end.
13063 # Note that $ac_compile itself does not contain backslashes and begins
13064 # with a dollar sign (not a hyphen), so the echo should work correctly.
13065 lt_compile=`echo "$ac_compile" | $SED \
13066 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13068 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +000013069 (eval echo "\"\$as_me:13069: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013070 (eval "$lt_compile" 2>out/conftest.err)
13071 ac_status=$?
13072 cat out/conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +000013073 echo "$as_me:13073: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13075 then
13076 # The compiler can only warn and ignore the option if not recognized
13077 # So say no if there are warnings
13078 if test ! -s out/conftest.err; then
13079 lt_cv_prog_compiler_c_o_F77=yes
13080 fi
13081 fi
13082 chmod u+w .
13083 $rm conftest* out/*
13084 rmdir out
13085 cd ..
13086 rmdir conftest
13087 $rm conftest*
13088
13089fi
13090echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13091echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13092
13093
13094hard_links="nottested"
13095if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13096 # do not overwrite the value of need_locks provided by the user
13097 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13098echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13099 hard_links=yes
13100 $rm conftest*
13101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13102 touch conftest.a
13103 ln conftest.a conftest.b 2>&5 || hard_links=no
13104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13105 echo "$as_me:$LINENO: result: $hard_links" >&5
13106echo "${ECHO_T}$hard_links" >&6
13107 if test "$hard_links" = no; then
13108 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13109echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13110 need_locks=warn
13111 fi
13112else
13113 need_locks=no
13114fi
13115
13116echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13117echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13118
13119 runpath_var=
13120 allow_undefined_flag_F77=
13121 enable_shared_with_static_runtimes_F77=no
13122 archive_cmds_F77=
13123 archive_expsym_cmds_F77=
13124 old_archive_From_new_cmds_F77=
13125 old_archive_from_expsyms_cmds_F77=
13126 export_dynamic_flag_spec_F77=
13127 whole_archive_flag_spec_F77=
13128 thread_safe_flag_spec_F77=
13129 hardcode_libdir_flag_spec_F77=
13130 hardcode_libdir_flag_spec_ld_F77=
13131 hardcode_libdir_separator_F77=
13132 hardcode_direct_F77=no
13133 hardcode_minus_L_F77=no
13134 hardcode_shlibpath_var_F77=unsupported
13135 link_all_deplibs_F77=unknown
13136 hardcode_automatic_F77=no
13137 module_cmds_F77=
13138 module_expsym_cmds_F77=
13139 always_export_symbols_F77=no
13140 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13141 # include_expsyms should be a list of space-separated symbols to be *always*
13142 # included in the symbol list
13143 include_expsyms_F77=
13144 # exclude_expsyms can be an extended regexp of symbols to exclude
13145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13147 # as well as any symbol that contains `d'.
13148 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13150 # platforms (ab)use it in PIC code, but their linkers get confused if
13151 # the symbol is explicitly referenced. Since portable code cannot
13152 # rely on this symbol name, it's probably fine to never include it in
13153 # preloaded symbol tables.
13154 extract_expsyms_cmds=
13155
13156 case $host_os in
13157 cygwin* | mingw* | pw32*)
13158 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13159 # When not using gcc, we currently assume that we are using
13160 # Microsoft Visual C++.
13161 if test "$GCC" != yes; then
13162 with_gnu_ld=no
13163 fi
13164 ;;
13165 openbsd*)
13166 with_gnu_ld=no
13167 ;;
13168 esac
13169
13170 ld_shlibs_F77=yes
13171 if test "$with_gnu_ld" = yes; then
13172 # If archive_cmds runs LD, not CC, wlarc should be empty
13173 wlarc='${wl}'
13174
13175 # See if GNU ld supports shared libraries.
13176 case $host_os in
13177 aix3* | aix4* | aix5*)
13178 # On AIX/PPC, the GNU linker is very broken
13179 if test "$host_cpu" != ia64; then
13180 ld_shlibs_F77=no
13181 cat <<EOF 1>&2
13182
13183*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13184*** to be unable to reliably create shared libraries on AIX.
13185*** Therefore, libtool is disabling shared libraries support. If you
13186*** really care for shared libraries, you may want to modify your PATH
13187*** so that a non-GNU linker is found, and then restart.
13188
13189EOF
13190 fi
13191 ;;
13192
13193 amigaos*)
13194 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)'
13195 hardcode_libdir_flag_spec_F77='-L$libdir'
13196 hardcode_minus_L_F77=yes
13197
13198 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13199 # that the semantics of dynamic libraries on AmigaOS, at least up
13200 # to version 4, is to share data among multiple programs linked
13201 # with the same dynamic library. Since this doesn't match the
13202 # behavior of shared libraries on other platforms, we can't use
13203 # them.
13204 ld_shlibs_F77=no
13205 ;;
13206
13207 beos*)
13208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13209 allow_undefined_flag_F77=unsupported
13210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13211 # support --undefined. This deserves some investigation. FIXME
13212 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13213 else
13214 ld_shlibs_F77=no
13215 fi
13216 ;;
13217
13218 cygwin* | mingw* | pw32*)
13219 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13220 # as there is no search path for DLLs.
13221 hardcode_libdir_flag_spec_F77='-L$libdir'
13222 allow_undefined_flag_F77=unsupported
13223 always_export_symbols_F77=no
13224 enable_shared_with_static_runtimes_F77=yes
13225 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13226
13227 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13228 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13229 # If the export-symbols file already is a .def file (1st line
13230 # is EXPORTS), use it as is; otherwise, prepend...
13231 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13232 cp $export_symbols $output_objdir/$soname.def;
13233 else
13234 echo EXPORTS > $output_objdir/$soname.def;
13235 cat $export_symbols >> $output_objdir/$soname.def;
13236 fi~
13237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13238 else
13239 ld_shlibs=no
13240 fi
13241 ;;
13242
13243 netbsd*)
13244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13245 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13246 wlarc=
13247 else
13248 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13249 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13250 fi
13251 ;;
13252
13253 solaris* | sysv5*)
13254 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13255 ld_shlibs_F77=no
13256 cat <<EOF 1>&2
13257
13258*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13259*** create shared libraries on Solaris systems. Therefore, libtool
13260*** is disabling shared libraries support. We urge you to upgrade GNU
13261*** binutils to release 2.9.1 or newer. Another option is to modify
13262*** your PATH or compiler configuration so that the native linker is
13263*** used, and then restart.
13264
13265EOF
13266 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13267 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13269 else
13270 ld_shlibs_F77=no
13271 fi
13272 ;;
13273
13274 sunos4*)
13275 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13276 wlarc=
13277 hardcode_direct_F77=yes
13278 hardcode_shlibpath_var_F77=no
13279 ;;
13280
13281 *)
13282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13284 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13285 else
13286 ld_shlibs_F77=no
13287 fi
13288 ;;
13289 esac
13290
13291 if test "$ld_shlibs_F77" = yes; then
13292 runpath_var=LD_RUN_PATH
13293 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13294 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13295 # ancient GNU ld didn't support --whole-archive et. al.
13296 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13297 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13298 else
13299 whole_archive_flag_spec_F77=
13300 fi
13301 fi
13302 else
13303 # PORTME fill in a description of your system's linker (not GNU ld)
13304 case $host_os in
13305 aix3*)
13306 allow_undefined_flag_F77=unsupported
13307 always_export_symbols_F77=yes
13308 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'
13309 # Note: this linker hardcodes the directories in LIBPATH if there
13310 # are no directories specified by -L.
13311 hardcode_minus_L_F77=yes
13312 if test "$GCC" = yes && test -z "$link_static_flag"; then
13313 # Neither direct hardcoding nor static linking is supported with a
13314 # broken collect2.
13315 hardcode_direct_F77=unsupported
13316 fi
13317 ;;
13318
13319 aix4* | aix5*)
13320 if test "$host_cpu" = ia64; then
13321 # On IA64, the linker does run time linking by default, so we don't
13322 # have to do anything special.
13323 aix_use_runtimelinking=no
13324 exp_sym_flag='-Bexport'
13325 no_entry_flag=""
13326 else
13327 # If we're using GNU nm, then we don't want the "-C" option.
13328 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13329 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13330 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'
13331 else
13332 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'
13333 fi
13334 aix_use_runtimelinking=no
13335
13336 # Test if we are trying to use run time linking or normal
13337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13338 # need to do runtime linking.
13339 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13340 for ld_flag in $LDFLAGS; do
13341 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13342 aix_use_runtimelinking=yes
13343 break
13344 fi
13345 done
13346 esac
13347
13348 exp_sym_flag='-bexport'
13349 no_entry_flag='-bnoentry'
13350 fi
13351
13352 # When large executables or shared objects are built, AIX ld can
13353 # have problems creating the table of contents. If linking a library
13354 # or program results in "error TOC overflow" add -mminimal-toc to
13355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13357
13358 archive_cmds_F77=''
13359 hardcode_direct_F77=yes
13360 hardcode_libdir_separator_F77=':'
13361 link_all_deplibs_F77=yes
13362
13363 if test "$GCC" = yes; then
13364 case $host_os in aix4.012|aix4.012.*)
13365 # We only want to do this on AIX 4.2 and lower, the check
13366 # below for broken collect2 doesn't work under 4.3+
13367 collect2name=`${CC} -print-prog-name=collect2`
13368 if test -f "$collect2name" && \
13369 strings "$collect2name" | grep resolve_lib_name >/dev/null
13370 then
13371 # We have reworked collect2
13372 hardcode_direct_F77=yes
13373 else
13374 # We have old collect2
13375 hardcode_direct_F77=unsupported
13376 # It fails to find uninstalled libraries when the uninstalled
13377 # path is not listed in the libpath. Setting hardcode_minus_L
13378 # to unsupported forces relinking
13379 hardcode_minus_L_F77=yes
13380 hardcode_libdir_flag_spec_F77='-L$libdir'
13381 hardcode_libdir_separator_F77=
13382 fi
13383 esac
13384 shared_flag='-shared'
13385 else
13386 # not using gcc
13387 if test "$host_cpu" = ia64; then
13388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13389 # chokes on -Wl,-G. The following line is correct:
13390 shared_flag='-G'
13391 else
13392 if test "$aix_use_runtimelinking" = yes; then
13393 shared_flag='${wl}-G'
13394 else
13395 shared_flag='${wl}-bM:SRE'
13396 fi
13397 fi
13398 fi
13399
13400 # It seems that -bexpall does not export symbols beginning with
13401 # underscore (_), so it is better to generate a list of symbols to export.
13402 always_export_symbols_F77=yes
13403 if test "$aix_use_runtimelinking" = yes; then
13404 # Warning - without using the other runtime loading flags (-brtl),
13405 # -berok will link without error, but may produce a broken library.
13406 allow_undefined_flag_F77='-berok'
13407 # Determine the default libpath from the value encoded in an empty executable.
13408 cat >conftest.$ac_ext <<_ACEOF
13409 program main
13410
13411 end
13412_ACEOF
13413rm -f conftest.$ac_objext conftest$ac_exeext
13414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13415 (eval $ac_link) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -s conftest$ac_exeext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425
13426aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13427}'`
13428# Check for a 64-bit object if we didn't find anything.
13429if 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; }
13430}'`; fi
13431else
13432 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013433sed 's/^/| /' conftest.$ac_ext >&5
13434
John Criswell47fdd832003-07-14 16:52:07 +000013435fi
13436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13438
13439 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13440 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"
13441 else
13442 if test "$host_cpu" = ia64; then
13443 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13444 allow_undefined_flag_F77="-z nodefs"
13445 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"
13446 else
13447 # Determine the default libpath from the value encoded in an empty executable.
13448 cat >conftest.$ac_ext <<_ACEOF
13449 program main
13450
13451 end
13452_ACEOF
13453rm -f conftest.$ac_objext conftest$ac_exeext
13454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -s conftest$ac_exeext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465
13466aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13467}'`
13468# Check for a 64-bit object if we didn't find anything.
13469if 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; }
13470}'`; fi
13471else
13472 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013473sed 's/^/| /' conftest.$ac_ext >&5
13474
John Criswell47fdd832003-07-14 16:52:07 +000013475fi
13476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13478
13479 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13480 # Warning - without using the other run time loading flags,
13481 # -berok will link without error, but may produce a broken library.
13482 no_undefined_flag_F77=' ${wl}-bernotok'
13483 allow_undefined_flag_F77=' ${wl}-berok'
13484 # -bexpall does not export symbols beginning with underscore (_)
13485 always_export_symbols_F77=yes
13486 # Exported symbols can be pulled into shared objects from archives
13487 whole_archive_flag_spec_F77=' '
13488 archive_cmds_need_lc_F77=yes
13489 # This is similar to how AIX traditionally builds it's shared libraries.
13490 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'
13491 fi
13492 fi
13493 ;;
13494
13495 amigaos*)
13496 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)'
13497 hardcode_libdir_flag_spec_F77='-L$libdir'
13498 hardcode_minus_L_F77=yes
13499 # see comment about different semantics on the GNU ld section
13500 ld_shlibs_F77=no
13501 ;;
13502
13503 bsdi4*)
13504 export_dynamic_flag_spec_F77=-rdynamic
13505 ;;
13506
13507 cygwin* | mingw* | pw32*)
13508 # When not using gcc, we currently assume that we are using
13509 # Microsoft Visual C++.
13510 # hardcode_libdir_flag_spec is actually meaningless, as there is
13511 # no search path for DLLs.
13512 hardcode_libdir_flag_spec_F77=' '
13513 allow_undefined_flag_F77=unsupported
13514 # Tell ltmain to make .lib files, not .a files.
13515 libext=lib
13516 # Tell ltmain to make .dll files, not .so files.
13517 shrext=".dll"
13518 # FIXME: Setting linknames here is a bad hack.
13519 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13520 # The linker will automatically build a .lib file if we build a DLL.
13521 old_archive_From_new_cmds_F77='true'
13522 # FIXME: Should let the user specify the lib program.
13523 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13524 fix_srcfile_path='`cygpath -w "$srcfile"`'
13525 enable_shared_with_static_runtimes_F77=yes
13526 ;;
13527
13528 darwin* | rhapsody*)
13529 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13530 archive_cmds_need_lc_F77=no
13531 case "$host_os" in
13532 rhapsody* | darwin1.[012])
13533 allow_undefined_flag_F77='-undefined suppress'
13534 ;;
13535 *) # Darwin 1.3 on
13536 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13537 ;;
13538 esac
13539 # FIXME: Relying on posixy $() will cause problems for
13540 # cross-compilation, but unfortunately the echo tests do not
13541 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13542 # `"' quotes if we put them in here... so don't!
13543 lt_int_apple_cc_single_mod=no
13544 output_verbose_link_cmd='echo'
13545 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13546 lt_int_apple_cc_single_mod=yes
13547 fi
13548 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13549 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13550 else
13551 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'
13552 fi
13553 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13554 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13555 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13556 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}'
13557 else
13558 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}'
13559 fi
13560 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}'
13561 hardcode_direct_F77=no
13562 hardcode_automatic_F77=yes
13563 hardcode_shlibpath_var_F77=unsupported
13564 whole_archive_flag_spec_F77='-all_load $convenience'
13565 link_all_deplibs_F77=yes
13566 fi
13567 ;;
13568
13569 dgux*)
13570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13571 hardcode_libdir_flag_spec_F77='-L$libdir'
13572 hardcode_shlibpath_var_F77=no
13573 ;;
13574
13575 freebsd1*)
13576 ld_shlibs_F77=no
13577 ;;
13578
13579 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13580 # support. Future versions do this automatically, but an explicit c++rt0.o
13581 # does not break anything, and helps significantly (at the cost of a little
13582 # extra space).
13583 freebsd2.2*)
13584 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13585 hardcode_libdir_flag_spec_F77='-R$libdir'
13586 hardcode_direct_F77=yes
13587 hardcode_shlibpath_var_F77=no
13588 ;;
13589
13590 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13591 freebsd2*)
13592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13593 hardcode_direct_F77=yes
13594 hardcode_minus_L_F77=yes
13595 hardcode_shlibpath_var_F77=no
13596 ;;
13597
13598 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13599 freebsd*)
13600 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13601 hardcode_libdir_flag_spec_F77='-R$libdir'
13602 hardcode_direct_F77=yes
13603 hardcode_shlibpath_var_F77=no
13604 ;;
13605
13606 hpux9*)
13607 if test "$GCC" = yes; then
13608 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'
13609 else
13610 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'
13611 fi
13612 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13613 hardcode_libdir_separator_F77=:
13614 hardcode_direct_F77=yes
13615
13616 # hardcode_minus_L: Not really in the search PATH,
13617 # but as the default location of the library.
13618 hardcode_minus_L_F77=yes
13619 export_dynamic_flag_spec_F77='${wl}-E'
13620 ;;
13621
13622 hpux10* | hpux11*)
13623 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13624 case "$host_cpu" in
13625 hppa*64*|ia64*)
13626 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13627 ;;
13628 *)
13629 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13630 ;;
13631 esac
13632 else
13633 case "$host_cpu" in
13634 hppa*64*|ia64*)
13635 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13636 ;;
13637 *)
13638 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13639 ;;
13640 esac
13641 fi
13642 if test "$with_gnu_ld" = no; then
13643 case "$host_cpu" in
13644 hppa*64*)
13645 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13646 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13647 hardcode_libdir_separator_F77=:
13648 hardcode_direct_F77=no
13649 hardcode_shlibpath_var_F77=no
13650 ;;
13651 ia64*)
13652 hardcode_libdir_flag_spec_F77='-L$libdir'
13653 hardcode_direct_F77=no
13654 hardcode_shlibpath_var_F77=no
13655
13656 # hardcode_minus_L: Not really in the search PATH,
13657 # but as the default location of the library.
13658 hardcode_minus_L_F77=yes
13659 ;;
13660 *)
13661 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13662 hardcode_libdir_separator_F77=:
13663 hardcode_direct_F77=yes
13664 export_dynamic_flag_spec_F77='${wl}-E'
13665
13666 # hardcode_minus_L: Not really in the search PATH,
13667 # but as the default location of the library.
13668 hardcode_minus_L_F77=yes
13669 ;;
13670 esac
13671 fi
13672 ;;
13673
13674 irix5* | irix6* | nonstopux*)
13675 if test "$GCC" = yes; then
13676 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'
13677 else
13678 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'
13679 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13680 fi
13681 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13682 hardcode_libdir_separator_F77=:
13683 link_all_deplibs_F77=yes
13684 ;;
13685
13686 netbsd*)
13687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13688 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13689 else
13690 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13691 fi
13692 hardcode_libdir_flag_spec_F77='-R$libdir'
13693 hardcode_direct_F77=yes
13694 hardcode_shlibpath_var_F77=no
13695 ;;
13696
13697 newsos6)
13698 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13699 hardcode_direct_F77=yes
13700 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13701 hardcode_libdir_separator_F77=:
13702 hardcode_shlibpath_var_F77=no
13703 ;;
13704
13705 openbsd*)
13706 hardcode_direct_F77=yes
13707 hardcode_shlibpath_var_F77=no
13708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13709 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13710 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13711 export_dynamic_flag_spec_F77='${wl}-E'
13712 else
13713 case $host_os in
13714 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13715 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13716 hardcode_libdir_flag_spec_F77='-R$libdir'
13717 ;;
13718 *)
13719 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13720 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13721 ;;
13722 esac
13723 fi
13724 ;;
13725
13726 os2*)
13727 hardcode_libdir_flag_spec_F77='-L$libdir'
13728 hardcode_minus_L_F77=yes
13729 allow_undefined_flag_F77=unsupported
13730 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'
13731 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13732 ;;
13733
13734 osf3*)
13735 if test "$GCC" = yes; then
13736 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13737 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'
13738 else
13739 allow_undefined_flag_F77=' -expect_unresolved \*'
13740 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'
13741 fi
13742 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13743 hardcode_libdir_separator_F77=:
13744 ;;
13745
13746 osf4* | osf5*) # as osf3* with the addition of -msym flag
13747 if test "$GCC" = yes; then
13748 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13749 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'
13750 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13751 else
13752 allow_undefined_flag_F77=' -expect_unresolved \*'
13753 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'
13754 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~
13755 $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'
13756
13757 # Both c and cxx compiler support -rpath directly
13758 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13759 fi
13760 hardcode_libdir_separator_F77=:
13761 ;;
13762
13763 sco3.2v5*)
13764 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13765 hardcode_shlibpath_var_F77=no
13766 export_dynamic_flag_spec_F77='${wl}-Bexport'
13767 runpath_var=LD_RUN_PATH
13768 hardcode_runpath_var=yes
13769 ;;
13770
13771 solaris*)
13772 no_undefined_flag_F77=' -z text'
13773 if test "$GCC" = yes; then
13774 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13776 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13777 else
13778 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13779 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13780 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13781 fi
13782 hardcode_libdir_flag_spec_F77='-R$libdir'
13783 hardcode_shlibpath_var_F77=no
13784 case $host_os in
13785 solaris2.[0-5] | solaris2.[0-5].*) ;;
13786 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13787 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13788 esac
13789 link_all_deplibs_F77=yes
13790 ;;
13791
13792 sunos4*)
13793 if test "x$host_vendor" = xsequent; then
13794 # Use $CC to link under sequent, because it throws in some extra .o
13795 # files that make .init and .fini sections work.
13796 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13797 else
13798 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13799 fi
13800 hardcode_libdir_flag_spec_F77='-L$libdir'
13801 hardcode_direct_F77=yes
13802 hardcode_minus_L_F77=yes
13803 hardcode_shlibpath_var_F77=no
13804 ;;
13805
13806 sysv4)
13807 case $host_vendor in
13808 sni)
13809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13810 hardcode_direct_F77=yes # is this really true???
13811 ;;
13812 siemens)
13813 ## LD is ld it makes a PLAMLIB
13814 ## CC just makes a GrossModule.
13815 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13816 reload_cmds_F77='$CC -r -o $output$reload_objs'
13817 hardcode_direct_F77=no
13818 ;;
13819 motorola)
13820 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13821 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13822 ;;
13823 esac
13824 runpath_var='LD_RUN_PATH'
13825 hardcode_shlibpath_var_F77=no
13826 ;;
13827
13828 sysv4.3*)
13829 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830 hardcode_shlibpath_var_F77=no
13831 export_dynamic_flag_spec_F77='-Bexport'
13832 ;;
13833
13834 sysv4*MP*)
13835 if test -d /usr/nec; then
13836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13837 hardcode_shlibpath_var_F77=no
13838 runpath_var=LD_RUN_PATH
13839 hardcode_runpath_var=yes
13840 ld_shlibs_F77=yes
13841 fi
13842 ;;
13843
13844 sysv4.2uw2*)
13845 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_direct_F77=yes
13847 hardcode_minus_L_F77=no
13848 hardcode_shlibpath_var_F77=no
13849 hardcode_runpath_var=yes
13850 runpath_var=LD_RUN_PATH
13851 ;;
13852
13853 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13854 no_undefined_flag_F77='${wl}-z ${wl}text'
13855 if test "$GCC" = yes; then
13856 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13857 else
13858 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13859 fi
13860 runpath_var='LD_RUN_PATH'
13861 hardcode_shlibpath_var_F77=no
13862 ;;
13863
13864 sysv5*)
13865 no_undefined_flag_F77=' -z text'
13866 # $CC -shared without GNU ld will not create a library from C++
13867 # object files and a static libstdc++, better avoid it by now
13868 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13869 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13871 hardcode_libdir_flag_spec_F77=
13872 hardcode_shlibpath_var_F77=no
13873 runpath_var='LD_RUN_PATH'
13874 ;;
13875
13876 uts4*)
13877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 hardcode_libdir_flag_spec_F77='-L$libdir'
13879 hardcode_shlibpath_var_F77=no
13880 ;;
13881
13882 *)
13883 ld_shlibs_F77=no
13884 ;;
13885 esac
13886 fi
13887
13888echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13889echo "${ECHO_T}$ld_shlibs_F77" >&6
13890test "$ld_shlibs_F77" = no && can_build_shared=no
13891
13892variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13893if test "$GCC" = yes; then
13894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13895fi
13896
13897#
13898# Do we need to explicitly link libc?
13899#
13900case "x$archive_cmds_need_lc_F77" in
13901x|xyes)
13902 # Assume -lc should be added
13903 archive_cmds_need_lc_F77=yes
13904
13905 if test "$enable_shared" = yes && test "$GCC" = yes; then
13906 case $archive_cmds_F77 in
13907 *'~'*)
13908 # FIXME: we may have to deal with multi-command sequences.
13909 ;;
13910 '$CC '*)
13911 # Test whether the compiler implicitly links with -lc since on some
13912 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13913 # to ld, don't add -lc before -lgcc.
13914 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13915echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13916 $rm conftest*
13917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13918
13919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920 (eval $ac_compile) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } 2>conftest.err; then
13924 soname=conftest
13925 lib=conftest
13926 libobjs=conftest.$ac_objext
13927 deplibs=
13928 wl=$lt_prog_compiler_wl_F77
13929 compiler_flags=-v
13930 linker_flags=-v
13931 verstring=
13932 output_objdir=.
13933 libname=conftest
13934 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13935 allow_undefined_flag_F77=
13936 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13937 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }
13941 then
13942 archive_cmds_need_lc_F77=no
13943 else
13944 archive_cmds_need_lc_F77=yes
13945 fi
13946 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13947 else
13948 cat conftest.err 1>&5
13949 fi
13950 $rm conftest*
13951 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13952echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13953 ;;
13954 esac
13955 fi
13956 ;;
13957esac
13958
13959echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13960echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13961hardcode_action_F77=
13962if test -n "$hardcode_libdir_flag_spec_F77" || \
13963 test -n "$runpath_var F77" || \
13964 test "X$hardcode_automatic_F77"="Xyes" ; then
13965
13966 # We can hardcode non-existant directories.
13967 if test "$hardcode_direct_F77" != no &&
13968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13969 # have to relink, otherwise we might link with an installed library
13970 # when we should be linking with a yet-to-be-installed one
13971 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13972 test "$hardcode_minus_L_F77" != no; then
13973 # Linking always hardcodes the temporary library directory.
13974 hardcode_action_F77=relink
13975 else
13976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13977 hardcode_action_F77=immediate
13978 fi
13979else
13980 # We cannot hardcode anything, or else we can only hardcode existing
13981 # directories.
13982 hardcode_action_F77=unsupported
13983fi
13984echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13985echo "${ECHO_T}$hardcode_action_F77" >&6
13986
13987if test "$hardcode_action_F77" = relink; then
13988 # Fast installation is not supported
13989 enable_fast_install=no
13990elif test "$shlibpath_overrides_runpath" = yes ||
13991 test "$enable_shared" = no; then
13992 # Fast installation is not necessary
13993 enable_fast_install=needless
13994fi
13995
13996striplib=
13997old_striplib=
13998echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13999echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14000if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14001 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14002 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14003 echo "$as_me:$LINENO: result: yes" >&5
14004echo "${ECHO_T}yes" >&6
14005else
14006# FIXME - insert some real tests, host_os isn't really good enough
14007 case $host_os in
14008 darwin*)
14009 if test -n "$STRIP" ; then
14010 striplib="$STRIP -x"
14011 echo "$as_me:$LINENO: result: yes" >&5
14012echo "${ECHO_T}yes" >&6
14013 else
14014 echo "$as_me:$LINENO: result: no" >&5
14015echo "${ECHO_T}no" >&6
14016fi
14017 ;;
14018 *)
14019 echo "$as_me:$LINENO: result: no" >&5
14020echo "${ECHO_T}no" >&6
14021 ;;
14022 esac
14023fi
14024
14025echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14026echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14027library_names_spec=
14028libname_spec='lib$name'
14029soname_spec=
14030shrext=".so"
14031postinstall_cmds=
14032postuninstall_cmds=
14033finish_cmds=
14034finish_eval=
14035shlibpath_var=
14036shlibpath_overrides_runpath=unknown
14037version_type=none
14038dynamic_linker="$host_os ld.so"
14039sys_lib_dlsearch_path_spec="/lib /usr/lib"
14040if test "$GCC" = yes; then
14041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14042 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14043 # if the path contains ";" then we assume it to be the separator
14044 # otherwise default to the standard path separator (i.e. ":") - it is
14045 # assumed that no part of a normal pathname contains ";" but that should
14046 # okay in the real world where ";" in dirpaths is itself problematic.
14047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14048 else
14049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14050 fi
14051else
14052 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14053fi
14054need_lib_prefix=unknown
14055hardcode_into_libs=no
14056
14057# when you set need_version to no, make sure it does not cause -set_version
14058# flags to be left without arguments
14059need_version=unknown
14060
14061case $host_os in
14062aix3*)
14063 version_type=linux
14064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14065 shlibpath_var=LIBPATH
14066
14067 # AIX 3 has no versioning support, so we append a major version to the name.
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 ;;
14070
14071aix4* | aix5*)
14072 version_type=linux
14073 need_lib_prefix=no
14074 need_version=no
14075 hardcode_into_libs=yes
14076 if test "$host_cpu" = ia64; then
14077 # AIX 5 supports IA64
14078 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 else
14081 # With GCC up to 2.95.x, collect2 would create an import file
14082 # for dependence libraries. The import file would start with
14083 # the line `#! .'. This would cause the generated library to
14084 # depend on `.', always an invalid library. This was fixed in
14085 # development snapshots of GCC prior to 3.0.
14086 case $host_os in
14087 aix4 | aix4.[01] | aix4.[01].*)
14088 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14089 echo ' yes '
14090 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14091 :
14092 else
14093 can_build_shared=no
14094 fi
14095 ;;
14096 esac
14097 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14098 # soname into executable. Probably we can add versioning support to
14099 # collect2, so additional links can be useful in future.
14100 if test "$aix_use_runtimelinking" = yes; then
14101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14102 # instead of lib<name>.a to let people know that these are not
14103 # typical AIX shared libraries.
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14105 else
14106 # We preserve .a as extension for shared libraries through AIX4.2
14107 # and later when we are not doing run time linking.
14108 library_names_spec='${libname}${release}.a $libname.a'
14109 soname_spec='${libname}${release}${shared_ext}$major'
14110 fi
14111 shlibpath_var=LIBPATH
14112 fi
14113 ;;
14114
14115amigaos*)
14116 library_names_spec='$libname.ixlibrary $libname.a'
14117 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14118 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'
14119 ;;
14120
14121beos*)
14122 library_names_spec='${libname}${shared_ext}'
14123 dynamic_linker="$host_os ld.so"
14124 shlibpath_var=LIBRARY_PATH
14125 ;;
14126
14127bsdi4*)
14128 version_type=linux
14129 need_version=no
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14133 shlibpath_var=LD_LIBRARY_PATH
14134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14136 # the default ld.so.conf also contains /usr/contrib/lib and
14137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14138 # libtool to hard-code these into programs
14139 ;;
14140
14141cygwin* | mingw* | pw32*)
14142 version_type=windows
14143 shrext=".dll"
14144 need_version=no
14145 need_lib_prefix=no
14146
14147 case $GCC,$host_os in
14148 yes,cygwin* | yes,mingw* | yes,pw32*)
14149 library_names_spec='$libname.dll.a'
14150 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14151 postinstall_cmds='base_file=`basename \${file}`~
14152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14153 dldir=$destdir/`dirname \$dlpath`~
14154 test -d \$dldir || mkdir -p \$dldir~
14155 $install_prog $dir/$dlname \$dldir/$dlname'
14156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14157 dlpath=$dir/\$dldll~
14158 $rm \$dlpath'
14159 shlibpath_overrides_runpath=yes
14160
14161 case $host_os in
14162 cygwin*)
14163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14165 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14166 ;;
14167 mingw*)
14168 # MinGW DLLs use traditional 'lib' prefix
14169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14171 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14172 # It is most probably a Windows format PATH printed by
14173 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14174 # path with ; separators, and with drive letters. We can handle the
14175 # drive letters (cygwin fileutils understands them), so leave them,
14176 # especially as we might pass files found there to a mingw objdump,
14177 # which wouldn't understand a cygwinified path. Ahh.
14178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14179 else
14180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14181 fi
14182 ;;
14183 pw32*)
14184 # pw32 DLLs use 'pw' prefix rather than 'lib'
14185 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14186 ;;
14187 esac
14188 ;;
14189
14190 *)
14191 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14192 ;;
14193 esac
14194 dynamic_linker='Win32 ld.exe'
14195 # FIXME: first we should search . and the directory the executable is in
14196 shlibpath_var=PATH
14197 ;;
14198
14199darwin* | rhapsody*)
14200 dynamic_linker="$host_os dyld"
14201 version_type=darwin
14202 need_lib_prefix=no
14203 need_version=no
14204 # FIXME: Relying on posixy $() will cause problems for
14205 # cross-compilation, but unfortunately the echo tests do not
14206 # yet detect zsh echo's removal of \ escapes.
14207 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14208 soname_spec='${libname}${release}${major}$shared_ext'
14209 shlibpath_overrides_runpath=yes
14210 shlibpath_var=DYLD_LIBRARY_PATH
14211 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14212 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14213 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14214 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"`
14215 fi
14216 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14217 ;;
14218
14219dgux*)
14220 version_type=linux
14221 need_lib_prefix=no
14222 need_version=no
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14224 soname_spec='${libname}${release}${shared_ext}$major'
14225 shlibpath_var=LD_LIBRARY_PATH
14226 ;;
14227
14228freebsd1*)
14229 dynamic_linker=no
14230 ;;
14231
14232freebsd*)
14233 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14234 version_type=freebsd-$objformat
14235 case $version_type in
14236 freebsd-elf*)
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14238 need_version=no
14239 need_lib_prefix=no
14240 ;;
14241 freebsd-*)
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14243 need_version=yes
14244 ;;
14245 esac
14246 shlibpath_var=LD_LIBRARY_PATH
14247 case $host_os in
14248 freebsd2*)
14249 shlibpath_overrides_runpath=yes
14250 ;;
14251 freebsd3.01* | freebsdelf3.01*)
14252 shlibpath_overrides_runpath=yes
14253 hardcode_into_libs=yes
14254 ;;
14255 *) # from 3.2 on
14256 shlibpath_overrides_runpath=no
14257 hardcode_into_libs=yes
14258 ;;
14259 esac
14260 ;;
14261
14262gnu*)
14263 version_type=linux
14264 need_lib_prefix=no
14265 need_version=no
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 hardcode_into_libs=yes
14270 ;;
14271
14272hpux9* | hpux10* | hpux11*)
14273 # Give a soname corresponding to the major version so that dld.sl refuses to
14274 # link against other versions.
14275 version_type=sunos
14276 need_lib_prefix=no
14277 need_version=no
14278 case "$host_cpu" in
14279 ia64*)
14280 shrext='.so'
14281 hardcode_into_libs=yes
14282 dynamic_linker="$host_os dld.so"
14283 shlibpath_var=LD_LIBRARY_PATH
14284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14286 soname_spec='${libname}${release}${shared_ext}$major'
14287 if test "X$HPUX_IA64_MODE" = X32; then
14288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14289 else
14290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14291 fi
14292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14293 ;;
14294 hppa*64*)
14295 shrext='.sl'
14296 hardcode_into_libs=yes
14297 dynamic_linker="$host_os dld.sl"
14298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14301 soname_spec='${libname}${release}${shared_ext}$major'
14302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14304 ;;
14305 *)
14306 shrext='.sl'
14307 dynamic_linker="$host_os dld.sl"
14308 shlibpath_var=SHLIB_PATH
14309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311 soname_spec='${libname}${release}${shared_ext}$major'
14312 ;;
14313 esac
14314 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14315 postinstall_cmds='chmod 555 $lib'
14316 ;;
14317
14318irix5* | irix6* | nonstopux*)
14319 case $host_os in
14320 nonstopux*) version_type=nonstopux ;;
14321 *)
14322 if test "$lt_cv_prog_gnu_ld" = yes; then
14323 version_type=linux
14324 else
14325 version_type=irix
14326 fi ;;
14327 esac
14328 need_lib_prefix=no
14329 need_version=no
14330 soname_spec='${libname}${release}${shared_ext}$major'
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14332 case $host_os in
14333 irix5* | nonstopux*)
14334 libsuff= shlibsuff=
14335 ;;
14336 *)
14337 case $LD in # libtool.m4 will add one of these switches to LD
14338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14339 libsuff= shlibsuff= libmagic=32-bit;;
14340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14341 libsuff=32 shlibsuff=N32 libmagic=N32;;
14342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14344 *) libsuff= shlibsuff= libmagic=never-match;;
14345 esac
14346 ;;
14347 esac
14348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14349 shlibpath_overrides_runpath=no
14350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14352 hardcode_into_libs=yes
14353 ;;
14354
14355# No shared lib support for Linux oldld, aout, or coff.
14356linux*oldld* | linux*aout* | linux*coff*)
14357 dynamic_linker=no
14358 ;;
14359
14360# This must be Linux ELF.
14361linux*)
14362 version_type=linux
14363 need_lib_prefix=no
14364 need_version=no
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14368 shlibpath_var=LD_LIBRARY_PATH
14369 shlibpath_overrides_runpath=no
14370 # This implies no fast_install, which is unacceptable.
14371 # Some rework will be needed to allow for fast_install
14372 # before this can be enabled.
14373 hardcode_into_libs=yes
14374
14375 # We used to test for /lib/ld.so.1 and disable shared libraries on
14376 # powerpc, because MkLinux only supported shared libraries with the
14377 # GNU dynamic linker. Since this was broken with cross compilers,
14378 # most powerpc-linux boxes support dynamic linking these days and
14379 # people can always --disable-shared, the test was removed, and we
14380 # assume the GNU/Linux dynamic linker is in use.
14381 dynamic_linker='GNU/Linux ld.so'
14382 ;;
14383
14384netbsd*)
14385 version_type=sunos
14386 need_lib_prefix=no
14387 need_version=no
14388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14391 dynamic_linker='NetBSD (a.out) ld.so'
14392 else
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14394 soname_spec='${libname}${release}${shared_ext}$major'
14395 dynamic_linker='NetBSD ld.elf_so'
14396 fi
14397 shlibpath_var=LD_LIBRARY_PATH
14398 shlibpath_overrides_runpath=yes
14399 hardcode_into_libs=yes
14400 ;;
14401
14402newsos6)
14403 version_type=linux
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=yes
14407 ;;
14408
14409nto-qnx)
14410 version_type=linux
14411 need_lib_prefix=no
14412 need_version=no
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 shlibpath_var=LD_LIBRARY_PATH
14416 shlibpath_overrides_runpath=yes
14417 ;;
14418
14419openbsd*)
14420 version_type=sunos
14421 need_lib_prefix=no
14422 need_version=no
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14427 case $host_os in
14428 openbsd2.[89] | openbsd2.[89].*)
14429 shlibpath_overrides_runpath=no
14430 ;;
14431 *)
14432 shlibpath_overrides_runpath=yes
14433 ;;
14434 esac
14435 else
14436 shlibpath_overrides_runpath=yes
14437 fi
14438 ;;
14439
14440os2*)
14441 libname_spec='$name'
14442 shrext=".dll"
14443 need_lib_prefix=no
14444 library_names_spec='$libname${shared_ext} $libname.a'
14445 dynamic_linker='OS/2 ld.exe'
14446 shlibpath_var=LIBPATH
14447 ;;
14448
14449osf3* | osf4* | osf5*)
14450 version_type=osf
14451 need_lib_prefix=no
14452 need_version=no
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14458 ;;
14459
14460sco3.2v5*)
14461 version_type=osf
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 ;;
14466
14467solaris*)
14468 version_type=linux
14469 need_lib_prefix=no
14470 need_version=no
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=yes
14475 hardcode_into_libs=yes
14476 # ldd complains unless libraries are executable
14477 postinstall_cmds='chmod +x $lib'
14478 ;;
14479
14480sunos4*)
14481 version_type=sunos
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14484 shlibpath_var=LD_LIBRARY_PATH
14485 shlibpath_overrides_runpath=yes
14486 if test "$with_gnu_ld" = yes; then
14487 need_lib_prefix=no
14488 fi
14489 need_version=yes
14490 ;;
14491
14492sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14493 version_type=linux
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 shlibpath_var=LD_LIBRARY_PATH
14497 case $host_vendor in
14498 sni)
14499 shlibpath_overrides_runpath=no
14500 need_lib_prefix=no
14501 export_dynamic_flag_spec='${wl}-Blargedynsym'
14502 runpath_var=LD_RUN_PATH
14503 ;;
14504 siemens)
14505 need_lib_prefix=no
14506 ;;
14507 motorola)
14508 need_lib_prefix=no
14509 need_version=no
14510 shlibpath_overrides_runpath=no
14511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14512 ;;
14513 esac
14514 ;;
14515
14516sysv4*MP*)
14517 if test -d /usr/nec ;then
14518 version_type=linux
14519 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14520 soname_spec='$libname${shared_ext}.$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 fi
14523 ;;
14524
14525uts4*)
14526 version_type=linux
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 ;;
14531
14532*)
14533 dynamic_linker=no
14534 ;;
14535esac
14536echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14537echo "${ECHO_T}$dynamic_linker" >&6
14538test "$dynamic_linker" = no && can_build_shared=no
14539
14540
14541# The else clause should only fire when bootstrapping the
14542# libtool distribution, otherwise you forgot to ship ltmain.sh
14543# with your package, and you will get complaints that there are
14544# no rules to generate ltmain.sh.
14545if test -f "$ltmain"; then
14546 # See if we are running on zsh, and set the options which allow our commands through
14547 # without removal of \ escapes.
14548 if test -n "${ZSH_VERSION+set}" ; then
14549 setopt NO_GLOB_SUBST
14550 fi
14551 # Now quote all the things that may contain metacharacters while being
14552 # careful not to overquote the AC_SUBSTed values. We take copies of the
14553 # variables and quote the copies for generation of the libtool script.
14554 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14555 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14556 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14557 deplibs_check_method reload_flag reload_cmds need_locks \
14558 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14559 lt_cv_sys_global_symbol_to_c_name_address \
14560 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14561 old_postinstall_cmds old_postuninstall_cmds \
14562 compiler_F77 \
14563 CC_F77 \
14564 LD_F77 \
14565 lt_prog_compiler_wl_F77 \
14566 lt_prog_compiler_pic_F77 \
14567 lt_prog_compiler_static_F77 \
14568 lt_prog_compiler_no_builtin_flag_F77 \
14569 export_dynamic_flag_spec_F77 \
14570 thread_safe_flag_spec_F77 \
14571 whole_archive_flag_spec_F77 \
14572 enable_shared_with_static_runtimes_F77 \
14573 old_archive_cmds_F77 \
14574 old_archive_from_new_cmds_F77 \
14575 predep_objects_F77 \
14576 postdep_objects_F77 \
14577 predeps_F77 \
14578 postdeps_F77 \
14579 compiler_lib_search_path_F77 \
14580 archive_cmds_F77 \
14581 archive_expsym_cmds_F77 \
14582 postinstall_cmds_F77 \
14583 postuninstall_cmds_F77 \
14584 old_archive_from_expsyms_cmds_F77 \
14585 allow_undefined_flag_F77 \
14586 no_undefined_flag_F77 \
14587 export_symbols_cmds_F77 \
14588 hardcode_libdir_flag_spec_F77 \
14589 hardcode_libdir_flag_spec_ld_F77 \
14590 hardcode_libdir_separator_F77 \
14591 hardcode_automatic_F77 \
14592 module_cmds_F77 \
14593 module_expsym_cmds_F77 \
14594 lt_cv_prog_compiler_c_o_F77 \
14595 exclude_expsyms_F77 \
14596 include_expsyms_F77; do
14597
14598 case $var in
14599 old_archive_cmds_F77 | \
14600 old_archive_from_new_cmds_F77 | \
14601 archive_cmds_F77 | \
14602 archive_expsym_cmds_F77 | \
14603 module_cmds_F77 | \
14604 module_expsym_cmds_F77 | \
14605 old_archive_from_expsyms_cmds_F77 | \
14606 export_symbols_cmds_F77 | \
14607 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14608 postinstall_cmds | postuninstall_cmds | \
14609 old_postinstall_cmds | old_postuninstall_cmds | \
14610 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14611 # Double-quote double-evaled strings.
14612 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14613 ;;
14614 *)
14615 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14616 ;;
14617 esac
14618 done
14619
14620 case $lt_echo in
14621 *'\$0 --fallback-echo"')
14622 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14623 ;;
14624 esac
14625
14626cfgfile="$ofile"
14627
14628 cat <<__EOF__ >> "$cfgfile"
14629# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14630
14631# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14632
14633# Shell to use when invoking shell scripts.
14634SHELL=$lt_SHELL
14635
14636# Whether or not to build shared libraries.
14637build_libtool_libs=$enable_shared
14638
14639# Whether or not to build static libraries.
14640build_old_libs=$enable_static
14641
14642# Whether or not to add -lc for building shared libraries.
14643build_libtool_need_lc=$archive_cmds_need_lc_F77
14644
14645# Whether or not to disallow shared libs when runtime libs are static
14646allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14647
14648# Whether or not to optimize for fast installation.
14649fast_install=$enable_fast_install
14650
14651# The host system.
14652host_alias=$host_alias
14653host=$host
14654
14655# An echo program that does not interpret backslashes.
14656echo=$lt_echo
14657
14658# The archiver.
14659AR=$lt_AR
14660AR_FLAGS=$lt_AR_FLAGS
14661
14662# A C compiler.
14663LTCC=$lt_LTCC
14664
14665# A language-specific compiler.
14666CC=$lt_compiler_F77
14667
14668# Is the compiler the GNU C compiler?
14669with_gcc=$GCC_F77
14670
14671# An ERE matcher.
14672EGREP=$lt_EGREP
14673
14674# The linker used to build libraries.
14675LD=$lt_LD_F77
14676
14677# Whether we need hard or soft links.
14678LN_S=$lt_LN_S
14679
14680# A BSD-compatible nm program.
14681NM=$lt_NM
14682
14683# A symbol stripping program
14684STRIP=$STRIP
14685
14686# Used to examine libraries when file_magic_cmd begins "file"
14687MAGIC_CMD=$MAGIC_CMD
14688
14689# Used on cygwin: DLL creation program.
14690DLLTOOL="$DLLTOOL"
14691
14692# Used on cygwin: object dumper.
14693OBJDUMP="$OBJDUMP"
14694
14695# Used on cygwin: assembler.
14696AS="$AS"
14697
14698# The name of the directory that contains temporary libtool files.
14699objdir=$objdir
14700
14701# How to create reloadable object files.
14702reload_flag=$lt_reload_flag
14703reload_cmds=$lt_reload_cmds
14704
14705# How to pass a linker flag through the compiler.
14706wl=$lt_lt_prog_compiler_wl_F77
14707
14708# Object file suffix (normally "o").
14709objext="$ac_objext"
14710
14711# Old archive suffix (normally "a").
14712libext="$libext"
14713
14714# Shared library suffix (normally ".so").
14715shrext='$shrext'
14716
14717# Executable file suffix (normally "").
14718exeext="$exeext"
14719
14720# Additional compiler flags for building library objects.
14721pic_flag=$lt_lt_prog_compiler_pic_F77
14722pic_mode=$pic_mode
14723
14724# What is the maximum length of a command?
14725max_cmd_len=$lt_cv_sys_max_cmd_len
14726
14727# Does compiler simultaneously support -c and -o options?
14728compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14729
14730# Must we lock files when doing compilation ?
14731need_locks=$lt_need_locks
14732
14733# Do we need the lib prefix for modules?
14734need_lib_prefix=$need_lib_prefix
14735
14736# Do we need a version for libraries?
14737need_version=$need_version
14738
14739# Whether dlopen is supported.
14740dlopen_support=$enable_dlopen
14741
14742# Whether dlopen of programs is supported.
14743dlopen_self=$enable_dlopen_self
14744
14745# Whether dlopen of statically linked programs is supported.
14746dlopen_self_static=$enable_dlopen_self_static
14747
14748# Compiler flag to prevent dynamic linking.
14749link_static_flag=$lt_lt_prog_compiler_static_F77
14750
14751# Compiler flag to turn off builtin functions.
14752no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14753
14754# Compiler flag to allow reflexive dlopens.
14755export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14756
14757# Compiler flag to generate shared objects directly from archives.
14758whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14759
14760# Compiler flag to generate thread-safe objects.
14761thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14762
14763# Library versioning type.
14764version_type=$version_type
14765
14766# Format of library name prefix.
14767libname_spec=$lt_libname_spec
14768
14769# List of archive names. First name is the real one, the rest are links.
14770# The last name is the one that the linker finds with -lNAME.
14771library_names_spec=$lt_library_names_spec
14772
14773# The coded name of the library, if different from the real name.
14774soname_spec=$lt_soname_spec
14775
14776# Commands used to build and install an old-style archive.
14777RANLIB=$lt_RANLIB
14778old_archive_cmds=$lt_old_archive_cmds_F77
14779old_postinstall_cmds=$lt_old_postinstall_cmds
14780old_postuninstall_cmds=$lt_old_postuninstall_cmds
14781
14782# Create an old-style archive from a shared archive.
14783old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14784
14785# Create a temporary old-style archive to link instead of a shared archive.
14786old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14787
14788# Commands used to build and install a shared archive.
14789archive_cmds=$lt_archive_cmds_F77
14790archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14791postinstall_cmds=$lt_postinstall_cmds
14792postuninstall_cmds=$lt_postuninstall_cmds
14793
14794# Commands used to build a loadable module (assumed same as above if empty)
14795module_cmds=$lt_module_cmds_F77
14796module_expsym_cmds=$lt_module_expsym_cmds_F77
14797
14798# Commands to strip libraries.
14799old_striplib=$lt_old_striplib
14800striplib=$lt_striplib
14801
14802# Dependencies to place before the objects being linked to create a
14803# shared library.
14804predep_objects=$lt_predep_objects_F77
14805
14806# Dependencies to place after the objects being linked to create a
14807# shared library.
14808postdep_objects=$lt_postdep_objects_F77
14809
14810# Dependencies to place before the objects being linked to create a
14811# shared library.
14812predeps=$lt_predeps_F77
14813
14814# Dependencies to place after the objects being linked to create a
14815# shared library.
14816postdeps=$lt_postdeps_F77
14817
14818# The library search path used internally by the compiler when linking
14819# a shared library.
14820compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14821
14822# Method to check whether dependent libraries are shared objects.
14823deplibs_check_method=$lt_deplibs_check_method
14824
14825# Command to use when deplibs_check_method == file_magic.
14826file_magic_cmd=$lt_file_magic_cmd
14827
14828# Flag that allows shared libraries with undefined symbols to be built.
14829allow_undefined_flag=$lt_allow_undefined_flag_F77
14830
14831# Flag that forces no undefined symbols.
14832no_undefined_flag=$lt_no_undefined_flag_F77
14833
14834# Commands used to finish a libtool library installation in a directory.
14835finish_cmds=$lt_finish_cmds
14836
14837# Same as above, but a single script fragment to be evaled but not shown.
14838finish_eval=$lt_finish_eval
14839
14840# Take the output of nm and produce a listing of raw symbols and C names.
14841global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14842
14843# Transform the output of nm in a proper C declaration
14844global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14845
14846# Transform the output of nm in a C name address pair
14847global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14848
14849# This is the shared library runtime path variable.
14850runpath_var=$runpath_var
14851
14852# This is the shared library path variable.
14853shlibpath_var=$shlibpath_var
14854
14855# Is shlibpath searched before the hard-coded library search path?
14856shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14857
14858# How to hardcode a shared library path into an executable.
14859hardcode_action=$hardcode_action_F77
14860
14861# Whether we should hardcode library paths into libraries.
14862hardcode_into_libs=$hardcode_into_libs
14863
14864# Flag to hardcode \$libdir into a binary during linking.
14865# This must work even if \$libdir does not exist.
14866hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14867
14868# If ld is used when linking, flag to hardcode \$libdir into
14869# a binary during linking. This must work even if \$libdir does
14870# not exist.
14871hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14872
14873# Whether we need a single -rpath flag with a separated argument.
14874hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14875
14876# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14877# resulting binary.
14878hardcode_direct=$hardcode_direct_F77
14879
14880# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14881# resulting binary.
14882hardcode_minus_L=$hardcode_minus_L_F77
14883
14884# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14885# the resulting binary.
14886hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14887
14888# Set to yes if building a shared library automatically hardcodes DIR into the library
14889# and all subsequent libraries and executables linked against it.
14890hardcode_automatic=$hardcode_automatic_F77
14891
14892# Variables whose values should be saved in libtool wrapper scripts and
14893# restored at relink time.
14894variables_saved_for_relink="$variables_saved_for_relink"
14895
14896# Whether libtool must link a program against all its dependency libraries.
14897link_all_deplibs=$link_all_deplibs_F77
14898
14899# Compile-time system search path for libraries
14900sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14901
14902# Run-time system search path for libraries
14903sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14904
14905# Fix the shell variable \$srcfile for the compiler.
14906fix_srcfile_path="$fix_srcfile_path_F77"
14907
14908# Set to yes if exported symbols are required.
14909always_export_symbols=$always_export_symbols_F77
14910
14911# The commands to list exported symbols.
14912export_symbols_cmds=$lt_export_symbols_cmds_F77
14913
14914# The commands to extract the exported symbol list from a shared archive.
14915extract_expsyms_cmds=$lt_extract_expsyms_cmds
14916
14917# Symbols that should not be listed in the preloaded symbols.
14918exclude_expsyms=$lt_exclude_expsyms_F77
14919
14920# Symbols that must always be exported.
14921include_expsyms=$lt_include_expsyms_F77
14922
14923# ### END LIBTOOL TAG CONFIG: $tagname
14924
14925__EOF__
14926
14927
14928else
14929 # If there is no Makefile yet, we rely on a make rule to execute
14930 # `config.status --recheck' to rerun these tests and create the
14931 # libtool script then.
14932 test -f Makefile && make "$ltmain"
14933fi
14934
14935
14936ac_ext=c
14937ac_cpp='$CPP $CPPFLAGS'
14938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14940ac_compiler_gnu=$ac_cv_c_compiler_gnu
14941
14942CC="$lt_save_CC"
14943
14944 else
14945 tagname=""
14946 fi
14947 ;;
14948
14949 GCJ)
14950 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14951
14952
14953
14954# Source file extension for Java test sources.
14955ac_ext=java
14956
14957# Object file extension for compiled Java test sources.
14958objext=o
14959objext_GCJ=$objext
14960
14961# Code to be used in simple compile tests
14962lt_simple_compile_test_code="class foo {}\n"
14963
14964# Code to be used in simple link tests
14965lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14966
14967# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14968
14969# If no C compiler was specified, use CC.
14970LTCC=${LTCC-"$CC"}
14971
14972# Allow CC to be a program name with arguments.
14973compiler=$CC
14974
14975
14976# Allow CC to be a program name with arguments.
14977lt_save_CC="$CC"
14978CC=${GCJ-"gcj"}
14979compiler=$CC
14980compiler_GCJ=$CC
14981
14982# GCJ did not exist at the time GCC didn't implicitly link libc in.
14983archive_cmds_need_lc_GCJ=no
14984
14985## CAVEAT EMPTOR:
14986## There is no encapsulation within the following macros, do not change
14987## the running order or otherwise move them around unless you know exactly
14988## what you are doing...
14989
14990lt_prog_compiler_no_builtin_flag_GCJ=
14991
14992if test "$GCC" = yes; then
14993 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14994
14995 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14996echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14997if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999else
15000 lt_cv_prog_compiler_rtti_exceptions=no
15001 ac_outfile=conftest.$ac_objext
15002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15003 lt_compiler_flag="-fno-rtti -fno-exceptions"
15004 # Insert the option either (1) after the last *FLAGS variable, or
15005 # (2) before a word containing "conftest.", or (3) at the end.
15006 # Note that $ac_compile itself does not contain backslashes and begins
15007 # with a dollar sign (not a hyphen), so the echo should work correctly.
15008 # The option is referenced via a variable to avoid confusing sed.
15009 lt_compile=`echo "$ac_compile" | $SED \
15010 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15012 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +000015013 (eval echo "\"\$as_me:15013: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015014 (eval "$lt_compile" 2>conftest.err)
15015 ac_status=$?
15016 cat conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +000015017 echo "$as_me:15017: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015018 if (exit $ac_status) && test -s "$ac_outfile"; then
15019 # The compiler can only warn and ignore the option if not recognized
15020 # So say no if there are warnings
15021 if test ! -s conftest.err; then
15022 lt_cv_prog_compiler_rtti_exceptions=yes
15023 fi
15024 fi
15025 $rm conftest*
15026
15027fi
15028echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15029echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15030
15031if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15032 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15033else
15034 :
15035fi
15036
15037fi
15038
15039lt_prog_compiler_wl_GCJ=
15040lt_prog_compiler_pic_GCJ=
15041lt_prog_compiler_static_GCJ=
15042
15043echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15044echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15045
15046 if test "$GCC" = yes; then
15047 lt_prog_compiler_wl_GCJ='-Wl,'
15048 lt_prog_compiler_static_GCJ='-static'
15049
15050 case $host_os in
15051 aix*)
15052 # All AIX code is PIC.
15053 if test "$host_cpu" = ia64; then
15054 # AIX 5 now supports IA64 processor
15055 lt_prog_compiler_static_GCJ='-Bstatic'
15056 fi
15057 ;;
15058
15059 amigaos*)
15060 # FIXME: we need at least 68020 code to build shared libraries, but
15061 # adding the `-m68020' flag to GCC prevents building anything better,
15062 # like `-m68040'.
15063 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15064 ;;
15065
15066 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15067 # PIC is the default for these OSes.
15068 ;;
15069
15070 mingw* | pw32* | os2*)
15071 # This hack is so that the source file can tell whether it is being
15072 # built for inclusion in a dll (and should export symbols for example).
15073 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15074 ;;
15075
15076 darwin* | rhapsody*)
15077 # PIC is the default on this platform
15078 # Common symbols not allowed in MH_DYLIB files
15079 lt_prog_compiler_pic_GCJ='-fno-common'
15080 ;;
15081
15082 msdosdjgpp*)
15083 # Just because we use GCC doesn't mean we suddenly get shared libraries
15084 # on systems that don't support them.
15085 lt_prog_compiler_can_build_shared_GCJ=no
15086 enable_shared=no
15087 ;;
15088
15089 sysv4*MP*)
15090 if test -d /usr/nec; then
15091 lt_prog_compiler_pic_GCJ=-Kconform_pic
15092 fi
15093 ;;
15094
15095 hpux*)
15096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15097 # not for PA HP-UX.
15098 case "$host_cpu" in
15099 hppa*64*|ia64*)
15100 # +Z the default
15101 ;;
15102 *)
15103 lt_prog_compiler_pic_GCJ='-fPIC'
15104 ;;
15105 esac
15106 ;;
15107
15108 *)
15109 lt_prog_compiler_pic_GCJ='-fPIC'
15110 ;;
15111 esac
15112 else
15113 # PORTME Check for flag to pass linker flags through the system compiler.
15114 case $host_os in
15115 aix*)
15116 lt_prog_compiler_wl_GCJ='-Wl,'
15117 if test "$host_cpu" = ia64; then
15118 # AIX 5 now supports IA64 processor
15119 lt_prog_compiler_static_GCJ='-Bstatic'
15120 else
15121 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15122 fi
15123 ;;
15124
15125 mingw* | pw32* | os2*)
15126 # This hack is so that the source file can tell whether it is being
15127 # built for inclusion in a dll (and should export symbols for example).
15128 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15129 ;;
15130
15131 hpux9* | hpux10* | hpux11*)
15132 lt_prog_compiler_wl_GCJ='-Wl,'
15133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15134 # not for PA HP-UX.
15135 case "$host_cpu" in
15136 hppa*64*|ia64*)
15137 # +Z the default
15138 ;;
15139 *)
15140 lt_prog_compiler_pic_GCJ='+Z'
15141 ;;
15142 esac
15143 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15144 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15145 ;;
15146
15147 irix5* | irix6* | nonstopux*)
15148 lt_prog_compiler_wl_GCJ='-Wl,'
15149 # PIC (with -KPIC) is the default.
15150 lt_prog_compiler_static_GCJ='-non_shared'
15151 ;;
15152
15153 newsos6)
15154 lt_prog_compiler_pic_GCJ='-KPIC'
15155 lt_prog_compiler_static_GCJ='-Bstatic'
15156 ;;
15157
15158 linux*)
15159 case $CC in
15160 icc|ecc)
15161 lt_prog_compiler_wl_GCJ='-Wl,'
15162 lt_prog_compiler_pic_GCJ='-KPIC'
15163 lt_prog_compiler_static_GCJ='-static'
15164 ;;
15165 ccc)
15166 lt_prog_compiler_wl_GCJ='-Wl,'
15167 # All Alpha code is PIC.
15168 lt_prog_compiler_static_GCJ='-non_shared'
15169 ;;
15170 esac
15171 ;;
15172
15173 osf3* | osf4* | osf5*)
15174 lt_prog_compiler_wl_GCJ='-Wl,'
15175 # All OSF/1 code is PIC.
15176 lt_prog_compiler_static_GCJ='-non_shared'
15177 ;;
15178
15179 sco3.2v5*)
15180 lt_prog_compiler_pic_GCJ='-Kpic'
15181 lt_prog_compiler_static_GCJ='-dn'
15182 ;;
15183
15184 solaris*)
15185 lt_prog_compiler_wl_GCJ='-Wl,'
15186 lt_prog_compiler_pic_GCJ='-KPIC'
15187 lt_prog_compiler_static_GCJ='-Bstatic'
15188 ;;
15189
15190 sunos4*)
15191 lt_prog_compiler_wl_GCJ='-Qoption ld '
15192 lt_prog_compiler_pic_GCJ='-PIC'
15193 lt_prog_compiler_static_GCJ='-Bstatic'
15194 ;;
15195
15196 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15197 lt_prog_compiler_wl_GCJ='-Wl,'
15198 lt_prog_compiler_pic_GCJ='-KPIC'
15199 lt_prog_compiler_static_GCJ='-Bstatic'
15200 ;;
15201
15202 sysv4*MP*)
15203 if test -d /usr/nec ;then
15204 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15205 lt_prog_compiler_static_GCJ='-Bstatic'
15206 fi
15207 ;;
15208
15209 uts4*)
15210 lt_prog_compiler_pic_GCJ='-pic'
15211 lt_prog_compiler_static_GCJ='-Bstatic'
15212 ;;
15213
15214 *)
15215 lt_prog_compiler_can_build_shared_GCJ=no
15216 ;;
15217 esac
15218 fi
15219
15220echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15221echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15222
15223#
15224# Check to make sure the PIC flag actually works.
15225#
15226if test -n "$lt_prog_compiler_pic_GCJ"; then
15227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15228echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15229if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231else
15232 lt_prog_compiler_pic_works_GCJ=no
15233 ac_outfile=conftest.$ac_objext
15234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15235 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15236 # Insert the option either (1) after the last *FLAGS variable, or
15237 # (2) before a word containing "conftest.", or (3) at the end.
15238 # Note that $ac_compile itself does not contain backslashes and begins
15239 # with a dollar sign (not a hyphen), so the echo should work correctly.
15240 # The option is referenced via a variable to avoid confusing sed.
15241 lt_compile=`echo "$ac_compile" | $SED \
15242 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15244 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +000015245 (eval echo "\"\$as_me:15245: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015246 (eval "$lt_compile" 2>conftest.err)
15247 ac_status=$?
15248 cat conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +000015249 echo "$as_me:15249: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015250 if (exit $ac_status) && test -s "$ac_outfile"; then
15251 # The compiler can only warn and ignore the option if not recognized
15252 # So say no if there are warnings
15253 if test ! -s conftest.err; then
15254 lt_prog_compiler_pic_works_GCJ=yes
15255 fi
15256 fi
15257 $rm conftest*
15258
15259fi
15260echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15261echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15262
15263if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15264 case $lt_prog_compiler_pic_GCJ in
15265 "" | " "*) ;;
15266 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15267 esac
15268else
15269 lt_prog_compiler_pic_GCJ=
15270 lt_prog_compiler_can_build_shared_GCJ=no
15271fi
15272
15273fi
15274case "$host_os" in
15275 # For platforms which do not support PIC, -DPIC is meaningless:
15276 *djgpp*)
15277 lt_prog_compiler_pic_GCJ=
15278 ;;
15279 *)
15280 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15281 ;;
15282esac
15283
15284echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15285echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15286if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288else
15289 lt_cv_prog_compiler_c_o_GCJ=no
15290 $rm -r conftest 2>/dev/null
15291 mkdir conftest
15292 cd conftest
15293 mkdir out
15294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15295
15296 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15297 # that will create temporary files in the current directory regardless of
15298 # the output directory. Thus, making CWD read-only will cause this test
15299 # to fail, enabling locking or at least warning the user not to do parallel
15300 # builds.
15301 chmod -w .
15302
15303 lt_compiler_flag="-o out/conftest2.$ac_objext"
15304 # Insert the option either (1) after the last *FLAGS variable, or
15305 # (2) before a word containing "conftest.", or (3) at the end.
15306 # Note that $ac_compile itself does not contain backslashes and begins
15307 # with a dollar sign (not a hyphen), so the echo should work correctly.
15308 lt_compile=`echo "$ac_compile" | $SED \
15309 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15311 -e 's:$: $lt_compiler_flag:'`
John Criswell613758d2003-09-11 18:03:50 +000015312 (eval echo "\"\$as_me:15312: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015313 (eval "$lt_compile" 2>out/conftest.err)
15314 ac_status=$?
15315 cat out/conftest.err >&5
John Criswell613758d2003-09-11 18:03:50 +000015316 echo "$as_me:15316: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15318 then
15319 # The compiler can only warn and ignore the option if not recognized
15320 # So say no if there are warnings
15321 if test ! -s out/conftest.err; then
15322 lt_cv_prog_compiler_c_o_GCJ=yes
15323 fi
15324 fi
15325 chmod u+w .
15326 $rm conftest* out/*
15327 rmdir out
15328 cd ..
15329 rmdir conftest
15330 $rm conftest*
15331
15332fi
15333echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15334echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15335
15336
15337hard_links="nottested"
15338if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15339 # do not overwrite the value of need_locks provided by the user
15340 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15341echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15342 hard_links=yes
15343 $rm conftest*
15344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15345 touch conftest.a
15346 ln conftest.a conftest.b 2>&5 || hard_links=no
15347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15348 echo "$as_me:$LINENO: result: $hard_links" >&5
15349echo "${ECHO_T}$hard_links" >&6
15350 if test "$hard_links" = no; then
15351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15352echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15353 need_locks=warn
15354 fi
15355else
15356 need_locks=no
15357fi
15358
15359echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15360echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15361
15362 runpath_var=
15363 allow_undefined_flag_GCJ=
15364 enable_shared_with_static_runtimes_GCJ=no
15365 archive_cmds_GCJ=
15366 archive_expsym_cmds_GCJ=
15367 old_archive_From_new_cmds_GCJ=
15368 old_archive_from_expsyms_cmds_GCJ=
15369 export_dynamic_flag_spec_GCJ=
15370 whole_archive_flag_spec_GCJ=
15371 thread_safe_flag_spec_GCJ=
15372 hardcode_libdir_flag_spec_GCJ=
15373 hardcode_libdir_flag_spec_ld_GCJ=
15374 hardcode_libdir_separator_GCJ=
15375 hardcode_direct_GCJ=no
15376 hardcode_minus_L_GCJ=no
15377 hardcode_shlibpath_var_GCJ=unsupported
15378 link_all_deplibs_GCJ=unknown
15379 hardcode_automatic_GCJ=no
15380 module_cmds_GCJ=
15381 module_expsym_cmds_GCJ=
15382 always_export_symbols_GCJ=no
15383 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15384 # include_expsyms should be a list of space-separated symbols to be *always*
15385 # included in the symbol list
15386 include_expsyms_GCJ=
15387 # exclude_expsyms can be an extended regexp of symbols to exclude
15388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15390 # as well as any symbol that contains `d'.
15391 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15393 # platforms (ab)use it in PIC code, but their linkers get confused if
15394 # the symbol is explicitly referenced. Since portable code cannot
15395 # rely on this symbol name, it's probably fine to never include it in
15396 # preloaded symbol tables.
15397 extract_expsyms_cmds=
15398
15399 case $host_os in
15400 cygwin* | mingw* | pw32*)
15401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15402 # When not using gcc, we currently assume that we are using
15403 # Microsoft Visual C++.
15404 if test "$GCC" != yes; then
15405 with_gnu_ld=no
15406 fi
15407 ;;
15408 openbsd*)
15409 with_gnu_ld=no
15410 ;;
15411 esac
15412
15413 ld_shlibs_GCJ=yes
15414 if test "$with_gnu_ld" = yes; then
15415 # If archive_cmds runs LD, not CC, wlarc should be empty
15416 wlarc='${wl}'
15417
15418 # See if GNU ld supports shared libraries.
15419 case $host_os in
15420 aix3* | aix4* | aix5*)
15421 # On AIX/PPC, the GNU linker is very broken
15422 if test "$host_cpu" != ia64; then
15423 ld_shlibs_GCJ=no
15424 cat <<EOF 1>&2
15425
15426*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15427*** to be unable to reliably create shared libraries on AIX.
15428*** Therefore, libtool is disabling shared libraries support. If you
15429*** really care for shared libraries, you may want to modify your PATH
15430*** so that a non-GNU linker is found, and then restart.
15431
15432EOF
15433 fi
15434 ;;
15435
15436 amigaos*)
15437 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)'
15438 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15439 hardcode_minus_L_GCJ=yes
15440
15441 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15442 # that the semantics of dynamic libraries on AmigaOS, at least up
15443 # to version 4, is to share data among multiple programs linked
15444 # with the same dynamic library. Since this doesn't match the
15445 # behavior of shared libraries on other platforms, we can't use
15446 # them.
15447 ld_shlibs_GCJ=no
15448 ;;
15449
15450 beos*)
15451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15452 allow_undefined_flag_GCJ=unsupported
15453 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15454 # support --undefined. This deserves some investigation. FIXME
15455 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15456 else
15457 ld_shlibs_GCJ=no
15458 fi
15459 ;;
15460
15461 cygwin* | mingw* | pw32*)
15462 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15463 # as there is no search path for DLLs.
15464 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15465 allow_undefined_flag_GCJ=unsupported
15466 always_export_symbols_GCJ=no
15467 enable_shared_with_static_runtimes_GCJ=yes
15468 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15469
15470 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15471 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15472 # If the export-symbols file already is a .def file (1st line
15473 # is EXPORTS), use it as is; otherwise, prepend...
15474 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15475 cp $export_symbols $output_objdir/$soname.def;
15476 else
15477 echo EXPORTS > $output_objdir/$soname.def;
15478 cat $export_symbols >> $output_objdir/$soname.def;
15479 fi~
15480 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15481 else
15482 ld_shlibs=no
15483 fi
15484 ;;
15485
15486 netbsd*)
15487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15488 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15489 wlarc=
15490 else
15491 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15492 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15493 fi
15494 ;;
15495
15496 solaris* | sysv5*)
15497 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15498 ld_shlibs_GCJ=no
15499 cat <<EOF 1>&2
15500
15501*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15502*** create shared libraries on Solaris systems. Therefore, libtool
15503*** is disabling shared libraries support. We urge you to upgrade GNU
15504*** binutils to release 2.9.1 or newer. Another option is to modify
15505*** your PATH or compiler configuration so that the native linker is
15506*** used, and then restart.
15507
15508EOF
15509 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15510 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15512 else
15513 ld_shlibs_GCJ=no
15514 fi
15515 ;;
15516
15517 sunos4*)
15518 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15519 wlarc=
15520 hardcode_direct_GCJ=yes
15521 hardcode_shlibpath_var_GCJ=no
15522 ;;
15523
15524 *)
15525 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15527 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15528 else
15529 ld_shlibs_GCJ=no
15530 fi
15531 ;;
15532 esac
15533
15534 if test "$ld_shlibs_GCJ" = yes; then
15535 runpath_var=LD_RUN_PATH
15536 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15537 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15538 # ancient GNU ld didn't support --whole-archive et. al.
15539 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15540 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15541 else
15542 whole_archive_flag_spec_GCJ=
15543 fi
15544 fi
15545 else
15546 # PORTME fill in a description of your system's linker (not GNU ld)
15547 case $host_os in
15548 aix3*)
15549 allow_undefined_flag_GCJ=unsupported
15550 always_export_symbols_GCJ=yes
15551 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'
15552 # Note: this linker hardcodes the directories in LIBPATH if there
15553 # are no directories specified by -L.
15554 hardcode_minus_L_GCJ=yes
15555 if test "$GCC" = yes && test -z "$link_static_flag"; then
15556 # Neither direct hardcoding nor static linking is supported with a
15557 # broken collect2.
15558 hardcode_direct_GCJ=unsupported
15559 fi
15560 ;;
15561
15562 aix4* | aix5*)
15563 if test "$host_cpu" = ia64; then
15564 # On IA64, the linker does run time linking by default, so we don't
15565 # have to do anything special.
15566 aix_use_runtimelinking=no
15567 exp_sym_flag='-Bexport'
15568 no_entry_flag=""
15569 else
15570 # If we're using GNU nm, then we don't want the "-C" option.
15571 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15572 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15573 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'
15574 else
15575 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'
15576 fi
15577 aix_use_runtimelinking=no
15578
15579 # Test if we are trying to use run time linking or normal
15580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15581 # need to do runtime linking.
15582 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15583 for ld_flag in $LDFLAGS; do
15584 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15585 aix_use_runtimelinking=yes
15586 break
15587 fi
15588 done
15589 esac
15590
15591 exp_sym_flag='-bexport'
15592 no_entry_flag='-bnoentry'
15593 fi
15594
15595 # When large executables or shared objects are built, AIX ld can
15596 # have problems creating the table of contents. If linking a library
15597 # or program results in "error TOC overflow" add -mminimal-toc to
15598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15600
15601 archive_cmds_GCJ=''
15602 hardcode_direct_GCJ=yes
15603 hardcode_libdir_separator_GCJ=':'
15604 link_all_deplibs_GCJ=yes
15605
15606 if test "$GCC" = yes; then
15607 case $host_os in aix4.012|aix4.012.*)
15608 # We only want to do this on AIX 4.2 and lower, the check
15609 # below for broken collect2 doesn't work under 4.3+
15610 collect2name=`${CC} -print-prog-name=collect2`
15611 if test -f "$collect2name" && \
15612 strings "$collect2name" | grep resolve_lib_name >/dev/null
15613 then
15614 # We have reworked collect2
15615 hardcode_direct_GCJ=yes
15616 else
15617 # We have old collect2
15618 hardcode_direct_GCJ=unsupported
15619 # It fails to find uninstalled libraries when the uninstalled
15620 # path is not listed in the libpath. Setting hardcode_minus_L
15621 # to unsupported forces relinking
15622 hardcode_minus_L_GCJ=yes
15623 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15624 hardcode_libdir_separator_GCJ=
15625 fi
15626 esac
15627 shared_flag='-shared'
15628 else
15629 # not using gcc
15630 if test "$host_cpu" = ia64; then
15631 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15632 # chokes on -Wl,-G. The following line is correct:
15633 shared_flag='-G'
15634 else
15635 if test "$aix_use_runtimelinking" = yes; then
15636 shared_flag='${wl}-G'
15637 else
15638 shared_flag='${wl}-bM:SRE'
15639 fi
15640 fi
15641 fi
15642
15643 # It seems that -bexpall does not export symbols beginning with
15644 # underscore (_), so it is better to generate a list of symbols to export.
15645 always_export_symbols_GCJ=yes
15646 if test "$aix_use_runtimelinking" = yes; then
15647 # Warning - without using the other runtime loading flags (-brtl),
15648 # -berok will link without error, but may produce a broken library.
15649 allow_undefined_flag_GCJ='-berok'
15650 # Determine the default libpath from the value encoded in an empty executable.
15651 cat >conftest.$ac_ext <<_ACEOF
15652#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015653/* confdefs.h. */
15654_ACEOF
15655cat confdefs.h >>conftest.$ac_ext
15656cat >>conftest.$ac_ext <<_ACEOF
15657/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015658
John Criswell47fdd832003-07-14 16:52:07 +000015659int
15660main ()
15661{
15662
15663 ;
15664 return 0;
15665}
15666_ACEOF
15667rm -f conftest.$ac_objext conftest$ac_exeext
15668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669 (eval $ac_link) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try='test -s conftest$ac_exeext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679
15680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15681}'`
15682# Check for a 64-bit object if we didn't find anything.
15683if 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; }
15684}'`; fi
15685else
15686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015687sed 's/^/| /' conftest.$ac_ext >&5
15688
John Criswell47fdd832003-07-14 16:52:07 +000015689fi
15690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15692
15693 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15694 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"
15695 else
15696 if test "$host_cpu" = ia64; then
15697 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15698 allow_undefined_flag_GCJ="-z nodefs"
15699 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"
15700 else
15701 # Determine the default libpath from the value encoded in an empty executable.
15702 cat >conftest.$ac_ext <<_ACEOF
15703#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015704/* confdefs.h. */
15705_ACEOF
15706cat confdefs.h >>conftest.$ac_ext
15707cat >>conftest.$ac_ext <<_ACEOF
15708/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015709
John Criswell47fdd832003-07-14 16:52:07 +000015710int
15711main ()
15712{
15713
15714 ;
15715 return 0;
15716}
15717_ACEOF
15718rm -f conftest.$ac_objext conftest$ac_exeext
15719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720 (eval $ac_link) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -s conftest$ac_exeext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730
15731aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15732}'`
15733# Check for a 64-bit object if we didn't find anything.
15734if 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; }
15735}'`; fi
15736else
15737 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015738sed 's/^/| /' conftest.$ac_ext >&5
15739
John Criswell47fdd832003-07-14 16:52:07 +000015740fi
15741rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15742if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15743
15744 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15745 # Warning - without using the other run time loading flags,
15746 # -berok will link without error, but may produce a broken library.
15747 no_undefined_flag_GCJ=' ${wl}-bernotok'
15748 allow_undefined_flag_GCJ=' ${wl}-berok'
15749 # -bexpall does not export symbols beginning with underscore (_)
15750 always_export_symbols_GCJ=yes
15751 # Exported symbols can be pulled into shared objects from archives
15752 whole_archive_flag_spec_GCJ=' '
15753 archive_cmds_need_lc_GCJ=yes
15754 # This is similar to how AIX traditionally builds it's shared libraries.
15755 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'
15756 fi
15757 fi
15758 ;;
15759
15760 amigaos*)
15761 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)'
15762 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15763 hardcode_minus_L_GCJ=yes
15764 # see comment about different semantics on the GNU ld section
15765 ld_shlibs_GCJ=no
15766 ;;
15767
15768 bsdi4*)
15769 export_dynamic_flag_spec_GCJ=-rdynamic
15770 ;;
15771
15772 cygwin* | mingw* | pw32*)
15773 # When not using gcc, we currently assume that we are using
15774 # Microsoft Visual C++.
15775 # hardcode_libdir_flag_spec is actually meaningless, as there is
15776 # no search path for DLLs.
15777 hardcode_libdir_flag_spec_GCJ=' '
15778 allow_undefined_flag_GCJ=unsupported
15779 # Tell ltmain to make .lib files, not .a files.
15780 libext=lib
15781 # Tell ltmain to make .dll files, not .so files.
15782 shrext=".dll"
15783 # FIXME: Setting linknames here is a bad hack.
15784 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15785 # The linker will automatically build a .lib file if we build a DLL.
15786 old_archive_From_new_cmds_GCJ='true'
15787 # FIXME: Should let the user specify the lib program.
15788 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15789 fix_srcfile_path='`cygpath -w "$srcfile"`'
15790 enable_shared_with_static_runtimes_GCJ=yes
15791 ;;
15792
15793 darwin* | rhapsody*)
15794 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15795 archive_cmds_need_lc_GCJ=no
15796 case "$host_os" in
15797 rhapsody* | darwin1.[012])
15798 allow_undefined_flag_GCJ='-undefined suppress'
15799 ;;
15800 *) # Darwin 1.3 on
15801 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15802 ;;
15803 esac
15804 # FIXME: Relying on posixy $() will cause problems for
15805 # cross-compilation, but unfortunately the echo tests do not
15806 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15807 # `"' quotes if we put them in here... so don't!
15808 lt_int_apple_cc_single_mod=no
15809 output_verbose_link_cmd='echo'
15810 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15811 lt_int_apple_cc_single_mod=yes
15812 fi
15813 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15814 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15815 else
15816 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'
15817 fi
15818 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15820 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15821 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}'
15822 else
15823 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}'
15824 fi
15825 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}'
15826 hardcode_direct_GCJ=no
15827 hardcode_automatic_GCJ=yes
15828 hardcode_shlibpath_var_GCJ=unsupported
15829 whole_archive_flag_spec_GCJ='-all_load $convenience'
15830 link_all_deplibs_GCJ=yes
15831 fi
15832 ;;
15833
15834 dgux*)
15835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15837 hardcode_shlibpath_var_GCJ=no
15838 ;;
15839
15840 freebsd1*)
15841 ld_shlibs_GCJ=no
15842 ;;
15843
15844 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15845 # support. Future versions do this automatically, but an explicit c++rt0.o
15846 # does not break anything, and helps significantly (at the cost of a little
15847 # extra space).
15848 freebsd2.2*)
15849 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15850 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15851 hardcode_direct_GCJ=yes
15852 hardcode_shlibpath_var_GCJ=no
15853 ;;
15854
15855 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15856 freebsd2*)
15857 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15858 hardcode_direct_GCJ=yes
15859 hardcode_minus_L_GCJ=yes
15860 hardcode_shlibpath_var_GCJ=no
15861 ;;
15862
15863 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15864 freebsd*)
15865 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15866 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15867 hardcode_direct_GCJ=yes
15868 hardcode_shlibpath_var_GCJ=no
15869 ;;
15870
15871 hpux9*)
15872 if test "$GCC" = yes; then
15873 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'
15874 else
15875 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'
15876 fi
15877 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15878 hardcode_libdir_separator_GCJ=:
15879 hardcode_direct_GCJ=yes
15880
15881 # hardcode_minus_L: Not really in the search PATH,
15882 # but as the default location of the library.
15883 hardcode_minus_L_GCJ=yes
15884 export_dynamic_flag_spec_GCJ='${wl}-E'
15885 ;;
15886
15887 hpux10* | hpux11*)
15888 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15889 case "$host_cpu" in
15890 hppa*64*|ia64*)
15891 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 ;;
15893 *)
15894 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15895 ;;
15896 esac
15897 else
15898 case "$host_cpu" in
15899 hppa*64*|ia64*)
15900 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15901 ;;
15902 *)
15903 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15904 ;;
15905 esac
15906 fi
15907 if test "$with_gnu_ld" = no; then
15908 case "$host_cpu" in
15909 hppa*64*)
15910 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15911 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15912 hardcode_libdir_separator_GCJ=:
15913 hardcode_direct_GCJ=no
15914 hardcode_shlibpath_var_GCJ=no
15915 ;;
15916 ia64*)
15917 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15918 hardcode_direct_GCJ=no
15919 hardcode_shlibpath_var_GCJ=no
15920
15921 # hardcode_minus_L: Not really in the search PATH,
15922 # but as the default location of the library.
15923 hardcode_minus_L_GCJ=yes
15924 ;;
15925 *)
15926 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15927 hardcode_libdir_separator_GCJ=:
15928 hardcode_direct_GCJ=yes
15929 export_dynamic_flag_spec_GCJ='${wl}-E'
15930
15931 # hardcode_minus_L: Not really in the search PATH,
15932 # but as the default location of the library.
15933 hardcode_minus_L_GCJ=yes
15934 ;;
15935 esac
15936 fi
15937 ;;
15938
15939 irix5* | irix6* | nonstopux*)
15940 if test "$GCC" = yes; then
15941 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'
15942 else
15943 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'
15944 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15945 fi
15946 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15947 hardcode_libdir_separator_GCJ=:
15948 link_all_deplibs_GCJ=yes
15949 ;;
15950
15951 netbsd*)
15952 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15953 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15954 else
15955 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15956 fi
15957 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15958 hardcode_direct_GCJ=yes
15959 hardcode_shlibpath_var_GCJ=no
15960 ;;
15961
15962 newsos6)
15963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15964 hardcode_direct_GCJ=yes
15965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15966 hardcode_libdir_separator_GCJ=:
15967 hardcode_shlibpath_var_GCJ=no
15968 ;;
15969
15970 openbsd*)
15971 hardcode_direct_GCJ=yes
15972 hardcode_shlibpath_var_GCJ=no
15973 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15974 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15975 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15976 export_dynamic_flag_spec_GCJ='${wl}-E'
15977 else
15978 case $host_os in
15979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15980 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15982 ;;
15983 *)
15984 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15986 ;;
15987 esac
15988 fi
15989 ;;
15990
15991 os2*)
15992 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15993 hardcode_minus_L_GCJ=yes
15994 allow_undefined_flag_GCJ=unsupported
15995 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'
15996 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15997 ;;
15998
15999 osf3*)
16000 if test "$GCC" = yes; then
16001 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16002 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'
16003 else
16004 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16005 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'
16006 fi
16007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16008 hardcode_libdir_separator_GCJ=:
16009 ;;
16010
16011 osf4* | osf5*) # as osf3* with the addition of -msym flag
16012 if test "$GCC" = yes; then
16013 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16014 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'
16015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16016 else
16017 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16018 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'
16019 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~
16020 $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'
16021
16022 # Both c and cxx compiler support -rpath directly
16023 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16024 fi
16025 hardcode_libdir_separator_GCJ=:
16026 ;;
16027
16028 sco3.2v5*)
16029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16030 hardcode_shlibpath_var_GCJ=no
16031 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16032 runpath_var=LD_RUN_PATH
16033 hardcode_runpath_var=yes
16034 ;;
16035
16036 solaris*)
16037 no_undefined_flag_GCJ=' -z text'
16038 if test "$GCC" = yes; then
16039 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16041 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16042 else
16043 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16046 fi
16047 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16048 hardcode_shlibpath_var_GCJ=no
16049 case $host_os in
16050 solaris2.[0-5] | solaris2.[0-5].*) ;;
16051 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16052 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16053 esac
16054 link_all_deplibs_GCJ=yes
16055 ;;
16056
16057 sunos4*)
16058 if test "x$host_vendor" = xsequent; then
16059 # Use $CC to link under sequent, because it throws in some extra .o
16060 # files that make .init and .fini sections work.
16061 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16062 else
16063 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16064 fi
16065 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16066 hardcode_direct_GCJ=yes
16067 hardcode_minus_L_GCJ=yes
16068 hardcode_shlibpath_var_GCJ=no
16069 ;;
16070
16071 sysv4)
16072 case $host_vendor in
16073 sni)
16074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16075 hardcode_direct_GCJ=yes # is this really true???
16076 ;;
16077 siemens)
16078 ## LD is ld it makes a PLAMLIB
16079 ## CC just makes a GrossModule.
16080 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16081 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16082 hardcode_direct_GCJ=no
16083 ;;
16084 motorola)
16085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16087 ;;
16088 esac
16089 runpath_var='LD_RUN_PATH'
16090 hardcode_shlibpath_var_GCJ=no
16091 ;;
16092
16093 sysv4.3*)
16094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095 hardcode_shlibpath_var_GCJ=no
16096 export_dynamic_flag_spec_GCJ='-Bexport'
16097 ;;
16098
16099 sysv4*MP*)
16100 if test -d /usr/nec; then
16101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16102 hardcode_shlibpath_var_GCJ=no
16103 runpath_var=LD_RUN_PATH
16104 hardcode_runpath_var=yes
16105 ld_shlibs_GCJ=yes
16106 fi
16107 ;;
16108
16109 sysv4.2uw2*)
16110 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_direct_GCJ=yes
16112 hardcode_minus_L_GCJ=no
16113 hardcode_shlibpath_var_GCJ=no
16114 hardcode_runpath_var=yes
16115 runpath_var=LD_RUN_PATH
16116 ;;
16117
16118 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16119 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16120 if test "$GCC" = yes; then
16121 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16122 else
16123 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16124 fi
16125 runpath_var='LD_RUN_PATH'
16126 hardcode_shlibpath_var_GCJ=no
16127 ;;
16128
16129 sysv5*)
16130 no_undefined_flag_GCJ=' -z text'
16131 # $CC -shared without GNU ld will not create a library from C++
16132 # object files and a static libstdc++, better avoid it by now
16133 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16134 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16135 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16136 hardcode_libdir_flag_spec_GCJ=
16137 hardcode_shlibpath_var_GCJ=no
16138 runpath_var='LD_RUN_PATH'
16139 ;;
16140
16141 uts4*)
16142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16144 hardcode_shlibpath_var_GCJ=no
16145 ;;
16146
16147 *)
16148 ld_shlibs_GCJ=no
16149 ;;
16150 esac
16151 fi
16152
16153echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16154echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16155test "$ld_shlibs_GCJ" = no && can_build_shared=no
16156
16157variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16158if test "$GCC" = yes; then
16159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16160fi
16161
16162#
16163# Do we need to explicitly link libc?
16164#
16165case "x$archive_cmds_need_lc_GCJ" in
16166x|xyes)
16167 # Assume -lc should be added
16168 archive_cmds_need_lc_GCJ=yes
16169
16170 if test "$enable_shared" = yes && test "$GCC" = yes; then
16171 case $archive_cmds_GCJ in
16172 *'~'*)
16173 # FIXME: we may have to deal with multi-command sequences.
16174 ;;
16175 '$CC '*)
16176 # Test whether the compiler implicitly links with -lc since on some
16177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16178 # to ld, don't add -lc before -lgcc.
16179 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16180echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16181 $rm conftest*
16182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16183
16184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16185 (eval $ac_compile) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } 2>conftest.err; then
16189 soname=conftest
16190 lib=conftest
16191 libobjs=conftest.$ac_objext
16192 deplibs=
16193 wl=$lt_prog_compiler_wl_GCJ
16194 compiler_flags=-v
16195 linker_flags=-v
16196 verstring=
16197 output_objdir=.
16198 libname=conftest
16199 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16200 allow_undefined_flag_GCJ=
16201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16202 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }
16206 then
16207 archive_cmds_need_lc_GCJ=no
16208 else
16209 archive_cmds_need_lc_GCJ=yes
16210 fi
16211 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16212 else
16213 cat conftest.err 1>&5
16214 fi
16215 $rm conftest*
16216 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16217echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16218 ;;
16219 esac
16220 fi
16221 ;;
16222esac
16223
16224echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16225echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16226hardcode_action_GCJ=
16227if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16228 test -n "$runpath_var GCJ" || \
16229 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16230
16231 # We can hardcode non-existant directories.
16232 if test "$hardcode_direct_GCJ" != no &&
16233 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16234 # have to relink, otherwise we might link with an installed library
16235 # when we should be linking with a yet-to-be-installed one
16236 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16237 test "$hardcode_minus_L_GCJ" != no; then
16238 # Linking always hardcodes the temporary library directory.
16239 hardcode_action_GCJ=relink
16240 else
16241 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16242 hardcode_action_GCJ=immediate
16243 fi
16244else
16245 # We cannot hardcode anything, or else we can only hardcode existing
16246 # directories.
16247 hardcode_action_GCJ=unsupported
16248fi
16249echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16250echo "${ECHO_T}$hardcode_action_GCJ" >&6
16251
16252if test "$hardcode_action_GCJ" = relink; then
16253 # Fast installation is not supported
16254 enable_fast_install=no
16255elif test "$shlibpath_overrides_runpath" = yes ||
16256 test "$enable_shared" = no; then
16257 # Fast installation is not necessary
16258 enable_fast_install=needless
16259fi
16260
16261striplib=
16262old_striplib=
16263echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16264echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16265if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16266 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16267 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16268 echo "$as_me:$LINENO: result: yes" >&5
16269echo "${ECHO_T}yes" >&6
16270else
16271# FIXME - insert some real tests, host_os isn't really good enough
16272 case $host_os in
16273 darwin*)
16274 if test -n "$STRIP" ; then
16275 striplib="$STRIP -x"
16276 echo "$as_me:$LINENO: result: yes" >&5
16277echo "${ECHO_T}yes" >&6
16278 else
16279 echo "$as_me:$LINENO: result: no" >&5
16280echo "${ECHO_T}no" >&6
16281fi
16282 ;;
16283 *)
16284 echo "$as_me:$LINENO: result: no" >&5
16285echo "${ECHO_T}no" >&6
16286 ;;
16287 esac
16288fi
16289
16290echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16291echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16292library_names_spec=
16293libname_spec='lib$name'
16294soname_spec=
16295shrext=".so"
16296postinstall_cmds=
16297postuninstall_cmds=
16298finish_cmds=
16299finish_eval=
16300shlibpath_var=
16301shlibpath_overrides_runpath=unknown
16302version_type=none
16303dynamic_linker="$host_os ld.so"
16304sys_lib_dlsearch_path_spec="/lib /usr/lib"
16305if test "$GCC" = yes; then
16306 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16307 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16308 # if the path contains ";" then we assume it to be the separator
16309 # otherwise default to the standard path separator (i.e. ":") - it is
16310 # assumed that no part of a normal pathname contains ";" but that should
16311 # okay in the real world where ";" in dirpaths is itself problematic.
16312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16313 else
16314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16315 fi
16316else
16317 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16318fi
16319need_lib_prefix=unknown
16320hardcode_into_libs=no
16321
16322# when you set need_version to no, make sure it does not cause -set_version
16323# flags to be left without arguments
16324need_version=unknown
16325
16326case $host_os in
16327aix3*)
16328 version_type=linux
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16330 shlibpath_var=LIBPATH
16331
16332 # AIX 3 has no versioning support, so we append a major version to the name.
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 ;;
16335
16336aix4* | aix5*)
16337 version_type=linux
16338 need_lib_prefix=no
16339 need_version=no
16340 hardcode_into_libs=yes
16341 if test "$host_cpu" = ia64; then
16342 # AIX 5 supports IA64
16343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 else
16346 # With GCC up to 2.95.x, collect2 would create an import file
16347 # for dependence libraries. The import file would start with
16348 # the line `#! .'. This would cause the generated library to
16349 # depend on `.', always an invalid library. This was fixed in
16350 # development snapshots of GCC prior to 3.0.
16351 case $host_os in
16352 aix4 | aix4.[01] | aix4.[01].*)
16353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16354 echo ' yes '
16355 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16356 :
16357 else
16358 can_build_shared=no
16359 fi
16360 ;;
16361 esac
16362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16363 # soname into executable. Probably we can add versioning support to
16364 # collect2, so additional links can be useful in future.
16365 if test "$aix_use_runtimelinking" = yes; then
16366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16367 # instead of lib<name>.a to let people know that these are not
16368 # typical AIX shared libraries.
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370 else
16371 # We preserve .a as extension for shared libraries through AIX4.2
16372 # and later when we are not doing run time linking.
16373 library_names_spec='${libname}${release}.a $libname.a'
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 fi
16376 shlibpath_var=LIBPATH
16377 fi
16378 ;;
16379
16380amigaos*)
16381 library_names_spec='$libname.ixlibrary $libname.a'
16382 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16383 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'
16384 ;;
16385
16386beos*)
16387 library_names_spec='${libname}${shared_ext}'
16388 dynamic_linker="$host_os ld.so"
16389 shlibpath_var=LIBRARY_PATH
16390 ;;
16391
16392bsdi4*)
16393 version_type=linux
16394 need_version=no
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16400 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16401 # the default ld.so.conf also contains /usr/contrib/lib and
16402 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16403 # libtool to hard-code these into programs
16404 ;;
16405
16406cygwin* | mingw* | pw32*)
16407 version_type=windows
16408 shrext=".dll"
16409 need_version=no
16410 need_lib_prefix=no
16411
16412 case $GCC,$host_os in
16413 yes,cygwin* | yes,mingw* | yes,pw32*)
16414 library_names_spec='$libname.dll.a'
16415 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16416 postinstall_cmds='base_file=`basename \${file}`~
16417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16418 dldir=$destdir/`dirname \$dlpath`~
16419 test -d \$dldir || mkdir -p \$dldir~
16420 $install_prog $dir/$dlname \$dldir/$dlname'
16421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16422 dlpath=$dir/\$dldll~
16423 $rm \$dlpath'
16424 shlibpath_overrides_runpath=yes
16425
16426 case $host_os in
16427 cygwin*)
16428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16430 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16431 ;;
16432 mingw*)
16433 # MinGW DLLs use traditional 'lib' prefix
16434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16435 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16436 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16437 # It is most probably a Windows format PATH printed by
16438 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16439 # path with ; separators, and with drive letters. We can handle the
16440 # drive letters (cygwin fileutils understands them), so leave them,
16441 # especially as we might pass files found there to a mingw objdump,
16442 # which wouldn't understand a cygwinified path. Ahh.
16443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16444 else
16445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16446 fi
16447 ;;
16448 pw32*)
16449 # pw32 DLLs use 'pw' prefix rather than 'lib'
16450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16451 ;;
16452 esac
16453 ;;
16454
16455 *)
16456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16457 ;;
16458 esac
16459 dynamic_linker='Win32 ld.exe'
16460 # FIXME: first we should search . and the directory the executable is in
16461 shlibpath_var=PATH
16462 ;;
16463
16464darwin* | rhapsody*)
16465 dynamic_linker="$host_os dyld"
16466 version_type=darwin
16467 need_lib_prefix=no
16468 need_version=no
16469 # FIXME: Relying on posixy $() will cause problems for
16470 # cross-compilation, but unfortunately the echo tests do not
16471 # yet detect zsh echo's removal of \ escapes.
16472 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16473 soname_spec='${libname}${release}${major}$shared_ext'
16474 shlibpath_overrides_runpath=yes
16475 shlibpath_var=DYLD_LIBRARY_PATH
16476 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16477 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16478 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16479 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"`
16480 fi
16481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16482 ;;
16483
16484dgux*)
16485 version_type=linux
16486 need_lib_prefix=no
16487 need_version=no
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16489 soname_spec='${libname}${release}${shared_ext}$major'
16490 shlibpath_var=LD_LIBRARY_PATH
16491 ;;
16492
16493freebsd1*)
16494 dynamic_linker=no
16495 ;;
16496
16497freebsd*)
16498 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16499 version_type=freebsd-$objformat
16500 case $version_type in
16501 freebsd-elf*)
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16503 need_version=no
16504 need_lib_prefix=no
16505 ;;
16506 freebsd-*)
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16508 need_version=yes
16509 ;;
16510 esac
16511 shlibpath_var=LD_LIBRARY_PATH
16512 case $host_os in
16513 freebsd2*)
16514 shlibpath_overrides_runpath=yes
16515 ;;
16516 freebsd3.01* | freebsdelf3.01*)
16517 shlibpath_overrides_runpath=yes
16518 hardcode_into_libs=yes
16519 ;;
16520 *) # from 3.2 on
16521 shlibpath_overrides_runpath=no
16522 hardcode_into_libs=yes
16523 ;;
16524 esac
16525 ;;
16526
16527gnu*)
16528 version_type=linux
16529 need_lib_prefix=no
16530 need_version=no
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 hardcode_into_libs=yes
16535 ;;
16536
16537hpux9* | hpux10* | hpux11*)
16538 # Give a soname corresponding to the major version so that dld.sl refuses to
16539 # link against other versions.
16540 version_type=sunos
16541 need_lib_prefix=no
16542 need_version=no
16543 case "$host_cpu" in
16544 ia64*)
16545 shrext='.so'
16546 hardcode_into_libs=yes
16547 dynamic_linker="$host_os dld.so"
16548 shlibpath_var=LD_LIBRARY_PATH
16549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 if test "X$HPUX_IA64_MODE" = X32; then
16553 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16554 else
16555 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16556 fi
16557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16558 ;;
16559 hppa*64*)
16560 shrext='.sl'
16561 hardcode_into_libs=yes
16562 dynamic_linker="$host_os dld.sl"
16563 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16569 ;;
16570 *)
16571 shrext='.sl'
16572 dynamic_linker="$host_os dld.sl"
16573 shlibpath_var=SHLIB_PATH
16574 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576 soname_spec='${libname}${release}${shared_ext}$major'
16577 ;;
16578 esac
16579 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16580 postinstall_cmds='chmod 555 $lib'
16581 ;;
16582
16583irix5* | irix6* | nonstopux*)
16584 case $host_os in
16585 nonstopux*) version_type=nonstopux ;;
16586 *)
16587 if test "$lt_cv_prog_gnu_ld" = yes; then
16588 version_type=linux
16589 else
16590 version_type=irix
16591 fi ;;
16592 esac
16593 need_lib_prefix=no
16594 need_version=no
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16597 case $host_os in
16598 irix5* | nonstopux*)
16599 libsuff= shlibsuff=
16600 ;;
16601 *)
16602 case $LD in # libtool.m4 will add one of these switches to LD
16603 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16604 libsuff= shlibsuff= libmagic=32-bit;;
16605 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16606 libsuff=32 shlibsuff=N32 libmagic=N32;;
16607 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16608 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16609 *) libsuff= shlibsuff= libmagic=never-match;;
16610 esac
16611 ;;
16612 esac
16613 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16614 shlibpath_overrides_runpath=no
16615 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16616 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16617 hardcode_into_libs=yes
16618 ;;
16619
16620# No shared lib support for Linux oldld, aout, or coff.
16621linux*oldld* | linux*aout* | linux*coff*)
16622 dynamic_linker=no
16623 ;;
16624
16625# This must be Linux ELF.
16626linux*)
16627 version_type=linux
16628 need_lib_prefix=no
16629 need_version=no
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16633 shlibpath_var=LD_LIBRARY_PATH
16634 shlibpath_overrides_runpath=no
16635 # This implies no fast_install, which is unacceptable.
16636 # Some rework will be needed to allow for fast_install
16637 # before this can be enabled.
16638 hardcode_into_libs=yes
16639
16640 # We used to test for /lib/ld.so.1 and disable shared libraries on
16641 # powerpc, because MkLinux only supported shared libraries with the
16642 # GNU dynamic linker. Since this was broken with cross compilers,
16643 # most powerpc-linux boxes support dynamic linking these days and
16644 # people can always --disable-shared, the test was removed, and we
16645 # assume the GNU/Linux dynamic linker is in use.
16646 dynamic_linker='GNU/Linux ld.so'
16647 ;;
16648
16649netbsd*)
16650 version_type=sunos
16651 need_lib_prefix=no
16652 need_version=no
16653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16656 dynamic_linker='NetBSD (a.out) ld.so'
16657 else
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 dynamic_linker='NetBSD ld.elf_so'
16661 fi
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=yes
16664 hardcode_into_libs=yes
16665 ;;
16666
16667newsos6)
16668 version_type=linux
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670 shlibpath_var=LD_LIBRARY_PATH
16671 shlibpath_overrides_runpath=yes
16672 ;;
16673
16674nto-qnx)
16675 version_type=linux
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=yes
16682 ;;
16683
16684openbsd*)
16685 version_type=sunos
16686 need_lib_prefix=no
16687 need_version=no
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16692 case $host_os in
16693 openbsd2.[89] | openbsd2.[89].*)
16694 shlibpath_overrides_runpath=no
16695 ;;
16696 *)
16697 shlibpath_overrides_runpath=yes
16698 ;;
16699 esac
16700 else
16701 shlibpath_overrides_runpath=yes
16702 fi
16703 ;;
16704
16705os2*)
16706 libname_spec='$name'
16707 shrext=".dll"
16708 need_lib_prefix=no
16709 library_names_spec='$libname${shared_ext} $libname.a'
16710 dynamic_linker='OS/2 ld.exe'
16711 shlibpath_var=LIBPATH
16712 ;;
16713
16714osf3* | osf4* | osf5*)
16715 version_type=osf
16716 need_lib_prefix=no
16717 need_version=no
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16722 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16723 ;;
16724
16725sco3.2v5*)
16726 version_type=osf
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 ;;
16731
16732solaris*)
16733 version_type=linux
16734 need_lib_prefix=no
16735 need_version=no
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 shlibpath_overrides_runpath=yes
16740 hardcode_into_libs=yes
16741 # ldd complains unless libraries are executable
16742 postinstall_cmds='chmod +x $lib'
16743 ;;
16744
16745sunos4*)
16746 version_type=sunos
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16748 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 shlibpath_overrides_runpath=yes
16751 if test "$with_gnu_ld" = yes; then
16752 need_lib_prefix=no
16753 fi
16754 need_version=yes
16755 ;;
16756
16757sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16758 version_type=linux
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 case $host_vendor in
16763 sni)
16764 shlibpath_overrides_runpath=no
16765 need_lib_prefix=no
16766 export_dynamic_flag_spec='${wl}-Blargedynsym'
16767 runpath_var=LD_RUN_PATH
16768 ;;
16769 siemens)
16770 need_lib_prefix=no
16771 ;;
16772 motorola)
16773 need_lib_prefix=no
16774 need_version=no
16775 shlibpath_overrides_runpath=no
16776 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16777 ;;
16778 esac
16779 ;;
16780
16781sysv4*MP*)
16782 if test -d /usr/nec ;then
16783 version_type=linux
16784 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16785 soname_spec='$libname${shared_ext}.$major'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 fi
16788 ;;
16789
16790uts4*)
16791 version_type=linux
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 shlibpath_var=LD_LIBRARY_PATH
16795 ;;
16796
16797*)
16798 dynamic_linker=no
16799 ;;
16800esac
16801echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16802echo "${ECHO_T}$dynamic_linker" >&6
16803test "$dynamic_linker" = no && can_build_shared=no
16804
16805if test "x$enable_dlopen" != xyes; then
16806 enable_dlopen=unknown
16807 enable_dlopen_self=unknown
16808 enable_dlopen_self_static=unknown
16809else
16810 lt_cv_dlopen=no
16811 lt_cv_dlopen_libs=
16812
16813 case $host_os in
16814 beos*)
16815 lt_cv_dlopen="load_add_on"
16816 lt_cv_dlopen_libs=
16817 lt_cv_dlopen_self=yes
16818 ;;
16819
16820 mingw* | pw32*)
16821 lt_cv_dlopen="LoadLibrary"
16822 lt_cv_dlopen_libs=
16823 ;;
16824
16825 cygwin*)
16826 lt_cv_dlopen="dlopen"
16827 lt_cv_dlopen_libs=
16828 ;;
16829
16830 darwin*)
16831 # if libdl is installed we need to link against it
16832 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16833echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16834if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16836else
16837 ac_check_lib_save_LIBS=$LIBS
16838LIBS="-ldl $LIBS"
16839cat >conftest.$ac_ext <<_ACEOF
16840#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016841/* confdefs.h. */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016846
16847/* Override any gcc2 internal prototype to avoid an error. */
16848#ifdef __cplusplus
16849extern "C"
16850#endif
16851/* We use char because int might match the return type of a gcc2
16852 builtin and then its argument prototype would still apply. */
16853char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016854int
16855main ()
16856{
16857dlopen ();
16858 ;
16859 return 0;
16860}
16861_ACEOF
16862rm -f conftest.$ac_objext conftest$ac_exeext
16863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864 (eval $ac_link) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -s conftest$ac_exeext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_lib_dl_dlopen=yes
16875else
16876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016877sed 's/^/| /' conftest.$ac_ext >&5
16878
John Criswell47fdd832003-07-14 16:52:07 +000016879ac_cv_lib_dl_dlopen=no
16880fi
16881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882LIBS=$ac_check_lib_save_LIBS
16883fi
16884echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16885echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16886if test $ac_cv_lib_dl_dlopen = yes; then
16887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16888else
16889
16890 lt_cv_dlopen="dyld"
16891 lt_cv_dlopen_libs=
16892 lt_cv_dlopen_self=yes
16893
16894fi
16895
16896 ;;
16897
16898 *)
16899 echo "$as_me:$LINENO: checking for shl_load" >&5
16900echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16901if test "${ac_cv_func_shl_load+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16903else
16904 cat >conftest.$ac_ext <<_ACEOF
16905#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016906/* confdefs.h. */
16907_ACEOF
16908cat confdefs.h >>conftest.$ac_ext
16909cat >>conftest.$ac_ext <<_ACEOF
16910/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016911/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016912 which can conflict with char shl_load (); below.
16913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16914 <limits.h> exists even on freestanding compilers. */
16915#ifdef __STDC__
16916# include <limits.h>
16917#else
16918# include <assert.h>
16919#endif
John Criswell47fdd832003-07-14 16:52:07 +000016920/* Override any gcc2 internal prototype to avoid an error. */
16921#ifdef __cplusplus
16922extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016923{
John Criswell47fdd832003-07-14 16:52:07 +000016924#endif
16925/* We use char because int might match the return type of a gcc2
16926 builtin and then its argument prototype would still apply. */
16927char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016928/* The GNU C library defines this for functions which it implements
16929 to always fail with ENOSYS. Some functions are actually named
16930 something starting with __ and the normal name is an alias. */
16931#if defined (__stub_shl_load) || defined (__stub___shl_load)
16932choke me
16933#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016934char (*f) () = shl_load;
16935#endif
16936#ifdef __cplusplus
16937}
John Criswell47fdd832003-07-14 16:52:07 +000016938#endif
16939
John Criswell0c38eaf2003-09-10 15:17:25 +000016940int
16941main ()
16942{
16943return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016944 ;
16945 return 0;
16946}
16947_ACEOF
16948rm -f conftest.$ac_objext conftest$ac_exeext
16949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16950 (eval $ac_link) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try='test -s conftest$ac_exeext'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_cv_func_shl_load=yes
16961else
16962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016963sed 's/^/| /' conftest.$ac_ext >&5
16964
John Criswell47fdd832003-07-14 16:52:07 +000016965ac_cv_func_shl_load=no
16966fi
16967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16968fi
16969echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16970echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16971if test $ac_cv_func_shl_load = yes; then
16972 lt_cv_dlopen="shl_load"
16973else
16974 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16975echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16976if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16978else
16979 ac_check_lib_save_LIBS=$LIBS
16980LIBS="-ldld $LIBS"
16981cat >conftest.$ac_ext <<_ACEOF
16982#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016988
16989/* Override any gcc2 internal prototype to avoid an error. */
16990#ifdef __cplusplus
16991extern "C"
16992#endif
16993/* We use char because int might match the return type of a gcc2
16994 builtin and then its argument prototype would still apply. */
16995char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016996int
16997main ()
16998{
16999shl_load ();
17000 ;
17001 return 0;
17002}
17003_ACEOF
17004rm -f conftest.$ac_objext conftest$ac_exeext
17005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006 (eval $ac_link) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } &&
17010 { ac_try='test -s conftest$ac_exeext'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_cv_lib_dld_shl_load=yes
17017else
17018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017019sed 's/^/| /' conftest.$ac_ext >&5
17020
John Criswell47fdd832003-07-14 16:52:07 +000017021ac_cv_lib_dld_shl_load=no
17022fi
17023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17024LIBS=$ac_check_lib_save_LIBS
17025fi
17026echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17027echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17028if test $ac_cv_lib_dld_shl_load = yes; then
17029 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17030else
17031 echo "$as_me:$LINENO: checking for dlopen" >&5
17032echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17033if test "${ac_cv_func_dlopen+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035else
17036 cat >conftest.$ac_ext <<_ACEOF
17037#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017038/* confdefs.h. */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017043/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017044 which can conflict with char dlopen (); below.
17045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17046 <limits.h> exists even on freestanding compilers. */
17047#ifdef __STDC__
17048# include <limits.h>
17049#else
17050# include <assert.h>
17051#endif
John Criswell47fdd832003-07-14 16:52:07 +000017052/* Override any gcc2 internal prototype to avoid an error. */
17053#ifdef __cplusplus
17054extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017055{
John Criswell47fdd832003-07-14 16:52:07 +000017056#endif
17057/* We use char because int might match the return type of a gcc2
17058 builtin and then its argument prototype would still apply. */
17059char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017060/* The GNU C library defines this for functions which it implements
17061 to always fail with ENOSYS. Some functions are actually named
17062 something starting with __ and the normal name is an alias. */
17063#if defined (__stub_dlopen) || defined (__stub___dlopen)
17064choke me
17065#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017066char (*f) () = dlopen;
17067#endif
17068#ifdef __cplusplus
17069}
John Criswell47fdd832003-07-14 16:52:07 +000017070#endif
17071
John Criswell0c38eaf2003-09-10 15:17:25 +000017072int
17073main ()
17074{
17075return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017076 ;
17077 return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext conftest$ac_exeext
17081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_func_dlopen=yes
17093else
17094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017095sed 's/^/| /' conftest.$ac_ext >&5
17096
John Criswell47fdd832003-07-14 16:52:07 +000017097ac_cv_func_dlopen=no
17098fi
17099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17100fi
17101echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17102echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17103if test $ac_cv_func_dlopen = yes; then
17104 lt_cv_dlopen="dlopen"
17105else
17106 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17107echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17108if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110else
17111 ac_check_lib_save_LIBS=$LIBS
17112LIBS="-ldl $LIBS"
17113cat >conftest.$ac_ext <<_ACEOF
17114#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017115/* confdefs.h. */
17116_ACEOF
17117cat confdefs.h >>conftest.$ac_ext
17118cat >>conftest.$ac_ext <<_ACEOF
17119/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017120
17121/* Override any gcc2 internal prototype to avoid an error. */
17122#ifdef __cplusplus
17123extern "C"
17124#endif
17125/* We use char because int might match the return type of a gcc2
17126 builtin and then its argument prototype would still apply. */
17127char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017128int
17129main ()
17130{
17131dlopen ();
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
17137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
17142 { ac_try='test -s conftest$ac_exeext'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 ac_cv_lib_dl_dlopen=yes
17149else
17150 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017151sed 's/^/| /' conftest.$ac_ext >&5
17152
John Criswell47fdd832003-07-14 16:52:07 +000017153ac_cv_lib_dl_dlopen=no
17154fi
17155rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17156LIBS=$ac_check_lib_save_LIBS
17157fi
17158echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17159echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17160if test $ac_cv_lib_dl_dlopen = yes; then
17161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17162else
17163 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17164echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17165if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 ac_check_lib_save_LIBS=$LIBS
17169LIBS="-lsvld $LIBS"
17170cat >conftest.$ac_ext <<_ACEOF
17171#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017172/* confdefs.h. */
17173_ACEOF
17174cat confdefs.h >>conftest.$ac_ext
17175cat >>conftest.$ac_ext <<_ACEOF
17176/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017177
17178/* Override any gcc2 internal prototype to avoid an error. */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182/* We use char because int might match the return type of a gcc2
17183 builtin and then its argument prototype would still apply. */
17184char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017185int
17186main ()
17187{
17188dlopen ();
17189 ;
17190 return 0;
17191}
17192_ACEOF
17193rm -f conftest.$ac_objext conftest$ac_exeext
17194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17195 (eval $ac_link) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_lib_svld_dlopen=yes
17206else
17207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017208sed 's/^/| /' conftest.$ac_ext >&5
17209
John Criswell47fdd832003-07-14 16:52:07 +000017210ac_cv_lib_svld_dlopen=no
17211fi
17212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17213LIBS=$ac_check_lib_save_LIBS
17214fi
17215echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17216echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17217if test $ac_cv_lib_svld_dlopen = yes; then
17218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17219else
17220 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17221echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17222if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224else
17225 ac_check_lib_save_LIBS=$LIBS
17226LIBS="-ldld $LIBS"
17227cat >conftest.$ac_ext <<_ACEOF
17228#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017234
17235/* Override any gcc2 internal prototype to avoid an error. */
17236#ifdef __cplusplus
17237extern "C"
17238#endif
17239/* We use char because int might match the return type of a gcc2
17240 builtin and then its argument prototype would still apply. */
17241char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017242int
17243main ()
17244{
17245dld_link ();
17246 ;
17247 return 0;
17248}
17249_ACEOF
17250rm -f conftest.$ac_objext conftest$ac_exeext
17251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17252 (eval $ac_link) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -s conftest$ac_exeext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ac_cv_lib_dld_dld_link=yes
17263else
17264 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017265sed 's/^/| /' conftest.$ac_ext >&5
17266
John Criswell47fdd832003-07-14 16:52:07 +000017267ac_cv_lib_dld_dld_link=no
17268fi
17269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17270LIBS=$ac_check_lib_save_LIBS
17271fi
17272echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17273echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17274if test $ac_cv_lib_dld_dld_link = yes; then
17275 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17276fi
17277
17278
17279fi
17280
17281
17282fi
17283
17284
17285fi
17286
17287
17288fi
17289
17290
17291fi
17292
17293 ;;
17294 esac
17295
17296 if test "x$lt_cv_dlopen" != xno; then
17297 enable_dlopen=yes
17298 else
17299 enable_dlopen=no
17300 fi
17301
17302 case $lt_cv_dlopen in
17303 dlopen)
17304 save_CPPFLAGS="$CPPFLAGS"
17305 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17306
17307 save_LDFLAGS="$LDFLAGS"
17308 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17309
17310 save_LIBS="$LIBS"
17311 LIBS="$lt_cv_dlopen_libs $LIBS"
17312
17313 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17314echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17315if test "${lt_cv_dlopen_self+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317else
17318 if test "$cross_compiling" = yes; then :
17319 lt_cv_dlopen_self=cross
17320else
17321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17322 lt_status=$lt_dlunknown
17323 cat > conftest.$ac_ext <<EOF
John Criswell613758d2003-09-11 18:03:50 +000017324#line 17324 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017325#include "confdefs.h"
17326
17327#if HAVE_DLFCN_H
17328#include <dlfcn.h>
17329#endif
17330
17331#include <stdio.h>
17332
17333#ifdef RTLD_GLOBAL
17334# define LT_DLGLOBAL RTLD_GLOBAL
17335#else
17336# ifdef DL_GLOBAL
17337# define LT_DLGLOBAL DL_GLOBAL
17338# else
17339# define LT_DLGLOBAL 0
17340# endif
17341#endif
17342
17343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17344 find out it does not work in some platform. */
17345#ifndef LT_DLLAZY_OR_NOW
17346# ifdef RTLD_LAZY
17347# define LT_DLLAZY_OR_NOW RTLD_LAZY
17348# else
17349# ifdef DL_LAZY
17350# define LT_DLLAZY_OR_NOW DL_LAZY
17351# else
17352# ifdef RTLD_NOW
17353# define LT_DLLAZY_OR_NOW RTLD_NOW
17354# else
17355# ifdef DL_NOW
17356# define LT_DLLAZY_OR_NOW DL_NOW
17357# else
17358# define LT_DLLAZY_OR_NOW 0
17359# endif
17360# endif
17361# endif
17362# endif
17363#endif
17364
17365#ifdef __cplusplus
17366extern "C" void exit (int);
17367#endif
17368
17369void fnord() { int i=42;}
17370int main ()
17371{
17372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17373 int status = $lt_dlunknown;
17374
17375 if (self)
17376 {
17377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17378 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17379 /* dlclose (self); */
17380 }
17381
17382 exit (status);
17383}
17384EOF
17385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17386 (eval $ac_link) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17390 (./conftest; exit; ) 2>/dev/null
17391 lt_status=$?
17392 case x$lt_status in
17393 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17394 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17395 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17396 esac
17397 else :
17398 # compilation failed
17399 lt_cv_dlopen_self=no
17400 fi
17401fi
17402rm -fr conftest*
17403
17404
17405fi
17406echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17407echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17408
17409 if test "x$lt_cv_dlopen_self" = xyes; then
17410 LDFLAGS="$LDFLAGS $link_static_flag"
17411 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17412echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17413if test "${lt_cv_dlopen_self_static+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415else
17416 if test "$cross_compiling" = yes; then :
17417 lt_cv_dlopen_self_static=cross
17418else
17419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17420 lt_status=$lt_dlunknown
17421 cat > conftest.$ac_ext <<EOF
John Criswell613758d2003-09-11 18:03:50 +000017422#line 17422 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017423#include "confdefs.h"
17424
17425#if HAVE_DLFCN_H
17426#include <dlfcn.h>
17427#endif
17428
17429#include <stdio.h>
17430
17431#ifdef RTLD_GLOBAL
17432# define LT_DLGLOBAL RTLD_GLOBAL
17433#else
17434# ifdef DL_GLOBAL
17435# define LT_DLGLOBAL DL_GLOBAL
17436# else
17437# define LT_DLGLOBAL 0
17438# endif
17439#endif
17440
17441/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17442 find out it does not work in some platform. */
17443#ifndef LT_DLLAZY_OR_NOW
17444# ifdef RTLD_LAZY
17445# define LT_DLLAZY_OR_NOW RTLD_LAZY
17446# else
17447# ifdef DL_LAZY
17448# define LT_DLLAZY_OR_NOW DL_LAZY
17449# else
17450# ifdef RTLD_NOW
17451# define LT_DLLAZY_OR_NOW RTLD_NOW
17452# else
17453# ifdef DL_NOW
17454# define LT_DLLAZY_OR_NOW DL_NOW
17455# else
17456# define LT_DLLAZY_OR_NOW 0
17457# endif
17458# endif
17459# endif
17460# endif
17461#endif
17462
17463#ifdef __cplusplus
17464extern "C" void exit (int);
17465#endif
17466
17467void fnord() { int i=42;}
17468int main ()
17469{
17470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17471 int status = $lt_dlunknown;
17472
17473 if (self)
17474 {
17475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17477 /* dlclose (self); */
17478 }
17479
17480 exit (status);
17481}
17482EOF
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17488 (./conftest; exit; ) 2>/dev/null
17489 lt_status=$?
17490 case x$lt_status in
17491 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17492 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17493 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17494 esac
17495 else :
17496 # compilation failed
17497 lt_cv_dlopen_self_static=no
17498 fi
17499fi
17500rm -fr conftest*
17501
17502
17503fi
17504echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17505echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17506 fi
17507
17508 CPPFLAGS="$save_CPPFLAGS"
17509 LDFLAGS="$save_LDFLAGS"
17510 LIBS="$save_LIBS"
17511 ;;
17512 esac
17513
17514 case $lt_cv_dlopen_self in
17515 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17516 *) enable_dlopen_self=unknown ;;
17517 esac
17518
17519 case $lt_cv_dlopen_self_static in
17520 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17521 *) enable_dlopen_self_static=unknown ;;
17522 esac
17523fi
17524
17525
17526# The else clause should only fire when bootstrapping the
17527# libtool distribution, otherwise you forgot to ship ltmain.sh
17528# with your package, and you will get complaints that there are
17529# no rules to generate ltmain.sh.
17530if test -f "$ltmain"; then
17531 # See if we are running on zsh, and set the options which allow our commands through
17532 # without removal of \ escapes.
17533 if test -n "${ZSH_VERSION+set}" ; then
17534 setopt NO_GLOB_SUBST
17535 fi
17536 # Now quote all the things that may contain metacharacters while being
17537 # careful not to overquote the AC_SUBSTed values. We take copies of the
17538 # variables and quote the copies for generation of the libtool script.
17539 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17540 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17541 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17542 deplibs_check_method reload_flag reload_cmds need_locks \
17543 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17544 lt_cv_sys_global_symbol_to_c_name_address \
17545 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17546 old_postinstall_cmds old_postuninstall_cmds \
17547 compiler_GCJ \
17548 CC_GCJ \
17549 LD_GCJ \
17550 lt_prog_compiler_wl_GCJ \
17551 lt_prog_compiler_pic_GCJ \
17552 lt_prog_compiler_static_GCJ \
17553 lt_prog_compiler_no_builtin_flag_GCJ \
17554 export_dynamic_flag_spec_GCJ \
17555 thread_safe_flag_spec_GCJ \
17556 whole_archive_flag_spec_GCJ \
17557 enable_shared_with_static_runtimes_GCJ \
17558 old_archive_cmds_GCJ \
17559 old_archive_from_new_cmds_GCJ \
17560 predep_objects_GCJ \
17561 postdep_objects_GCJ \
17562 predeps_GCJ \
17563 postdeps_GCJ \
17564 compiler_lib_search_path_GCJ \
17565 archive_cmds_GCJ \
17566 archive_expsym_cmds_GCJ \
17567 postinstall_cmds_GCJ \
17568 postuninstall_cmds_GCJ \
17569 old_archive_from_expsyms_cmds_GCJ \
17570 allow_undefined_flag_GCJ \
17571 no_undefined_flag_GCJ \
17572 export_symbols_cmds_GCJ \
17573 hardcode_libdir_flag_spec_GCJ \
17574 hardcode_libdir_flag_spec_ld_GCJ \
17575 hardcode_libdir_separator_GCJ \
17576 hardcode_automatic_GCJ \
17577 module_cmds_GCJ \
17578 module_expsym_cmds_GCJ \
17579 lt_cv_prog_compiler_c_o_GCJ \
17580 exclude_expsyms_GCJ \
17581 include_expsyms_GCJ; do
17582
17583 case $var in
17584 old_archive_cmds_GCJ | \
17585 old_archive_from_new_cmds_GCJ | \
17586 archive_cmds_GCJ | \
17587 archive_expsym_cmds_GCJ | \
17588 module_cmds_GCJ | \
17589 module_expsym_cmds_GCJ | \
17590 old_archive_from_expsyms_cmds_GCJ | \
17591 export_symbols_cmds_GCJ | \
17592 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17593 postinstall_cmds | postuninstall_cmds | \
17594 old_postinstall_cmds | old_postuninstall_cmds | \
17595 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17596 # Double-quote double-evaled strings.
17597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17598 ;;
17599 *)
17600 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17601 ;;
17602 esac
17603 done
17604
17605 case $lt_echo in
17606 *'\$0 --fallback-echo"')
17607 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17608 ;;
17609 esac
17610
17611cfgfile="$ofile"
17612
17613 cat <<__EOF__ >> "$cfgfile"
17614# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17615
17616# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17617
17618# Shell to use when invoking shell scripts.
17619SHELL=$lt_SHELL
17620
17621# Whether or not to build shared libraries.
17622build_libtool_libs=$enable_shared
17623
17624# Whether or not to build static libraries.
17625build_old_libs=$enable_static
17626
17627# Whether or not to add -lc for building shared libraries.
17628build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17629
17630# Whether or not to disallow shared libs when runtime libs are static
17631allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17632
17633# Whether or not to optimize for fast installation.
17634fast_install=$enable_fast_install
17635
17636# The host system.
17637host_alias=$host_alias
17638host=$host
17639
17640# An echo program that does not interpret backslashes.
17641echo=$lt_echo
17642
17643# The archiver.
17644AR=$lt_AR
17645AR_FLAGS=$lt_AR_FLAGS
17646
17647# A C compiler.
17648LTCC=$lt_LTCC
17649
17650# A language-specific compiler.
17651CC=$lt_compiler_GCJ
17652
17653# Is the compiler the GNU C compiler?
17654with_gcc=$GCC_GCJ
17655
17656# An ERE matcher.
17657EGREP=$lt_EGREP
17658
17659# The linker used to build libraries.
17660LD=$lt_LD_GCJ
17661
17662# Whether we need hard or soft links.
17663LN_S=$lt_LN_S
17664
17665# A BSD-compatible nm program.
17666NM=$lt_NM
17667
17668# A symbol stripping program
17669STRIP=$STRIP
17670
17671# Used to examine libraries when file_magic_cmd begins "file"
17672MAGIC_CMD=$MAGIC_CMD
17673
17674# Used on cygwin: DLL creation program.
17675DLLTOOL="$DLLTOOL"
17676
17677# Used on cygwin: object dumper.
17678OBJDUMP="$OBJDUMP"
17679
17680# Used on cygwin: assembler.
17681AS="$AS"
17682
17683# The name of the directory that contains temporary libtool files.
17684objdir=$objdir
17685
17686# How to create reloadable object files.
17687reload_flag=$lt_reload_flag
17688reload_cmds=$lt_reload_cmds
17689
17690# How to pass a linker flag through the compiler.
17691wl=$lt_lt_prog_compiler_wl_GCJ
17692
17693# Object file suffix (normally "o").
17694objext="$ac_objext"
17695
17696# Old archive suffix (normally "a").
17697libext="$libext"
17698
17699# Shared library suffix (normally ".so").
17700shrext='$shrext'
17701
17702# Executable file suffix (normally "").
17703exeext="$exeext"
17704
17705# Additional compiler flags for building library objects.
17706pic_flag=$lt_lt_prog_compiler_pic_GCJ
17707pic_mode=$pic_mode
17708
17709# What is the maximum length of a command?
17710max_cmd_len=$lt_cv_sys_max_cmd_len
17711
17712# Does compiler simultaneously support -c and -o options?
17713compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17714
17715# Must we lock files when doing compilation ?
17716need_locks=$lt_need_locks
17717
17718# Do we need the lib prefix for modules?
17719need_lib_prefix=$need_lib_prefix
17720
17721# Do we need a version for libraries?
17722need_version=$need_version
17723
17724# Whether dlopen is supported.
17725dlopen_support=$enable_dlopen
17726
17727# Whether dlopen of programs is supported.
17728dlopen_self=$enable_dlopen_self
17729
17730# Whether dlopen of statically linked programs is supported.
17731dlopen_self_static=$enable_dlopen_self_static
17732
17733# Compiler flag to prevent dynamic linking.
17734link_static_flag=$lt_lt_prog_compiler_static_GCJ
17735
17736# Compiler flag to turn off builtin functions.
17737no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17738
17739# Compiler flag to allow reflexive dlopens.
17740export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17741
17742# Compiler flag to generate shared objects directly from archives.
17743whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17744
17745# Compiler flag to generate thread-safe objects.
17746thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17747
17748# Library versioning type.
17749version_type=$version_type
17750
17751# Format of library name prefix.
17752libname_spec=$lt_libname_spec
17753
17754# List of archive names. First name is the real one, the rest are links.
17755# The last name is the one that the linker finds with -lNAME.
17756library_names_spec=$lt_library_names_spec
17757
17758# The coded name of the library, if different from the real name.
17759soname_spec=$lt_soname_spec
17760
17761# Commands used to build and install an old-style archive.
17762RANLIB=$lt_RANLIB
17763old_archive_cmds=$lt_old_archive_cmds_GCJ
17764old_postinstall_cmds=$lt_old_postinstall_cmds
17765old_postuninstall_cmds=$lt_old_postuninstall_cmds
17766
17767# Create an old-style archive from a shared archive.
17768old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17769
17770# Create a temporary old-style archive to link instead of a shared archive.
17771old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17772
17773# Commands used to build and install a shared archive.
17774archive_cmds=$lt_archive_cmds_GCJ
17775archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17776postinstall_cmds=$lt_postinstall_cmds
17777postuninstall_cmds=$lt_postuninstall_cmds
17778
17779# Commands used to build a loadable module (assumed same as above if empty)
17780module_cmds=$lt_module_cmds_GCJ
17781module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17782
17783# Commands to strip libraries.
17784old_striplib=$lt_old_striplib
17785striplib=$lt_striplib
17786
17787# Dependencies to place before the objects being linked to create a
17788# shared library.
17789predep_objects=$lt_predep_objects_GCJ
17790
17791# Dependencies to place after the objects being linked to create a
17792# shared library.
17793postdep_objects=$lt_postdep_objects_GCJ
17794
17795# Dependencies to place before the objects being linked to create a
17796# shared library.
17797predeps=$lt_predeps_GCJ
17798
17799# Dependencies to place after the objects being linked to create a
17800# shared library.
17801postdeps=$lt_postdeps_GCJ
17802
17803# The library search path used internally by the compiler when linking
17804# a shared library.
17805compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17806
17807# Method to check whether dependent libraries are shared objects.
17808deplibs_check_method=$lt_deplibs_check_method
17809
17810# Command to use when deplibs_check_method == file_magic.
17811file_magic_cmd=$lt_file_magic_cmd
17812
17813# Flag that allows shared libraries with undefined symbols to be built.
17814allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17815
17816# Flag that forces no undefined symbols.
17817no_undefined_flag=$lt_no_undefined_flag_GCJ
17818
17819# Commands used to finish a libtool library installation in a directory.
17820finish_cmds=$lt_finish_cmds
17821
17822# Same as above, but a single script fragment to be evaled but not shown.
17823finish_eval=$lt_finish_eval
17824
17825# Take the output of nm and produce a listing of raw symbols and C names.
17826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17827
17828# Transform the output of nm in a proper C declaration
17829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17830
17831# Transform the output of nm in a C name address pair
17832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17833
17834# This is the shared library runtime path variable.
17835runpath_var=$runpath_var
17836
17837# This is the shared library path variable.
17838shlibpath_var=$shlibpath_var
17839
17840# Is shlibpath searched before the hard-coded library search path?
17841shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17842
17843# How to hardcode a shared library path into an executable.
17844hardcode_action=$hardcode_action_GCJ
17845
17846# Whether we should hardcode library paths into libraries.
17847hardcode_into_libs=$hardcode_into_libs
17848
17849# Flag to hardcode \$libdir into a binary during linking.
17850# This must work even if \$libdir does not exist.
17851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17852
17853# If ld is used when linking, flag to hardcode \$libdir into
17854# a binary during linking. This must work even if \$libdir does
17855# not exist.
17856hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17857
17858# Whether we need a single -rpath flag with a separated argument.
17859hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17860
17861# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17862# resulting binary.
17863hardcode_direct=$hardcode_direct_GCJ
17864
17865# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17866# resulting binary.
17867hardcode_minus_L=$hardcode_minus_L_GCJ
17868
17869# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17870# the resulting binary.
17871hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17872
17873# Set to yes if building a shared library automatically hardcodes DIR into the library
17874# and all subsequent libraries and executables linked against it.
17875hardcode_automatic=$hardcode_automatic_GCJ
17876
17877# Variables whose values should be saved in libtool wrapper scripts and
17878# restored at relink time.
17879variables_saved_for_relink="$variables_saved_for_relink"
17880
17881# Whether libtool must link a program against all its dependency libraries.
17882link_all_deplibs=$link_all_deplibs_GCJ
17883
17884# Compile-time system search path for libraries
17885sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17886
17887# Run-time system search path for libraries
17888sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17889
17890# Fix the shell variable \$srcfile for the compiler.
17891fix_srcfile_path="$fix_srcfile_path_GCJ"
17892
17893# Set to yes if exported symbols are required.
17894always_export_symbols=$always_export_symbols_GCJ
17895
17896# The commands to list exported symbols.
17897export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17898
17899# The commands to extract the exported symbol list from a shared archive.
17900extract_expsyms_cmds=$lt_extract_expsyms_cmds
17901
17902# Symbols that should not be listed in the preloaded symbols.
17903exclude_expsyms=$lt_exclude_expsyms_GCJ
17904
17905# Symbols that must always be exported.
17906include_expsyms=$lt_include_expsyms_GCJ
17907
17908# ### END LIBTOOL TAG CONFIG: $tagname
17909
17910__EOF__
17911
17912
17913else
17914 # If there is no Makefile yet, we rely on a make rule to execute
17915 # `config.status --recheck' to rerun these tests and create the
17916 # libtool script then.
17917 test -f Makefile && make "$ltmain"
17918fi
17919
17920
17921ac_ext=c
17922ac_cpp='$CPP $CPPFLAGS'
17923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925ac_compiler_gnu=$ac_cv_c_compiler_gnu
17926
17927CC="$lt_save_CC"
17928
17929 else
17930 tagname=""
17931 fi
17932 ;;
17933
17934 RC)
17935
17936
17937
17938# Source file extension for RC test sources.
17939ac_ext=rc
17940
17941# Object file extension for compiled RC test sources.
17942objext=o
17943objext_RC=$objext
17944
17945# Code to be used in simple compile tests
17946lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17947
17948# Code to be used in simple link tests
17949lt_simple_link_test_code="$lt_simple_compile_test_code"
17950
17951# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17952
17953# If no C compiler was specified, use CC.
17954LTCC=${LTCC-"$CC"}
17955
17956# Allow CC to be a program name with arguments.
17957compiler=$CC
17958
17959
17960# Allow CC to be a program name with arguments.
17961lt_save_CC="$CC"
17962CC=${RC-"windres"}
17963compiler=$CC
17964compiler_RC=$CC
17965lt_cv_prog_compiler_c_o_RC=yes
17966
17967# The else clause should only fire when bootstrapping the
17968# libtool distribution, otherwise you forgot to ship ltmain.sh
17969# with your package, and you will get complaints that there are
17970# no rules to generate ltmain.sh.
17971if test -f "$ltmain"; then
17972 # See if we are running on zsh, and set the options which allow our commands through
17973 # without removal of \ escapes.
17974 if test -n "${ZSH_VERSION+set}" ; then
17975 setopt NO_GLOB_SUBST
17976 fi
17977 # Now quote all the things that may contain metacharacters while being
17978 # careful not to overquote the AC_SUBSTed values. We take copies of the
17979 # variables and quote the copies for generation of the libtool script.
17980 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17981 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17982 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17983 deplibs_check_method reload_flag reload_cmds need_locks \
17984 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17985 lt_cv_sys_global_symbol_to_c_name_address \
17986 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17987 old_postinstall_cmds old_postuninstall_cmds \
17988 compiler_RC \
17989 CC_RC \
17990 LD_RC \
17991 lt_prog_compiler_wl_RC \
17992 lt_prog_compiler_pic_RC \
17993 lt_prog_compiler_static_RC \
17994 lt_prog_compiler_no_builtin_flag_RC \
17995 export_dynamic_flag_spec_RC \
17996 thread_safe_flag_spec_RC \
17997 whole_archive_flag_spec_RC \
17998 enable_shared_with_static_runtimes_RC \
17999 old_archive_cmds_RC \
18000 old_archive_from_new_cmds_RC \
18001 predep_objects_RC \
18002 postdep_objects_RC \
18003 predeps_RC \
18004 postdeps_RC \
18005 compiler_lib_search_path_RC \
18006 archive_cmds_RC \
18007 archive_expsym_cmds_RC \
18008 postinstall_cmds_RC \
18009 postuninstall_cmds_RC \
18010 old_archive_from_expsyms_cmds_RC \
18011 allow_undefined_flag_RC \
18012 no_undefined_flag_RC \
18013 export_symbols_cmds_RC \
18014 hardcode_libdir_flag_spec_RC \
18015 hardcode_libdir_flag_spec_ld_RC \
18016 hardcode_libdir_separator_RC \
18017 hardcode_automatic_RC \
18018 module_cmds_RC \
18019 module_expsym_cmds_RC \
18020 lt_cv_prog_compiler_c_o_RC \
18021 exclude_expsyms_RC \
18022 include_expsyms_RC; do
18023
18024 case $var in
18025 old_archive_cmds_RC | \
18026 old_archive_from_new_cmds_RC | \
18027 archive_cmds_RC | \
18028 archive_expsym_cmds_RC | \
18029 module_cmds_RC | \
18030 module_expsym_cmds_RC | \
18031 old_archive_from_expsyms_cmds_RC | \
18032 export_symbols_cmds_RC | \
18033 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18034 postinstall_cmds | postuninstall_cmds | \
18035 old_postinstall_cmds | old_postuninstall_cmds | \
18036 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18037 # Double-quote double-evaled strings.
18038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18039 ;;
18040 *)
18041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18042 ;;
18043 esac
18044 done
18045
18046 case $lt_echo in
18047 *'\$0 --fallback-echo"')
18048 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18049 ;;
18050 esac
18051
18052cfgfile="$ofile"
18053
18054 cat <<__EOF__ >> "$cfgfile"
18055# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18056
18057# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18058
18059# Shell to use when invoking shell scripts.
18060SHELL=$lt_SHELL
18061
18062# Whether or not to build shared libraries.
18063build_libtool_libs=$enable_shared
18064
18065# Whether or not to build static libraries.
18066build_old_libs=$enable_static
18067
18068# Whether or not to add -lc for building shared libraries.
18069build_libtool_need_lc=$archive_cmds_need_lc_RC
18070
18071# Whether or not to disallow shared libs when runtime libs are static
18072allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18073
18074# Whether or not to optimize for fast installation.
18075fast_install=$enable_fast_install
18076
18077# The host system.
18078host_alias=$host_alias
18079host=$host
18080
18081# An echo program that does not interpret backslashes.
18082echo=$lt_echo
18083
18084# The archiver.
18085AR=$lt_AR
18086AR_FLAGS=$lt_AR_FLAGS
18087
18088# A C compiler.
18089LTCC=$lt_LTCC
18090
18091# A language-specific compiler.
18092CC=$lt_compiler_RC
18093
18094# Is the compiler the GNU C compiler?
18095with_gcc=$GCC_RC
18096
18097# An ERE matcher.
18098EGREP=$lt_EGREP
18099
18100# The linker used to build libraries.
18101LD=$lt_LD_RC
18102
18103# Whether we need hard or soft links.
18104LN_S=$lt_LN_S
18105
18106# A BSD-compatible nm program.
18107NM=$lt_NM
18108
18109# A symbol stripping program
18110STRIP=$STRIP
18111
18112# Used to examine libraries when file_magic_cmd begins "file"
18113MAGIC_CMD=$MAGIC_CMD
18114
18115# Used on cygwin: DLL creation program.
18116DLLTOOL="$DLLTOOL"
18117
18118# Used on cygwin: object dumper.
18119OBJDUMP="$OBJDUMP"
18120
18121# Used on cygwin: assembler.
18122AS="$AS"
18123
18124# The name of the directory that contains temporary libtool files.
18125objdir=$objdir
18126
18127# How to create reloadable object files.
18128reload_flag=$lt_reload_flag
18129reload_cmds=$lt_reload_cmds
18130
18131# How to pass a linker flag through the compiler.
18132wl=$lt_lt_prog_compiler_wl_RC
18133
18134# Object file suffix (normally "o").
18135objext="$ac_objext"
18136
18137# Old archive suffix (normally "a").
18138libext="$libext"
18139
18140# Shared library suffix (normally ".so").
18141shrext='$shrext'
18142
18143# Executable file suffix (normally "").
18144exeext="$exeext"
18145
18146# Additional compiler flags for building library objects.
18147pic_flag=$lt_lt_prog_compiler_pic_RC
18148pic_mode=$pic_mode
18149
18150# What is the maximum length of a command?
18151max_cmd_len=$lt_cv_sys_max_cmd_len
18152
18153# Does compiler simultaneously support -c and -o options?
18154compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18155
18156# Must we lock files when doing compilation ?
18157need_locks=$lt_need_locks
18158
18159# Do we need the lib prefix for modules?
18160need_lib_prefix=$need_lib_prefix
18161
18162# Do we need a version for libraries?
18163need_version=$need_version
18164
18165# Whether dlopen is supported.
18166dlopen_support=$enable_dlopen
18167
18168# Whether dlopen of programs is supported.
18169dlopen_self=$enable_dlopen_self
18170
18171# Whether dlopen of statically linked programs is supported.
18172dlopen_self_static=$enable_dlopen_self_static
18173
18174# Compiler flag to prevent dynamic linking.
18175link_static_flag=$lt_lt_prog_compiler_static_RC
18176
18177# Compiler flag to turn off builtin functions.
18178no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18179
18180# Compiler flag to allow reflexive dlopens.
18181export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18182
18183# Compiler flag to generate shared objects directly from archives.
18184whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18185
18186# Compiler flag to generate thread-safe objects.
18187thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18188
18189# Library versioning type.
18190version_type=$version_type
18191
18192# Format of library name prefix.
18193libname_spec=$lt_libname_spec
18194
18195# List of archive names. First name is the real one, the rest are links.
18196# The last name is the one that the linker finds with -lNAME.
18197library_names_spec=$lt_library_names_spec
18198
18199# The coded name of the library, if different from the real name.
18200soname_spec=$lt_soname_spec
18201
18202# Commands used to build and install an old-style archive.
18203RANLIB=$lt_RANLIB
18204old_archive_cmds=$lt_old_archive_cmds_RC
18205old_postinstall_cmds=$lt_old_postinstall_cmds
18206old_postuninstall_cmds=$lt_old_postuninstall_cmds
18207
18208# Create an old-style archive from a shared archive.
18209old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18210
18211# Create a temporary old-style archive to link instead of a shared archive.
18212old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18213
18214# Commands used to build and install a shared archive.
18215archive_cmds=$lt_archive_cmds_RC
18216archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18217postinstall_cmds=$lt_postinstall_cmds
18218postuninstall_cmds=$lt_postuninstall_cmds
18219
18220# Commands used to build a loadable module (assumed same as above if empty)
18221module_cmds=$lt_module_cmds_RC
18222module_expsym_cmds=$lt_module_expsym_cmds_RC
18223
18224# Commands to strip libraries.
18225old_striplib=$lt_old_striplib
18226striplib=$lt_striplib
18227
18228# Dependencies to place before the objects being linked to create a
18229# shared library.
18230predep_objects=$lt_predep_objects_RC
18231
18232# Dependencies to place after the objects being linked to create a
18233# shared library.
18234postdep_objects=$lt_postdep_objects_RC
18235
18236# Dependencies to place before the objects being linked to create a
18237# shared library.
18238predeps=$lt_predeps_RC
18239
18240# Dependencies to place after the objects being linked to create a
18241# shared library.
18242postdeps=$lt_postdeps_RC
18243
18244# The library search path used internally by the compiler when linking
18245# a shared library.
18246compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18247
18248# Method to check whether dependent libraries are shared objects.
18249deplibs_check_method=$lt_deplibs_check_method
18250
18251# Command to use when deplibs_check_method == file_magic.
18252file_magic_cmd=$lt_file_magic_cmd
18253
18254# Flag that allows shared libraries with undefined symbols to be built.
18255allow_undefined_flag=$lt_allow_undefined_flag_RC
18256
18257# Flag that forces no undefined symbols.
18258no_undefined_flag=$lt_no_undefined_flag_RC
18259
18260# Commands used to finish a libtool library installation in a directory.
18261finish_cmds=$lt_finish_cmds
18262
18263# Same as above, but a single script fragment to be evaled but not shown.
18264finish_eval=$lt_finish_eval
18265
18266# Take the output of nm and produce a listing of raw symbols and C names.
18267global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18268
18269# Transform the output of nm in a proper C declaration
18270global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18271
18272# Transform the output of nm in a C name address pair
18273global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18274
18275# This is the shared library runtime path variable.
18276runpath_var=$runpath_var
18277
18278# This is the shared library path variable.
18279shlibpath_var=$shlibpath_var
18280
18281# Is shlibpath searched before the hard-coded library search path?
18282shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18283
18284# How to hardcode a shared library path into an executable.
18285hardcode_action=$hardcode_action_RC
18286
18287# Whether we should hardcode library paths into libraries.
18288hardcode_into_libs=$hardcode_into_libs
18289
18290# Flag to hardcode \$libdir into a binary during linking.
18291# This must work even if \$libdir does not exist.
18292hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18293
18294# If ld is used when linking, flag to hardcode \$libdir into
18295# a binary during linking. This must work even if \$libdir does
18296# not exist.
18297hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18298
18299# Whether we need a single -rpath flag with a separated argument.
18300hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18301
18302# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18303# resulting binary.
18304hardcode_direct=$hardcode_direct_RC
18305
18306# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18307# resulting binary.
18308hardcode_minus_L=$hardcode_minus_L_RC
18309
18310# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18311# the resulting binary.
18312hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18313
18314# Set to yes if building a shared library automatically hardcodes DIR into the library
18315# and all subsequent libraries and executables linked against it.
18316hardcode_automatic=$hardcode_automatic_RC
18317
18318# Variables whose values should be saved in libtool wrapper scripts and
18319# restored at relink time.
18320variables_saved_for_relink="$variables_saved_for_relink"
18321
18322# Whether libtool must link a program against all its dependency libraries.
18323link_all_deplibs=$link_all_deplibs_RC
18324
18325# Compile-time system search path for libraries
18326sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18327
18328# Run-time system search path for libraries
18329sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18330
18331# Fix the shell variable \$srcfile for the compiler.
18332fix_srcfile_path="$fix_srcfile_path_RC"
18333
18334# Set to yes if exported symbols are required.
18335always_export_symbols=$always_export_symbols_RC
18336
18337# The commands to list exported symbols.
18338export_symbols_cmds=$lt_export_symbols_cmds_RC
18339
18340# The commands to extract the exported symbol list from a shared archive.
18341extract_expsyms_cmds=$lt_extract_expsyms_cmds
18342
18343# Symbols that should not be listed in the preloaded symbols.
18344exclude_expsyms=$lt_exclude_expsyms_RC
18345
18346# Symbols that must always be exported.
18347include_expsyms=$lt_include_expsyms_RC
18348
18349# ### END LIBTOOL TAG CONFIG: $tagname
18350
18351__EOF__
18352
18353
18354else
18355 # If there is no Makefile yet, we rely on a make rule to execute
18356 # `config.status --recheck' to rerun these tests and create the
18357 # libtool script then.
18358 test -f Makefile && make "$ltmain"
18359fi
18360
18361
18362ac_ext=c
18363ac_cpp='$CPP $CPPFLAGS'
18364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366ac_compiler_gnu=$ac_cv_c_compiler_gnu
18367
18368CC="$lt_save_CC"
18369
18370 ;;
18371
18372 *)
18373 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18374echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18375 { (exit 1); exit 1; }; }
18376 ;;
18377 esac
18378
18379 # Append the new tag name to the list of available tags.
18380 if test -n "$tagname" ; then
18381 available_tags="$available_tags $tagname"
18382 fi
18383 fi
18384 done
18385 IFS="$lt_save_ifs"
18386
18387 # Now substitute the updated list of available tags.
18388 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18389 mv "${ofile}T" "$ofile"
18390 chmod +x "$ofile"
18391 else
18392 rm -f "${ofile}T"
18393 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18394echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18395 { (exit 1); exit 1; }; }
18396 fi
18397fi
John Criswell7a73b802003-06-30 21:59:07 +000018398
18399
18400
18401# This can be used to rebuild libtool when needed
18402LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18403
18404# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018405LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018406
18407# Prevent multiple expansion
18408
18409
18410
John Criswell47fdd832003-07-14 16:52:07 +000018411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
John Criswellde00db22003-08-25 16:49:54 +000018429# Extract the first word of "pwd", so it can be a program name with args.
18430set dummy pwd; ac_word=$2
18431echo "$as_me:$LINENO: checking for $ac_word" >&5
18432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18433if test "${ac_cv_path_RPWD+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18435else
18436 case $RPWD in
18437 [\\/]* | ?:[\\/]*)
18438 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18439 ;;
18440 *)
18441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18442for as_dir in $PATH
18443do
18444 IFS=$as_save_IFS
18445 test -z "$as_dir" && as_dir=.
18446 for ac_exec_ext in '' $ac_executable_extensions; do
18447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18448 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18450 break 2
18451 fi
18452done
18453done
18454
18455 ;;
18456esac
18457fi
18458RPWD=$ac_cv_path_RPWD
18459
18460if test -n "$RPWD"; then
18461 echo "$as_me:$LINENO: result: $RPWD" >&5
18462echo "${ECHO_T}$RPWD" >&6
18463else
18464 echo "$as_me:$LINENO: result: no" >&5
18465echo "${ECHO_T}no" >&6
18466fi
18467
John Criswell7a73b802003-06-30 21:59:07 +000018468# Extract the first word of "ar", so it can be a program name with args.
18469set dummy ar; ac_word=$2
18470echo "$as_me:$LINENO: checking for $ac_word" >&5
18471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18472if test "${ac_cv_path_AR+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474else
18475 case $AR in
18476 [\\/]* | ?:[\\/]*)
18477 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18478 ;;
18479 *)
18480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481for as_dir in $PATH
18482do
18483 IFS=$as_save_IFS
18484 test -z "$as_dir" && as_dir=.
18485 for ac_exec_ext in '' $ac_executable_extensions; do
18486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18487 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18489 break 2
18490 fi
18491done
18492done
18493
18494 ;;
18495esac
18496fi
18497AR=$ac_cv_path_AR
18498
18499if test -n "$AR"; then
18500 echo "$as_me:$LINENO: result: $AR" >&5
18501echo "${ECHO_T}$AR" >&6
18502else
18503 echo "$as_me:$LINENO: result: no" >&5
18504echo "${ECHO_T}no" >&6
18505fi
18506
18507# Extract the first word of "sed", so it can be a program name with args.
18508set dummy sed; ac_word=$2
18509echo "$as_me:$LINENO: checking for $ac_word" >&5
18510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18511if test "${ac_cv_path_SED+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513else
18514 case $SED in
18515 [\\/]* | ?:[\\/]*)
18516 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18517 ;;
18518 *)
18519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520for as_dir in $PATH
18521do
18522 IFS=$as_save_IFS
18523 test -z "$as_dir" && as_dir=.
18524 for ac_exec_ext in '' $ac_executable_extensions; do
18525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18526 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18528 break 2
18529 fi
18530done
18531done
18532
18533 ;;
18534esac
18535fi
18536SED=$ac_cv_path_SED
18537
18538if test -n "$SED"; then
18539 echo "$as_me:$LINENO: result: $SED" >&5
18540echo "${ECHO_T}$SED" >&6
18541else
18542 echo "$as_me:$LINENO: result: no" >&5
18543echo "${ECHO_T}no" >&6
18544fi
18545
18546# Extract the first word of "rm", so it can be a program name with args.
18547set dummy rm; ac_word=$2
18548echo "$as_me:$LINENO: checking for $ac_word" >&5
18549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18550if test "${ac_cv_path_RM+set}" = set; then
18551 echo $ECHO_N "(cached) $ECHO_C" >&6
18552else
18553 case $RM in
18554 [\\/]* | ?:[\\/]*)
18555 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18556 ;;
18557 *)
18558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18559for as_dir in $PATH
18560do
18561 IFS=$as_save_IFS
18562 test -z "$as_dir" && as_dir=.
18563 for ac_exec_ext in '' $ac_executable_extensions; do
18564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18565 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18567 break 2
18568 fi
18569done
18570done
18571
18572 ;;
18573esac
18574fi
18575RM=$ac_cv_path_RM
18576
18577if test -n "$RM"; then
18578 echo "$as_me:$LINENO: result: $RM" >&5
18579echo "${ECHO_T}$RM" >&6
18580else
18581 echo "$as_me:$LINENO: result: no" >&5
18582echo "${ECHO_T}no" >&6
18583fi
18584
18585# Extract the first word of "echo", so it can be a program name with args.
18586set dummy echo; ac_word=$2
18587echo "$as_me:$LINENO: checking for $ac_word" >&5
18588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18589if test "${ac_cv_path_ECHO+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592 case $ECHO in
18593 [\\/]* | ?:[\\/]*)
18594 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18595 ;;
18596 *)
18597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598for as_dir in $PATH
18599do
18600 IFS=$as_save_IFS
18601 test -z "$as_dir" && as_dir=.
18602 for ac_exec_ext in '' $ac_executable_extensions; do
18603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18604 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18606 break 2
18607 fi
18608done
18609done
18610
18611 ;;
18612esac
18613fi
18614ECHO=$ac_cv_path_ECHO
18615
18616if test -n "$ECHO"; then
18617 echo "$as_me:$LINENO: result: $ECHO" >&5
18618echo "${ECHO_T}$ECHO" >&6
18619else
18620 echo "$as_me:$LINENO: result: no" >&5
18621echo "${ECHO_T}no" >&6
18622fi
18623
18624# Extract the first word of "mkdir", so it can be a program name with args.
18625set dummy mkdir; ac_word=$2
18626echo "$as_me:$LINENO: checking for $ac_word" >&5
18627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18628if test "${ac_cv_path_MKDIR+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18630else
18631 case $MKDIR in
18632 [\\/]* | ?:[\\/]*)
18633 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18634 ;;
18635 *)
18636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18637for as_dir in $PATH
18638do
18639 IFS=$as_save_IFS
18640 test -z "$as_dir" && as_dir=.
18641 for ac_exec_ext in '' $ac_executable_extensions; do
18642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18643 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18645 break 2
18646 fi
18647done
18648done
18649
18650 ;;
18651esac
18652fi
18653MKDIR=$ac_cv_path_MKDIR
18654
18655if test -n "$MKDIR"; then
18656 echo "$as_me:$LINENO: result: $MKDIR" >&5
18657echo "${ECHO_T}$MKDIR" >&6
18658else
18659 echo "$as_me:$LINENO: result: no" >&5
18660echo "${ECHO_T}no" >&6
18661fi
18662
18663# Extract the first word of "date", so it can be a program name with args.
18664set dummy date; ac_word=$2
18665echo "$as_me:$LINENO: checking for $ac_word" >&5
18666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18667if test "${ac_cv_path_DATE+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669else
18670 case $DATE in
18671 [\\/]* | ?:[\\/]*)
18672 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18673 ;;
18674 *)
18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18676for as_dir in $PATH
18677do
18678 IFS=$as_save_IFS
18679 test -z "$as_dir" && as_dir=.
18680 for ac_exec_ext in '' $ac_executable_extensions; do
18681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18682 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18684 break 2
18685 fi
18686done
18687done
18688
18689 ;;
18690esac
18691fi
18692DATE=$ac_cv_path_DATE
18693
18694if test -n "$DATE"; then
18695 echo "$as_me:$LINENO: result: $DATE" >&5
18696echo "${ECHO_T}$DATE" >&6
18697else
18698 echo "$as_me:$LINENO: result: no" >&5
18699echo "${ECHO_T}no" >&6
18700fi
18701
18702# Extract the first word of "mv", so it can be a program name with args.
18703set dummy mv; ac_word=$2
18704echo "$as_me:$LINENO: checking for $ac_word" >&5
18705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18706if test "${ac_cv_path_MV+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708else
18709 case $MV in
18710 [\\/]* | ?:[\\/]*)
18711 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18712 ;;
18713 *)
18714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18715for as_dir in $PATH
18716do
18717 IFS=$as_save_IFS
18718 test -z "$as_dir" && as_dir=.
18719 for ac_exec_ext in '' $ac_executable_extensions; do
18720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18721 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18723 break 2
18724 fi
18725done
18726done
18727
18728 ;;
18729esac
18730fi
18731MV=$ac_cv_path_MV
18732
18733if test -n "$MV"; then
18734 echo "$as_me:$LINENO: result: $MV" >&5
18735echo "${ECHO_T}$MV" >&6
18736else
18737 echo "$as_me:$LINENO: result: no" >&5
18738echo "${ECHO_T}no" >&6
18739fi
18740
18741# Extract the first word of "dot", so it can be a program name with args.
18742set dummy dot; ac_word=$2
18743echo "$as_me:$LINENO: checking for $ac_word" >&5
18744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18745if test "${ac_cv_path_DOT+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748 case $DOT in
18749 [\\/]* | ?:[\\/]*)
18750 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18751 ;;
18752 *)
18753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754for as_dir in $PATH
18755do
18756 IFS=$as_save_IFS
18757 test -z "$as_dir" && as_dir=.
18758 for ac_exec_ext in '' $ac_executable_extensions; do
18759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18762 break 2
18763 fi
18764done
18765done
18766
18767 ;;
18768esac
18769fi
18770DOT=$ac_cv_path_DOT
18771
18772if test -n "$DOT"; then
18773 echo "$as_me:$LINENO: result: $DOT" >&5
18774echo "${ECHO_T}$DOT" >&6
18775else
18776 echo "$as_me:$LINENO: result: no" >&5
18777echo "${ECHO_T}no" >&6
18778fi
18779
18780# Extract the first word of "etags", so it can be a program name with args.
18781set dummy etags; ac_word=$2
18782echo "$as_me:$LINENO: checking for $ac_word" >&5
18783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18784if test "${ac_cv_path_ETAGS+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786else
18787 case $ETAGS in
18788 [\\/]* | ?:[\\/]*)
18789 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18790 ;;
18791 *)
18792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18793for as_dir in $PATH
18794do
18795 IFS=$as_save_IFS
18796 test -z "$as_dir" && as_dir=.
18797 for ac_exec_ext in '' $ac_executable_extensions; do
18798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18799 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18801 break 2
18802 fi
18803done
18804done
18805
18806 ;;
18807esac
18808fi
18809ETAGS=$ac_cv_path_ETAGS
18810
18811if test -n "$ETAGS"; then
18812 echo "$as_me:$LINENO: result: $ETAGS" >&5
18813echo "${ECHO_T}$ETAGS" >&6
18814else
18815 echo "$as_me:$LINENO: result: no" >&5
18816echo "${ECHO_T}no" >&6
18817fi
18818
18819# Extract the first word of "purify", so it can be a program name with args.
18820set dummy purify; ac_word=$2
18821echo "$as_me:$LINENO: checking for $ac_word" >&5
18822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18823if test "${ac_cv_path_PURIFY+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825else
18826 case $PURIFY in
18827 [\\/]* | ?:[\\/]*)
18828 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18829 ;;
18830 *)
18831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18832for as_dir in $PATH
18833do
18834 IFS=$as_save_IFS
18835 test -z "$as_dir" && as_dir=.
18836 for ac_exec_ext in '' $ac_executable_extensions; do
18837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18838 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18840 break 2
18841 fi
18842done
18843done
18844
18845 ;;
18846esac
18847fi
18848PURIFY=$ac_cv_path_PURIFY
18849
18850if test -n "$PURIFY"; then
18851 echo "$as_me:$LINENO: result: $PURIFY" >&5
18852echo "${ECHO_T}$PURIFY" >&6
18853else
18854 echo "$as_me:$LINENO: result: no" >&5
18855echo "${ECHO_T}no" >&6
18856fi
18857
John Criswellde00db22003-08-25 16:49:54 +000018858# Extract the first word of "python", so it can be a program name with args.
18859set dummy python; ac_word=$2
18860echo "$as_me:$LINENO: checking for $ac_word" >&5
18861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18862if test "${ac_cv_path_PYTHON+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18864else
18865 case $PYTHON in
18866 [\\/]* | ?:[\\/]*)
18867 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18868 ;;
18869 *)
18870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18871for as_dir in $PATH
18872do
18873 IFS=$as_save_IFS
18874 test -z "$as_dir" && as_dir=.
18875 for ac_exec_ext in '' $ac_executable_extensions; do
18876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18877 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18879 break 2
18880 fi
18881done
18882done
18883
18884 ;;
18885esac
18886fi
18887PYTHON=$ac_cv_path_PYTHON
18888
18889if test -n "$PYTHON"; then
18890 echo "$as_me:$LINENO: result: $PYTHON" >&5
18891echo "${ECHO_T}$PYTHON" >&6
18892else
18893 echo "$as_me:$LINENO: result: no" >&5
18894echo "${ECHO_T}no" >&6
18895fi
18896
18897# Extract the first word of "qmtest", so it can be a program name with args.
18898set dummy qmtest; ac_word=$2
18899echo "$as_me:$LINENO: checking for $ac_word" >&5
18900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18901if test "${ac_cv_path_QMTEST+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903else
18904 case $QMTEST in
18905 [\\/]* | ?:[\\/]*)
18906 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18907 ;;
18908 *)
18909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18910for as_dir in $PATH
18911do
18912 IFS=$as_save_IFS
18913 test -z "$as_dir" && as_dir=.
18914 for ac_exec_ext in '' $ac_executable_extensions; do
18915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18916 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18918 break 2
18919 fi
18920done
18921done
18922
18923 ;;
18924esac
18925fi
18926QMTEST=$ac_cv_path_QMTEST
18927
18928if test -n "$QMTEST"; then
18929 echo "$as_me:$LINENO: result: $QMTEST" >&5
18930echo "${ECHO_T}$QMTEST" >&6
18931else
18932 echo "$as_me:$LINENO: result: no" >&5
18933echo "${ECHO_T}no" >&6
18934fi
18935
18936
18937pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18938pymajor=`echo $pyversion | cut -d. -f1`
18939pyminor=`echo $pyversion | cut -d. -f2`
18940
18941if test "$pymajor" -ge "2"
18942then
18943 if test "$pymajor" -eq "2"
18944 then
18945 if test "$pyminor" -lt "2"
18946 then
18947 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18948echo "$as_me: error: Python 2.2 or greater required" >&2;}
18949 { (exit 1); exit 1; }; }
18950 fi
18951 fi
18952else
18953 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18954echo "$as_me: error: Python 2.2 or greater required" >&2;}
18955 { (exit 1); exit 1; }; }
18956fi
John Criswell7a73b802003-06-30 21:59:07 +000018957
18958
18959
18960
18961
18962echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18963echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18964if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966else
18967 ac_check_lib_save_LIBS=$LIBS
18968LIBS="-lelf $LIBS"
18969cat >conftest.$ac_ext <<_ACEOF
18970#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018976
18977/* Override any gcc2 internal prototype to avoid an error. */
18978#ifdef __cplusplus
18979extern "C"
18980#endif
18981/* We use char because int might match the return type of a gcc2
18982 builtin and then its argument prototype would still apply. */
18983char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018984int
18985main ()
18986{
18987elf_begin ();
18988 ;
18989 return 0;
18990}
18991_ACEOF
18992rm -f conftest.$ac_objext conftest$ac_exeext
18993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18994 (eval $ac_link) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
18998 { ac_try='test -s conftest$ac_exeext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_lib_elf_elf_begin=yes
19005else
19006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019007sed 's/^/| /' conftest.$ac_ext >&5
19008
John Criswell7a73b802003-06-30 21:59:07 +000019009ac_cv_lib_elf_elf_begin=no
19010fi
19011rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19012LIBS=$ac_check_lib_save_LIBS
19013fi
19014echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19015echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19016if test $ac_cv_lib_elf_elf_begin = yes; then
19017 cat >>confdefs.h <<_ACEOF
19018#define HAVE_LIBELF 1
19019_ACEOF
19020
19021 LIBS="-lelf $LIBS"
19022
19023fi
19024
19025
19026echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19027echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19028if test "${ac_cv_search_dlopen+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19030else
19031 ac_func_search_save_LIBS=$LIBS
19032ac_cv_search_dlopen=no
19033cat >conftest.$ac_ext <<_ACEOF
19034#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019035/* confdefs.h. */
19036_ACEOF
19037cat confdefs.h >>conftest.$ac_ext
19038cat >>conftest.$ac_ext <<_ACEOF
19039/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019040
19041/* Override any gcc2 internal prototype to avoid an error. */
19042#ifdef __cplusplus
19043extern "C"
19044#endif
19045/* We use char because int might match the return type of a gcc2
19046 builtin and then its argument prototype would still apply. */
19047char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019048int
19049main ()
19050{
19051dlopen ();
19052 ;
19053 return 0;
19054}
19055_ACEOF
19056rm -f conftest.$ac_objext conftest$ac_exeext
19057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058 (eval $ac_link) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_search_dlopen="none required"
19069else
19070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019071sed 's/^/| /' conftest.$ac_ext >&5
19072
John Criswell7a73b802003-06-30 21:59:07 +000019073fi
19074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19075if test "$ac_cv_search_dlopen" = no; then
19076 for ac_lib in dl; do
19077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19078 cat >conftest.$ac_ext <<_ACEOF
19079#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019080/* confdefs.h. */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019085
19086/* Override any gcc2 internal prototype to avoid an error. */
19087#ifdef __cplusplus
19088extern "C"
19089#endif
19090/* We use char because int might match the return type of a gcc2
19091 builtin and then its argument prototype would still apply. */
19092char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019093int
19094main ()
19095{
19096dlopen ();
19097 ;
19098 return 0;
19099}
19100_ACEOF
19101rm -f conftest.$ac_objext conftest$ac_exeext
19102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103 (eval $ac_link) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -s conftest$ac_exeext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 ac_cv_search_dlopen="-l$ac_lib"
19114break
19115else
19116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019117sed 's/^/| /' conftest.$ac_ext >&5
19118
John Criswell7a73b802003-06-30 21:59:07 +000019119fi
19120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19121 done
19122fi
19123LIBS=$ac_func_search_save_LIBS
19124fi
19125echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19126echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19127if test "$ac_cv_search_dlopen" != no; then
19128 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19129
19130else
19131 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19132echo "$as_me: error: dlopen() required but not found" >&2;}
19133 { (exit 1); exit 1; }; }
19134fi
19135
19136
19137echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19138echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19139if test "${ac_cv_search_mallinfo+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141else
19142 ac_func_search_save_LIBS=$LIBS
19143ac_cv_search_mallinfo=no
19144cat >conftest.$ac_ext <<_ACEOF
19145#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019146/* confdefs.h. */
19147_ACEOF
19148cat confdefs.h >>conftest.$ac_ext
19149cat >>conftest.$ac_ext <<_ACEOF
19150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019151
19152/* Override any gcc2 internal prototype to avoid an error. */
19153#ifdef __cplusplus
19154extern "C"
19155#endif
19156/* We use char because int might match the return type of a gcc2
19157 builtin and then its argument prototype would still apply. */
19158char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019159int
19160main ()
19161{
19162mallinfo ();
19163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext conftest$ac_exeext
19168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19169 (eval $ac_link) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
19173 { ac_try='test -s conftest$ac_exeext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_cv_search_mallinfo="none required"
19180else
19181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019182sed 's/^/| /' conftest.$ac_ext >&5
19183
John Criswell7a73b802003-06-30 21:59:07 +000019184fi
19185rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19186if test "$ac_cv_search_mallinfo" = no; then
19187 for ac_lib in malloc; do
19188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19189 cat >conftest.$ac_ext <<_ACEOF
19190#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019196
19197/* Override any gcc2 internal prototype to avoid an error. */
19198#ifdef __cplusplus
19199extern "C"
19200#endif
19201/* We use char because int might match the return type of a gcc2
19202 builtin and then its argument prototype would still apply. */
19203char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019204int
19205main ()
19206{
19207mallinfo ();
19208 ;
19209 return 0;
19210}
19211_ACEOF
19212rm -f conftest.$ac_objext conftest$ac_exeext
19213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19214 (eval $ac_link) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -s conftest$ac_exeext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_search_mallinfo="-l$ac_lib"
19225break
19226else
19227 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019228sed 's/^/| /' conftest.$ac_ext >&5
19229
John Criswell7a73b802003-06-30 21:59:07 +000019230fi
19231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19232 done
19233fi
19234LIBS=$ac_func_search_save_LIBS
19235fi
19236echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19237echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19238if test "$ac_cv_search_mallinfo" != no; then
19239 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19240 cat >>confdefs.h <<\_ACEOF
19241#define HAVE_MALLINFO 1
19242_ACEOF
19243
19244fi
19245
19246
19247
19248echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19249echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19250if test "${ac_cv_header_stdc+set}" = set; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252else
19253 cat >conftest.$ac_ext <<_ACEOF
19254#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019260#include <stdlib.h>
19261#include <stdarg.h>
19262#include <string.h>
19263#include <float.h>
19264
John Criswell0c38eaf2003-09-10 15:17:25 +000019265int
19266main ()
19267{
19268
19269 ;
19270 return 0;
19271}
John Criswell7a73b802003-06-30 21:59:07 +000019272_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019273rm -f conftest.$ac_objext
19274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019276 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019278 (exit $ac_status); } &&
19279 { ac_try='test -s conftest.$ac_objext'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019285 ac_cv_header_stdc=yes
19286else
19287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019288sed 's/^/| /' conftest.$ac_ext >&5
19289
19290ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019291fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019292rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019293
19294if test $ac_cv_header_stdc = yes; then
19295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19296 cat >conftest.$ac_ext <<_ACEOF
19297#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019298/* confdefs.h. */
19299_ACEOF
19300cat confdefs.h >>conftest.$ac_ext
19301cat >>conftest.$ac_ext <<_ACEOF
19302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019303#include <string.h>
19304
19305_ACEOF
19306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019307 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019308 :
19309else
19310 ac_cv_header_stdc=no
19311fi
19312rm -f conftest*
19313
19314fi
19315
19316if test $ac_cv_header_stdc = yes; then
19317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19318 cat >conftest.$ac_ext <<_ACEOF
19319#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019320/* confdefs.h. */
19321_ACEOF
19322cat confdefs.h >>conftest.$ac_ext
19323cat >>conftest.$ac_ext <<_ACEOF
19324/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019325#include <stdlib.h>
19326
19327_ACEOF
19328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019329 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019330 :
19331else
19332 ac_cv_header_stdc=no
19333fi
19334rm -f conftest*
19335
19336fi
19337
19338if test $ac_cv_header_stdc = yes; then
19339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19340 if test "$cross_compiling" = yes; then
19341 :
19342else
19343 cat >conftest.$ac_ext <<_ACEOF
19344#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019345/* confdefs.h. */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019350#include <ctype.h>
19351#if ((' ' & 0x0FF) == 0x020)
19352# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19353# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19354#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019355# define ISLOWER(c) \
19356 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019357 || ('j' <= (c) && (c) <= 'r') \
19358 || ('s' <= (c) && (c) <= 'z'))
19359# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19360#endif
19361
19362#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19363int
19364main ()
19365{
19366 int i;
19367 for (i = 0; i < 256; i++)
19368 if (XOR (islower (i), ISLOWER (i))
19369 || toupper (i) != TOUPPER (i))
19370 exit(2);
19371 exit (0);
19372}
19373_ACEOF
19374rm -f conftest$ac_exeext
19375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376 (eval $ac_link) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 :
19386else
19387 echo "$as_me: program exited with status $ac_status" >&5
19388echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019389sed 's/^/| /' conftest.$ac_ext >&5
19390
John Criswell7a73b802003-06-30 21:59:07 +000019391( exit $ac_status )
19392ac_cv_header_stdc=no
19393fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019394rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019395fi
19396fi
19397fi
19398echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19399echo "${ECHO_T}$ac_cv_header_stdc" >&6
19400if test $ac_cv_header_stdc = yes; then
19401
19402cat >>confdefs.h <<\_ACEOF
19403#define STDC_HEADERS 1
19404_ACEOF
19405
19406fi
19407
19408echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19409echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19410if test "${ac_cv_header_sys_wait_h+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412else
19413 cat >conftest.$ac_ext <<_ACEOF
19414#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019415/* confdefs.h. */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019420#include <sys/types.h>
19421#include <sys/wait.h>
19422#ifndef WEXITSTATUS
19423# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19424#endif
19425#ifndef WIFEXITED
19426# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19427#endif
19428
John Criswell7a73b802003-06-30 21:59:07 +000019429int
19430main ()
19431{
19432 int s;
19433 wait (&s);
19434 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext
19440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
19445 { ac_try='test -s conftest.$ac_objext'
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_cv_header_sys_wait_h=yes
19452else
19453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019454sed 's/^/| /' conftest.$ac_ext >&5
19455
John Criswell7a73b802003-06-30 21:59:07 +000019456ac_cv_header_sys_wait_h=no
19457fi
19458rm -f conftest.$ac_objext conftest.$ac_ext
19459fi
19460echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19461echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19462if test $ac_cv_header_sys_wait_h = yes; then
19463
19464cat >>confdefs.h <<\_ACEOF
19465#define HAVE_SYS_WAIT_H 1
19466_ACEOF
19467
19468fi
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19480do
19481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19482if eval "test \"\${$as_ac_Header+set}\" = set"; then
19483 echo "$as_me:$LINENO: checking for $ac_header" >&5
19484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19485if eval "test \"\${$as_ac_Header+set}\" = set"; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487fi
19488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19490else
19491 # Is the header compilable?
19492echo "$as_me:$LINENO: checking $ac_header usability" >&5
19493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19494cat >conftest.$ac_ext <<_ACEOF
19495#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019496/* confdefs.h. */
19497_ACEOF
19498cat confdefs.h >>conftest.$ac_ext
19499cat >>conftest.$ac_ext <<_ACEOF
19500/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019501$ac_includes_default
19502#include <$ac_header>
19503_ACEOF
19504rm -f conftest.$ac_objext
19505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19506 (eval $ac_compile) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -s conftest.$ac_objext'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_header_compiler=yes
19517else
19518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019519sed 's/^/| /' conftest.$ac_ext >&5
19520
John Criswell7a73b802003-06-30 21:59:07 +000019521ac_header_compiler=no
19522fi
19523rm -f conftest.$ac_objext conftest.$ac_ext
19524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19525echo "${ECHO_T}$ac_header_compiler" >&6
19526
19527# Is the header present?
19528echo "$as_me:$LINENO: checking $ac_header presence" >&5
19529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19530cat >conftest.$ac_ext <<_ACEOF
19531#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019532/* confdefs.h. */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019537#include <$ac_header>
19538_ACEOF
19539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19541 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019542 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } >/dev/null; then
19547 if test -s conftest.err; then
19548 ac_cpp_err=$ac_c_preproc_warn_flag
19549 else
19550 ac_cpp_err=
19551 fi
19552else
19553 ac_cpp_err=yes
19554fi
19555if test -z "$ac_cpp_err"; then
19556 ac_header_preproc=yes
19557else
19558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019559sed 's/^/| /' conftest.$ac_ext >&5
19560
John Criswell7a73b802003-06-30 21:59:07 +000019561 ac_header_preproc=no
19562fi
19563rm -f conftest.err conftest.$ac_ext
19564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19565echo "${ECHO_T}$ac_header_preproc" >&6
19566
19567# So? What about this header?
19568case $ac_header_compiler:$ac_header_preproc in
19569 yes:no )
19570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19574 (
19575 cat <<\_ASBOX
19576## ------------------------------------ ##
19577## Report this to bug-autoconf@gnu.org. ##
19578## ------------------------------------ ##
19579_ASBOX
19580 ) |
19581 sed "s/^/$as_me: WARNING: /" >&2
19582 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019583 no:yes )
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19587echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19590 (
19591 cat <<\_ASBOX
19592## ------------------------------------ ##
19593## Report this to bug-autoconf@gnu.org. ##
19594## ------------------------------------ ##
19595_ASBOX
19596 ) |
19597 sed "s/^/$as_me: WARNING: /" >&2
19598 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019599esac
19600echo "$as_me:$LINENO: checking for $ac_header" >&5
19601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19602if eval "test \"\${$as_ac_Header+set}\" = set"; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604else
19605 eval "$as_ac_Header=$ac_header_preproc"
19606fi
19607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19609
19610fi
19611if test `eval echo '${'$as_ac_Header'}'` = yes; then
19612 cat >>confdefs.h <<_ACEOF
19613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19614_ACEOF
19615
19616fi
19617
19618done
19619
19620
19621
19622
19623
19624
19625for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19626do
19627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628if eval "test \"\${$as_ac_Header+set}\" = set"; then
19629 echo "$as_me:$LINENO: checking for $ac_header" >&5
19630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19631if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633fi
19634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19636else
19637 # Is the header compilable?
19638echo "$as_me:$LINENO: checking $ac_header usability" >&5
19639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19640cat >conftest.$ac_ext <<_ACEOF
19641#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019642/* confdefs.h. */
19643_ACEOF
19644cat confdefs.h >>conftest.$ac_ext
19645cat >>conftest.$ac_ext <<_ACEOF
19646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019647$ac_includes_default
19648#include <$ac_header>
19649_ACEOF
19650rm -f conftest.$ac_objext
19651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19652 (eval $ac_compile) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_header_compiler=yes
19663else
19664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019665sed 's/^/| /' conftest.$ac_ext >&5
19666
John Criswell7a73b802003-06-30 21:59:07 +000019667ac_header_compiler=no
19668fi
19669rm -f conftest.$ac_objext conftest.$ac_ext
19670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19671echo "${ECHO_T}$ac_header_compiler" >&6
19672
19673# Is the header present?
19674echo "$as_me:$LINENO: checking $ac_header presence" >&5
19675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19676cat >conftest.$ac_ext <<_ACEOF
19677#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019678/* confdefs.h. */
19679_ACEOF
19680cat confdefs.h >>conftest.$ac_ext
19681cat >>conftest.$ac_ext <<_ACEOF
19682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019683#include <$ac_header>
19684_ACEOF
19685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19687 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019688 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } >/dev/null; then
19693 if test -s conftest.err; then
19694 ac_cpp_err=$ac_c_preproc_warn_flag
19695 else
19696 ac_cpp_err=
19697 fi
19698else
19699 ac_cpp_err=yes
19700fi
19701if test -z "$ac_cpp_err"; then
19702 ac_header_preproc=yes
19703else
19704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019705sed 's/^/| /' conftest.$ac_ext >&5
19706
John Criswell7a73b802003-06-30 21:59:07 +000019707 ac_header_preproc=no
19708fi
19709rm -f conftest.err conftest.$ac_ext
19710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19711echo "${ECHO_T}$ac_header_preproc" >&6
19712
19713# So? What about this header?
19714case $ac_header_compiler:$ac_header_preproc in
19715 yes:no )
19716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19720 (
19721 cat <<\_ASBOX
19722## ------------------------------------ ##
19723## Report this to bug-autoconf@gnu.org. ##
19724## ------------------------------------ ##
19725_ASBOX
19726 ) |
19727 sed "s/^/$as_me: WARNING: /" >&2
19728 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019729 no:yes )
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19736 (
19737 cat <<\_ASBOX
19738## ------------------------------------ ##
19739## Report this to bug-autoconf@gnu.org. ##
19740## ------------------------------------ ##
19741_ASBOX
19742 ) |
19743 sed "s/^/$as_me: WARNING: /" >&2
19744 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019745esac
19746echo "$as_me:$LINENO: checking for $ac_header" >&5
19747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19748if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750else
19751 eval "$as_ac_Header=$ac_header_preproc"
19752fi
19753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19755
19756fi
19757if test `eval echo '${'$as_ac_Header'}'` = yes; then
19758 cat >>confdefs.h <<_ACEOF
19759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19760_ACEOF
19761
19762fi
19763
19764done
19765
19766
19767
19768
19769for ac_header in dlfcn.h link.h
19770do
19771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19772if eval "test \"\${$as_ac_Header+set}\" = set"; then
19773 echo "$as_me:$LINENO: checking for $ac_header" >&5
19774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19775if eval "test \"\${$as_ac_Header+set}\" = set"; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777fi
19778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19780else
19781 # Is the header compilable?
19782echo "$as_me:$LINENO: checking $ac_header usability" >&5
19783echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19784cat >conftest.$ac_ext <<_ACEOF
19785#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019786/* confdefs.h. */
19787_ACEOF
19788cat confdefs.h >>conftest.$ac_ext
19789cat >>conftest.$ac_ext <<_ACEOF
19790/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019791$ac_includes_default
19792#include <$ac_header>
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796 (eval $ac_compile) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } &&
19800 { ac_try='test -s conftest.$ac_objext'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 ac_header_compiler=yes
19807else
19808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019809sed 's/^/| /' conftest.$ac_ext >&5
19810
John Criswell7a73b802003-06-30 21:59:07 +000019811ac_header_compiler=no
19812fi
19813rm -f conftest.$ac_objext conftest.$ac_ext
19814echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19815echo "${ECHO_T}$ac_header_compiler" >&6
19816
19817# Is the header present?
19818echo "$as_me:$LINENO: checking $ac_header presence" >&5
19819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19820cat >conftest.$ac_ext <<_ACEOF
19821#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019822/* confdefs.h. */
19823_ACEOF
19824cat confdefs.h >>conftest.$ac_ext
19825cat >>conftest.$ac_ext <<_ACEOF
19826/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019827#include <$ac_header>
19828_ACEOF
19829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19831 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019832 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019833 rm -f conftest.er1
19834 cat conftest.err >&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } >/dev/null; then
19837 if test -s conftest.err; then
19838 ac_cpp_err=$ac_c_preproc_warn_flag
19839 else
19840 ac_cpp_err=
19841 fi
19842else
19843 ac_cpp_err=yes
19844fi
19845if test -z "$ac_cpp_err"; then
19846 ac_header_preproc=yes
19847else
19848 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019849sed 's/^/| /' conftest.$ac_ext >&5
19850
John Criswell7a73b802003-06-30 21:59:07 +000019851 ac_header_preproc=no
19852fi
19853rm -f conftest.err conftest.$ac_ext
19854echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19855echo "${ECHO_T}$ac_header_preproc" >&6
19856
19857# So? What about this header?
19858case $ac_header_compiler:$ac_header_preproc in
19859 yes:no )
19860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19864 (
19865 cat <<\_ASBOX
19866## ------------------------------------ ##
19867## Report this to bug-autoconf@gnu.org. ##
19868## ------------------------------------ ##
19869_ASBOX
19870 ) |
19871 sed "s/^/$as_me: WARNING: /" >&2
19872 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019873 no:yes )
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19880 (
19881 cat <<\_ASBOX
19882## ------------------------------------ ##
19883## Report this to bug-autoconf@gnu.org. ##
19884## ------------------------------------ ##
19885_ASBOX
19886 ) |
19887 sed "s/^/$as_me: WARNING: /" >&2
19888 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019889esac
19890echo "$as_me:$LINENO: checking for $ac_header" >&5
19891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19892if eval "test \"\${$as_ac_Header+set}\" = set"; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19894else
19895 eval "$as_ac_Header=$ac_header_preproc"
19896fi
19897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19899
19900fi
19901if test `eval echo '${'$as_ac_Header'}'` = yes; then
19902 cat >>confdefs.h <<_ACEOF
19903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19904_ACEOF
19905
19906fi
19907
19908done
19909
19910
19911
John Criswell7a73b802003-06-30 21:59:07 +000019912echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19913echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19914if test "${ac_cv_c_const+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916else
19917 cat >conftest.$ac_ext <<_ACEOF
19918#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019919/* confdefs.h. */
19920_ACEOF
19921cat confdefs.h >>conftest.$ac_ext
19922cat >>conftest.$ac_ext <<_ACEOF
19923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019924
John Criswell7a73b802003-06-30 21:59:07 +000019925int
19926main ()
19927{
19928/* FIXME: Include the comments suggested by Paul. */
19929#ifndef __cplusplus
19930 /* Ultrix mips cc rejects this. */
19931 typedef int charset[2];
19932 const charset x;
19933 /* SunOS 4.1.1 cc rejects this. */
19934 char const *const *ccp;
19935 char **p;
19936 /* NEC SVR4.0.2 mips cc rejects this. */
19937 struct point {int x, y;};
19938 static struct point const zero = {0,0};
19939 /* AIX XL C 1.02.0.0 rejects this.
19940 It does not let you subtract one const X* pointer from another in
19941 an arm of an if-expression whose if-part is not a constant
19942 expression */
19943 const char *g = "string";
19944 ccp = &g + (g ? g-g : 0);
19945 /* HPUX 7.0 cc rejects these. */
19946 ++ccp;
19947 p = (char**) ccp;
19948 ccp = (char const *const *) p;
19949 { /* SCO 3.2v4 cc rejects this. */
19950 char *t;
19951 char const *s = 0 ? (char *) 0 : (char const *) 0;
19952
19953 *t++ = 0;
19954 }
19955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19956 int x[] = {25, 17};
19957 const int *foo = &x[0];
19958 ++foo;
19959 }
19960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19961 typedef const int *iptr;
19962 iptr p = 0;
19963 ++p;
19964 }
19965 { /* AIX XL C 1.02.0.0 rejects this saying
19966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19967 struct s { int j; const int *ap[3]; };
19968 struct s *b; b->j = 5;
19969 }
19970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19971 const int foo = 10;
19972 }
19973#endif
19974
19975 ;
19976 return 0;
19977}
19978_ACEOF
19979rm -f conftest.$ac_objext
19980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19981 (eval $ac_compile) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_cv_c_const=yes
19992else
19993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019994sed 's/^/| /' conftest.$ac_ext >&5
19995
John Criswell7a73b802003-06-30 21:59:07 +000019996ac_cv_c_const=no
19997fi
19998rm -f conftest.$ac_objext conftest.$ac_ext
19999fi
20000echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20001echo "${ECHO_T}$ac_cv_c_const" >&6
20002if test $ac_cv_c_const = no; then
20003
20004cat >>confdefs.h <<\_ACEOF
20005#define const
20006_ACEOF
20007
20008fi
20009
20010echo "$as_me:$LINENO: checking for inline" >&5
20011echo $ECHO_N "checking for inline... $ECHO_C" >&6
20012if test "${ac_cv_c_inline+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014else
20015 ac_cv_c_inline=no
20016for ac_kw in inline __inline__ __inline; do
20017 cat >conftest.$ac_ext <<_ACEOF
20018#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020024#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020025typedef int foo_t;
20026static $ac_kw foo_t static_foo () {return 0; }
20027$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020028#endif
20029
20030_ACEOF
20031rm -f conftest.$ac_objext
20032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20033 (eval $ac_compile) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043 ac_cv_c_inline=$ac_kw; break
20044else
20045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020046sed 's/^/| /' conftest.$ac_ext >&5
20047
John Criswell7a73b802003-06-30 21:59:07 +000020048fi
20049rm -f conftest.$ac_objext conftest.$ac_ext
20050done
20051
20052fi
20053echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20054echo "${ECHO_T}$ac_cv_c_inline" >&6
20055case $ac_cv_c_inline in
20056 inline | yes) ;;
20057 no)
20058cat >>confdefs.h <<\_ACEOF
20059#define inline
20060_ACEOF
20061 ;;
20062 *) cat >>confdefs.h <<_ACEOF
20063#define inline $ac_cv_c_inline
20064_ACEOF
20065 ;;
20066esac
20067
20068
20069echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20070echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20071if test "${ac_cv_c_bigendian+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073else
20074 # See if sys/param.h defines the BYTE_ORDER macro.
20075cat >conftest.$ac_ext <<_ACEOF
20076#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020077/* confdefs.h. */
20078_ACEOF
20079cat confdefs.h >>conftest.$ac_ext
20080cat >>conftest.$ac_ext <<_ACEOF
20081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020082#include <sys/types.h>
20083#include <sys/param.h>
20084
John Criswell7a73b802003-06-30 21:59:07 +000020085int
20086main ()
20087{
20088#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20089 bogus endian macros
20090#endif
20091
20092 ;
20093 return 0;
20094}
20095_ACEOF
20096rm -f conftest.$ac_objext
20097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20098 (eval $ac_compile) 2>&5
20099 ac_status=$?
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -s conftest.$ac_objext'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; }; then
20108 # It does; now see whether it defined to BIG_ENDIAN or not.
20109cat >conftest.$ac_ext <<_ACEOF
20110#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020116#include <sys/types.h>
20117#include <sys/param.h>
20118
John Criswell7a73b802003-06-30 21:59:07 +000020119int
20120main ()
20121{
20122#if BYTE_ORDER != BIG_ENDIAN
20123 not big endian
20124#endif
20125
20126 ;
20127 return 0;
20128}
20129_ACEOF
20130rm -f conftest.$ac_objext
20131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20132 (eval $ac_compile) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } &&
20136 { ac_try='test -s conftest.$ac_objext'
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138 (eval $ac_try) 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; }; then
20142 ac_cv_c_bigendian=yes
20143else
20144 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020145sed 's/^/| /' conftest.$ac_ext >&5
20146
John Criswell7a73b802003-06-30 21:59:07 +000020147ac_cv_c_bigendian=no
20148fi
20149rm -f conftest.$ac_objext conftest.$ac_ext
20150else
20151 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020152sed 's/^/| /' conftest.$ac_ext >&5
20153
John Criswell7a73b802003-06-30 21:59:07 +000020154# It does not; compile a test program.
20155if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020156 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020157 ac_cv_c_bigendian=unknown
20158 cat >conftest.$ac_ext <<_ACEOF
20159#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020160/* confdefs.h. */
20161_ACEOF
20162cat confdefs.h >>conftest.$ac_ext
20163cat >>conftest.$ac_ext <<_ACEOF
20164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020165short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20166short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20167void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20168short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20169short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20170void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020171int
20172main ()
20173{
20174 _ascii (); _ebcdic ();
20175 ;
20176 return 0;
20177}
20178_ACEOF
20179rm -f conftest.$ac_objext
20180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20181 (eval $ac_compile) 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } &&
20185 { ac_try='test -s conftest.$ac_objext'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020191 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020192 ac_cv_c_bigendian=yes
20193fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020194if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020195 if test "$ac_cv_c_bigendian" = unknown; then
20196 ac_cv_c_bigendian=no
20197 else
20198 # finding both strings is unlikely to happen, but who knows?
20199 ac_cv_c_bigendian=unknown
20200 fi
20201fi
20202else
20203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020204sed 's/^/| /' conftest.$ac_ext >&5
20205
John Criswell7a73b802003-06-30 21:59:07 +000020206fi
20207rm -f conftest.$ac_objext conftest.$ac_ext
20208else
20209 cat >conftest.$ac_ext <<_ACEOF
20210#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020211/* confdefs.h. */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020216int
20217main ()
20218{
20219 /* Are we little or big endian? From Harbison&Steele. */
20220 union
20221 {
20222 long l;
20223 char c[sizeof (long)];
20224 } u;
20225 u.l = 1;
20226 exit (u.c[sizeof (long) - 1] == 1);
20227}
20228_ACEOF
20229rm -f conftest$ac_exeext
20230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20231 (eval $ac_link) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_cv_c_bigendian=no
20241else
20242 echo "$as_me: program exited with status $ac_status" >&5
20243echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020244sed 's/^/| /' conftest.$ac_ext >&5
20245
John Criswell7a73b802003-06-30 21:59:07 +000020246( exit $ac_status )
20247ac_cv_c_bigendian=yes
20248fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020249rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020250fi
20251fi
20252rm -f conftest.$ac_objext conftest.$ac_ext
20253fi
20254echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20255echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20256case $ac_cv_c_bigendian in
20257 yes)
20258 cat >>confdefs.h <<\_ACEOF
20259#define ENDIAN_BIG 1
20260_ACEOF
20261 ;;
20262 no)
20263 cat >>confdefs.h <<\_ACEOF
20264#define ENDIAN_LITTLE 1
20265_ACEOF
20266 ;;
20267 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020268 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020269presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020270echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020271presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20272 { (exit 1); exit 1; }; } ;;
20273esac
20274
20275
20276echo "$as_me:$LINENO: checking for pid_t" >&5
20277echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20278if test "${ac_cv_type_pid_t+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280else
20281 cat >conftest.$ac_ext <<_ACEOF
20282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020283/* confdefs.h. */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020288$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020289int
20290main ()
20291{
20292if ((pid_t *) 0)
20293 return 0;
20294if (sizeof (pid_t))
20295 return 0;
20296 ;
20297 return 0;
20298}
20299_ACEOF
20300rm -f conftest.$ac_objext
20301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20302 (eval $ac_compile) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
20306 { ac_try='test -s conftest.$ac_objext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_cv_type_pid_t=yes
20313else
20314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020315sed 's/^/| /' conftest.$ac_ext >&5
20316
John Criswell7a73b802003-06-30 21:59:07 +000020317ac_cv_type_pid_t=no
20318fi
20319rm -f conftest.$ac_objext conftest.$ac_ext
20320fi
20321echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20322echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20323if test $ac_cv_type_pid_t = yes; then
20324 :
20325else
20326
20327cat >>confdefs.h <<_ACEOF
20328#define pid_t int
20329_ACEOF
20330
20331fi
20332
20333echo "$as_me:$LINENO: checking for size_t" >&5
20334echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20335if test "${ac_cv_type_size_t+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20337else
20338 cat >conftest.$ac_ext <<_ACEOF
20339#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020340/* confdefs.h. */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020345$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020346int
20347main ()
20348{
20349if ((size_t *) 0)
20350 return 0;
20351if (sizeof (size_t))
20352 return 0;
20353 ;
20354 return 0;
20355}
20356_ACEOF
20357rm -f conftest.$ac_objext
20358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } &&
20363 { ac_try='test -s conftest.$ac_objext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_cv_type_size_t=yes
20370else
20371 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020372sed 's/^/| /' conftest.$ac_ext >&5
20373
John Criswell7a73b802003-06-30 21:59:07 +000020374ac_cv_type_size_t=no
20375fi
20376rm -f conftest.$ac_objext conftest.$ac_ext
20377fi
20378echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20379echo "${ECHO_T}$ac_cv_type_size_t" >&6
20380if test $ac_cv_type_size_t = yes; then
20381 :
20382else
20383
20384cat >>confdefs.h <<_ACEOF
20385#define size_t unsigned
20386_ACEOF
20387
20388fi
20389
20390echo "$as_me:$LINENO: checking for int64_t" >&5
20391echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20392if test "${ac_cv_type_int64_t+set}" = set; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20394else
20395 cat >conftest.$ac_ext <<_ACEOF
20396#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020397/* confdefs.h. */
20398_ACEOF
20399cat confdefs.h >>conftest.$ac_ext
20400cat >>conftest.$ac_ext <<_ACEOF
20401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020402$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020403int
20404main ()
20405{
20406if ((int64_t *) 0)
20407 return 0;
20408if (sizeof (int64_t))
20409 return 0;
20410 ;
20411 return 0;
20412}
20413_ACEOF
20414rm -f conftest.$ac_objext
20415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20416 (eval $ac_compile) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
20420 { ac_try='test -s conftest.$ac_objext'
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_cv_type_int64_t=yes
20427else
20428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020429sed 's/^/| /' conftest.$ac_ext >&5
20430
John Criswell7a73b802003-06-30 21:59:07 +000020431ac_cv_type_int64_t=no
20432fi
20433rm -f conftest.$ac_objext conftest.$ac_ext
20434fi
20435echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20436echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20437if test $ac_cv_type_int64_t = yes; then
20438
20439cat >>confdefs.h <<_ACEOF
20440#define HAVE_INT64_T 1
20441_ACEOF
20442
20443
20444else
20445 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20446echo "$as_me: error: Type int64_t required but not found" >&2;}
20447 { (exit 1); exit 1; }; }
20448fi
20449
20450echo "$as_me:$LINENO: checking for uint64_t" >&5
20451echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20452if test "${ac_cv_type_uint64_t+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454else
20455 cat >conftest.$ac_ext <<_ACEOF
20456#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020457/* confdefs.h. */
20458_ACEOF
20459cat confdefs.h >>conftest.$ac_ext
20460cat >>conftest.$ac_ext <<_ACEOF
20461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020462$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020463int
20464main ()
20465{
20466if ((uint64_t *) 0)
20467 return 0;
20468if (sizeof (uint64_t))
20469 return 0;
20470 ;
20471 return 0;
20472}
20473_ACEOF
20474rm -f conftest.$ac_objext
20475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476 (eval $ac_compile) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -s conftest.$ac_objext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_type_uint64_t=yes
20487else
20488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020489sed 's/^/| /' conftest.$ac_ext >&5
20490
John Criswell7a73b802003-06-30 21:59:07 +000020491ac_cv_type_uint64_t=no
20492fi
20493rm -f conftest.$ac_objext conftest.$ac_ext
20494fi
20495echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20496echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20497if test $ac_cv_type_uint64_t = yes; then
20498
20499cat >>confdefs.h <<_ACEOF
20500#define HAVE_UINT64_T 1
20501_ACEOF
20502
20503
20504else
20505 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20506echo "$as_me: error: Type uint64_t required but not found" >&2;}
20507 { (exit 1); exit 1; }; }
20508fi
20509
20510echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20511echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20512if test "${ac_cv_header_time+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514else
20515 cat >conftest.$ac_ext <<_ACEOF
20516#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020522#include <sys/types.h>
20523#include <sys/time.h>
20524#include <time.h>
20525
John Criswell7a73b802003-06-30 21:59:07 +000020526int
20527main ()
20528{
20529if ((struct tm *) 0)
20530return 0;
20531 ;
20532 return 0;
20533}
20534_ACEOF
20535rm -f conftest.$ac_objext
20536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>&5
20538 ac_status=$?
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -s conftest.$ac_objext'
20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543 (eval $ac_try) 2>&5
20544 ac_status=$?
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20547 ac_cv_header_time=yes
20548else
20549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020550sed 's/^/| /' conftest.$ac_ext >&5
20551
John Criswell7a73b802003-06-30 21:59:07 +000020552ac_cv_header_time=no
20553fi
20554rm -f conftest.$ac_objext conftest.$ac_ext
20555fi
20556echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20557echo "${ECHO_T}$ac_cv_header_time" >&6
20558if test $ac_cv_header_time = yes; then
20559
20560cat >>confdefs.h <<\_ACEOF
20561#define TIME_WITH_SYS_TIME 1
20562_ACEOF
20563
20564fi
20565
20566echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20567echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20568if test "${ac_cv_struct_tm+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20570else
20571 cat >conftest.$ac_ext <<_ACEOF
20572#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020573/* confdefs.h. */
20574_ACEOF
20575cat confdefs.h >>conftest.$ac_ext
20576cat >>conftest.$ac_ext <<_ACEOF
20577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020578#include <sys/types.h>
20579#include <time.h>
20580
John Criswell7a73b802003-06-30 21:59:07 +000020581int
20582main ()
20583{
20584struct tm *tp; tp->tm_sec;
20585 ;
20586 return 0;
20587}
20588_ACEOF
20589rm -f conftest.$ac_objext
20590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20591 (eval $ac_compile) 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -s conftest.$ac_objext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_cv_struct_tm=time.h
20602else
20603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020604sed 's/^/| /' conftest.$ac_ext >&5
20605
John Criswell7a73b802003-06-30 21:59:07 +000020606ac_cv_struct_tm=sys/time.h
20607fi
20608rm -f conftest.$ac_objext conftest.$ac_ext
20609fi
20610echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20611echo "${ECHO_T}$ac_cv_struct_tm" >&6
20612if test $ac_cv_struct_tm = sys/time.h; then
20613
20614cat >>confdefs.h <<\_ACEOF
20615#define TM_IN_SYS_TIME 1
20616_ACEOF
20617
20618fi
20619
20620
John Criswell7a73b802003-06-30 21:59:07 +000020621echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20622echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20623if test "${ac_cv_cxx_namespaces+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20625else
20626
20627
20628 ac_ext=cc
20629ac_cpp='$CXXCPP $CPPFLAGS'
20630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20633
20634 cat >conftest.$ac_ext <<_ACEOF
20635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020636/* confdefs.h. */
20637_ACEOF
20638cat confdefs.h >>conftest.$ac_ext
20639cat >>conftest.$ac_ext <<_ACEOF
20640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020641namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020642int
20643main ()
20644{
20645using namespace Outer::Inner; return i;
20646 ;
20647 return 0;
20648}
20649_ACEOF
20650rm -f conftest.$ac_objext
20651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652 (eval $ac_compile) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
20656 { ac_try='test -s conftest.$ac_objext'
20657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658 (eval $ac_try) 2>&5
20659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }; then
20662 ac_cv_cxx_namespaces=yes
20663else
20664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020665sed 's/^/| /' conftest.$ac_ext >&5
20666
John Criswell7a73b802003-06-30 21:59:07 +000020667ac_cv_cxx_namespaces=no
20668fi
20669rm -f conftest.$ac_objext conftest.$ac_ext
20670 ac_ext=c
20671ac_cpp='$CPP $CPPFLAGS'
20672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674ac_compiler_gnu=$ac_cv_c_compiler_gnu
20675
20676
20677fi
20678echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20679echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20680if test "$ac_cv_cxx_namespaces" = yes; then
20681
20682cat >>confdefs.h <<\_ACEOF
20683#define HAVE_NAMESPACES
20684_ACEOF
20685
20686fi
20687
20688echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20689echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20690if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20692else
20693
20694
20695
20696 ac_ext=cc
20697ac_cpp='$CXXCPP $CPPFLAGS'
20698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20701
20702 cat >conftest.$ac_ext <<_ACEOF
20703#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020704/* confdefs.h. */
20705_ACEOF
20706cat confdefs.h >>conftest.$ac_ext
20707cat >>conftest.$ac_ext <<_ACEOF
20708/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020709#include <ext/hash_map>
20710#ifdef HAVE_NAMESPACES
20711using namespace std;
20712#endif
John Criswell7a73b802003-06-30 21:59:07 +000020713int
20714main ()
20715{
20716hash_map<int, int> t; return 0;
20717 ;
20718 return 0;
20719}
20720_ACEOF
20721rm -f conftest.$ac_objext
20722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20723 (eval $ac_compile) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -s conftest.$ac_objext'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20730 ac_status=$?
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; }; then
20733 ac_cv_cxx_have_ext_hash_map=std
20734else
20735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020736sed 's/^/| /' conftest.$ac_ext >&5
20737
John Criswell7a73b802003-06-30 21:59:07 +000020738ac_cv_cxx_have_ext_hash_map=no
20739fi
20740rm -f conftest.$ac_objext conftest.$ac_ext
20741 cat >conftest.$ac_ext <<_ACEOF
20742#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020748#include <ext/hash_map>
20749#ifdef HAVE_NAMESPACES
20750using namespace __gnu_cxx;
20751#endif
John Criswell7a73b802003-06-30 21:59:07 +000020752int
20753main ()
20754{
20755hash_map<int, int> t; return 0;
20756 ;
20757 return 0;
20758}
20759_ACEOF
20760rm -f conftest.$ac_objext
20761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20762 (eval $ac_compile) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
20766 { ac_try='test -s conftest.$ac_objext'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20772 ac_cv_cxx_have_ext_hash_map=gnu
20773else
20774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020775sed 's/^/| /' conftest.$ac_ext >&5
20776
John Criswell7a73b802003-06-30 21:59:07 +000020777ac_cv_cxx_have_ext_hash_map=no
20778fi
20779rm -f conftest.$ac_objext conftest.$ac_ext
20780 ac_ext=c
20781ac_cpp='$CPP $CPPFLAGS'
20782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784ac_compiler_gnu=$ac_cv_c_compiler_gnu
20785
20786
20787fi
20788echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20789echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20790if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20791
20792cat >>confdefs.h <<\_ACEOF
20793#define HAVE_STD_EXT_HASH_MAP
20794_ACEOF
20795
20796fi
20797if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20798
20799cat >>confdefs.h <<\_ACEOF
20800#define HAVE_GNU_EXT_HASH_MAP
20801_ACEOF
20802
20803fi
20804
20805echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20806echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20807if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20809else
20810
20811
20812
20813 ac_ext=cc
20814ac_cpp='$CXXCPP $CPPFLAGS'
20815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20818
20819 cat >conftest.$ac_ext <<_ACEOF
20820#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020821/* confdefs.h. */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
20825/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020826#include <ext/hash_set>
20827#ifdef HAVE_NAMESPACES
20828using namespace std;
20829#endif
John Criswell7a73b802003-06-30 21:59:07 +000020830int
20831main ()
20832{
20833hash_set<int> t; return 0;
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838rm -f conftest.$ac_objext
20839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840 (eval $ac_compile) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -s conftest.$ac_objext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_cxx_have_ext_hash_set=std
20851else
20852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020853sed 's/^/| /' conftest.$ac_ext >&5
20854
John Criswell7a73b802003-06-30 21:59:07 +000020855ac_cv_cxx_have_ext_hash_set=no
20856fi
20857rm -f conftest.$ac_objext conftest.$ac_ext
20858 cat >conftest.$ac_ext <<_ACEOF
20859#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020860/* confdefs.h. */
20861_ACEOF
20862cat confdefs.h >>conftest.$ac_ext
20863cat >>conftest.$ac_ext <<_ACEOF
20864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020865#include <ext/hash_set>
20866#ifdef HAVE_NAMESPACES
20867using namespace __gnu_cxx;
20868#endif
John Criswell7a73b802003-06-30 21:59:07 +000020869int
20870main ()
20871{
20872hash_set<int> t; return 0;
20873 ;
20874 return 0;
20875}
20876_ACEOF
20877rm -f conftest.$ac_objext
20878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879 (eval $ac_compile) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try='test -s conftest.$ac_objext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_cxx_have_ext_hash_set=gnu
20890else
20891 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020892sed 's/^/| /' conftest.$ac_ext >&5
20893
John Criswell7a73b802003-06-30 21:59:07 +000020894ac_cv_cxx_have_ext_hash_set=no
20895fi
20896rm -f conftest.$ac_objext conftest.$ac_ext
20897 ac_ext=c
20898ac_cpp='$CPP $CPPFLAGS'
20899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901ac_compiler_gnu=$ac_cv_c_compiler_gnu
20902
20903
20904fi
20905echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20906echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20907if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20908
20909cat >>confdefs.h <<\_ACEOF
20910#define HAVE_STD_EXT_HASH_SET
20911_ACEOF
20912
20913fi
20914if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20915
20916cat >>confdefs.h <<\_ACEOF
20917#define HAVE_GNU_EXT_HASH_SET
20918_ACEOF
20919
20920fi
20921
20922echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20923echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20924if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926else
20927
20928
20929
20930 ac_ext=cc
20931ac_cpp='$CXXCPP $CPPFLAGS'
20932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20935
20936 cat >conftest.$ac_ext <<_ACEOF
20937#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020938/* confdefs.h. */
20939_ACEOF
20940cat confdefs.h >>conftest.$ac_ext
20941cat >>conftest.$ac_ext <<_ACEOF
20942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020943#include <ext/slist>
20944#ifdef HAVE_NAMESPACES
20945using namespace std;
20946#endif
John Criswell7a73b802003-06-30 21:59:07 +000020947int
20948main ()
20949{
20950slist<int> s; return 0;
20951 ;
20952 return 0;
20953}
20954_ACEOF
20955rm -f conftest.$ac_objext
20956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20957 (eval $ac_compile) 2>&5
20958 ac_status=$?
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
20961 { ac_try='test -s conftest.$ac_objext'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967 ac_cv_cxx_have_ext_slist=std
20968else
20969 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020970sed 's/^/| /' conftest.$ac_ext >&5
20971
John Criswell7a73b802003-06-30 21:59:07 +000020972ac_cv_cxx_have_ext_slist=no
20973fi
20974rm -f conftest.$ac_objext conftest.$ac_ext
20975 cat >conftest.$ac_ext <<_ACEOF
20976#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020977/* confdefs.h. */
20978_ACEOF
20979cat confdefs.h >>conftest.$ac_ext
20980cat >>conftest.$ac_ext <<_ACEOF
20981/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020982#include <ext/slist>
20983#ifdef HAVE_NAMESPACES
20984using namespace __gnu_cxx;
20985#endif
John Criswell7a73b802003-06-30 21:59:07 +000020986int
20987main ()
20988{
20989slist<int> s; return 0;
20990 ;
20991 return 0;
20992}
20993_ACEOF
20994rm -f conftest.$ac_objext
20995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20996 (eval $ac_compile) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -s conftest.$ac_objext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 ac_cv_cxx_have_ext_slist=gnu
21007else
21008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021009sed 's/^/| /' conftest.$ac_ext >&5
21010
John Criswell7a73b802003-06-30 21:59:07 +000021011ac_cv_cxx_have_ext_slist=no
21012fi
21013rm -f conftest.$ac_objext conftest.$ac_ext
21014
21015 ac_ext=c
21016ac_cpp='$CPP $CPPFLAGS'
21017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019ac_compiler_gnu=$ac_cv_c_compiler_gnu
21020
21021
21022fi
21023echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21024echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21025if test "$ac_cv_cxx_have_ext_slist" = std; then
21026
21027cat >>confdefs.h <<\_ACEOF
21028#define HAVE_EXT_SLIST std
21029_ACEOF
21030
21031fi
21032if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21033
21034cat >>confdefs.h <<\_ACEOF
21035#define HAVE_EXT_SLIST gnu
21036_ACEOF
21037
21038fi
21039
21040echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21041echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21042if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21044else
21045
21046
21047
21048 ac_ext=cc
21049ac_cpp='$CXXCPP $CPPFLAGS'
21050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21053
21054 cat >conftest.$ac_ext <<_ACEOF
21055#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021056/* confdefs.h. */
21057_ACEOF
21058cat confdefs.h >>conftest.$ac_ext
21059cat >>conftest.$ac_ext <<_ACEOF
21060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021061#include <iterator>
21062#ifdef HAVE_NAMESPACES
21063using namespace std;
21064#endif
John Criswell7a73b802003-06-30 21:59:07 +000021065int
21066main ()
21067{
21068iterator<int,int,int> t; return 0;
21069 ;
21070 return 0;
21071}
21072_ACEOF
21073rm -f conftest.$ac_objext
21074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075 (eval $ac_compile) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_cxx_have_std_iterator=yes
21086else
21087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021088sed 's/^/| /' conftest.$ac_ext >&5
21089
John Criswell7a73b802003-06-30 21:59:07 +000021090ac_cv_cxx_have_std_iterator=no
21091fi
21092rm -f conftest.$ac_objext conftest.$ac_ext
21093 ac_ext=c
21094ac_cpp='$CPP $CPPFLAGS'
21095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097ac_compiler_gnu=$ac_cv_c_compiler_gnu
21098
21099
21100fi
21101echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21102echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21103if test "$ac_cv_cxx_have_std_iterator" = yes; then
21104
21105cat >>confdefs.h <<\_ACEOF
21106#define HAVE_STD_ITERATOR
21107_ACEOF
21108
21109fi
21110
21111echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21112echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21113if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115else
21116
21117
21118
21119 ac_ext=cc
21120ac_cpp='$CXXCPP $CPPFLAGS'
21121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21124
21125 cat >conftest.$ac_ext <<_ACEOF
21126#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021127/* confdefs.h. */
21128_ACEOF
21129cat confdefs.h >>conftest.$ac_ext
21130cat >>conftest.$ac_ext <<_ACEOF
21131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021132#include <iterator>
21133#ifdef HAVE_NAMESPACES
21134using namespace std;
21135#endif
John Criswell7a73b802003-06-30 21:59:07 +000021136int
21137main ()
21138{
John Criswellc78022e2003-07-29 19:11:58 +000021139bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021140 ;
21141 return 0;
21142}
21143_ACEOF
21144rm -f conftest.$ac_objext
21145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21146 (eval $ac_compile) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } &&
21150 { ac_try='test -s conftest.$ac_objext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 ac_cv_cxx_have_bi_iterator=yes
21157else
21158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021159sed 's/^/| /' conftest.$ac_ext >&5
21160
John Criswell7a73b802003-06-30 21:59:07 +000021161ac_cv_cxx_have_bi_iterator=no
21162fi
21163rm -f conftest.$ac_objext conftest.$ac_ext
21164 ac_ext=c
21165ac_cpp='$CPP $CPPFLAGS'
21166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21168ac_compiler_gnu=$ac_cv_c_compiler_gnu
21169
21170
21171fi
21172echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21173echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21174if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21175
21176cat >>confdefs.h <<\_ACEOF
21177#define HAVE_BI_ITERATOR
21178_ACEOF
21179
21180fi
21181
21182echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21183echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21184if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21186else
21187
21188
21189
21190 ac_ext=cc
21191ac_cpp='$CXXCPP $CPPFLAGS'
21192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21195
21196 cat >conftest.$ac_ext <<_ACEOF
21197#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021203#include <iterator>
21204#ifdef HAVE_NAMESPACES
21205using namespace std;
21206#endif
John Criswell7a73b802003-06-30 21:59:07 +000021207int
21208main ()
21209{
John Criswellc78022e2003-07-29 19:11:58 +000021210forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021211 ;
21212 return 0;
21213}
21214_ACEOF
21215rm -f conftest.$ac_objext
21216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21217 (eval $ac_compile) 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -s conftest.$ac_objext'
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 ac_cv_cxx_have_fwd_iterator=yes
21228else
21229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021230sed 's/^/| /' conftest.$ac_ext >&5
21231
John Criswell7a73b802003-06-30 21:59:07 +000021232ac_cv_cxx_have_fwd_iterator=no
21233fi
21234rm -f conftest.$ac_objext conftest.$ac_ext
21235 ac_ext=c
21236ac_cpp='$CPP $CPPFLAGS'
21237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21239ac_compiler_gnu=$ac_cv_c_compiler_gnu
21240
21241
21242fi
21243echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21244echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21245if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21246
21247cat >>confdefs.h <<\_ACEOF
21248#define HAVE_FWD_ITERATOR
21249_ACEOF
21250
21251fi
21252
21253
21254# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21255# for constant arguments. Useless!
21256echo "$as_me:$LINENO: checking for working alloca.h" >&5
21257echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21258if test "${ac_cv_working_alloca_h+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260else
21261 cat >conftest.$ac_ext <<_ACEOF
21262#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021263/* confdefs.h. */
21264_ACEOF
21265cat confdefs.h >>conftest.$ac_ext
21266cat >>conftest.$ac_ext <<_ACEOF
21267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021268#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021269int
21270main ()
21271{
21272char *p = (char *) alloca (2 * sizeof (int));
21273 ;
21274 return 0;
21275}
21276_ACEOF
21277rm -f conftest.$ac_objext conftest$ac_exeext
21278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21279 (eval $ac_link) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } &&
21283 { ac_try='test -s conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_working_alloca_h=yes
21290else
21291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021292sed 's/^/| /' conftest.$ac_ext >&5
21293
John Criswell7a73b802003-06-30 21:59:07 +000021294ac_cv_working_alloca_h=no
21295fi
21296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21297fi
21298echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21299echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21300if test $ac_cv_working_alloca_h = yes; then
21301
21302cat >>confdefs.h <<\_ACEOF
21303#define HAVE_ALLOCA_H 1
21304_ACEOF
21305
21306fi
21307
21308echo "$as_me:$LINENO: checking for alloca" >&5
21309echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21310if test "${ac_cv_func_alloca_works+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21312else
21313 cat >conftest.$ac_ext <<_ACEOF
21314#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021315/* confdefs.h. */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021320#ifdef __GNUC__
21321# define alloca __builtin_alloca
21322#else
21323# ifdef _MSC_VER
21324# include <malloc.h>
21325# define alloca _alloca
21326# else
21327# if HAVE_ALLOCA_H
21328# include <alloca.h>
21329# else
21330# ifdef _AIX
21331 #pragma alloca
21332# else
21333# ifndef alloca /* predefined by HP cc +Olibcalls */
21334char *alloca ();
21335# endif
21336# endif
21337# endif
21338# endif
21339#endif
21340
John Criswell7a73b802003-06-30 21:59:07 +000021341int
21342main ()
21343{
21344char *p = (char *) alloca (1);
21345 ;
21346 return 0;
21347}
21348_ACEOF
21349rm -f conftest.$ac_objext conftest$ac_exeext
21350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21351 (eval $ac_link) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -s conftest$ac_exeext'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 ac_cv_func_alloca_works=yes
21362else
21363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021364sed 's/^/| /' conftest.$ac_ext >&5
21365
John Criswell7a73b802003-06-30 21:59:07 +000021366ac_cv_func_alloca_works=no
21367fi
21368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21369fi
21370echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21371echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21372
21373if test $ac_cv_func_alloca_works = yes; then
21374
21375cat >>confdefs.h <<\_ACEOF
21376#define HAVE_ALLOCA 1
21377_ACEOF
21378
21379else
21380 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21381# that cause trouble. Some versions do not even contain alloca or
21382# contain a buggy version. If you still want to use their alloca,
21383# use ar to extract alloca.o from them instead of compiling alloca.c.
21384
21385ALLOCA=alloca.$ac_objext
21386
21387cat >>confdefs.h <<\_ACEOF
21388#define C_ALLOCA 1
21389_ACEOF
21390
21391
21392echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21393echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21394if test "${ac_cv_os_cray+set}" = set; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396else
21397 cat >conftest.$ac_ext <<_ACEOF
21398#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021399/* confdefs.h. */
21400_ACEOF
21401cat confdefs.h >>conftest.$ac_ext
21402cat >>conftest.$ac_ext <<_ACEOF
21403/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021404#if defined(CRAY) && ! defined(CRAY2)
21405webecray
21406#else
21407wenotbecray
21408#endif
21409
21410_ACEOF
21411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021412 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021413 ac_cv_os_cray=yes
21414else
21415 ac_cv_os_cray=no
21416fi
21417rm -f conftest*
21418
21419fi
21420echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21421echo "${ECHO_T}$ac_cv_os_cray" >&6
21422if test $ac_cv_os_cray = yes; then
21423 for ac_func in _getb67 GETB67 getb67; do
21424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21425echo "$as_me:$LINENO: checking for $ac_func" >&5
21426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21427if eval "test \"\${$as_ac_var+set}\" = set"; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21429else
21430 cat >conftest.$ac_ext <<_ACEOF
21431#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021432/* confdefs.h. */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021437/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021438 which can conflict with char $ac_func (); below.
21439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21440 <limits.h> exists even on freestanding compilers. */
21441#ifdef __STDC__
21442# include <limits.h>
21443#else
21444# include <assert.h>
21445#endif
John Criswell7a73b802003-06-30 21:59:07 +000021446/* Override any gcc2 internal prototype to avoid an error. */
21447#ifdef __cplusplus
21448extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021449{
John Criswell7a73b802003-06-30 21:59:07 +000021450#endif
21451/* We use char because int might match the return type of a gcc2
21452 builtin and then its argument prototype would still apply. */
21453char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021454/* The GNU C library defines this for functions which it implements
21455 to always fail with ENOSYS. Some functions are actually named
21456 something starting with __ and the normal name is an alias. */
21457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21458choke me
21459#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021460char (*f) () = $ac_func;
21461#endif
21462#ifdef __cplusplus
21463}
John Criswell7a73b802003-06-30 21:59:07 +000021464#endif
21465
John Criswell0c38eaf2003-09-10 15:17:25 +000021466int
21467main ()
21468{
21469return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021470 ;
21471 return 0;
21472}
21473_ACEOF
21474rm -f conftest.$ac_objext conftest$ac_exeext
21475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21476 (eval $ac_link) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } &&
21480 { ac_try='test -s conftest$ac_exeext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 eval "$as_ac_var=yes"
21487else
21488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021489sed 's/^/| /' conftest.$ac_ext >&5
21490
John Criswell7a73b802003-06-30 21:59:07 +000021491eval "$as_ac_var=no"
21492fi
21493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21494fi
21495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21497if test `eval echo '${'$as_ac_var'}'` = yes; then
21498
21499cat >>confdefs.h <<_ACEOF
21500#define CRAY_STACKSEG_END $ac_func
21501_ACEOF
21502
21503 break
21504fi
21505
21506 done
21507fi
21508
21509echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21510echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21511if test "${ac_cv_c_stack_direction+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513else
21514 if test "$cross_compiling" = yes; then
21515 ac_cv_c_stack_direction=0
21516else
21517 cat >conftest.$ac_ext <<_ACEOF
21518#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021519/* confdefs.h. */
21520_ACEOF
21521cat confdefs.h >>conftest.$ac_ext
21522cat >>conftest.$ac_ext <<_ACEOF
21523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021524int
21525find_stack_direction ()
21526{
21527 static char *addr = 0;
21528 auto char dummy;
21529 if (addr == 0)
21530 {
21531 addr = &dummy;
21532 return find_stack_direction ();
21533 }
21534 else
21535 return (&dummy > addr) ? 1 : -1;
21536}
21537
21538int
21539main ()
21540{
21541 exit (find_stack_direction () < 0);
21542}
21543_ACEOF
21544rm -f conftest$ac_exeext
21545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21546 (eval $ac_link) 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_c_stack_direction=1
21556else
21557 echo "$as_me: program exited with status $ac_status" >&5
21558echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021559sed 's/^/| /' conftest.$ac_ext >&5
21560
John Criswell7a73b802003-06-30 21:59:07 +000021561( exit $ac_status )
21562ac_cv_c_stack_direction=-1
21563fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021564rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021565fi
21566fi
21567echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21568echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21569
21570cat >>confdefs.h <<_ACEOF
21571#define STACK_DIRECTION $ac_cv_c_stack_direction
21572_ACEOF
21573
21574
21575fi
21576
21577if test $ac_cv_c_compiler_gnu = yes; then
21578 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21579echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21580if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21582else
21583 ac_pattern="Autoconf.*'x'"
21584 cat >conftest.$ac_ext <<_ACEOF
21585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021586/* confdefs.h. */
21587_ACEOF
21588cat confdefs.h >>conftest.$ac_ext
21589cat >>conftest.$ac_ext <<_ACEOF
21590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021591#include <sgtty.h>
21592Autoconf TIOCGETP
21593_ACEOF
21594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021595 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021596 ac_cv_prog_gcc_traditional=yes
21597else
21598 ac_cv_prog_gcc_traditional=no
21599fi
21600rm -f conftest*
21601
21602
21603 if test $ac_cv_prog_gcc_traditional = no; then
21604 cat >conftest.$ac_ext <<_ACEOF
21605#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021606/* confdefs.h. */
21607_ACEOF
21608cat confdefs.h >>conftest.$ac_ext
21609cat >>conftest.$ac_ext <<_ACEOF
21610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021611#include <termio.h>
21612Autoconf TCGETA
21613_ACEOF
21614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021615 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021616 ac_cv_prog_gcc_traditional=yes
21617fi
21618rm -f conftest*
21619
21620 fi
21621fi
21622echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21623echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21624 if test $ac_cv_prog_gcc_traditional = yes; then
21625 CC="$CC -traditional"
21626 fi
21627fi
21628
21629echo "$as_me:$LINENO: checking for working memcmp" >&5
21630echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21631if test "${ac_cv_func_memcmp_working+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633else
21634 if test "$cross_compiling" = yes; then
21635 ac_cv_func_memcmp_working=no
21636else
21637 cat >conftest.$ac_ext <<_ACEOF
21638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021639/* confdefs.h. */
21640_ACEOF
21641cat confdefs.h >>conftest.$ac_ext
21642cat >>conftest.$ac_ext <<_ACEOF
21643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021644
John Criswell7a73b802003-06-30 21:59:07 +000021645int
21646main ()
21647{
21648
21649 /* Some versions of memcmp are not 8-bit clean. */
21650 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21651 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21652 exit (1);
21653
21654 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21655 or more and with at least one buffer not starting on a 4-byte boundary.
21656 William Lewis provided this test program. */
21657 {
21658 char foo[21];
21659 char bar[21];
21660 int i;
21661 for (i = 0; i < 4; i++)
21662 {
21663 char *a = foo + i;
21664 char *b = bar + i;
21665 strcpy (a, "--------01111111");
21666 strcpy (b, "--------10000000");
21667 if (memcmp (a, b, 16) >= 0)
21668 exit (1);
21669 }
21670 exit (0);
21671 }
21672
21673 ;
21674 return 0;
21675}
21676_ACEOF
21677rm -f conftest$ac_exeext
21678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21679 (eval $ac_link) 2>&5
21680 ac_status=$?
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
21688 ac_cv_func_memcmp_working=yes
21689else
21690 echo "$as_me: program exited with status $ac_status" >&5
21691echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021692sed 's/^/| /' conftest.$ac_ext >&5
21693
John Criswell7a73b802003-06-30 21:59:07 +000021694( exit $ac_status )
21695ac_cv_func_memcmp_working=no
21696fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021697rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021698fi
21699fi
21700echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21701echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21702test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21703
21704
21705
21706for ac_header in stdlib.h unistd.h
21707do
21708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21709if eval "test \"\${$as_ac_Header+set}\" = set"; then
21710 echo "$as_me:$LINENO: checking for $ac_header" >&5
21711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21712if eval "test \"\${$as_ac_Header+set}\" = set"; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21714fi
21715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21717else
21718 # Is the header compilable?
21719echo "$as_me:$LINENO: checking $ac_header usability" >&5
21720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21721cat >conftest.$ac_ext <<_ACEOF
21722#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021723/* confdefs.h. */
21724_ACEOF
21725cat confdefs.h >>conftest.$ac_ext
21726cat >>conftest.$ac_ext <<_ACEOF
21727/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021728$ac_includes_default
21729#include <$ac_header>
21730_ACEOF
21731rm -f conftest.$ac_objext
21732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21733 (eval $ac_compile) 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
21737 { ac_try='test -s conftest.$ac_objext'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743 ac_header_compiler=yes
21744else
21745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021746sed 's/^/| /' conftest.$ac_ext >&5
21747
John Criswell7a73b802003-06-30 21:59:07 +000021748ac_header_compiler=no
21749fi
21750rm -f conftest.$ac_objext conftest.$ac_ext
21751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21752echo "${ECHO_T}$ac_header_compiler" >&6
21753
21754# Is the header present?
21755echo "$as_me:$LINENO: checking $ac_header presence" >&5
21756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21757cat >conftest.$ac_ext <<_ACEOF
21758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021759/* confdefs.h. */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021764#include <$ac_header>
21765_ACEOF
21766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21768 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021769 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } >/dev/null; then
21774 if test -s conftest.err; then
21775 ac_cpp_err=$ac_c_preproc_warn_flag
21776 else
21777 ac_cpp_err=
21778 fi
21779else
21780 ac_cpp_err=yes
21781fi
21782if test -z "$ac_cpp_err"; then
21783 ac_header_preproc=yes
21784else
21785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021786sed 's/^/| /' conftest.$ac_ext >&5
21787
John Criswell7a73b802003-06-30 21:59:07 +000021788 ac_header_preproc=no
21789fi
21790rm -f conftest.err conftest.$ac_ext
21791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21792echo "${ECHO_T}$ac_header_preproc" >&6
21793
21794# So? What about this header?
21795case $ac_header_compiler:$ac_header_preproc in
21796 yes:no )
21797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21801 (
21802 cat <<\_ASBOX
21803## ------------------------------------ ##
21804## Report this to bug-autoconf@gnu.org. ##
21805## ------------------------------------ ##
21806_ASBOX
21807 ) |
21808 sed "s/^/$as_me: WARNING: /" >&2
21809 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021810 no:yes )
21811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21814echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21817 (
21818 cat <<\_ASBOX
21819## ------------------------------------ ##
21820## Report this to bug-autoconf@gnu.org. ##
21821## ------------------------------------ ##
21822_ASBOX
21823 ) |
21824 sed "s/^/$as_me: WARNING: /" >&2
21825 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021826esac
21827echo "$as_me:$LINENO: checking for $ac_header" >&5
21828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21829if eval "test \"\${$as_ac_Header+set}\" = set"; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831else
21832 eval "$as_ac_Header=$ac_header_preproc"
21833fi
21834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21836
21837fi
21838if test `eval echo '${'$as_ac_Header'}'` = yes; then
21839 cat >>confdefs.h <<_ACEOF
21840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21841_ACEOF
21842
21843fi
21844
21845done
21846
21847
21848for ac_func in getpagesize
21849do
21850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21851echo "$as_me:$LINENO: checking for $ac_func" >&5
21852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21853if eval "test \"\${$as_ac_var+set}\" = set"; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21855else
21856 cat >conftest.$ac_ext <<_ACEOF
21857#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021858/* confdefs.h. */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021863/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021864 which can conflict with char $ac_func (); below.
21865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21866 <limits.h> exists even on freestanding compilers. */
21867#ifdef __STDC__
21868# include <limits.h>
21869#else
21870# include <assert.h>
21871#endif
John Criswell7a73b802003-06-30 21:59:07 +000021872/* Override any gcc2 internal prototype to avoid an error. */
21873#ifdef __cplusplus
21874extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021875{
John Criswell7a73b802003-06-30 21:59:07 +000021876#endif
21877/* We use char because int might match the return type of a gcc2
21878 builtin and then its argument prototype would still apply. */
21879char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021880/* The GNU C library defines this for functions which it implements
21881 to always fail with ENOSYS. Some functions are actually named
21882 something starting with __ and the normal name is an alias. */
21883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21884choke me
21885#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021886char (*f) () = $ac_func;
21887#endif
21888#ifdef __cplusplus
21889}
John Criswell7a73b802003-06-30 21:59:07 +000021890#endif
21891
John Criswell0c38eaf2003-09-10 15:17:25 +000021892int
21893main ()
21894{
21895return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021896 ;
21897 return 0;
21898}
21899_ACEOF
21900rm -f conftest.$ac_objext conftest$ac_exeext
21901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21902 (eval $ac_link) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try='test -s conftest$ac_exeext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21912 eval "$as_ac_var=yes"
21913else
21914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021915sed 's/^/| /' conftest.$ac_ext >&5
21916
John Criswell7a73b802003-06-30 21:59:07 +000021917eval "$as_ac_var=no"
21918fi
21919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21920fi
21921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21923if test `eval echo '${'$as_ac_var'}'` = yes; then
21924 cat >>confdefs.h <<_ACEOF
21925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21926_ACEOF
21927
21928fi
21929done
21930
21931echo "$as_me:$LINENO: checking for working mmap" >&5
21932echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21933if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21935else
21936 if test "$cross_compiling" = yes; then
21937 ac_cv_func_mmap_fixed_mapped=no
21938else
21939 cat >conftest.$ac_ext <<_ACEOF
21940#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021941/* confdefs.h. */
21942_ACEOF
21943cat confdefs.h >>conftest.$ac_ext
21944cat >>conftest.$ac_ext <<_ACEOF
21945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021946$ac_includes_default
21947/* malloc might have been renamed as rpl_malloc. */
21948#undef malloc
21949
21950/* Thanks to Mike Haertel and Jim Avera for this test.
21951 Here is a matrix of mmap possibilities:
21952 mmap private not fixed
21953 mmap private fixed at somewhere currently unmapped
21954 mmap private fixed at somewhere already mapped
21955 mmap shared not fixed
21956 mmap shared fixed at somewhere currently unmapped
21957 mmap shared fixed at somewhere already mapped
21958 For private mappings, we should verify that changes cannot be read()
21959 back from the file, nor mmap's back from the file at a different
21960 address. (There have been systems where private was not correctly
21961 implemented like the infamous i386 svr4.0, and systems where the
21962 VM page cache was not coherent with the file system buffer cache
21963 like early versions of FreeBSD and possibly contemporary NetBSD.)
21964 For shared mappings, we should conversely verify that changes get
21965 propagated back to all the places they're supposed to be.
21966
21967 Grep wants private fixed already mapped.
21968 The main things grep needs to know about mmap are:
21969 * does it exist and is it safe to write into the mmap'd area
21970 * how to use it (BSD variants) */
21971
21972#include <fcntl.h>
21973#include <sys/mman.h>
21974
21975#if !STDC_HEADERS && !HAVE_STDLIB_H
21976char *malloc ();
21977#endif
21978
21979/* This mess was copied from the GNU getpagesize.h. */
21980#if !HAVE_GETPAGESIZE
21981/* Assume that all systems that can run configure have sys/param.h. */
21982# if !HAVE_SYS_PARAM_H
21983# define HAVE_SYS_PARAM_H 1
21984# endif
21985
21986# ifdef _SC_PAGESIZE
21987# define getpagesize() sysconf(_SC_PAGESIZE)
21988# else /* no _SC_PAGESIZE */
21989# if HAVE_SYS_PARAM_H
21990# include <sys/param.h>
21991# ifdef EXEC_PAGESIZE
21992# define getpagesize() EXEC_PAGESIZE
21993# else /* no EXEC_PAGESIZE */
21994# ifdef NBPG
21995# define getpagesize() NBPG * CLSIZE
21996# ifndef CLSIZE
21997# define CLSIZE 1
21998# endif /* no CLSIZE */
21999# else /* no NBPG */
22000# ifdef NBPC
22001# define getpagesize() NBPC
22002# else /* no NBPC */
22003# ifdef PAGESIZE
22004# define getpagesize() PAGESIZE
22005# endif /* PAGESIZE */
22006# endif /* no NBPC */
22007# endif /* no NBPG */
22008# endif /* no EXEC_PAGESIZE */
22009# else /* no HAVE_SYS_PARAM_H */
22010# define getpagesize() 8192 /* punt totally */
22011# endif /* no HAVE_SYS_PARAM_H */
22012# endif /* no _SC_PAGESIZE */
22013
22014#endif /* no HAVE_GETPAGESIZE */
22015
22016int
22017main ()
22018{
22019 char *data, *data2, *data3;
22020 int i, pagesize;
22021 int fd;
22022
22023 pagesize = getpagesize ();
22024
22025 /* First, make a file with some known garbage in it. */
22026 data = (char *) malloc (pagesize);
22027 if (!data)
22028 exit (1);
22029 for (i = 0; i < pagesize; ++i)
22030 *(data + i) = rand ();
22031 umask (0);
22032 fd = creat ("conftest.mmap", 0600);
22033 if (fd < 0)
22034 exit (1);
22035 if (write (fd, data, pagesize) != pagesize)
22036 exit (1);
22037 close (fd);
22038
22039 /* Next, try to mmap the file at a fixed address which already has
22040 something else allocated at it. If we can, also make sure that
22041 we see the same garbage. */
22042 fd = open ("conftest.mmap", O_RDWR);
22043 if (fd < 0)
22044 exit (1);
22045 data2 = (char *) malloc (2 * pagesize);
22046 if (!data2)
22047 exit (1);
22048 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22049 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22050 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22051 exit (1);
22052 for (i = 0; i < pagesize; ++i)
22053 if (*(data + i) != *(data2 + i))
22054 exit (1);
22055
22056 /* Finally, make sure that changes to the mapped area do not
22057 percolate back to the file as seen by read(). (This is a bug on
22058 some variants of i386 svr4.0.) */
22059 for (i = 0; i < pagesize; ++i)
22060 *(data2 + i) = *(data2 + i) + 1;
22061 data3 = (char *) malloc (pagesize);
22062 if (!data3)
22063 exit (1);
22064 if (read (fd, data3, pagesize) != pagesize)
22065 exit (1);
22066 for (i = 0; i < pagesize; ++i)
22067 if (*(data + i) != *(data3 + i))
22068 exit (1);
22069 close (fd);
22070 exit (0);
22071}
22072_ACEOF
22073rm -f conftest$ac_exeext
22074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22075 (eval $ac_link) 2>&5
22076 ac_status=$?
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084 ac_cv_func_mmap_fixed_mapped=yes
22085else
22086 echo "$as_me: program exited with status $ac_status" >&5
22087echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022088sed 's/^/| /' conftest.$ac_ext >&5
22089
John Criswell7a73b802003-06-30 21:59:07 +000022090( exit $ac_status )
22091ac_cv_func_mmap_fixed_mapped=no
22092fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022093rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022094fi
22095fi
22096echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22097echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22098if test $ac_cv_func_mmap_fixed_mapped = yes; then
22099
22100cat >>confdefs.h <<\_ACEOF
22101#define HAVE_MMAP 1
22102_ACEOF
22103
22104fi
22105rm -f conftest.mmap
22106
22107echo "$as_me:$LINENO: checking for mmap of files" >&5
22108echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22109if test "${ac_cv_func_mmap_file+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22111else
22112
22113
22114 ac_ext=c
22115ac_cpp='$CPP $CPPFLAGS'
22116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22118ac_compiler_gnu=$ac_cv_c_compiler_gnu
22119
22120 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022121 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22122See \`config.log' for more details." >&5
22123echo "$as_me: error: cannot run test program while cross compiling
22124See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022125 { (exit 1); exit 1; }; }
22126else
22127 cat >conftest.$ac_ext <<_ACEOF
22128#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022129/* confdefs.h. */
22130_ACEOF
22131cat confdefs.h >>conftest.$ac_ext
22132cat >>conftest.$ac_ext <<_ACEOF
22133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022134
22135#ifdef HAVE_SYS_MMAN_H
22136#include <sys/mman.h>
22137#endif
22138
22139#ifdef HAVE_SYS_TYPES_H
22140#include <sys/types.h>
22141#endif
22142
22143#ifdef HAVE_FCNTL_H
22144#include <fcntl.h>
22145#endif
22146
22147 int fd;
22148 int main () {
22149 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22150_ACEOF
22151rm -f conftest$ac_exeext
22152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153 (eval $ac_link) 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 ac_cv_func_mmap_file=yes
22163else
22164 echo "$as_me: program exited with status $ac_status" >&5
22165echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022166sed 's/^/| /' conftest.$ac_ext >&5
22167
John Criswell7a73b802003-06-30 21:59:07 +000022168( exit $ac_status )
22169ac_cv_func_mmap_file=no
22170fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022171rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022172fi
22173 ac_ext=c
22174ac_cpp='$CPP $CPPFLAGS'
22175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22177ac_compiler_gnu=$ac_cv_c_compiler_gnu
22178
22179
22180fi
22181echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22182echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22183if test "$ac_cv_func_mmap_file" = yes; then
22184 cat >>confdefs.h <<\_ACEOF
22185#define HAVE_MMAP_FILE 1
22186_ACEOF
22187
22188 MMAP_FILE=yes
22189
22190fi
22191
22192if test ${ac_cv_func_mmap_file} = "no"
22193then
22194 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22195echo "$as_me: error: mmap() of files required but not found" >&2;}
22196 { (exit 1); exit 1; }; }
22197fi
22198echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22199echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22200if test "${ac_cv_header_mmap_anon+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202else
22203
22204
22205 ac_ext=c
22206ac_cpp='$CPP $CPPFLAGS'
22207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22209ac_compiler_gnu=$ac_cv_c_compiler_gnu
22210
22211 cat >conftest.$ac_ext <<_ACEOF
22212#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022213/* confdefs.h. */
22214_ACEOF
22215cat confdefs.h >>conftest.$ac_ext
22216cat >>conftest.$ac_ext <<_ACEOF
22217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022218#include <sys/mman.h>
22219 #include <unistd.h>
22220 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022221int
22222main ()
22223{
22224mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22225 ;
22226 return 0;
22227}
22228_ACEOF
22229rm -f conftest.$ac_objext
22230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22231 (eval $ac_compile) 2>&5
22232 ac_status=$?
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } &&
22235 { ac_try='test -s conftest.$ac_objext'
22236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237 (eval $ac_try) 2>&5
22238 ac_status=$?
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); }; }; then
22241 ac_cv_header_mmap_anon=yes
22242else
22243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022244sed 's/^/| /' conftest.$ac_ext >&5
22245
John Criswell7a73b802003-06-30 21:59:07 +000022246ac_cv_header_mmap_anon=no
22247fi
22248rm -f conftest.$ac_objext conftest.$ac_ext
22249 ac_ext=c
22250ac_cpp='$CPP $CPPFLAGS'
22251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253ac_compiler_gnu=$ac_cv_c_compiler_gnu
22254
22255
22256fi
22257echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22258echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22259if test "$ac_cv_header_mmap_anon" = yes; then
22260 cat >>confdefs.h <<\_ACEOF
22261#define HAVE_MMAP_ANONYMOUS 1
22262_ACEOF
22263
22264fi
22265
22266echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22267echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22268if test "${ac_cv_type_signal+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22270else
22271 cat >conftest.$ac_ext <<_ACEOF
22272#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022273/* confdefs.h. */
22274_ACEOF
22275cat confdefs.h >>conftest.$ac_ext
22276cat >>conftest.$ac_ext <<_ACEOF
22277/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022278#include <sys/types.h>
22279#include <signal.h>
22280#ifdef signal
22281# undef signal
22282#endif
22283#ifdef __cplusplus
22284extern "C" void (*signal (int, void (*)(int)))(int);
22285#else
22286void (*signal ()) ();
22287#endif
22288
John Criswell7a73b802003-06-30 21:59:07 +000022289int
22290main ()
22291{
22292int i;
22293 ;
22294 return 0;
22295}
22296_ACEOF
22297rm -f conftest.$ac_objext
22298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22299 (eval $ac_compile) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
22303 { ac_try='test -s conftest.$ac_objext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 ac_cv_type_signal=void
22310else
22311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022312sed 's/^/| /' conftest.$ac_ext >&5
22313
John Criswell7a73b802003-06-30 21:59:07 +000022314ac_cv_type_signal=int
22315fi
22316rm -f conftest.$ac_objext conftest.$ac_ext
22317fi
22318echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22319echo "${ECHO_T}$ac_cv_type_signal" >&6
22320
22321cat >>confdefs.h <<_ACEOF
22322#define RETSIGTYPE $ac_cv_type_signal
22323_ACEOF
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22336do
22337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22338echo "$as_me:$LINENO: checking for $ac_func" >&5
22339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22340if eval "test \"\${$as_ac_var+set}\" = set"; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22342else
22343 cat >conftest.$ac_ext <<_ACEOF
22344#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022350/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022351 which can conflict with char $ac_func (); below.
22352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22353 <limits.h> exists even on freestanding compilers. */
22354#ifdef __STDC__
22355# include <limits.h>
22356#else
22357# include <assert.h>
22358#endif
John Criswell7a73b802003-06-30 21:59:07 +000022359/* Override any gcc2 internal prototype to avoid an error. */
22360#ifdef __cplusplus
22361extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022362{
John Criswell7a73b802003-06-30 21:59:07 +000022363#endif
22364/* We use char because int might match the return type of a gcc2
22365 builtin and then its argument prototype would still apply. */
22366char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022367/* The GNU C library defines this for functions which it implements
22368 to always fail with ENOSYS. Some functions are actually named
22369 something starting with __ and the normal name is an alias. */
22370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22371choke me
22372#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022373char (*f) () = $ac_func;
22374#endif
22375#ifdef __cplusplus
22376}
John Criswell7a73b802003-06-30 21:59:07 +000022377#endif
22378
John Criswell0c38eaf2003-09-10 15:17:25 +000022379int
22380main ()
22381{
22382return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022383 ;
22384 return 0;
22385}
22386_ACEOF
22387rm -f conftest.$ac_objext conftest$ac_exeext
22388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22389 (eval $ac_link) 2>&5
22390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } &&
22393 { ac_try='test -s conftest$ac_exeext'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 eval "$as_ac_var=yes"
22400else
22401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022402sed 's/^/| /' conftest.$ac_ext >&5
22403
John Criswell7a73b802003-06-30 21:59:07 +000022404eval "$as_ac_var=no"
22405fi
22406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22407fi
22408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22409echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22410if test `eval echo '${'$as_ac_var'}'` = yes; then
22411 cat >>confdefs.h <<_ACEOF
22412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22413_ACEOF
22414
22415fi
22416done
22417
22418
22419
22420echo "$as_me:$LINENO: checking for mmap" >&5
22421echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22422if test "${ac_cv_func_mmap+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22424else
22425 cat >conftest.$ac_ext <<_ACEOF
22426#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022427/* confdefs.h. */
22428_ACEOF
22429cat confdefs.h >>conftest.$ac_ext
22430cat >>conftest.$ac_ext <<_ACEOF
22431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022432/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022433 which can conflict with char mmap (); below.
22434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22435 <limits.h> exists even on freestanding compilers. */
22436#ifdef __STDC__
22437# include <limits.h>
22438#else
22439# include <assert.h>
22440#endif
John Criswell7a73b802003-06-30 21:59:07 +000022441/* Override any gcc2 internal prototype to avoid an error. */
22442#ifdef __cplusplus
22443extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022444{
John Criswell7a73b802003-06-30 21:59:07 +000022445#endif
22446/* We use char because int might match the return type of a gcc2
22447 builtin and then its argument prototype would still apply. */
22448char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022449/* The GNU C library defines this for functions which it implements
22450 to always fail with ENOSYS. Some functions are actually named
22451 something starting with __ and the normal name is an alias. */
22452#if defined (__stub_mmap) || defined (__stub___mmap)
22453choke me
22454#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022455char (*f) () = mmap;
22456#endif
22457#ifdef __cplusplus
22458}
John Criswell7a73b802003-06-30 21:59:07 +000022459#endif
22460
John Criswell0c38eaf2003-09-10 15:17:25 +000022461int
22462main ()
22463{
22464return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022465 ;
22466 return 0;
22467}
22468_ACEOF
22469rm -f conftest.$ac_objext conftest$ac_exeext
22470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22471 (eval $ac_link) 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
22475 { ac_try='test -s conftest$ac_exeext'
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_cv_func_mmap=yes
22482else
22483 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022484sed 's/^/| /' conftest.$ac_ext >&5
22485
John Criswell7a73b802003-06-30 21:59:07 +000022486ac_cv_func_mmap=no
22487fi
22488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22489fi
22490echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22491echo "${ECHO_T}$ac_cv_func_mmap" >&6
22492if test $ac_cv_func_mmap = yes; then
22493 :
22494else
22495 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22496echo "$as_me: error: Function mmap() required but not found" >&2;}
22497 { (exit 1); exit 1; }; }
22498fi
22499
22500echo "$as_me:$LINENO: checking for mprotect" >&5
22501echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22502if test "${ac_cv_func_mprotect+set}" = set; then
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
22504else
22505 cat >conftest.$ac_ext <<_ACEOF
22506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022507/* confdefs.h. */
22508_ACEOF
22509cat confdefs.h >>conftest.$ac_ext
22510cat >>conftest.$ac_ext <<_ACEOF
22511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022512/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022513 which can conflict with char mprotect (); below.
22514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22515 <limits.h> exists even on freestanding compilers. */
22516#ifdef __STDC__
22517# include <limits.h>
22518#else
22519# include <assert.h>
22520#endif
John Criswell7a73b802003-06-30 21:59:07 +000022521/* Override any gcc2 internal prototype to avoid an error. */
22522#ifdef __cplusplus
22523extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022524{
John Criswell7a73b802003-06-30 21:59:07 +000022525#endif
22526/* We use char because int might match the return type of a gcc2
22527 builtin and then its argument prototype would still apply. */
22528char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022529/* The GNU C library defines this for functions which it implements
22530 to always fail with ENOSYS. Some functions are actually named
22531 something starting with __ and the normal name is an alias. */
22532#if defined (__stub_mprotect) || defined (__stub___mprotect)
22533choke me
22534#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022535char (*f) () = mprotect;
22536#endif
22537#ifdef __cplusplus
22538}
John Criswell7a73b802003-06-30 21:59:07 +000022539#endif
22540
John Criswell0c38eaf2003-09-10 15:17:25 +000022541int
22542main ()
22543{
22544return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022545 ;
22546 return 0;
22547}
22548_ACEOF
22549rm -f conftest.$ac_objext conftest$ac_exeext
22550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22551 (eval $ac_link) 2>&5
22552 ac_status=$?
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } &&
22555 { ac_try='test -s conftest$ac_exeext'
22556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557 (eval $ac_try) 2>&5
22558 ac_status=$?
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); }; }; then
22561 ac_cv_func_mprotect=yes
22562else
22563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022564sed 's/^/| /' conftest.$ac_ext >&5
22565
John Criswell7a73b802003-06-30 21:59:07 +000022566ac_cv_func_mprotect=no
22567fi
22568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22569fi
22570echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22571echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22572if test $ac_cv_func_mprotect = yes; then
22573 :
22574else
22575 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22576echo "$as_me: error: Function mprotect() required but not found" >&2;}
22577 { (exit 1); exit 1; }; }
22578fi
22579
22580
John Criswellb13092b2003-07-22 21:00:24 +000022581
John Criswell7a73b802003-06-30 21:59:07 +000022582# Check whether --enable-purify or --disable-purify was given.
22583if test "${enable_purify+set}" = set; then
22584 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022585
22586else
John Criswellb13092b2003-07-22 21:00:24 +000022587 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022588fi;
John Criswellb13092b2003-07-22 21:00:24 +000022589if test ${enableval} = "no"
22590then
22591 ENABLE_PURIFY=
22592
22593else
22594 ENABLE_PURIFY=ENABLE_PURIFY=1
22595
22596fi
22597
John Criswell7a73b802003-06-30 21:59:07 +000022598# Check whether --enable-optimized or --disable-optimized was given.
22599if test "${enable_optimized+set}" = set; then
22600 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022601
22602else
John Criswellb13092b2003-07-22 21:00:24 +000022603 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022604fi;
John Criswellb13092b2003-07-22 21:00:24 +000022605if test ${enableval} = "no"
22606then
22607 ENABLE_OPTIMIZED=
22608
22609else
22610 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22611
22612fi
22613
John Criswell7a73b802003-06-30 21:59:07 +000022614# Check whether --enable-spec or --disable-spec was given.
22615if test "${enable_spec+set}" = set; then
22616 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022617
22618else
John Criswellb13092b2003-07-22 21:00:24 +000022619 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022620fi;
John Criswellb13092b2003-07-22 21:00:24 +000022621if test ${enableval} = "no"
22622then
22623 USE_SPEC=
22624
22625else
22626 USE_SPEC=USE_SPEC=1
22627
22628fi
22629
John Criswell7a73b802003-06-30 21:59:07 +000022630# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22631if test "${enable_precompiled_bytecode+set}" = set; then
22632 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022633
22634else
John Criswellb13092b2003-07-22 21:00:24 +000022635 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022636fi;
John Criswellb13092b2003-07-22 21:00:24 +000022637if test ${enableval} = "no"
22638then
22639 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022640
John Criswellb13092b2003-07-22 21:00:24 +000022641else
22642 UPB=USE_PRECOMPILED_BYTECODE=1
22643
22644fi
John Criswellf02dbf02003-07-22 20:07:49 +000022645
22646
22647# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22648if test "${enable_llc_diffs+set}" = set; then
22649 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022650
22651else
John Criswellb13092b2003-07-22 21:00:24 +000022652 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022653fi;
John Criswellb13092b2003-07-22 21:00:24 +000022654if test ${enableval} = "no"
22655then
22656 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022657
John Criswellb13092b2003-07-22 21:00:24 +000022658else
22659 DISABLE_LLC_DIFFS=
22660
22661fi
22662
22663# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022664if test "${enable_jit+set}" = set; then
22665 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022666
22667else
John Criswellc78022e2003-07-29 19:11:58 +000022668 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022669fi;
John Criswellb13092b2003-07-22 21:00:24 +000022670
22671if test ${enableval} = "no"
22672then
22673 JIT=
22674
22675else
John Criswellc78022e2003-07-29 19:11:58 +000022676 case $target in
22677 *i*86*)
22678 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022679
John Criswellc78022e2003-07-29 19:11:58 +000022680 ;;
22681 *sparc*)
22682 JIT=TARGET_HAS_JIT=1
22683
22684 ;;
22685 *)
22686 JIT=
22687
22688 ;;
22689 esac
John Criswellb13092b2003-07-22 21:00:24 +000022690fi
John Criswell7a73b802003-06-30 21:59:07 +000022691
22692
John Criswellc78022e2003-07-29 19:11:58 +000022693
John Criswell7a73b802003-06-30 21:59:07 +000022694# Check whether --with-spec or --without-spec was given.
22695if test "${with_spec+set}" = set; then
22696 withval="$with_spec"
22697 SPEC_ROOT=$withval
22698
22699else
22700 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22701
22702fi;
22703
John Criswellc78022e2003-07-29 19:11:58 +000022704
John Criswell7a73b802003-06-30 21:59:07 +000022705# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22706if test "${with_llvmgccdir+set}" = set; then
22707 withval="$with_llvmgccdir"
22708 LLVMGCCDIR=$withval
22709
22710fi;
22711
John Criswellc78022e2003-07-29 19:11:58 +000022712
John Criswell7a73b802003-06-30 21:59:07 +000022713# Check whether --with-bcrepos or --without-bcrepos was given.
22714if test "${with_bcrepos+set}" = set; then
22715 withval="$with_bcrepos"
22716 BCR=$withval
22717
22718else
22719 BCR=/home/vadve/lattner/LLVMPrograms
22720
22721fi;
22722
John Criswellc78022e2003-07-29 19:11:58 +000022723
John Criswell7a73b802003-06-30 21:59:07 +000022724# Check whether --with-papi or --without-papi was given.
22725if test "${with_papi+set}" = set; then
22726 withval="$with_papi"
22727 PAPIDIR=$withval
22728
22729else
John Criswellde00db22003-08-25 16:49:54 +000022730 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022731
22732fi;
22733
John Criswell7a73b802003-06-30 21:59:07 +000022734
22735# Check whether --with-purify or --without-purify was given.
22736if test "${with_purify+set}" = set; then
22737 withval="$with_purify"
22738 PURIFY=$withval
22739
22740fi;
22741
John Criswellde00db22003-08-25 16:49:54 +000022742
John Criswell0c38eaf2003-09-10 15:17:25 +000022743 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022744cat >confcache <<\_ACEOF
22745# This file is a shell script that caches the results of configure
22746# tests run on this system so they can be shared between configure
22747# scripts and configure runs, see configure's option --config-cache.
22748# It is not useful on other systems. If it contains results you don't
22749# want to keep, you may remove or edit it.
22750#
22751# config.status only pays attention to the cache file if you give it
22752# the --recheck option to rerun configure.
22753#
John Criswell0c38eaf2003-09-10 15:17:25 +000022754# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022755# loading this file, other *unset* `ac_cv_foo' will be assigned the
22756# following values.
22757
22758_ACEOF
22759
22760# The following way of writing the cache mishandles newlines in values,
22761# but we know of no workaround that is simple, portable, and efficient.
22762# So, don't put newlines in cache variables' values.
22763# Ultrix sh set writes to stderr and can't be redirected directly,
22764# and sets the high bit in the cache file unless we assign to the vars.
22765{
22766 (set) 2>&1 |
22767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22768 *ac_space=\ *)
22769 # `set' does not quote correctly, so add quotes (double-quote
22770 # substitution turns \\\\ into \\, and sed turns \\ into \).
22771 sed -n \
22772 "s/'/'\\\\''/g;
22773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22774 ;;
22775 *)
22776 # `set' quotes correctly as required by POSIX, so do not add quotes.
22777 sed -n \
22778 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22779 ;;
22780 esac;
22781} |
22782 sed '
22783 t clear
22784 : clear
22785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22786 t end
22787 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22788 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022789if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022790 if test -w $cache_file; then
22791 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22792 cat confcache >$cache_file
22793 else
22794 echo "not updating unwritable cache $cache_file"
22795 fi
22796fi
22797rm -f confcache
22798
22799test "x$prefix" = xNONE && prefix=$ac_default_prefix
22800# Let make expand exec_prefix.
22801test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22802
22803# VPATH may cause trouble with some makes, so we remove $(srcdir),
22804# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22805# trailing colons and then remove the whole line if VPATH becomes empty
22806# (actually we leave an empty line to preserve line numbers).
22807if test "x$srcdir" = x.; then
22808 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22809s/:*\$(srcdir):*/:/;
22810s/:*\${srcdir}:*/:/;
22811s/:*@srcdir@:*/:/;
22812s/^\([^=]*=[ ]*\):*/\1/;
22813s/:*$//;
22814s/^[^=]*=[ ]*$//;
22815}'
22816fi
22817
22818DEFS=-DHAVE_CONFIG_H
22819
John Criswell0c38eaf2003-09-10 15:17:25 +000022820ac_libobjs=
22821ac_ltlibobjs=
22822for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22823 # 1. Remove the extension, and $U if already installed.
22824 ac_i=`echo "$ac_i" |
22825 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22826 # 2. Add them.
22827 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22828 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22829done
22830LIBOBJS=$ac_libobjs
22831
22832LTLIBOBJS=$ac_ltlibobjs
22833
22834
John Criswell7a73b802003-06-30 21:59:07 +000022835
22836: ${CONFIG_STATUS=./config.status}
22837ac_clean_files_save=$ac_clean_files
22838ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22839{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22840echo "$as_me: creating $CONFIG_STATUS" >&6;}
22841cat >$CONFIG_STATUS <<_ACEOF
22842#! $SHELL
22843# Generated by $as_me.
22844# Run this file to recreate the current configuration.
22845# Compiler output produced by configure, useful for debugging
22846# configure, is in config.log if it exists.
22847
22848debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022849ac_cs_recheck=false
22850ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022851SHELL=\${CONFIG_SHELL-$SHELL}
22852_ACEOF
22853
22854cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022855## --------------------- ##
22856## M4sh Initialization. ##
22857## --------------------- ##
22858
22859# Be Bourne compatible
22860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22861 emulate sh
22862 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022863 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22864 # is contrary to our usage. Disable this feature.
22865 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022866elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22867 set -o posix
22868fi
22869
John Criswell7a73b802003-06-30 21:59:07 +000022870# Support unset when possible.
22871if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22872 as_unset=unset
22873else
22874 as_unset=false
22875fi
22876
John Criswell0c38eaf2003-09-10 15:17:25 +000022877
22878# Work around bugs in pre-3.0 UWIN ksh.
22879$as_unset ENV MAIL MAILPATH
22880PS1='$ '
22881PS2='> '
22882PS4='+ '
22883
22884# NLS nuisances.
22885for as_var in \
22886 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22887 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22888 LC_TELEPHONE LC_TIME
22889do
22890 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22891 eval $as_var=C; export $as_var
22892 else
22893 $as_unset $as_var
22894 fi
22895done
22896
22897# Required to use basename.
22898if expr a : '\(a\)' >/dev/null 2>&1; then
22899 as_expr=expr
22900else
22901 as_expr=false
22902fi
22903
22904if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22905 as_basename=basename
22906else
22907 as_basename=false
22908fi
John Criswell7a73b802003-06-30 21:59:07 +000022909
22910
22911# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022912as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022913$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22914 X"$0" : 'X\(//\)$' \| \
22915 X"$0" : 'X\(/\)$' \| \
22916 . : '\(.\)' 2>/dev/null ||
22917echo X/"$0" |
22918 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22919 /^X\/\(\/\/\)$/{ s//\1/; q; }
22920 /^X\/\(\/\).*/{ s//\1/; q; }
22921 s/.*/./; q'`
22922
John Criswell0c38eaf2003-09-10 15:17:25 +000022923
John Criswell7a73b802003-06-30 21:59:07 +000022924# PATH needs CR, and LINENO needs CR and PATH.
22925# Avoid depending upon Character Ranges.
22926as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22927as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22928as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22929as_cr_digits='0123456789'
22930as_cr_alnum=$as_cr_Letters$as_cr_digits
22931
22932# The user is always right.
22933if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022934 echo "#! /bin/sh" >conf$$.sh
22935 echo "exit 0" >>conf$$.sh
22936 chmod +x conf$$.sh
22937 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022938 PATH_SEPARATOR=';'
22939 else
22940 PATH_SEPARATOR=:
22941 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022942 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022943fi
22944
22945
22946 as_lineno_1=$LINENO
22947 as_lineno_2=$LINENO
22948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22949 test "x$as_lineno_1" != "x$as_lineno_2" &&
22950 test "x$as_lineno_3" = "x$as_lineno_2" || {
22951 # Find who we are. Look in the path if we contain no path at all
22952 # relative or not.
22953 case $0 in
22954 *[\\/]* ) as_myself=$0 ;;
22955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22956for as_dir in $PATH
22957do
22958 IFS=$as_save_IFS
22959 test -z "$as_dir" && as_dir=.
22960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22961done
22962
22963 ;;
22964 esac
22965 # We did not find ourselves, most probably we were run as `sh COMMAND'
22966 # in which case we are not to be found in the path.
22967 if test "x$as_myself" = x; then
22968 as_myself=$0
22969 fi
22970 if test ! -f "$as_myself"; then
22971 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22972echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22973 { (exit 1); exit 1; }; }
22974 fi
22975 case $CONFIG_SHELL in
22976 '')
22977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22978for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22979do
22980 IFS=$as_save_IFS
22981 test -z "$as_dir" && as_dir=.
22982 for as_base in sh bash ksh sh5; do
22983 case $as_dir in
22984 /*)
22985 if ("$as_dir/$as_base" -c '
22986 as_lineno_1=$LINENO
22987 as_lineno_2=$LINENO
22988 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22989 test "x$as_lineno_1" != "x$as_lineno_2" &&
22990 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022991 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22992 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022993 CONFIG_SHELL=$as_dir/$as_base
22994 export CONFIG_SHELL
22995 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22996 fi;;
22997 esac
22998 done
22999done
23000;;
23001 esac
23002
23003 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23004 # uniformly replaced by the line number. The first 'sed' inserts a
23005 # line-number line before each line; the second 'sed' does the real
23006 # work. The second script uses 'N' to pair each line-number line
23007 # with the numbered line, and appends trailing '-' during
23008 # substitution so that $LINENO is not a special case at line end.
23009 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23010 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23011 sed '=' <$as_myself |
23012 sed '
23013 N
23014 s,$,-,
23015 : loop
23016 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23017 t loop
23018 s,-$,,
23019 s,^['$as_cr_digits']*\n,,
23020 ' >$as_me.lineno &&
23021 chmod +x $as_me.lineno ||
23022 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23023echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23024 { (exit 1); exit 1; }; }
23025
23026 # Don't try to exec as it changes $[0], causing all sort of problems
23027 # (the dirname of $[0] is not the place where we might find the
23028 # original and so on. Autoconf is especially sensible to this).
23029 . ./$as_me.lineno
23030 # Exit status is that of the last command.
23031 exit
23032}
23033
23034
23035case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23036 *c*,-n*) ECHO_N= ECHO_C='
23037' ECHO_T=' ' ;;
23038 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23039 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23040esac
23041
23042if expr a : '\(a\)' >/dev/null 2>&1; then
23043 as_expr=expr
23044else
23045 as_expr=false
23046fi
23047
23048rm -f conf$$ conf$$.exe conf$$.file
23049echo >conf$$.file
23050if ln -s conf$$.file conf$$ 2>/dev/null; then
23051 # We could just check for DJGPP; but this test a) works b) is more generic
23052 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23053 if test -f conf$$.exe; then
23054 # Don't use ln at all; we don't have any links
23055 as_ln_s='cp -p'
23056 else
23057 as_ln_s='ln -s'
23058 fi
23059elif ln conf$$.file conf$$ 2>/dev/null; then
23060 as_ln_s=ln
23061else
23062 as_ln_s='cp -p'
23063fi
23064rm -f conf$$ conf$$.exe conf$$.file
23065
John Criswell0c38eaf2003-09-10 15:17:25 +000023066if mkdir -p . 2>/dev/null; then
23067 as_mkdir_p=:
23068else
23069 as_mkdir_p=false
23070fi
23071
John Criswell7a73b802003-06-30 21:59:07 +000023072as_executable_p="test -f"
23073
23074# Sed expression to map a string onto a valid CPP name.
23075as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23076
23077# Sed expression to map a string onto a valid variable name.
23078as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23079
23080
23081# IFS
23082# We need space, tab and new line, in precisely that order.
23083as_nl='
23084'
23085IFS=" $as_nl"
23086
23087# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023088$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023089
23090exec 6>&1
23091
23092# Open the log real soon, to keep \$[0] and so on meaningful, and to
23093# report actual input values of CONFIG_FILES etc. instead of their
23094# values after options handling. Logging --version etc. is OK.
23095exec 5>>config.log
23096{
23097 echo
23098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23099## Running $as_me. ##
23100_ASBOX
23101} >&5
23102cat >&5 <<_CSEOF
23103
23104This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023105generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023106
23107 CONFIG_FILES = $CONFIG_FILES
23108 CONFIG_HEADERS = $CONFIG_HEADERS
23109 CONFIG_LINKS = $CONFIG_LINKS
23110 CONFIG_COMMANDS = $CONFIG_COMMANDS
23111 $ $0 $@
23112
23113_CSEOF
23114echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23115echo >&5
23116_ACEOF
23117
23118# Files that config.status was made for.
23119if test -n "$ac_config_files"; then
23120 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23121fi
23122
23123if test -n "$ac_config_headers"; then
23124 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23125fi
23126
23127if test -n "$ac_config_links"; then
23128 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23129fi
23130
23131if test -n "$ac_config_commands"; then
23132 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23133fi
23134
23135cat >>$CONFIG_STATUS <<\_ACEOF
23136
23137ac_cs_usage="\
23138\`$as_me' instantiates files from templates according to the
23139current configuration.
23140
23141Usage: $0 [OPTIONS] [FILE]...
23142
23143 -h, --help print this help, then exit
23144 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023145 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023146 -d, --debug don't remove temporary files
23147 --recheck update $as_me by reconfiguring in the same conditions
23148 --file=FILE[:TEMPLATE]
23149 instantiate the configuration file FILE
23150 --header=FILE[:TEMPLATE]
23151 instantiate the configuration header FILE
23152
23153Configuration files:
23154$config_files
23155
23156Configuration headers:
23157$config_headers
23158
John Criswellc764fbc2003-09-06 15:17:13 +000023159Configuration commands:
23160$config_commands
23161
John Criswell7a73b802003-06-30 21:59:07 +000023162Report bugs to <bug-autoconf@gnu.org>."
23163_ACEOF
23164
23165cat >>$CONFIG_STATUS <<_ACEOF
23166ac_cs_version="\\
23167[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023168configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023169 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23170
23171Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23172Free Software Foundation, Inc.
23173This config.status script is free software; the Free Software Foundation
23174gives unlimited permission to copy, distribute and modify it."
23175srcdir=$srcdir
23176INSTALL="$INSTALL"
23177_ACEOF
23178
23179cat >>$CONFIG_STATUS <<\_ACEOF
23180# If no file are specified by the user, then we need to provide default
23181# value. By we need to know if files were specified by the user.
23182ac_need_defaults=:
23183while test $# != 0
23184do
23185 case $1 in
23186 --*=*)
23187 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23188 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023189 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023190 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023191 -*)
23192 ac_option=$1
23193 ac_optarg=$2
23194 ac_shift=shift
23195 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023196 *) # This is not an option, so the user has probably given explicit
23197 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023198 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023199 ac_need_defaults=false;;
23200 esac
23201
John Criswell0c38eaf2003-09-10 15:17:25 +000023202 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023203 # Handling of the options.
23204_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023205cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23207 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023208 --version | --vers* | -V )
23209 echo "$ac_cs_version"; exit 0 ;;
23210 --he | --h)
23211 # Conflict between --help and --header
23212 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23213Try \`$0 --help' for more information." >&5
23214echo "$as_me: error: ambiguous option: $1
23215Try \`$0 --help' for more information." >&2;}
23216 { (exit 1); exit 1; }; };;
23217 --help | --hel | -h )
23218 echo "$ac_cs_usage"; exit 0 ;;
23219 --debug | --d* | -d )
23220 debug=: ;;
23221 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023222 $ac_shift
23223 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023224 ac_need_defaults=false;;
23225 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023226 $ac_shift
23227 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023228 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23230 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23231 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023232
23233 # This is an error.
23234 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23235Try \`$0 --help' for more information." >&5
23236echo "$as_me: error: unrecognized option: $1
23237Try \`$0 --help' for more information." >&2;}
23238 { (exit 1); exit 1; }; } ;;
23239
23240 *) ac_config_targets="$ac_config_targets $1" ;;
23241
23242 esac
23243 shift
23244done
23245
John Criswell0c38eaf2003-09-10 15:17:25 +000023246ac_configure_extra_args=
23247
23248if $ac_cs_silent; then
23249 exec 6>/dev/null
23250 ac_configure_extra_args="$ac_configure_extra_args --silent"
23251fi
23252
23253_ACEOF
23254cat >>$CONFIG_STATUS <<_ACEOF
23255if \$ac_cs_recheck; then
23256 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23257 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23258fi
23259
John Criswell7a73b802003-06-30 21:59:07 +000023260_ACEOF
23261
John Criswellc764fbc2003-09-06 15:17:13 +000023262cat >>$CONFIG_STATUS <<_ACEOF
23263#
23264# INIT-COMMANDS section.
23265#
John Criswell7a73b802003-06-30 21:59:07 +000023266
John Criswellc764fbc2003-09-06 15:17:13 +000023267${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23268${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23269${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23270${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23271${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23272${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23273${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23274${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23275${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23276${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23277${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23278${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23279${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23280${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23281${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23282${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23283${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023284${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23285${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23286${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23287${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23288${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23289${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23290${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23296${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23297${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23301${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023305${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023307${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023311${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023312${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023313${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023315${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`
John Criswell613758d2003-09-11 18:03:50 +000023337${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023338${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23430${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23431${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23437${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23439
23440_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023441
23442
23443
23444cat >>$CONFIG_STATUS <<\_ACEOF
23445for ac_config_target in $ac_config_targets
23446do
23447 case "$ac_config_target" in
23448 # Handling of arguments.
23449 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023450 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23451 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23452 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23453 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23454 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23455 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23456 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23457 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23458 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23459 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23460 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23461 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23462 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23463 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23464 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23465 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23466 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023467 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23468 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23469 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23470 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23471 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23472 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23473 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23474 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23475 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23476 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23477 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23478 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23479 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23480 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23481 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23482 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23483 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23484 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23485 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23486 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23487 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023488 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23489 "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023490 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23491 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23492 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23493 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023494 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023495 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023496 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23497 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023498 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23499 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23500 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23501 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23502 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23503 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23504 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23505 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23506 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23507 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23508 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23509 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23510 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23511 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23512 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23513 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23514 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23515 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23516 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23517 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23518 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23519 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023520 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023521 "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" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023579 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23580 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23581 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023582 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23583 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23584 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23585 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23586 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23587 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023588 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023589 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23590 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23591 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23592 "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23593 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23594 "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23595 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23596 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23597 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23598 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23599 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23600 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23601 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23602 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23603 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23604 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23605 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23606 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23607 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23608 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23609 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23610 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23611 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23612 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23613 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23614 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23615 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23616 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23617 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23618 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23619 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23620 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23621 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023622 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23623 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23624echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23625 { (exit 1); exit 1; }; };;
23626 esac
23627done
23628
23629# If the user did not use the arguments to specify the items to instantiate,
23630# then the envvar interface is used. Set only those that are not.
23631# We use the long form for the default assignment because of an extremely
23632# bizarre bug on SunOS 4.1.3.
23633if $ac_need_defaults; then
23634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023636 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023637fi
23638
John Criswell0c38eaf2003-09-10 15:17:25 +000023639# Have a temporary directory for convenience. Make it in the build tree
23640# simply because there is no reason to put it here, and in addition,
23641# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023642# Create a temporary directory, and hook for its removal unless debugging.
23643$debug ||
23644{
23645 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23646 trap '{ (exit 1); exit 1; }' 1 2 13 15
23647}
23648
23649# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023650
John Criswell7a73b802003-06-30 21:59:07 +000023651{
John Criswell0c38eaf2003-09-10 15:17:25 +000023652 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023653 test -n "$tmp" && test -d "$tmp"
23654} ||
23655{
John Criswell0c38eaf2003-09-10 15:17:25 +000023656 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023657 (umask 077 && mkdir $tmp)
23658} ||
23659{
John Criswell0c38eaf2003-09-10 15:17:25 +000023660 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023661 { (exit 1); exit 1; }
23662}
23663
23664_ACEOF
23665
23666cat >>$CONFIG_STATUS <<_ACEOF
23667
23668#
23669# CONFIG_FILES section.
23670#
23671
23672# No need to generate the scripts if there are no CONFIG_FILES.
23673# This happens for instance when ./config.status config.h
23674if test -n "\$CONFIG_FILES"; then
23675 # Protect against being on the right side of a sed subst in config.status.
23676 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23677 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23678s,@SHELL@,$SHELL,;t t
23679s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23680s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23681s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23682s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23683s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23684s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23685s,@exec_prefix@,$exec_prefix,;t t
23686s,@prefix@,$prefix,;t t
23687s,@program_transform_name@,$program_transform_name,;t t
23688s,@bindir@,$bindir,;t t
23689s,@sbindir@,$sbindir,;t t
23690s,@libexecdir@,$libexecdir,;t t
23691s,@datadir@,$datadir,;t t
23692s,@sysconfdir@,$sysconfdir,;t t
23693s,@sharedstatedir@,$sharedstatedir,;t t
23694s,@localstatedir@,$localstatedir,;t t
23695s,@libdir@,$libdir,;t t
23696s,@includedir@,$includedir,;t t
23697s,@oldincludedir@,$oldincludedir,;t t
23698s,@infodir@,$infodir,;t t
23699s,@mandir@,$mandir,;t t
23700s,@build_alias@,$build_alias,;t t
23701s,@host_alias@,$host_alias,;t t
23702s,@target_alias@,$target_alias,;t t
23703s,@DEFS@,$DEFS,;t t
23704s,@ECHO_C@,$ECHO_C,;t t
23705s,@ECHO_N@,$ECHO_N,;t t
23706s,@ECHO_T@,$ECHO_T,;t t
23707s,@LIBS@,$LIBS,;t t
23708s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23709s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23710s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23711s,@build@,$build,;t t
23712s,@build_cpu@,$build_cpu,;t t
23713s,@build_vendor@,$build_vendor,;t t
23714s,@build_os@,$build_os,;t t
23715s,@host@,$host,;t t
23716s,@host_cpu@,$host_cpu,;t t
23717s,@host_vendor@,$host_vendor,;t t
23718s,@host_os@,$host_os,;t t
23719s,@target@,$target,;t t
23720s,@target_cpu@,$target_cpu,;t t
23721s,@target_vendor@,$target_vendor,;t t
23722s,@target_os@,$target_os,;t t
23723s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023724s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023725s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023726s,@CXX@,$CXX,;t t
23727s,@CXXFLAGS@,$CXXFLAGS,;t t
23728s,@LDFLAGS@,$LDFLAGS,;t t
23729s,@CPPFLAGS@,$CPPFLAGS,;t t
23730s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23731s,@EXEEXT@,$EXEEXT,;t t
23732s,@OBJEXT@,$OBJEXT,;t t
23733s,@CC@,$CC,;t t
23734s,@CFLAGS@,$CFLAGS,;t t
23735s,@ac_ct_CC@,$ac_ct_CC,;t t
23736s,@CPP@,$CPP,;t t
23737s,@ifGNUmake@,$ifGNUmake,;t t
23738s,@LEX@,$LEX,;t t
23739s,@LEXLIB@,$LEXLIB,;t t
23740s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23741s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023742s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023743s,@LN_S@,$LN_S,;t t
23744s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023745s,@AR@,$AR,;t t
23746s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023747s,@RANLIB@,$RANLIB,;t t
23748s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23749s,@STRIP@,$STRIP,;t t
23750s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023751s,@CXXCPP@,$CXXCPP,;t t
23752s,@F77@,$F77,;t t
23753s,@FFLAGS@,$FFLAGS,;t t
23754s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023755s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023756s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023757s,@SED@,$SED,;t t
23758s,@RM@,$RM,;t t
23759s,@MKDIR@,$MKDIR,;t t
23760s,@DATE@,$DATE,;t t
23761s,@MV@,$MV,;t t
23762s,@DOT@,$DOT,;t t
23763s,@ETAGS@,$ETAGS,;t t
23764s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023765s,@PYTHON@,$PYTHON,;t t
23766s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023767s,@ALLOCA@,$ALLOCA,;t t
23768s,@LIBOBJS@,$LIBOBJS,;t t
23769s,@MMAP_FILE@,$MMAP_FILE,;t t
23770s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023771s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23772s,@USE_SPEC@,$USE_SPEC,;t t
23773s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023774s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023775s,@JIT@,$JIT,;t t
23776s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23777s,@BCR@,$BCR,;t t
23778s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023779s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023780CEOF
23781
23782_ACEOF
23783
23784 cat >>$CONFIG_STATUS <<\_ACEOF
23785 # Split the substitutions into bite-sized pieces for seds with
23786 # small command number limits, like on Digital OSF/1 and HP-UX.
23787 ac_max_sed_lines=48
23788 ac_sed_frag=1 # Number of current file.
23789 ac_beg=1 # First line for current file.
23790 ac_end=$ac_max_sed_lines # Line after last line for current file.
23791 ac_more_lines=:
23792 ac_sed_cmds=
23793 while $ac_more_lines; do
23794 if test $ac_beg -gt 1; then
23795 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23796 else
23797 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23798 fi
23799 if test ! -s $tmp/subs.frag; then
23800 ac_more_lines=false
23801 else
23802 # The purpose of the label and of the branching condition is to
23803 # speed up the sed processing (if there are no `@' at all, there
23804 # is no need to browse any of the substitutions).
23805 # These are the two extra sed commands mentioned above.
23806 (echo ':t
23807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23808 if test -z "$ac_sed_cmds"; then
23809 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23810 else
23811 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23812 fi
23813 ac_sed_frag=`expr $ac_sed_frag + 1`
23814 ac_beg=$ac_end
23815 ac_end=`expr $ac_end + $ac_max_sed_lines`
23816 fi
23817 done
23818 if test -z "$ac_sed_cmds"; then
23819 ac_sed_cmds=cat
23820 fi
23821fi # test -n "$CONFIG_FILES"
23822
23823_ACEOF
23824cat >>$CONFIG_STATUS <<\_ACEOF
23825for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23827 case $ac_file in
23828 - | *:- | *:-:* ) # input from stdin
23829 cat >$tmp/stdin
23830 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23832 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23833 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23834 * ) ac_file_in=$ac_file.in ;;
23835 esac
23836
23837 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23838 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23839$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23840 X"$ac_file" : 'X\(//\)[^/]' \| \
23841 X"$ac_file" : 'X\(//\)$' \| \
23842 X"$ac_file" : 'X\(/\)' \| \
23843 . : '\(.\)' 2>/dev/null ||
23844echo X"$ac_file" |
23845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23847 /^X\(\/\/\)$/{ s//\1/; q; }
23848 /^X\(\/\).*/{ s//\1/; q; }
23849 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023850 { if $as_mkdir_p; then
23851 mkdir -p "$ac_dir"
23852 else
23853 as_dir="$ac_dir"
23854 as_dirs=
23855 while test ! -d "$as_dir"; do
23856 as_dirs="$as_dir $as_dirs"
23857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23858$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23859 X"$as_dir" : 'X\(//\)[^/]' \| \
23860 X"$as_dir" : 'X\(//\)$' \| \
23861 X"$as_dir" : 'X\(/\)' \| \
23862 . : '\(.\)' 2>/dev/null ||
23863echo X"$as_dir" |
23864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23866 /^X\(\/\/\)$/{ s//\1/; q; }
23867 /^X\(\/\).*/{ s//\1/; q; }
23868 s/.*/./; q'`
23869 done
23870 test ! -n "$as_dirs" || mkdir $as_dirs
23871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23872echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23873 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023874
23875 ac_builddir=.
23876
23877if test "$ac_dir" != .; then
23878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23879 # A "../" for each directory in $ac_dir_suffix.
23880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23881else
23882 ac_dir_suffix= ac_top_builddir=
23883fi
23884
23885case $srcdir in
23886 .) # No --srcdir option. We are building in place.
23887 ac_srcdir=.
23888 if test -z "$ac_top_builddir"; then
23889 ac_top_srcdir=.
23890 else
23891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23892 fi ;;
23893 [\\/]* | ?:[\\/]* ) # Absolute path.
23894 ac_srcdir=$srcdir$ac_dir_suffix;
23895 ac_top_srcdir=$srcdir ;;
23896 *) # Relative path.
23897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23899esac
23900# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23901# absolute.
23902ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023903ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023904ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23905ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23906
23907
23908 case $INSTALL in
23909 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23910 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23911 esac
23912
23913 if test x"$ac_file" != x-; then
23914 { echo "$as_me:$LINENO: creating $ac_file" >&5
23915echo "$as_me: creating $ac_file" >&6;}
23916 rm -f "$ac_file"
23917 fi
23918 # Let's still pretend it is `configure' which instantiates (i.e., don't
23919 # use $as_me), people would be surprised to read:
23920 # /* config.h. Generated by config.status. */
23921 if test x"$ac_file" = x-; then
23922 configure_input=
23923 else
23924 configure_input="$ac_file. "
23925 fi
23926 configure_input=$configure_input"Generated from `echo $ac_file_in |
23927 sed 's,.*/,,'` by configure."
23928
23929 # First look for the input files in the build tree, otherwise in the
23930 # src tree.
23931 ac_file_inputs=`IFS=:
23932 for f in $ac_file_in; do
23933 case $f in
23934 -) echo $tmp/stdin ;;
23935 [\\/$]*)
23936 # Absolute (can't be DOS-style, as IFS=:)
23937 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23938echo "$as_me: error: cannot find input file: $f" >&2;}
23939 { (exit 1); exit 1; }; }
23940 echo $f;;
23941 *) # Relative
23942 if test -f "$f"; then
23943 # Build tree
23944 echo $f
23945 elif test -f "$srcdir/$f"; then
23946 # Source tree
23947 echo $srcdir/$f
23948 else
23949 # /dev/null tree
23950 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23951echo "$as_me: error: cannot find input file: $f" >&2;}
23952 { (exit 1); exit 1; }; }
23953 fi;;
23954 esac
23955 done` || { (exit 1); exit 1; }
23956_ACEOF
23957cat >>$CONFIG_STATUS <<_ACEOF
23958 sed "$ac_vpsub
23959$extrasub
23960_ACEOF
23961cat >>$CONFIG_STATUS <<\_ACEOF
23962:t
23963/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23964s,@configure_input@,$configure_input,;t t
23965s,@srcdir@,$ac_srcdir,;t t
23966s,@abs_srcdir@,$ac_abs_srcdir,;t t
23967s,@top_srcdir@,$ac_top_srcdir,;t t
23968s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23969s,@builddir@,$ac_builddir,;t t
23970s,@abs_builddir@,$ac_abs_builddir,;t t
23971s,@top_builddir@,$ac_top_builddir,;t t
23972s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23973s,@INSTALL@,$ac_INSTALL,;t t
23974" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23975 rm -f $tmp/stdin
23976 if test x"$ac_file" != x-; then
23977 mv $tmp/out $ac_file
23978 else
23979 cat $tmp/out
23980 rm -f $tmp/out
23981 fi
23982
23983done
23984_ACEOF
23985cat >>$CONFIG_STATUS <<\_ACEOF
23986
23987#
23988# CONFIG_HEADER section.
23989#
23990
23991# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23992# NAME is the cpp macro being defined and VALUE is the value it is being given.
23993#
23994# ac_d sets the value in "#define NAME VALUE" lines.
23995ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23996ac_dB='[ ].*$,\1#\2'
23997ac_dC=' '
23998ac_dD=',;t'
23999# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24000ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24001ac_uB='$,\1#\2define\3'
24002ac_uC=' '
24003ac_uD=',;t'
24004
24005for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24007 case $ac_file in
24008 - | *:- | *:-:* ) # input from stdin
24009 cat >$tmp/stdin
24010 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24012 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24014 * ) ac_file_in=$ac_file.in ;;
24015 esac
24016
24017 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24018echo "$as_me: creating $ac_file" >&6;}
24019
24020 # First look for the input files in the build tree, otherwise in the
24021 # src tree.
24022 ac_file_inputs=`IFS=:
24023 for f in $ac_file_in; do
24024 case $f in
24025 -) echo $tmp/stdin ;;
24026 [\\/$]*)
24027 # Absolute (can't be DOS-style, as IFS=:)
24028 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24029echo "$as_me: error: cannot find input file: $f" >&2;}
24030 { (exit 1); exit 1; }; }
24031 echo $f;;
24032 *) # Relative
24033 if test -f "$f"; then
24034 # Build tree
24035 echo $f
24036 elif test -f "$srcdir/$f"; then
24037 # Source tree
24038 echo $srcdir/$f
24039 else
24040 # /dev/null tree
24041 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24042echo "$as_me: error: cannot find input file: $f" >&2;}
24043 { (exit 1); exit 1; }; }
24044 fi;;
24045 esac
24046 done` || { (exit 1); exit 1; }
24047 # Remove the trailing spaces.
24048 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24049
24050_ACEOF
24051
24052# Transform confdefs.h into two sed scripts, `conftest.defines' and
24053# `conftest.undefs', that substitutes the proper values into
24054# config.h.in to produce config.h. The first handles `#define'
24055# templates, and the second `#undef' templates.
24056# And first: Protect against being on the right side of a sed subst in
24057# config.status. Protect against being in an unquoted here document
24058# in config.status.
24059rm -f conftest.defines conftest.undefs
24060# Using a here document instead of a string reduces the quoting nightmare.
24061# Putting comments in sed scripts is not portable.
24062#
24063# `end' is used to avoid that the second main sed command (meant for
24064# 0-ary CPP macros) applies to n-ary macro definitions.
24065# See the Autoconf documentation for `clear'.
24066cat >confdef2sed.sed <<\_ACEOF
24067s/[\\&,]/\\&/g
24068s,[\\$`],\\&,g
24069t clear
24070: clear
24071s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24072t end
24073s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24074: end
24075_ACEOF
24076# If some macros were called several times there might be several times
24077# the same #defines, which is useless. Nevertheless, we may not want to
24078# sort them, since we want the *last* AC-DEFINE to be honored.
24079uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24080sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24081rm -f confdef2sed.sed
24082
24083# This sed command replaces #undef with comments. This is necessary, for
24084# example, in the case of _POSIX_SOURCE, which is predefined and required
24085# on some systems where configure will not decide to define it.
24086cat >>conftest.undefs <<\_ACEOF
24087s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24088_ACEOF
24089
24090# Break up conftest.defines because some shells have a limit on the size
24091# of here documents, and old seds have small limits too (100 cmds).
24092echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024093echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024094echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24095echo ' :' >>$CONFIG_STATUS
24096rm -f conftest.tail
24097while grep . conftest.defines >/dev/null
24098do
24099 # Write a limited-size here document to $tmp/defines.sed.
24100 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24101 # Speed up: don't consider the non `#define' lines.
24102 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24103 # Work around the forget-to-reset-the-flag bug.
24104 echo 't clr' >>$CONFIG_STATUS
24105 echo ': clr' >>$CONFIG_STATUS
24106 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24107 echo 'CEOF
24108 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24109 rm -f $tmp/in
24110 mv $tmp/out $tmp/in
24111' >>$CONFIG_STATUS
24112 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24113 rm -f conftest.defines
24114 mv conftest.tail conftest.defines
24115done
24116rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024117echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024118echo >>$CONFIG_STATUS
24119
24120# Break up conftest.undefs because some shells have a limit on the size
24121# of here documents, and old seds have small limits too (100 cmds).
24122echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24123rm -f conftest.tail
24124while grep . conftest.undefs >/dev/null
24125do
24126 # Write a limited-size here document to $tmp/undefs.sed.
24127 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24128 # Speed up: don't consider the non `#undef'
24129 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24130 # Work around the forget-to-reset-the-flag bug.
24131 echo 't clr' >>$CONFIG_STATUS
24132 echo ': clr' >>$CONFIG_STATUS
24133 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24134 echo 'CEOF
24135 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24136 rm -f $tmp/in
24137 mv $tmp/out $tmp/in
24138' >>$CONFIG_STATUS
24139 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24140 rm -f conftest.undefs
24141 mv conftest.tail conftest.undefs
24142done
24143rm -f conftest.undefs
24144
24145cat >>$CONFIG_STATUS <<\_ACEOF
24146 # Let's still pretend it is `configure' which instantiates (i.e., don't
24147 # use $as_me), people would be surprised to read:
24148 # /* config.h. Generated by config.status. */
24149 if test x"$ac_file" = x-; then
24150 echo "/* Generated by configure. */" >$tmp/config.h
24151 else
24152 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24153 fi
24154 cat $tmp/in >>$tmp/config.h
24155 rm -f $tmp/in
24156 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024157 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024158 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24159echo "$as_me: $ac_file is unchanged" >&6;}
24160 else
24161 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24162$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24163 X"$ac_file" : 'X\(//\)[^/]' \| \
24164 X"$ac_file" : 'X\(//\)$' \| \
24165 X"$ac_file" : 'X\(/\)' \| \
24166 . : '\(.\)' 2>/dev/null ||
24167echo X"$ac_file" |
24168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24170 /^X\(\/\/\)$/{ s//\1/; q; }
24171 /^X\(\/\).*/{ s//\1/; q; }
24172 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024173 { if $as_mkdir_p; then
24174 mkdir -p "$ac_dir"
24175 else
24176 as_dir="$ac_dir"
24177 as_dirs=
24178 while test ! -d "$as_dir"; do
24179 as_dirs="$as_dir $as_dirs"
24180 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24181$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182 X"$as_dir" : 'X\(//\)[^/]' \| \
24183 X"$as_dir" : 'X\(//\)$' \| \
24184 X"$as_dir" : 'X\(/\)' \| \
24185 . : '\(.\)' 2>/dev/null ||
24186echo X"$as_dir" |
24187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24189 /^X\(\/\/\)$/{ s//\1/; q; }
24190 /^X\(\/\).*/{ s//\1/; q; }
24191 s/.*/./; q'`
24192 done
24193 test ! -n "$as_dirs" || mkdir $as_dirs
24194 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24195echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24196 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024197
24198 rm -f $ac_file
24199 mv $tmp/config.h $ac_file
24200 fi
24201 else
24202 cat $tmp/config.h
24203 rm -f $tmp/config.h
24204 fi
24205done
24206_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024207cat >>$CONFIG_STATUS <<\_ACEOF
24208
24209#
24210# CONFIG_COMMANDS section.
24211#
24212for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24213 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24214 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24215 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24216$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24217 X"$ac_dest" : 'X\(//\)[^/]' \| \
24218 X"$ac_dest" : 'X\(//\)$' \| \
24219 X"$ac_dest" : 'X\(/\)' \| \
24220 . : '\(.\)' 2>/dev/null ||
24221echo X"$ac_dest" |
24222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24224 /^X\(\/\/\)$/{ s//\1/; q; }
24225 /^X\(\/\).*/{ s//\1/; q; }
24226 s/.*/./; q'`
24227 ac_builddir=.
24228
24229if test "$ac_dir" != .; then
24230 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24231 # A "../" for each directory in $ac_dir_suffix.
24232 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24233else
24234 ac_dir_suffix= ac_top_builddir=
24235fi
24236
24237case $srcdir in
24238 .) # No --srcdir option. We are building in place.
24239 ac_srcdir=.
24240 if test -z "$ac_top_builddir"; then
24241 ac_top_srcdir=.
24242 else
24243 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24244 fi ;;
24245 [\\/]* | ?:[\\/]* ) # Absolute path.
24246 ac_srcdir=$srcdir$ac_dir_suffix;
24247 ac_top_srcdir=$srcdir ;;
24248 *) # Relative path.
24249 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24250 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24251esac
24252# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24253# absolute.
24254ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024255ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024256ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24257ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24258
24259
24260 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24261echo "$as_me: executing $ac_dest commands" >&6;}
24262 case $ac_dest in
24263 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24264 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24265 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24266 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24267 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24268 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24269 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24270 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24271 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24272 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24273 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24274 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24275 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24276 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24277 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24278 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24279 lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024280 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24281 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24282 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24283 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24284 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24285 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24286 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24287 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24288 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24289 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24290 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24291 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24292 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24293 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24294 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24295 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24296 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24297 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24298 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24299 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24300 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024301 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24302 runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024303 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24304 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24305 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24306 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024307 runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024308 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024309 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24310 runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024311 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24312 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24313 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24314 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24315 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24316 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24317 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24318 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24319 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24320 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24321 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24322 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24323 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24324 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24325 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24326 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24327 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24328 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24329 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24330 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24331 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24332 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024333 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024334 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 ;;
24335 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 ;;
24336 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 ;;
24337 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 ;;
24338 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 ;;
24339 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 ;;
24340 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 ;;
24341 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 ;;
24342 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 ;;
24343 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 ;;
24344 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 ;;
24345 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 ;;
24346 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 ;;
24347 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 ;;
24348 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 ;;
24349 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24350 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24351 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24352 test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
24353 test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
24354 test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
24355 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 ;;
24356 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 ;;
24357 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 ;;
24358 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 ;;
24359 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 ;;
24360 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 ;;
24361 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 ;;
24362 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 ;;
24363 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 ;;
24364 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 ;;
24365 test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
24366 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 ;;
24367 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 ;;
24368 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 ;;
24369 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 ;;
24370 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 ;;
24371 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 ;;
24372 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 ;;
24373 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 ;;
24374 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 ;;
24375 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 ;;
24376 test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
24377 test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
24378 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 ;;
24379 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 ;;
24380 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 ;;
24381 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 ;;
24382 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 ;;
24383 test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
24384 test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
24385 test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
24386 test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
24387 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24388 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24389 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24390 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 ;;
24391 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024392 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24393 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24394 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024395 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24396 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24397 test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24398 test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24399 test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24400 test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024401 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024402 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24403 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24404 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24405 tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24406 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24407 tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24408 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24409 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24410 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24411 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24412 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24413 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24414 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24415 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24416 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24417 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24418 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24419 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24420 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24421 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24422 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24423 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24424 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24425 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24426 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24427 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24428 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24429 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24430 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24431 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24432 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24433 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24434 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24435 esac
24436done
24437_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024438
24439cat >>$CONFIG_STATUS <<\_ACEOF
24440
24441{ (exit 0); exit 0; }
24442_ACEOF
24443chmod +x $CONFIG_STATUS
24444ac_clean_files=$ac_clean_files_save
24445
24446
24447# configure is writing to config.log, and then calls config.status.
24448# config.status does its own redirection, appending to config.log.
24449# Unfortunately, on DOS this fails, as config.log is still kept open
24450# by configure, so config.status won't be able to write to it; its
24451# output is simply discarded. So we exec the FD to /dev/null,
24452# effectively closing config.log, so it can be properly (re)opened and
24453# appended to by config.status. When coming back to configure, we
24454# need to make the FD available again.
24455if test "$no_create" != yes; then
24456 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024457 ac_config_status_args=
24458 test "$silent" = yes &&
24459 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024460 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024462 exec 5>>config.log
24463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24464 # would make configure fail if this is the last instruction.
24465 $ac_cs_success || { (exit 1); exit 1; }
24466fi
24467