blob: 878218480944d6e81cbed6a3b639e976e38be6f3 [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 Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/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/libmalloc/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/libucb/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/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.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/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
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/TEST.aa.report"
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/TEST.example.Makefile"
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.nightly.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.buildrepo.Makefile"
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.jit.Makefile"
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.nightly.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.dsgraph.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.jit.report"
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.typesafe.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.dsgraph.gnuplot"
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.micro.Makefile"
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/External/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/External/SPEC/Makefile"
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/External/SPEC/CFP2000/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/External/SPEC/CFP2000/179.art/Makefile"
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/External/SPEC/CFP2000/183.equake/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/SPEC/CFP2000/188.ammp/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/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/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/CINT2000/176.gcc/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/CINT2000/181.mcf/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/CINT2000/186.crafty/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/197.parser/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/254.gap/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/255.vortex/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/256.bzip2/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/300.twolf/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/LLVMSource/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/MultiSource/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/MultiSource/Makefile.multisrc"
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/MultiSource/Burg/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/MultiSource/Fhourstones/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/MultiSource/McCat/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/MultiSource/McCat/01-qbsort/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/McCat/03-testtrie/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/McCat/04-bisect/Makefile"
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/McCat/05-eks/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/McCat/08-main/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/09-vor/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/12-IOtest/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/15-trie/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/17-bintr/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/18-imp/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/Olden/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/Olden/bh/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/Olden/bisort/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/Olden/em3d/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/Olden/health/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/Olden/mst/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/perimeter/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/power/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/treeadd/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/tsp/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/voronoi/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/OptimizerEval/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/Ptrdist/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/Ptrdist/anagram/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/Ptrdist/bc/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/Ptrdist/ft/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/Ptrdist/ks/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/Ptrdist/yacr2/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/aha/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/llubenchmark/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/sgefa/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/sim/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/NoSource/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/NoSource/Flex/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/NoSource/Larn/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/NoSource/Moria-5.5.2/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/NoSource/Povray31/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/NoSource/m4/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/SingleSource/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/SingleSource/Makefile.singlesrc"
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/SingleSource/CustomChecked/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/SingleSource/Shootout/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/SingleSource/Stanford/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/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell0c38eaf2003-09-10 15:17:25 +00001904 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell0c38eaf2003-09-10 15:17:25 +00001907 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell0c38eaf2003-09-10 15:17:25 +00001910 ac_config_commands="$ac_config_commands tools/as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell0c38eaf2003-09-10 15:17:25 +00001913 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswell0c38eaf2003-09-10 15:17:25 +00001916 ac_config_commands="$ac_config_commands tools/dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswell0c38eaf2003-09-10 15:17:25 +00001919 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswell0c38eaf2003-09-10 15:17:25 +00001922 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell0c38eaf2003-09-10 15:17:25 +00001925 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell0c38eaf2003-09-10 15:17:25 +00001928 ac_config_commands="$ac_config_commands tools/link/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell0c38eaf2003-09-10 15:17:25 +00001931 ac_config_commands="$ac_config_commands tools/llc/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/lli/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/opt/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/llee/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/llvm-as/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/llvm-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 utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell0c38eaf2003-09-10 15:17:25 +00001952 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001953
1954
John Criswell0c38eaf2003-09-10 15:17:25 +00001955 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001956
1957
John Criswell0c38eaf2003-09-10 15:17:25 +00001958 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell0c38eaf2003-09-10 15:17:25 +00001961 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0c38eaf2003-09-10 15:17:25 +00001970 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell0c38eaf2003-09-10 15:17:25 +00001973 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell0c38eaf2003-09-10 15:17:25 +00001976 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell0c38eaf2003-09-10 15:17:25 +00001979 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell0c38eaf2003-09-10 15:17:25 +00001982 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/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/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell392aaa32003-07-22 19:18:09 +00002000
2001
John Criswell7a73b802003-06-30 21:59:07 +00002002# Find a good install program. We prefer a C program (faster),
2003# so one script is as good as another. But avoid the broken or
2004# incompatible versions:
2005# SysV /etc/install, /usr/sbin/install
2006# SunOS /usr/etc/install
2007# IRIX /sbin/install
2008# AIX /bin/install
2009# AmigaOS /C/install, which installs bootblocks on floppy discs
2010# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2011# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2012# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2013# ./install, which can be erroneously created by make from ./install.sh.
2014echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2015echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2016if test -z "$INSTALL"; then
2017if test "${ac_cv_path_install+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 # Account for people who put trailing slashes in PATH elements.
2026case $as_dir/ in
2027 ./ | .// | /cC/* | \
2028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2029 /usr/ucb/* ) ;;
2030 *)
2031 # OSF1 and SCO ODT 3.0 have their own names for install.
2032 # Don't use installbsd from OSF since it installs stuff as root
2033 # by default.
2034 for ac_prog in ginstall scoinst install; do
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2037 if test $ac_prog = install &&
2038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2039 # AIX install. It has an incompatible calling convention.
2040 :
2041 elif test $ac_prog = install &&
2042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043 # program-specific install script used by HP pwplus--don't use.
2044 :
2045 else
2046 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2047 break 3
2048 fi
2049 fi
2050 done
2051 done
2052 ;;
2053esac
2054done
2055
2056
2057fi
2058 if test "${ac_cv_path_install+set}" = set; then
2059 INSTALL=$ac_cv_path_install
2060 else
2061 # As a last resort, use the slow shell script. We don't cache a
2062 # path for INSTALL within a source directory, because that will
2063 # break other packages using the cache if that directory is
2064 # removed, or if the path is relative.
2065 INSTALL=$ac_install_sh
2066 fi
2067fi
2068echo "$as_me:$LINENO: result: $INSTALL" >&5
2069echo "${ECHO_T}$INSTALL" >&6
2070
2071# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2072# It thinks the first close brace ends the variable substitution.
2073test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2074
2075test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2076
2077test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2078
2079
2080# Make sure we can run config.sub.
2081$ac_config_sub sun4 >/dev/null 2>&1 ||
2082 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2083echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2084 { (exit 1); exit 1; }; }
2085
2086echo "$as_me:$LINENO: checking build system type" >&5
2087echo $ECHO_N "checking build system type... $ECHO_C" >&6
2088if test "${ac_cv_build+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091 ac_cv_build_alias=$build_alias
2092test -z "$ac_cv_build_alias" &&
2093 ac_cv_build_alias=`$ac_config_guess`
2094test -z "$ac_cv_build_alias" &&
2095 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2096echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2097 { (exit 1); exit 1; }; }
2098ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2099 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2100echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2101 { (exit 1); exit 1; }; }
2102
2103fi
2104echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2105echo "${ECHO_T}$ac_cv_build" >&6
2106build=$ac_cv_build
2107build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2108build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2109build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2110
2111
2112echo "$as_me:$LINENO: checking host system type" >&5
2113echo $ECHO_N "checking host system type... $ECHO_C" >&6
2114if test "${ac_cv_host+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117 ac_cv_host_alias=$host_alias
2118test -z "$ac_cv_host_alias" &&
2119 ac_cv_host_alias=$ac_cv_build_alias
2120ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2121 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2122echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2123 { (exit 1); exit 1; }; }
2124
2125fi
2126echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2127echo "${ECHO_T}$ac_cv_host" >&6
2128host=$ac_cv_host
2129host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2130host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2131host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2132
2133
2134echo "$as_me:$LINENO: checking target system type" >&5
2135echo $ECHO_N "checking target system type... $ECHO_C" >&6
2136if test "${ac_cv_target+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
2139 ac_cv_target_alias=$target_alias
2140test "x$ac_cv_target_alias" = "x" &&
2141 ac_cv_target_alias=$ac_cv_host_alias
2142ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2143 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2144echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2146
2147fi
2148echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2149echo "${ECHO_T}$ac_cv_target" >&6
2150target=$ac_cv_target
2151target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2152target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2153target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2154
2155
2156# The aliases save the names the user supplied, while $host etc.
2157# will get canonicalized.
2158test -n "$target_alias" &&
2159 test "$program_prefix$program_suffix$program_transform_name" = \
2160 NONENONEs,x,x, &&
2161 program_prefix=${target_alias}-
2162
2163case $build in
2164 *i*86*) OS=Linux
2165
John Criswellf02dbf02003-07-22 20:07:49 +00002166 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002167
2168 ;;
2169
2170 *sparc*) OS=SunOS
2171
2172 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2173
2174 ;;
2175
2176 *) OS=Unknown
2177
2178 ;;
2179esac
2180
2181case $target in
2182 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2183
2184 ;;
2185esac
2186
John Criswell76595452003-07-01 22:07:39 +00002187case $target in
2188 *i*86*) ARCH=x86
2189
2190 ;;
2191 *sparc*solaris*) ARCH=Sparc
2192
2193 ;;
2194esac
2195
John Criswell7a73b802003-06-30 21:59:07 +00002196
2197ac_ext=cc
2198ac_cpp='$CXXCPP $CPPFLAGS'
2199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2202if test -n "$ac_tool_prefix"; then
2203 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2204 do
2205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2207echo "$as_me:$LINENO: checking for $ac_word" >&5
2208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209if test "${ac_cv_prog_CXX+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 if test -n "$CXX"; then
2213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2214else
2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2225 fi
2226done
2227done
2228
2229fi
2230fi
2231CXX=$ac_cv_prog_CXX
2232if test -n "$CXX"; then
2233 echo "$as_me:$LINENO: result: $CXX" >&5
2234echo "${ECHO_T}$CXX" >&6
2235else
2236 echo "$as_me:$LINENO: result: no" >&5
2237echo "${ECHO_T}no" >&6
2238fi
2239
2240 test -n "$CXX" && break
2241 done
2242fi
2243if test -z "$CXX"; then
2244 ac_ct_CXX=$CXX
2245 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2246do
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248set dummy $ac_prog; ac_word=$2
2249echo "$as_me:$LINENO: checking for $ac_word" >&5
2250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 if test -n "$ac_ct_CXX"; then
2255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 ac_cv_prog_ac_ct_CXX="$ac_prog"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268done
2269done
2270
2271fi
2272fi
2273ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2274if test -n "$ac_ct_CXX"; then
2275 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2276echo "${ECHO_T}$ac_ct_CXX" >&6
2277else
2278 echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6
2280fi
2281
2282 test -n "$ac_ct_CXX" && break
2283done
2284test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2285
2286 CXX=$ac_ct_CXX
2287fi
2288
2289
2290# Provide some information about the compiler.
2291echo "$as_me:$LINENO:" \
2292 "checking for C++ compiler version" >&5
2293ac_compiler=`set X $ac_compile; echo $2`
2294{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2295 (eval $ac_compiler --version </dev/null >&5) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }
2299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2300 (eval $ac_compiler -v </dev/null >&5) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }
2304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2305 (eval $ac_compiler -V </dev/null >&5) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }
2309
2310cat >conftest.$ac_ext <<_ACEOF
2311#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002312/* confdefs.h. */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002317
John Criswell7a73b802003-06-30 21:59:07 +00002318int
2319main ()
2320{
2321
2322 ;
2323 return 0;
2324}
2325_ACEOF
2326ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002327ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002328# Try to create an executable without -o first, disregard a.out.
2329# It will help us diagnose broken compilers, and finding out an intuition
2330# of exeext.
2331echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2332echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2333ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2335 (eval $ac_link_default) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; then
2339 # Find the output, starting from the most likely. This scheme is
2340# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2341# resort.
2342
2343# Be careful to initialize this variable, since it used to be cached.
2344# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2345ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002346# b.out is created by i960 compilers.
2347for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2348do
2349 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002350 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2352 ;;
2353 conftest.$ac_ext )
2354 # This is the source file.
2355 ;;
2356 [ab].out )
2357 # We found the default executable, but exeext='' is most
2358 # certainly right.
2359 break;;
2360 *.* )
2361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362 # FIXME: I believe we export ac_cv_exeext for Libtool,
2363 # but it would be cool to find out if it's true. Does anybody
2364 # maintain Libtool? --akim.
2365 export ac_cv_exeext
2366 break;;
2367 * )
2368 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002369 esac
2370done
2371else
2372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2376See \`config.log' for more details." >&5
2377echo "$as_me: error: C++ compiler cannot create executables
2378See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002379 { (exit 77); exit 77; }; }
2380fi
2381
2382ac_exeext=$ac_cv_exeext
2383echo "$as_me:$LINENO: result: $ac_file" >&5
2384echo "${ECHO_T}$ac_file" >&6
2385
2386# Check the compiler produces executables we can run. If not, either
2387# the compiler is broken, or we cross compile.
2388echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2389echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2390# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2391# If not cross compiling, check that we can run a simple program.
2392if test "$cross_compiling" != yes; then
2393 if { ac_try='./$ac_file'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 cross_compiling=no
2400 else
2401 if test "$cross_compiling" = maybe; then
2402 cross_compiling=yes
2403 else
2404 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002405If you meant to cross compile, use \`--host'.
2406See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002407echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002408If you meant to cross compile, use \`--host'.
2409See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002410 { (exit 1); exit 1; }; }
2411 fi
2412 fi
2413fi
2414echo "$as_me:$LINENO: result: yes" >&5
2415echo "${ECHO_T}yes" >&6
2416
John Criswell0c38eaf2003-09-10 15:17:25 +00002417rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002418ac_clean_files=$ac_clean_files_save
2419# Check the compiler produces executables we can run. If not, either
2420# the compiler is broken, or we cross compile.
2421echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2423echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424echo "${ECHO_T}$cross_compiling" >&6
2425
2426echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429 (eval $ac_link) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2435# work properly (i.e., refer to `conftest.exe'), while it won't with
2436# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002437for ac_file in conftest.exe conftest conftest.*; do
2438 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002439 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442 export ac_cv_exeext
2443 break;;
2444 * ) break;;
2445 esac
2446done
2447else
John Criswell0c38eaf2003-09-10 15:17:25 +00002448 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2449See \`config.log' for more details." >&5
2450echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2451See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002452 { (exit 1); exit 1; }; }
2453fi
2454
2455rm -f conftest$ac_cv_exeext
2456echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2457echo "${ECHO_T}$ac_cv_exeext" >&6
2458
2459rm -f conftest.$ac_ext
2460EXEEXT=$ac_cv_exeext
2461ac_exeext=$EXEEXT
2462echo "$as_me:$LINENO: checking for suffix of object files" >&5
2463echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2464if test "${ac_cv_objext+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467 cat >conftest.$ac_ext <<_ACEOF
2468#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002469/* confdefs.h. */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002474
John Criswell7a73b802003-06-30 21:59:07 +00002475int
2476main ()
2477{
2478
2479 ;
2480 return 0;
2481}
2482_ACEOF
2483rm -f conftest.o conftest.obj
2484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485 (eval $ac_compile) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; then
2489 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2490 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2493 break;;
2494 esac
2495done
2496else
2497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2501See \`config.log' for more details." >&5
2502echo "$as_me: error: cannot compute suffix of object files: cannot compile
2503See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002504 { (exit 1); exit 1; }; }
2505fi
2506
2507rm -f conftest.$ac_cv_objext conftest.$ac_ext
2508fi
2509echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2510echo "${ECHO_T}$ac_cv_objext" >&6
2511OBJEXT=$ac_cv_objext
2512ac_objext=$OBJEXT
2513echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2514echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2515if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518 cat >conftest.$ac_ext <<_ACEOF
2519#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002520/* confdefs.h. */
2521_ACEOF
2522cat confdefs.h >>conftest.$ac_ext
2523cat >>conftest.$ac_ext <<_ACEOF
2524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002525
John Criswell7a73b802003-06-30 21:59:07 +00002526int
2527main ()
2528{
2529#ifndef __GNUC__
2530 choke me
2531#endif
2532
2533 ;
2534 return 0;
2535}
2536_ACEOF
2537rm -f conftest.$ac_objext
2538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 ac_compiler_gnu=yes
2550else
2551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002552sed 's/^/| /' conftest.$ac_ext >&5
2553
John Criswell7a73b802003-06-30 21:59:07 +00002554ac_compiler_gnu=no
2555fi
2556rm -f conftest.$ac_objext conftest.$ac_ext
2557ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2558
2559fi
2560echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2561echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2562GXX=`test $ac_compiler_gnu = yes && echo yes`
2563ac_test_CXXFLAGS=${CXXFLAGS+set}
2564ac_save_CXXFLAGS=$CXXFLAGS
2565CXXFLAGS="-g"
2566echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2567echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2568if test "${ac_cv_prog_cxx_g+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571 cat >conftest.$ac_ext <<_ACEOF
2572#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002573/* confdefs.h. */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002578
John Criswell7a73b802003-06-30 21:59:07 +00002579int
2580main ()
2581{
2582
2583 ;
2584 return 0;
2585}
2586_ACEOF
2587rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 ac_cv_prog_cxx_g=yes
2600else
2601 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002602sed 's/^/| /' conftest.$ac_ext >&5
2603
John Criswell7a73b802003-06-30 21:59:07 +00002604ac_cv_prog_cxx_g=no
2605fi
2606rm -f conftest.$ac_objext conftest.$ac_ext
2607fi
2608echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2609echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2610if test "$ac_test_CXXFLAGS" = set; then
2611 CXXFLAGS=$ac_save_CXXFLAGS
2612elif test $ac_cv_prog_cxx_g = yes; then
2613 if test "$GXX" = yes; then
2614 CXXFLAGS="-g -O2"
2615 else
2616 CXXFLAGS="-g"
2617 fi
2618else
2619 if test "$GXX" = yes; then
2620 CXXFLAGS="-O2"
2621 else
2622 CXXFLAGS=
2623 fi
2624fi
2625for ac_declaration in \
2626 ''\
2627 '#include <stdlib.h>' \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2632 'void exit (int);'
2633do
2634 cat >conftest.$ac_ext <<_ACEOF
2635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002641#include <stdlib.h>
2642$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002643int
2644main ()
2645{
2646exit (42);
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 :
2664else
2665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002666sed 's/^/| /' conftest.$ac_ext >&5
2667
John Criswell7a73b802003-06-30 21:59:07 +00002668continue
2669fi
2670rm -f conftest.$ac_objext conftest.$ac_ext
2671 cat >conftest.$ac_ext <<_ACEOF
2672#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002678$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002679int
2680main ()
2681{
2682exit (42);
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687rm -f conftest.$ac_objext
2688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 break
2700else
2701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002702sed 's/^/| /' conftest.$ac_ext >&5
2703
John Criswell7a73b802003-06-30 21:59:07 +00002704fi
2705rm -f conftest.$ac_objext conftest.$ac_ext
2706done
2707rm -f conftest*
2708if test -n "$ac_declaration"; then
2709 echo '#ifdef __cplusplus' >>confdefs.h
2710 echo $ac_declaration >>confdefs.h
2711 echo '#endif' >>confdefs.h
2712fi
2713
2714ac_ext=c
2715ac_cpp='$CPP $CPPFLAGS'
2716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719
2720ac_ext=c
2721ac_cpp='$CPP $CPPFLAGS'
2722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725if test -n "$ac_tool_prefix"; then
2726 for ac_prog in gcc
2727 do
2728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730echo "$as_me:$LINENO: checking for $ac_word" >&5
2731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749done
2750done
2751
2752fi
2753fi
2754CC=$ac_cv_prog_CC
2755if test -n "$CC"; then
2756 echo "$as_me:$LINENO: result: $CC" >&5
2757echo "${ECHO_T}$CC" >&6
2758else
2759 echo "$as_me:$LINENO: result: no" >&5
2760echo "${ECHO_T}no" >&6
2761fi
2762
2763 test -n "$CC" && break
2764 done
2765fi
2766if test -z "$CC"; then
2767 ac_ct_CC=$CC
2768 for ac_prog in gcc
2769do
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771set dummy $ac_prog; ac_word=$2
2772echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$ac_ct_CC"; then
2778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_ac_ct_CC="$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793
2794fi
2795fi
2796ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797if test -n "$ac_ct_CC"; then
2798 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799echo "${ECHO_T}$ac_ct_CC" >&6
2800else
2801 echo "$as_me:$LINENO: result: no" >&5
2802echo "${ECHO_T}no" >&6
2803fi
2804
2805 test -n "$ac_ct_CC" && break
2806done
2807
2808 CC=$ac_ct_CC
2809fi
2810
2811
John Criswell0c38eaf2003-09-10 15:17:25 +00002812test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2813See \`config.log' for more details." >&5
2814echo "$as_me: error: no acceptable C compiler found in \$PATH
2815See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002816 { (exit 1); exit 1; }; }
2817
2818# Provide some information about the compiler.
2819echo "$as_me:$LINENO:" \
2820 "checking for C compiler version" >&5
2821ac_compiler=`set X $ac_compile; echo $2`
2822{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2823 (eval $ac_compiler --version </dev/null >&5) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2828 (eval $ac_compiler -v </dev/null >&5) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2833 (eval $ac_compiler -V </dev/null >&5) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }
2837
2838echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2839echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2840if test "${ac_cv_c_compiler_gnu+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 cat >conftest.$ac_ext <<_ACEOF
2844#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002845/* confdefs.h. */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002850
John Criswell7a73b802003-06-30 21:59:07 +00002851int
2852main ()
2853{
2854#ifndef __GNUC__
2855 choke me
2856#endif
2857
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862rm -f conftest.$ac_objext
2863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_compiler_gnu=yes
2875else
2876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002877sed 's/^/| /' conftest.$ac_ext >&5
2878
John Criswell7a73b802003-06-30 21:59:07 +00002879ac_compiler_gnu=no
2880fi
2881rm -f conftest.$ac_objext conftest.$ac_ext
2882ac_cv_c_compiler_gnu=$ac_compiler_gnu
2883
2884fi
2885echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2886echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2887GCC=`test $ac_compiler_gnu = yes && echo yes`
2888ac_test_CFLAGS=${CFLAGS+set}
2889ac_save_CFLAGS=$CFLAGS
2890CFLAGS="-g"
2891echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2892echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2893if test "${ac_cv_prog_cc_g+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895else
2896 cat >conftest.$ac_ext <<_ACEOF
2897#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002903
John Criswell7a73b802003-06-30 21:59:07 +00002904int
2905main ()
2906{
2907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext
2913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914 (eval $ac_compile) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -s conftest.$ac_objext'
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 (eval $ac_try) 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2924 ac_cv_prog_cc_g=yes
2925else
2926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002927sed 's/^/| /' conftest.$ac_ext >&5
2928
John Criswell7a73b802003-06-30 21:59:07 +00002929ac_cv_prog_cc_g=no
2930fi
2931rm -f conftest.$ac_objext conftest.$ac_ext
2932fi
2933echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2934echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2935if test "$ac_test_CFLAGS" = set; then
2936 CFLAGS=$ac_save_CFLAGS
2937elif test $ac_cv_prog_cc_g = yes; then
2938 if test "$GCC" = yes; then
2939 CFLAGS="-g -O2"
2940 else
2941 CFLAGS="-g"
2942 fi
2943else
2944 if test "$GCC" = yes; then
2945 CFLAGS="-O2"
2946 else
2947 CFLAGS=
2948 fi
2949fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002950echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2951echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2952if test "${ac_cv_prog_cc_stdc+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954else
2955 ac_cv_prog_cc_stdc=no
2956ac_save_CC=$CC
2957cat >conftest.$ac_ext <<_ACEOF
2958#line $LINENO "configure"
2959/* confdefs.h. */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h. */
2964#include <stdarg.h>
2965#include <stdio.h>
2966#include <sys/types.h>
2967#include <sys/stat.h>
2968/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2969struct buf { int x; };
2970FILE * (*rcsopen) (struct buf *, struct stat *, int);
2971static char *e (p, i)
2972 char **p;
2973 int i;
2974{
2975 return p[i];
2976}
2977static char *f (char * (*g) (char **, int), char **p, ...)
2978{
2979 char *s;
2980 va_list v;
2981 va_start (v,p);
2982 s = g (p, va_arg (v,int));
2983 va_end (v);
2984 return s;
2985}
2986int test (int i, double x);
2987struct s1 {int (*f) (int a);};
2988struct s2 {int (*f) (double a);};
2989int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2990int argc;
2991char **argv;
2992int
2993main ()
2994{
2995return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000# Don't try gcc -ansi; that turns off useful extensions and
3001# breaks some systems' header files.
3002# AIX -qlanglvl=ansi
3003# Ultrix and OSF/1 -std1
3004# HP-UX 10.20 and later -Ae
3005# HP-UX older versions -Aa -D_HPUX_SOURCE
3006# SVR4 -Xc -D__EXTENSIONS__
3007for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3008do
3009 CC="$ac_save_CC $ac_arg"
3010 rm -f conftest.$ac_objext
3011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012 (eval $ac_compile) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -s conftest.$ac_objext'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 (eval $ac_try) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3022 ac_cv_prog_cc_stdc=$ac_arg
3023break
3024else
3025 echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
3028fi
3029rm -f conftest.$ac_objext
3030done
3031rm -f conftest.$ac_ext conftest.$ac_objext
3032CC=$ac_save_CC
3033
3034fi
3035
3036case "x$ac_cv_prog_cc_stdc" in
3037 x|xno)
3038 echo "$as_me:$LINENO: result: none needed" >&5
3039echo "${ECHO_T}none needed" >&6 ;;
3040 *)
3041 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3042echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3043 CC="$CC $ac_cv_prog_cc_stdc" ;;
3044esac
3045
John Criswell7a73b802003-06-30 21:59:07 +00003046# Some people use a C++ compiler to compile C. Since we use `exit',
3047# in C++ we need to declare it. In case someone uses the same compiler
3048# for both compiling C and C++ we need to have the C++ compiler decide
3049# the declaration of exit, since it's the most demanding environment.
3050cat >conftest.$ac_ext <<_ACEOF
3051#ifndef __cplusplus
3052 choke me
3053#endif
3054_ACEOF
3055rm -f conftest.$ac_objext
3056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 (eval $ac_try) 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3067 for ac_declaration in \
3068 ''\
3069 '#include <stdlib.h>' \
3070 'extern "C" void std::exit (int) throw (); using std::exit;' \
3071 'extern "C" void std::exit (int); using std::exit;' \
3072 'extern "C" void exit (int) throw ();' \
3073 'extern "C" void exit (int);' \
3074 'void exit (int);'
3075do
3076 cat >conftest.$ac_ext <<_ACEOF
3077#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003083#include <stdlib.h>
3084$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003085int
3086main ()
3087{
3088exit (42);
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext
3094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095 (eval $ac_compile) 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 :
3106else
3107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003108sed 's/^/| /' conftest.$ac_ext >&5
3109
John Criswell7a73b802003-06-30 21:59:07 +00003110continue
3111fi
3112rm -f conftest.$ac_objext conftest.$ac_ext
3113 cat >conftest.$ac_ext <<_ACEOF
3114#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003120$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003121int
3122main ()
3123{
3124exit (42);
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 break
3142else
3143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003144sed 's/^/| /' conftest.$ac_ext >&5
3145
John Criswell7a73b802003-06-30 21:59:07 +00003146fi
3147rm -f conftest.$ac_objext conftest.$ac_ext
3148done
3149rm -f conftest*
3150if test -n "$ac_declaration"; then
3151 echo '#ifdef __cplusplus' >>confdefs.h
3152 echo $ac_declaration >>confdefs.h
3153 echo '#endif' >>confdefs.h
3154fi
3155
3156else
3157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003158sed 's/^/| /' conftest.$ac_ext >&5
3159
John Criswell7a73b802003-06-30 21:59:07 +00003160fi
3161rm -f conftest.$ac_objext conftest.$ac_ext
3162ac_ext=c
3163ac_cpp='$CPP $CPPFLAGS'
3164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167
3168ac_ext=c
3169ac_cpp='$CPP $CPPFLAGS'
3170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3174echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3175# On Suns, sometimes $CPP names a directory.
3176if test -n "$CPP" && test -d "$CPP"; then
3177 CPP=
3178fi
3179if test -z "$CPP"; then
3180 if test "${ac_cv_prog_CPP+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182else
3183 # Double quotes because CPP needs to be expanded
3184 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3185 do
3186 ac_preproc_ok=false
3187for ac_c_preproc_warn_flag in '' yes
3188do
3189 # Use a header file that comes with gcc, so configuring glibc
3190 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3192 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003193 # On the NeXT, cc -E runs the code through the compiler's parser,
3194 # not just through cpp. "Syntax error" is here to catch this case.
3195 cat >conftest.$ac_ext <<_ACEOF
3196#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
3202#ifdef __STDC__
3203# include <limits.h>
3204#else
3205# include <assert.h>
3206#endif
John Criswell7a73b802003-06-30 21:59:07 +00003207 Syntax error
3208_ACEOF
3209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3211 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003212 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } >/dev/null; then
3217 if test -s conftest.err; then
3218 ac_cpp_err=$ac_c_preproc_warn_flag
3219 else
3220 ac_cpp_err=
3221 fi
3222else
3223 ac_cpp_err=yes
3224fi
3225if test -z "$ac_cpp_err"; then
3226 :
3227else
3228 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003229sed 's/^/| /' conftest.$ac_ext >&5
3230
John Criswell7a73b802003-06-30 21:59:07 +00003231 # Broken: fails on valid input.
3232continue
3233fi
3234rm -f conftest.err conftest.$ac_ext
3235
3236 # OK, works on sane cases. Now check whether non-existent headers
3237 # can be detected and how.
3238 cat >conftest.$ac_ext <<_ACEOF
3239#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003245#include <ac_nonexistent.h>
3246_ACEOF
3247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3249 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003250 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null; then
3255 if test -s conftest.err; then
3256 ac_cpp_err=$ac_c_preproc_warn_flag
3257 else
3258 ac_cpp_err=
3259 fi
3260else
3261 ac_cpp_err=yes
3262fi
3263if test -z "$ac_cpp_err"; then
3264 # Broken: success on invalid input.
3265continue
3266else
3267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003268sed 's/^/| /' conftest.$ac_ext >&5
3269
John Criswell7a73b802003-06-30 21:59:07 +00003270 # Passes both tests.
3271ac_preproc_ok=:
3272break
3273fi
3274rm -f conftest.err conftest.$ac_ext
3275
3276done
3277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3278rm -f conftest.err conftest.$ac_ext
3279if $ac_preproc_ok; then
3280 break
3281fi
3282
3283 done
3284 ac_cv_prog_CPP=$CPP
3285
3286fi
3287 CPP=$ac_cv_prog_CPP
3288else
3289 ac_cv_prog_CPP=$CPP
3290fi
3291echo "$as_me:$LINENO: result: $CPP" >&5
3292echo "${ECHO_T}$CPP" >&6
3293ac_preproc_ok=false
3294for ac_c_preproc_warn_flag in '' yes
3295do
3296 # Use a header file that comes with gcc, so configuring glibc
3297 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3299 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003300 # On the NeXT, cc -E runs the code through the compiler's parser,
3301 # not just through cpp. "Syntax error" is here to catch this case.
3302 cat >conftest.$ac_ext <<_ACEOF
3303#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309#ifdef __STDC__
3310# include <limits.h>
3311#else
3312# include <assert.h>
3313#endif
John Criswell7a73b802003-06-30 21:59:07 +00003314 Syntax error
3315_ACEOF
3316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3318 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003319 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null; then
3324 if test -s conftest.err; then
3325 ac_cpp_err=$ac_c_preproc_warn_flag
3326 else
3327 ac_cpp_err=
3328 fi
3329else
3330 ac_cpp_err=yes
3331fi
3332if test -z "$ac_cpp_err"; then
3333 :
3334else
3335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003336sed 's/^/| /' conftest.$ac_ext >&5
3337
John Criswell7a73b802003-06-30 21:59:07 +00003338 # Broken: fails on valid input.
3339continue
3340fi
3341rm -f conftest.err conftest.$ac_ext
3342
3343 # OK, works on sane cases. Now check whether non-existent headers
3344 # can be detected and how.
3345 cat >conftest.$ac_ext <<_ACEOF
3346#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003347/* confdefs.h. */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
3351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003352#include <ac_nonexistent.h>
3353_ACEOF
3354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3356 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003357 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 else
3365 ac_cpp_err=
3366 fi
3367else
3368 ac_cpp_err=yes
3369fi
3370if test -z "$ac_cpp_err"; then
3371 # Broken: success on invalid input.
3372continue
3373else
3374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003375sed 's/^/| /' conftest.$ac_ext >&5
3376
John Criswell7a73b802003-06-30 21:59:07 +00003377 # Passes both tests.
3378ac_preproc_ok=:
3379break
3380fi
3381rm -f conftest.err conftest.$ac_ext
3382
3383done
3384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3385rm -f conftest.err conftest.$ac_ext
3386if $ac_preproc_ok; then
3387 :
3388else
John Criswell0c38eaf2003-09-10 15:17:25 +00003389 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3390See \`config.log' for more details." >&5
3391echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3392See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003393 { (exit 1); exit 1; }; }
3394fi
3395
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402
3403if test "$GCC" != "yes"
3404then
3405 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3406echo "$as_me: error: gcc required but not found" >&2;}
3407 { (exit 1); exit 1; }; }
3408fi
3409
3410if test "$GXX" != "yes"
3411then
3412 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3413echo "$as_me: error: g++ required but not found" >&2;}
3414 { (exit 1); exit 1; }; }
3415fi
3416
John Criswellde00db22003-08-25 16:49:54 +00003417gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3418if test "$gccmajor" -lt "3"
3419then
3420 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3421echo "$as_me: error: gcc 3.x required" >&2;}
3422 { (exit 1); exit 1; }; }
3423fi
3424
John Criswell7a73b802003-06-30 21:59:07 +00003425 echo "$as_me:$LINENO: checking for GNU make" >&5
3426echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3427if test "${_cv_gnu_make_command+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 _cv_gnu_make_command='' ;
3431 for a in "$MAKE" make gmake gnumake ; do
3432 if test -z "$a" ; then continue ; fi ;
3433 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3434 _cv_gnu_make_command=$a ;
3435 break;
3436 fi
3437 done ;
3438
3439fi
3440echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3441echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3442 if test "x$_cv_gnu_make_command" != "x" ; then
3443 ifGNUmake='' ;
3444 else
3445 ifGNUmake='#' ;
3446 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3447echo "${ECHO_T}\"Not found\"" >&6;
3448 fi
3449
3450
3451if test -z "$_cv_gnu_make_command"
3452then
3453 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3454echo "$as_me: error: GNU Make required but not found" >&2;}
3455 { (exit 1); exit 1; }; }
3456fi
3457
3458
3459echo "$as_me:$LINENO: checking " >&5
3460echo $ECHO_N "checking ... $ECHO_C" >&6
3461if test "${ac_cv_has_flex+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 for ac_prog in flex lex
3465do
3466 # Extract the first word of "$ac_prog", so it can be a program name with args.
3467set dummy $ac_prog; ac_word=$2
3468echo "$as_me:$LINENO: checking for $ac_word" >&5
3469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470if test "${ac_cv_prog_LEX+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473 if test -n "$LEX"; then
3474 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3475else
3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477for as_dir in $PATH
3478do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_LEX="$ac_prog"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487done
3488done
3489
3490fi
3491fi
3492LEX=$ac_cv_prog_LEX
3493if test -n "$LEX"; then
3494 echo "$as_me:$LINENO: result: $LEX" >&5
3495echo "${ECHO_T}$LEX" >&6
3496else
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
3499fi
3500
3501 test -n "$LEX" && break
3502done
3503test -n "$LEX" || LEX=":"
3504
3505if test -z "$LEXLIB"
3506then
3507 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3508echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3509if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 ac_check_lib_save_LIBS=$LIBS
3513LIBS="-lfl $LIBS"
3514cat >conftest.$ac_ext <<_ACEOF
3515#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003521
3522/* Override any gcc2 internal prototype to avoid an error. */
3523#ifdef __cplusplus
3524extern "C"
3525#endif
3526/* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3528char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003529int
3530main ()
3531{
3532yywrap ();
3533 ;
3534 return 0;
3535}
3536_ACEOF
3537rm -f conftest.$ac_objext conftest$ac_exeext
3538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -s conftest$ac_exeext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 ac_cv_lib_fl_yywrap=yes
3550else
3551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003552sed 's/^/| /' conftest.$ac_ext >&5
3553
John Criswell7a73b802003-06-30 21:59:07 +00003554ac_cv_lib_fl_yywrap=no
3555fi
3556rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3557LIBS=$ac_check_lib_save_LIBS
3558fi
3559echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3560echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3561if test $ac_cv_lib_fl_yywrap = yes; then
3562 LEXLIB="-lfl"
3563else
3564 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3565echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3566if test "${ac_cv_lib_l_yywrap+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 ac_check_lib_save_LIBS=$LIBS
3570LIBS="-ll $LIBS"
3571cat >conftest.$ac_ext <<_ACEOF
3572#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003578
3579/* Override any gcc2 internal prototype to avoid an error. */
3580#ifdef __cplusplus
3581extern "C"
3582#endif
3583/* We use char because int might match the return type of a gcc2
3584 builtin and then its argument prototype would still apply. */
3585char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003586int
3587main ()
3588{
3589yywrap ();
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594rm -f conftest.$ac_objext conftest$ac_exeext
3595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596 (eval $ac_link) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -s conftest$ac_exeext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_lib_l_yywrap=yes
3607else
3608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003609sed 's/^/| /' conftest.$ac_ext >&5
3610
John Criswell7a73b802003-06-30 21:59:07 +00003611ac_cv_lib_l_yywrap=no
3612fi
3613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3614LIBS=$ac_check_lib_save_LIBS
3615fi
3616echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3617echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3618if test $ac_cv_lib_l_yywrap = yes; then
3619 LEXLIB="-ll"
3620fi
3621
3622fi
3623
3624fi
3625
3626if test "x$LEX" != "x:"; then
3627 echo "$as_me:$LINENO: checking lex output file root" >&5
3628echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3629if test "${ac_cv_prog_lex_root+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632 # The minimal lex program is just a single line: %%. But some broken lexes
3633# (Solaris, I think it was) want two %% lines, so accommodate them.
3634cat >conftest.l <<_ACEOF
3635%%
3636%%
3637_ACEOF
3638{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3639 (eval $LEX conftest.l) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }
3643if test -f lex.yy.c; then
3644 ac_cv_prog_lex_root=lex.yy
3645elif test -f lexyy.c; then
3646 ac_cv_prog_lex_root=lexyy
3647else
3648 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3649echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3650 { (exit 1); exit 1; }; }
3651fi
3652fi
3653echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3654echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3655rm -f conftest.l
3656LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3657
3658echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3659echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3660if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
3663 # POSIX says lex can declare yytext either as a pointer or an array; the
3664# default is implementation-dependent. Figure out which it is, since
3665# not all implementations provide the %pointer and %array declarations.
3666ac_cv_prog_lex_yytext_pointer=no
3667echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3668ac_save_LIBS=$LIBS
3669LIBS="$LIBS $LEXLIB"
3670cat >conftest.$ac_ext <<_ACEOF
3671`cat $LEX_OUTPUT_ROOT.c`
3672_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext
3674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -s conftest$ac_exeext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_prog_lex_yytext_pointer=yes
3686else
3687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003688sed 's/^/| /' conftest.$ac_ext >&5
3689
John Criswell7a73b802003-06-30 21:59:07 +00003690fi
3691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3692LIBS=$ac_save_LIBS
3693rm -f "${LEX_OUTPUT_ROOT}.c"
3694
3695fi
3696echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3697echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3698if test $ac_cv_prog_lex_yytext_pointer = yes; then
3699
3700cat >>confdefs.h <<\_ACEOF
3701#define YYTEXT_POINTER 1
3702_ACEOF
3703
3704fi
3705
3706fi
3707
3708fi
3709echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3710echo "${ECHO_T}$ac_cv_has_flex" >&6
3711if test "$LEX" != "flex"; then
3712 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3713echo "$as_me: error: flex not found but required" >&2;}
3714 { (exit 1); exit 1; }; }
3715fi
3716
3717echo "$as_me:$LINENO: checking " >&5
3718echo $ECHO_N "checking ... $ECHO_C" >&6
3719if test "${ac_cv_has_bison+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 for ac_prog in 'bison -y' byacc
3723do
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725set dummy $ac_prog; ac_word=$2
3726echo "$as_me:$LINENO: checking for $ac_word" >&5
3727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3728if test "${ac_cv_prog_YACC+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 if test -n "$YACC"; then
3732 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3733else
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_YACC="$ac_prog"
3742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745done
3746done
3747
3748fi
3749fi
3750YACC=$ac_cv_prog_YACC
3751if test -n "$YACC"; then
3752 echo "$as_me:$LINENO: result: $YACC" >&5
3753echo "${ECHO_T}$YACC" >&6
3754else
3755 echo "$as_me:$LINENO: result: no" >&5
3756echo "${ECHO_T}no" >&6
3757fi
3758
3759 test -n "$YACC" && break
3760done
3761test -n "$YACC" || YACC="yacc"
3762
3763
3764fi
3765echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3766echo "${ECHO_T}$ac_cv_has_bison" >&6
3767if test "$YACC" != "bison -y"; then
3768 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3769echo "$as_me: error: bison not found but required" >&2;}
3770 { (exit 1); exit 1; }; }
3771else
3772 YACC=bison
3773
3774fi
3775
3776
3777# Check whether --enable-shared or --disable-shared was given.
3778if test "${enable_shared+set}" = set; then
3779 enableval="$enable_shared"
3780 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003781 case $enableval in
3782 yes) enable_shared=yes ;;
3783 no) enable_shared=no ;;
3784 *)
3785 enable_shared=no
3786 # Look at the argument we got. We use all the common list separators.
3787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3788 for pkg in $enableval; do
3789 IFS="$lt_save_ifs"
3790 if test "X$pkg" = "X$p"; then
3791 enable_shared=yes
3792 fi
3793 done
3794 IFS="$lt_save_ifs"
3795 ;;
3796 esac
John Criswell7a73b802003-06-30 21:59:07 +00003797else
3798 enable_shared=yes
3799fi;
John Criswell47fdd832003-07-14 16:52:07 +00003800
John Criswell7a73b802003-06-30 21:59:07 +00003801# Check whether --enable-static or --disable-static was given.
3802if test "${enable_static+set}" = set; then
3803 enableval="$enable_static"
3804 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003805 case $enableval in
3806 yes) enable_static=yes ;;
3807 no) enable_static=no ;;
3808 *)
3809 enable_static=no
3810 # Look at the argument we got. We use all the common list separators.
3811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3812 for pkg in $enableval; do
3813 IFS="$lt_save_ifs"
3814 if test "X$pkg" = "X$p"; then
3815 enable_static=yes
3816 fi
3817 done
3818 IFS="$lt_save_ifs"
3819 ;;
3820 esac
John Criswell7a73b802003-06-30 21:59:07 +00003821else
3822 enable_static=yes
3823fi;
John Criswell47fdd832003-07-14 16:52:07 +00003824
John Criswell7a73b802003-06-30 21:59:07 +00003825# Check whether --enable-fast-install or --disable-fast-install was given.
3826if test "${enable_fast_install+set}" = set; then
3827 enableval="$enable_fast_install"
3828 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003829 case $enableval in
3830 yes) enable_fast_install=yes ;;
3831 no) enable_fast_install=no ;;
3832 *)
3833 enable_fast_install=no
3834 # Look at the argument we got. We use all the common list separators.
3835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3836 for pkg in $enableval; do
3837 IFS="$lt_save_ifs"
3838 if test "X$pkg" = "X$p"; then
3839 enable_fast_install=yes
3840 fi
3841 done
3842 IFS="$lt_save_ifs"
3843 ;;
3844 esac
John Criswell7a73b802003-06-30 21:59:07 +00003845else
3846 enable_fast_install=yes
3847fi;
John Criswell47fdd832003-07-14 16:52:07 +00003848
3849echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3850echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3851if test "${lt_cv_path_SED+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 # Loop through the user's path and test for sed and gsed.
3855# Then use that list of sed's as ones to test for truncation.
3856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857for as_dir in $PATH
3858do
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for lt_ac_prog in sed gsed; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3864 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3865 fi
3866 done
3867 done
3868done
3869lt_ac_max=0
3870lt_ac_count=0
3871# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3872# along with /bin/sed that truncates output.
3873for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3874 test ! -f $lt_ac_sed && break
3875 cat /dev/null > conftest.in
3876 lt_ac_count=0
3877 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3878 # Check for GNU sed and select it if it is found.
3879 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3880 lt_cv_path_SED=$lt_ac_sed
3881 break
3882 fi
3883 while true; do
3884 cat conftest.in conftest.in >conftest.tmp
3885 mv conftest.tmp conftest.in
3886 cp conftest.in conftest.nl
3887 echo >>conftest.nl
3888 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3889 cmp -s conftest.out conftest.nl || break
3890 # 10000 chars as input seems more than enough
3891 test $lt_ac_count -gt 10 && break
3892 lt_ac_count=`expr $lt_ac_count + 1`
3893 if test $lt_ac_count -gt $lt_ac_max; then
3894 lt_ac_max=$lt_ac_count
3895 lt_cv_path_SED=$lt_ac_sed
3896 fi
3897 done
3898done
3899SED=$lt_cv_path_SED
3900
John Criswell7a73b802003-06-30 21:59:07 +00003901fi
3902
John Criswell47fdd832003-07-14 16:52:07 +00003903echo "$as_me:$LINENO: result: $SED" >&5
3904echo "${ECHO_T}$SED" >&6
3905
3906echo "$as_me:$LINENO: checking for egrep" >&5
3907echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3908if test "${ac_cv_prog_egrep+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3912 then ac_cv_prog_egrep='grep -E'
3913 else ac_cv_prog_egrep='egrep'
3914 fi
3915fi
3916echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3917echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3918 EGREP=$ac_cv_prog_egrep
3919
3920
John Criswell7a73b802003-06-30 21:59:07 +00003921
3922# Check whether --with-gnu-ld or --without-gnu-ld was given.
3923if test "${with_gnu_ld+set}" = set; then
3924 withval="$with_gnu_ld"
3925 test "$withval" = no || with_gnu_ld=yes
3926else
3927 with_gnu_ld=no
3928fi;
3929ac_prog=ld
3930if test "$GCC" = yes; then
3931 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003932 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3933echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003934 case $host in
3935 *-*-mingw*)
3936 # gcc leaves a trailing carriage return which upsets mingw
3937 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3938 *)
3939 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3940 esac
3941 case $ac_prog in
3942 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003943 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003944 re_direlt='/[^/][^/]*/\.\./'
3945 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003946 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003947 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003948 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003949 done
3950 test -z "$LD" && LD="$ac_prog"
3951 ;;
3952 "")
3953 # If it fails, then pretend we aren't using GCC.
3954 ac_prog=ld
3955 ;;
3956 *)
3957 # If it is relative, then search for the first ld in PATH.
3958 with_gnu_ld=unknown
3959 ;;
3960 esac
3961elif test "$with_gnu_ld" = yes; then
3962 echo "$as_me:$LINENO: checking for GNU ld" >&5
3963echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3964else
3965 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3966echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3967fi
3968if test "${lt_cv_path_LD+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003973 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003974 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003975 test -z "$ac_dir" && ac_dir=.
3976 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3977 lt_cv_path_LD="$ac_dir/$ac_prog"
3978 # Check to see if the program is GNU ld. I'd rather use --version,
3979 # but apparently some GNU ld's only accept -v.
3980 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003981 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3982 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003983 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003984 ;;
3985 *)
John Criswell7a73b802003-06-30 21:59:07 +00003986 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003987 ;;
3988 esac
John Criswell7a73b802003-06-30 21:59:07 +00003989 fi
3990 done
John Criswell47fdd832003-07-14 16:52:07 +00003991 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003992else
3993 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3994fi
3995fi
3996
3997LD="$lt_cv_path_LD"
3998if test -n "$LD"; then
3999 echo "$as_me:$LINENO: result: $LD" >&5
4000echo "${ECHO_T}$LD" >&6
4001else
4002 echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6
4004fi
4005test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4006echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4007 { (exit 1); exit 1; }; }
4008echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4009echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4010if test "${lt_cv_prog_gnu_ld+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004014case `"$LD" -v 2>&1 </dev/null` in
4015*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004016 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004017 ;;
4018*)
John Criswell7a73b802003-06-30 21:59:07 +00004019 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004020 ;;
4021esac
John Criswell7a73b802003-06-30 21:59:07 +00004022fi
4023echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4024echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4025with_gnu_ld=$lt_cv_prog_gnu_ld
4026
4027
4028echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4029echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4030if test "${lt_cv_ld_reload_flag+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033 lt_cv_ld_reload_flag='-r'
4034fi
4035echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4036echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4037reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004038case $reload_flag in
4039"" | " "*) ;;
4040*) reload_flag=" $reload_flag" ;;
4041esac
4042reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004043
4044echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4045echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4046if test "${lt_cv_path_NM+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049 if test -n "$NM"; then
4050 # Let the user override the test.
4051 lt_cv_path_NM="$NM"
4052else
John Criswell47fdd832003-07-14 16:52:07 +00004053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004054 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004055 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004056 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004057 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4058 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004059 # Check to see if the nm accepts a BSD-compat flag.
4060 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4061 # nm: unknown option "B" ignored
4062 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004063 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4064 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004065 lt_cv_path_NM="$tmp_nm -B"
4066 break
John Criswell47fdd832003-07-14 16:52:07 +00004067 ;;
4068 *)
4069 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4070 */dev/null*)
4071 lt_cv_path_NM="$tmp_nm -p"
4072 break
4073 ;;
4074 *)
4075 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4076 continue # so that we can try to find one that supports BSD flags
4077 ;;
4078 esac
4079 esac
John Criswell7a73b802003-06-30 21:59:07 +00004080 fi
4081 done
John Criswell47fdd832003-07-14 16:52:07 +00004082 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004083 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4084fi
4085fi
John Criswell47fdd832003-07-14 16:52:07 +00004086echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4087echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004088NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004089
4090echo "$as_me:$LINENO: checking whether ln -s works" >&5
4091echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4092LN_S=$as_ln_s
4093if test "$LN_S" = "ln -s"; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095echo "${ECHO_T}yes" >&6
4096else
4097 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4098echo "${ECHO_T}no, using $LN_S" >&6
4099fi
4100
John Criswell47fdd832003-07-14 16:52:07 +00004101echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4102echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004103if test "${lt_cv_deplibs_check_method+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106 lt_cv_file_magic_cmd='$MAGIC_CMD'
4107lt_cv_file_magic_test_file=
4108lt_cv_deplibs_check_method='unknown'
4109# Need to set the preceding variable on all platforms that support
4110# interlibrary dependencies.
4111# 'none' -- dependencies not supported.
4112# `unknown' -- same as none, but documents that we really don't know.
4113# 'pass_all' -- all dependencies passed with no checks.
4114# 'test_compile' -- check by making test program.
4115# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004116# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004117# If you have `file' or equivalent on your system and you're not sure
4118# whether `pass_all' will *always* work, you probably want this one.
4119
4120case $host_os in
4121aix4* | aix5*)
4122 lt_cv_deplibs_check_method=pass_all
4123 ;;
4124
4125beos*)
4126 lt_cv_deplibs_check_method=pass_all
4127 ;;
4128
4129bsdi4*)
4130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4131 lt_cv_file_magic_cmd='/usr/bin/file -L'
4132 lt_cv_file_magic_test_file=/shlib/libc.so
4133 ;;
4134
4135cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004136 # win32_libid is a shell function defined in ltmain.sh
4137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4138 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004139 ;;
4140
4141darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004142 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004143 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4144 lt_cv_file_magic_cmd='/usr/bin/file -L'
4145 case "$host_os" in
4146 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004147 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004148 ;;
4149 *) # Darwin 1.3 on
4150 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4151 ;;
4152 esac
John Criswell47fdd832003-07-14 16:52:07 +00004153 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004154 ;;
4155
4156freebsd*)
4157 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4158 case $host_cpu in
4159 i*86 )
4160 # Not sure whether the presence of OpenBSD here was a mistake.
4161 # Let's accept both of them until this is cleared up.
4162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4163 lt_cv_file_magic_cmd=/usr/bin/file
4164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4165 ;;
4166 esac
4167 else
4168 lt_cv_deplibs_check_method=pass_all
4169 fi
4170 ;;
4171
4172gnu*)
4173 lt_cv_deplibs_check_method=pass_all
4174 ;;
4175
John Criswell47fdd832003-07-14 16:52:07 +00004176hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004177 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004178 case "$host_cpu" in
4179 ia64*)
4180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4181 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4182 ;;
4183 hppa*64*)
4184 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]'
4185 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4186 ;;
4187 *)
4188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4189 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4190 ;;
4191 esac
John Criswell7a73b802003-06-30 21:59:07 +00004192 ;;
4193
John Criswell47fdd832003-07-14 16:52:07 +00004194irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004195 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004196 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004197 # this will be overridden with pass_all, but let us keep it just in case
4198 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4199 ;;
4200 *)
4201 case $LD in
4202 *-32|*"-32 ") libmagic=32-bit;;
4203 *-n32|*"-n32 ") libmagic=N32;;
4204 *-64|*"-64 ") libmagic=64-bit;;
4205 *) libmagic=never-match;;
4206 esac
4207 # this will be overridden with pass_all, but let us keep it just in case
4208 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4209 ;;
4210 esac
4211 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4212 lt_cv_deplibs_check_method=pass_all
4213 ;;
4214
4215# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004216linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004217 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004218 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004219 lt_cv_deplibs_check_method=pass_all ;;
4220 *)
4221 # glibc up to 2.1.1 does not perform some relocations on ARM
4222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4223 esac
4224 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4225 ;;
4226
4227netbsd*)
4228 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004230 else
John Criswell47fdd832003-07-14 16:52:07 +00004231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004232 fi
4233 ;;
4234
4235newos6*)
4236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4237 lt_cv_file_magic_cmd=/usr/bin/file
4238 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4239 ;;
4240
John Criswell47fdd832003-07-14 16:52:07 +00004241nto-qnx)
4242 lt_cv_deplibs_check_method=unknown
4243 ;;
4244
John Criswell7a73b802003-06-30 21:59:07 +00004245openbsd*)
4246 lt_cv_file_magic_cmd=/usr/bin/file
4247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4250 else
4251 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4252 fi
4253 ;;
4254
4255osf3* | osf4* | osf5*)
4256 # this will be overridden with pass_all, but let us keep it just in case
4257 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4258 lt_cv_file_magic_test_file=/shlib/libc.so
4259 lt_cv_deplibs_check_method=pass_all
4260 ;;
4261
4262sco3.2v5*)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265
4266solaris*)
4267 lt_cv_deplibs_check_method=pass_all
4268 lt_cv_file_magic_test_file=/lib/libc.so
4269 ;;
4270
John Criswell7a73b802003-06-30 21:59:07 +00004271sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4272 case $host_vendor in
4273 motorola)
4274 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]'
4275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4276 ;;
4277 ncr)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280 sequent)
4281 lt_cv_file_magic_cmd='/bin/file'
4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4283 ;;
4284 sni)
4285 lt_cv_file_magic_cmd='/bin/file'
4286 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4287 lt_cv_file_magic_test_file=/lib/libc.so
4288 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004289 siemens)
4290 lt_cv_deplibs_check_method=pass_all
4291 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004292 esac
4293 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004294
4295sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4296 lt_cv_deplibs_check_method=pass_all
4297 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004298esac
4299
4300fi
4301echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4302echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4303file_magic_cmd=$lt_cv_file_magic_cmd
4304deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004305test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004306
4307
4308
4309
John Criswell47fdd832003-07-14 16:52:07 +00004310# If no C compiler was specified, use CC.
4311LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004312
John Criswell47fdd832003-07-14 16:52:07 +00004313# Allow CC to be a program name with arguments.
4314compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004315
John Criswell47fdd832003-07-14 16:52:07 +00004316# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4317if test "${enable_libtool_lock+set}" = set; then
4318 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004319
John Criswell47fdd832003-07-14 16:52:07 +00004320fi;
4321test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004322
John Criswell47fdd832003-07-14 16:52:07 +00004323# Some flags need to be propagated to the compiler or linker for good
4324# libtool support.
4325case $host in
4326ia64-*-hpux*)
4327 # Find out which ABI we are using.
4328 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004334 case `/usr/bin/file conftest.$ac_objext` in
4335 *ELF-32*)
4336 HPUX_IA64_MODE="32"
4337 ;;
4338 *ELF-64*)
4339 HPUX_IA64_MODE="64"
4340 ;;
4341 esac
4342 fi
4343 rm -rf conftest*
4344 ;;
4345*-*-irix6*)
4346 # Find out which ABI we are using.
John Criswell0c38eaf2003-09-10 15:17:25 +00004347 echo '#line 4347 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004352 (exit $ac_status); }; then
4353 if test "$lt_cv_prog_gnu_ld" = yes; then
4354 case `/usr/bin/file conftest.$ac_objext` in
4355 *32-bit*)
4356 LD="${LD-ld} -melf32bsmip"
4357 ;;
4358 *N32*)
4359 LD="${LD-ld} -melf32bmipn32"
4360 ;;
4361 *64-bit*)
4362 LD="${LD-ld} -melf64bmip"
4363 ;;
4364 esac
4365 else
4366 case `/usr/bin/file conftest.$ac_objext` in
4367 *32-bit*)
4368 LD="${LD-ld} -32"
4369 ;;
4370 *N32*)
4371 LD="${LD-ld} -n32"
4372 ;;
4373 *64-bit*)
4374 LD="${LD-ld} -64"
4375 ;;
4376 esac
4377 fi
4378 fi
4379 rm -rf conftest*
4380 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004381
John Criswell47fdd832003-07-14 16:52:07 +00004382x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4383 # Find out which ABI we are using.
4384 echo 'int i;' > conftest.$ac_ext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386 (eval $ac_compile) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; then
4390 case "`/usr/bin/file conftest.o`" in
4391 *32-bit*)
4392 case $host in
4393 x86_64-*linux*)
4394 LD="${LD-ld} -m elf_i386"
4395 ;;
4396 ppc64-*linux*)
4397 LD="${LD-ld} -m elf32ppclinux"
4398 ;;
4399 s390x-*linux*)
4400 LD="${LD-ld} -m elf_s390"
4401 ;;
4402 sparc64-*linux*)
4403 LD="${LD-ld} -m elf32_sparc"
4404 ;;
4405 esac
4406 ;;
4407 *64-bit*)
4408 case $host in
4409 x86_64-*linux*)
4410 LD="${LD-ld} -m elf_x86_64"
4411 ;;
4412 ppc*-*linux*|powerpc*-*linux*)
4413 LD="${LD-ld} -m elf64ppc"
4414 ;;
4415 s390*-*linux*)
4416 LD="${LD-ld} -m elf64_s390"
4417 ;;
4418 sparc*-*linux*)
4419 LD="${LD-ld} -m elf64_sparc"
4420 ;;
4421 esac
4422 ;;
4423 esac
4424 fi
4425 rm -rf conftest*
4426 ;;
4427
4428*-*-sco3.2v5*)
4429 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4430 SAVE_CFLAGS="$CFLAGS"
4431 CFLAGS="$CFLAGS -belf"
4432 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4433echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4434if test "${lt_cv_cc_needs_belf+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437 ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443 cat >conftest.$ac_ext <<_ACEOF
4444#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004450
John Criswell47fdd832003-07-14 16:52:07 +00004451int
4452main ()
John Criswell7a73b802003-06-30 21:59:07 +00004453{
John Criswell7a73b802003-06-30 21:59:07 +00004454
John Criswell47fdd832003-07-14 16:52:07 +00004455 ;
4456 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004457}
John Criswell47fdd832003-07-14 16:52:07 +00004458_ACEOF
4459rm -f conftest.$ac_objext conftest$ac_exeext
4460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004461 (eval $ac_link) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004464 (exit $ac_status); } &&
4465 { ac_try='test -s conftest$ac_exeext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004472else
John Criswell47fdd832003-07-14 16:52:07 +00004473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004474sed 's/^/| /' conftest.$ac_ext >&5
4475
John Criswell47fdd832003-07-14 16:52:07 +00004476lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004477fi
John Criswell47fdd832003-07-14 16:52:07 +00004478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4479 ac_ext=c
4480ac_cpp='$CPP $CPPFLAGS'
4481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484
John Criswell7a73b802003-06-30 21:59:07 +00004485fi
John Criswell47fdd832003-07-14 16:52:07 +00004486echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4487echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4490 CFLAGS="$SAVE_CFLAGS"
4491 fi
4492 ;;
4493
4494esac
4495
4496need_locks="$enable_libtool_lock"
4497
John Criswell7a73b802003-06-30 21:59:07 +00004498
4499
4500echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4501echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4502if test "${ac_cv_header_stdc+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505 cat >conftest.$ac_ext <<_ACEOF
4506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004512#include <stdlib.h>
4513#include <stdarg.h>
4514#include <string.h>
4515#include <float.h>
4516
John Criswell0c38eaf2003-09-10 15:17:25 +00004517int
4518main ()
4519{
4520
4521 ;
4522 return 0;
4523}
John Criswell7a73b802003-06-30 21:59:07 +00004524_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004525rm -f conftest.$ac_objext
4526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004528 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004530 (exit $ac_status); } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004537 ac_cv_header_stdc=yes
4538else
4539 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004540sed 's/^/| /' conftest.$ac_ext >&5
4541
4542ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004543fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004544rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004545
4546if test $ac_cv_header_stdc = yes; then
4547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4548 cat >conftest.$ac_ext <<_ACEOF
4549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004550/* confdefs.h. */
4551_ACEOF
4552cat confdefs.h >>conftest.$ac_ext
4553cat >>conftest.$ac_ext <<_ACEOF
4554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004555#include <string.h>
4556
4557_ACEOF
4558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004559 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004560 :
4561else
4562 ac_cv_header_stdc=no
4563fi
4564rm -f conftest*
4565
4566fi
4567
4568if test $ac_cv_header_stdc = yes; then
4569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4570 cat >conftest.$ac_ext <<_ACEOF
4571#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004572/* confdefs.h. */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004577#include <stdlib.h>
4578
4579_ACEOF
4580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004581 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004582 :
4583else
4584 ac_cv_header_stdc=no
4585fi
4586rm -f conftest*
4587
4588fi
4589
4590if test $ac_cv_header_stdc = yes; then
4591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4592 if test "$cross_compiling" = yes; then
4593 :
4594else
4595 cat >conftest.$ac_ext <<_ACEOF
4596#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004597/* confdefs.h. */
4598_ACEOF
4599cat confdefs.h >>conftest.$ac_ext
4600cat >>conftest.$ac_ext <<_ACEOF
4601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004602#include <ctype.h>
4603#if ((' ' & 0x0FF) == 0x020)
4604# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4605# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4606#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004607# define ISLOWER(c) \
4608 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004609 || ('j' <= (c) && (c) <= 'r') \
4610 || ('s' <= (c) && (c) <= 'z'))
4611# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4612#endif
4613
4614#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4615int
4616main ()
4617{
4618 int i;
4619 for (i = 0; i < 256; i++)
4620 if (XOR (islower (i), ISLOWER (i))
4621 || toupper (i) != TOUPPER (i))
4622 exit(2);
4623 exit (0);
4624}
4625_ACEOF
4626rm -f conftest$ac_exeext
4627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4628 (eval $ac_link) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 :
4638else
4639 echo "$as_me: program exited with status $ac_status" >&5
4640echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004641sed 's/^/| /' conftest.$ac_ext >&5
4642
John Criswell7a73b802003-06-30 21:59:07 +00004643( exit $ac_status )
4644ac_cv_header_stdc=no
4645fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004646rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004647fi
4648fi
4649fi
4650echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4651echo "${ECHO_T}$ac_cv_header_stdc" >&6
4652if test $ac_cv_header_stdc = yes; then
4653
4654cat >>confdefs.h <<\_ACEOF
4655#define STDC_HEADERS 1
4656_ACEOF
4657
4658fi
4659
4660# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4671 inttypes.h stdint.h unistd.h
4672do
4673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4674echo "$as_me:$LINENO: checking for $ac_header" >&5
4675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4676if eval "test \"\${$as_ac_Header+set}\" = set"; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679 cat >conftest.$ac_ext <<_ACEOF
4680#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004681/* confdefs.h. */
4682_ACEOF
4683cat confdefs.h >>conftest.$ac_ext
4684cat >>conftest.$ac_ext <<_ACEOF
4685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004686$ac_includes_default
4687
4688#include <$ac_header>
4689_ACEOF
4690rm -f conftest.$ac_objext
4691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 eval "$as_ac_Header=yes"
4703else
4704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004705sed 's/^/| /' conftest.$ac_ext >&5
4706
John Criswell7a73b802003-06-30 21:59:07 +00004707eval "$as_ac_Header=no"
4708fi
4709rm -f conftest.$ac_objext conftest.$ac_ext
4710fi
4711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4713if test `eval echo '${'$as_ac_Header'}'` = yes; then
4714 cat >>confdefs.h <<_ACEOF
4715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4716_ACEOF
4717
4718fi
4719
4720done
4721
4722
4723
4724for ac_header in dlfcn.h
4725do
4726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728 echo "$as_me:$LINENO: checking for $ac_header" >&5
4729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4730if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732fi
4733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4735else
4736 # Is the header compilable?
4737echo "$as_me:$LINENO: checking $ac_header usability" >&5
4738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4739cat >conftest.$ac_ext <<_ACEOF
4740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004746$ac_includes_default
4747#include <$ac_header>
4748_ACEOF
4749rm -f conftest.$ac_objext
4750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_header_compiler=yes
4762else
4763 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004764sed 's/^/| /' conftest.$ac_ext >&5
4765
John Criswell7a73b802003-06-30 21:59:07 +00004766ac_header_compiler=no
4767fi
4768rm -f conftest.$ac_objext conftest.$ac_ext
4769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4770echo "${ECHO_T}$ac_header_compiler" >&6
4771
4772# Is the header present?
4773echo "$as_me:$LINENO: checking $ac_header presence" >&5
4774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4775cat >conftest.$ac_ext <<_ACEOF
4776#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004777/* confdefs.h. */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004782#include <$ac_header>
4783_ACEOF
4784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4786 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004787 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } >/dev/null; then
4792 if test -s conftest.err; then
4793 ac_cpp_err=$ac_c_preproc_warn_flag
4794 else
4795 ac_cpp_err=
4796 fi
4797else
4798 ac_cpp_err=yes
4799fi
4800if test -z "$ac_cpp_err"; then
4801 ac_header_preproc=yes
4802else
4803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004804sed 's/^/| /' conftest.$ac_ext >&5
4805
John Criswell7a73b802003-06-30 21:59:07 +00004806 ac_header_preproc=no
4807fi
4808rm -f conftest.err conftest.$ac_ext
4809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4810echo "${ECHO_T}$ac_header_preproc" >&6
4811
4812# So? What about this header?
4813case $ac_header_compiler:$ac_header_preproc in
4814 yes:no )
4815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4819 (
4820 cat <<\_ASBOX
4821## ------------------------------------ ##
4822## Report this to bug-autoconf@gnu.org. ##
4823## ------------------------------------ ##
4824_ASBOX
4825 ) |
4826 sed "s/^/$as_me: WARNING: /" >&2
4827 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004828 no:yes )
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4835 (
4836 cat <<\_ASBOX
4837## ------------------------------------ ##
4838## Report this to bug-autoconf@gnu.org. ##
4839## ------------------------------------ ##
4840_ASBOX
4841 ) |
4842 sed "s/^/$as_me: WARNING: /" >&2
4843 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004844esac
4845echo "$as_me:$LINENO: checking for $ac_header" >&5
4846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4847if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850 eval "$as_ac_Header=$ac_header_preproc"
4851fi
4852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4854
4855fi
4856if test `eval echo '${'$as_ac_Header'}'` = yes; then
4857 cat >>confdefs.h <<_ACEOF
4858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859_ACEOF
4860
4861fi
4862
4863done
4864
John Criswell47fdd832003-07-14 16:52:07 +00004865ac_ext=cc
4866ac_cpp='$CXXCPP $CPPFLAGS'
4867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4870echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4871echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4872if test -z "$CXXCPP"; then
4873 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
John Criswell47fdd832003-07-14 16:52:07 +00004876 # Double quotes because CXXCPP needs to be expanded
4877 for CXXCPP in "$CXX -E" "/lib/cpp"
4878 do
4879 ac_preproc_ok=false
4880for ac_cxx_preproc_warn_flag in '' yes
4881do
4882 # Use a header file that comes with gcc, so configuring glibc
4883 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004886 # On the NeXT, cc -E runs the code through the compiler's parser,
4887 # not just through cpp. "Syntax error" is here to catch this case.
4888 cat >conftest.$ac_ext <<_ACEOF
4889#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004890/* confdefs.h. */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h. */
4895#ifdef __STDC__
4896# include <limits.h>
4897#else
4898# include <assert.h>
4899#endif
John Criswell47fdd832003-07-14 16:52:07 +00004900 Syntax error
4901_ACEOF
4902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4904 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004905 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null; then
4910 if test -s conftest.err; then
4911 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004912 else
John Criswell47fdd832003-07-14 16:52:07 +00004913 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004914 fi
John Criswell47fdd832003-07-14 16:52:07 +00004915else
4916 ac_cpp_err=yes
4917fi
4918if test -z "$ac_cpp_err"; then
4919 :
4920else
4921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004922sed 's/^/| /' conftest.$ac_ext >&5
4923
John Criswell47fdd832003-07-14 16:52:07 +00004924 # Broken: fails on valid input.
4925continue
4926fi
4927rm -f conftest.err conftest.$ac_ext
4928
4929 # OK, works on sane cases. Now check whether non-existent headers
4930 # can be detected and how.
4931 cat >conftest.$ac_ext <<_ACEOF
4932#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004938#include <ac_nonexistent.h>
4939_ACEOF
4940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004943 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null; then
4948 if test -s conftest.err; then
4949 ac_cpp_err=$ac_cxx_preproc_warn_flag
4950 else
4951 ac_cpp_err=
4952 fi
4953else
4954 ac_cpp_err=yes
4955fi
4956if test -z "$ac_cpp_err"; then
4957 # Broken: success on invalid input.
4958continue
4959else
4960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004961sed 's/^/| /' conftest.$ac_ext >&5
4962
John Criswell47fdd832003-07-14 16:52:07 +00004963 # Passes both tests.
4964ac_preproc_ok=:
4965break
4966fi
4967rm -f conftest.err conftest.$ac_ext
4968
4969done
4970# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4971rm -f conftest.err conftest.$ac_ext
4972if $ac_preproc_ok; then
4973 break
John Criswell7a73b802003-06-30 21:59:07 +00004974fi
4975
John Criswell47fdd832003-07-14 16:52:07 +00004976 done
4977 ac_cv_prog_CXXCPP=$CXXCPP
4978
4979fi
4980 CXXCPP=$ac_cv_prog_CXXCPP
4981else
4982 ac_cv_prog_CXXCPP=$CXXCPP
4983fi
4984echo "$as_me:$LINENO: result: $CXXCPP" >&5
4985echo "${ECHO_T}$CXXCPP" >&6
4986ac_preproc_ok=false
4987for ac_cxx_preproc_warn_flag in '' yes
4988do
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat >conftest.$ac_ext <<_ACEOF
4996#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002#ifdef __STDC__
5003# include <limits.h>
5004#else
5005# include <assert.h>
5006#endif
John Criswell47fdd832003-07-14 16:52:07 +00005007 Syntax error
5008_ACEOF
5009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5011 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005012 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev/null; then
5017 if test -s conftest.err; then
5018 ac_cpp_err=$ac_cxx_preproc_warn_flag
5019 else
5020 ac_cpp_err=
5021 fi
5022else
5023 ac_cpp_err=yes
5024fi
5025if test -z "$ac_cpp_err"; then
5026 :
5027else
5028 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005029sed 's/^/| /' conftest.$ac_ext >&5
5030
John Criswell47fdd832003-07-14 16:52:07 +00005031 # Broken: fails on valid input.
5032continue
5033fi
5034rm -f conftest.err conftest.$ac_ext
5035
5036 # OK, works on sane cases. Now check whether non-existent headers
5037 # can be detected and how.
5038 cat >conftest.$ac_ext <<_ACEOF
5039#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005040/* confdefs.h. */
5041_ACEOF
5042cat confdefs.h >>conftest.$ac_ext
5043cat >>conftest.$ac_ext <<_ACEOF
5044/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005045#include <ac_nonexistent.h>
5046_ACEOF
5047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005050 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null; then
5055 if test -s conftest.err; then
5056 ac_cpp_err=$ac_cxx_preproc_warn_flag
5057 else
5058 ac_cpp_err=
5059 fi
5060else
5061 ac_cpp_err=yes
5062fi
5063if test -z "$ac_cpp_err"; then
5064 # Broken: success on invalid input.
5065continue
5066else
5067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005068sed 's/^/| /' conftest.$ac_ext >&5
5069
John Criswell47fdd832003-07-14 16:52:07 +00005070 # Passes both tests.
5071ac_preproc_ok=:
5072break
5073fi
5074rm -f conftest.err conftest.$ac_ext
5075
5076done
5077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078rm -f conftest.err conftest.$ac_ext
5079if $ac_preproc_ok; then
5080 :
5081else
John Criswell0c38eaf2003-09-10 15:17:25 +00005082 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5083See \`config.log' for more details." >&5
5084echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5085See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005086 { (exit 1); exit 1; }; }
5087fi
5088
5089ac_ext=cc
5090ac_cpp='$CXXCPP $CPPFLAGS'
5091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5094
5095
5096ac_ext=f
5097ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5098ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5100if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005101 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 +00005102 do
5103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5105echo "$as_me:$LINENO: checking for $ac_word" >&5
5106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5107if test "${ac_cv_prog_F77+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 if test -n "$F77"; then
5111 ac_cv_prog_F77="$F77" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124done
5125done
5126
5127fi
5128fi
5129F77=$ac_cv_prog_F77
5130if test -n "$F77"; then
5131 echo "$as_me:$LINENO: result: $F77" >&5
5132echo "${ECHO_T}$F77" >&6
5133else
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136fi
5137
5138 test -n "$F77" && break
5139 done
5140fi
5141if test -z "$F77"; then
5142 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005143 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 +00005144do
5145 # Extract the first word of "$ac_prog", so it can be a program name with args.
5146set dummy $ac_prog; ac_word=$2
5147echo "$as_me:$LINENO: checking for $ac_word" >&5
5148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5149if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152 if test -n "$ac_ct_F77"; then
5153 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5154else
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_ac_ct_F77="$ac_prog"
5163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166done
5167done
5168
5169fi
5170fi
5171ac_ct_F77=$ac_cv_prog_ac_ct_F77
5172if test -n "$ac_ct_F77"; then
5173 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5174echo "${ECHO_T}$ac_ct_F77" >&6
5175else
5176 echo "$as_me:$LINENO: result: no" >&5
5177echo "${ECHO_T}no" >&6
5178fi
5179
5180 test -n "$ac_ct_F77" && break
5181done
5182
5183 F77=$ac_ct_F77
5184fi
5185
5186
5187# Provide some information about the compiler.
John Criswell0c38eaf2003-09-10 15:17:25 +00005188echo "$as_me:5188:" \
John Criswell47fdd832003-07-14 16:52:07 +00005189 "checking for Fortran 77 compiler version" >&5
5190ac_compiler=`set X $ac_compile; echo $2`
5191{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5192 (eval $ac_compiler --version </dev/null >&5) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }
5196{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5197 (eval $ac_compiler -v </dev/null >&5) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }
5201{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5202 (eval $ac_compiler -V </dev/null >&5) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }
5206
5207# If we don't use `.F' as extension, the preprocessor is not run on the
5208# input file.
5209ac_save_ext=$ac_ext
5210ac_ext=F
5211echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5212echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5213if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216 cat >conftest.$ac_ext <<_ACEOF
5217 program main
5218#ifndef __GNUC__
5219 choke me
5220#endif
5221
5222 end
5223_ACEOF
5224rm -f conftest.$ac_objext
5225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226 (eval $ac_compile) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -s conftest.$ac_objext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 ac_compiler_gnu=yes
5237else
5238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005239sed 's/^/| /' conftest.$ac_ext >&5
5240
John Criswell47fdd832003-07-14 16:52:07 +00005241ac_compiler_gnu=no
5242fi
5243rm -f conftest.$ac_objext conftest.$ac_ext
5244ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5245
5246fi
5247echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5248echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5249ac_ext=$ac_save_ext
5250G77=`test $ac_compiler_gnu = yes && echo yes`
5251ac_test_FFLAGS=${FFLAGS+set}
5252ac_save_FFLAGS=$FFLAGS
5253FFLAGS=
5254echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5255echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5256if test "${ac_cv_prog_f77_g+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259 FFLAGS=-g
5260cat >conftest.$ac_ext <<_ACEOF
5261 program main
5262
5263 end
5264_ACEOF
5265rm -f conftest.$ac_objext
5266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest.$ac_objext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_prog_f77_g=yes
5278else
5279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005280sed 's/^/| /' conftest.$ac_ext >&5
5281
John Criswell47fdd832003-07-14 16:52:07 +00005282ac_cv_prog_f77_g=no
5283fi
5284rm -f conftest.$ac_objext conftest.$ac_ext
5285
5286fi
5287echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5288echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5289if test "$ac_test_FFLAGS" = set; then
5290 FFLAGS=$ac_save_FFLAGS
5291elif test $ac_cv_prog_f77_g = yes; then
5292 if test "$G77" = yes; then
5293 FFLAGS="-g -O2"
5294 else
5295 FFLAGS="-g"
5296 fi
5297else
5298 if test "$G77" = yes; then
5299 FFLAGS="-O2"
5300 else
5301 FFLAGS=
5302 fi
5303fi
5304ac_ext=c
5305ac_cpp='$CPP $CPPFLAGS'
5306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309
5310
5311
5312# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5313
5314# find the maximum length of command line arguments
5315echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5316echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5317if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
5320 i=0
5321 testring="ABCD"
5322
5323 case $build_os in
5324 msdosdjgpp*)
5325 # On DJGPP, this test can blow up pretty badly due to problems in libc
5326 # (any single argument exceeding 2000 bytes causes a buffer overrun
5327 # during glob expansion). Even if it were fixed, the result of this
5328 # check would be larger than it should be.
5329 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5330 ;;
5331
5332 gnu*)
5333 # Under GNU Hurd, this test is not required because there is
5334 # no limit to the length of command line arguments.
5335 # Libtool will interpret -1 as no limit whatsoever
5336 lt_cv_sys_max_cmd_len=-1;
5337 ;;
5338
5339 cygwin* | mingw*)
5340 # On Win9x/ME, this test blows up -- it succeeds, but takes
5341 # about 5 minutes as the teststring grows exponentially.
5342 # Worse, since 9x/ME are not pre-emptively multitasking,
5343 # you end up with a "frozen" computer, even though with patience
5344 # the test eventually succeeds (with a max line length of 256k).
5345 # Instead, let's just punt: use the minimum linelength reported by
5346 # all of the supported platforms: 8192 (on NT/2K/XP).
5347 lt_cv_sys_max_cmd_len=8192;
5348 ;;
5349
5350 *)
5351 # If test is not a shell built-in, we'll probably end up computing a
5352 # maximum length that is only half of the actual maximum length, but
5353 # we can't tell.
5354 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5355 = "XX$testring") >/dev/null 2>&1 &&
5356 new_result=`expr "X$testring" : ".*" 2>&1` &&
5357 lt_cv_sys_max_cmd_len=$new_result &&
5358 test $i != 17 # 1/2 MB should be enough
5359 do
5360 i=`expr $i + 1`
5361 testring=$testring$testring
5362 done
5363 testring=
5364 # Add a significant safety factor because C++ compilers can tack on massive
5365 # amounts of additional arguments before passing them to the linker.
5366 # It appears as though 1/2 is a usable value.
5367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5368 ;;
5369 esac
5370
5371fi
5372
5373if test -n $lt_cv_sys_max_cmd_len ; then
5374 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5375echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5376else
5377 echo "$as_me:$LINENO: result: none" >&5
5378echo "${ECHO_T}none" >&6
5379fi
5380
5381
5382
5383
5384# Check for command to grab the raw symbol name followed by C symbol from nm.
5385echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5386echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5387if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390
5391# These are sane defaults that work on at least a few old systems.
5392# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5393
5394# Character class describing NM global symbol codes.
5395symcode='[BCDEGRST]'
5396
5397# Regexp to match symbols that can be accessed directly from C.
5398sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5399
5400# Transform the above into a raw symbol and a C symbol.
5401symxfrm='\1 \2\3 \3'
5402
5403# Transform an extracted symbol line into a proper C declaration
5404lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5405
5406# Transform an extracted symbol line into symbol name and symbol address
5407lt_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'"
5408
5409# Define system-specific variables.
5410case $host_os in
5411aix*)
5412 symcode='[BCDT]'
5413 ;;
5414cygwin* | mingw* | pw32*)
5415 symcode='[ABCDGISTW]'
5416 ;;
5417hpux*) # Its linker distinguishes data from code symbols
5418 if test "$host_cpu" = ia64; then
5419 symcode='[ABCDEGRST]'
5420 fi
5421 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5422 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'"
5423 ;;
5424irix* | nonstopux*)
5425 symcode='[BCDEGRST]'
5426 ;;
5427osf*)
5428 symcode='[BCDEGQRST]'
5429 ;;
5430solaris* | sysv5*)
5431 symcode='[BDT]'
5432 ;;
5433sysv4)
5434 symcode='[DFNSTU]'
5435 ;;
5436esac
5437
5438# Handle CRLF in mingw tool chain
5439opt_cr=
5440case $build_os in
5441mingw*)
5442 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5443 ;;
5444esac
5445
5446# If we're using GNU nm, then use its standard symbol codes.
5447case `$NM -V 2>&1` in
5448*GNU* | *'with BFD'*)
5449 symcode='[ABCDGISTW]' ;;
5450esac
5451
5452# Try without a prefix undercore, then with it.
5453for ac_symprfx in "" "_"; do
5454
5455 # Write the raw and C identifiers.
5456 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5457
5458 # Check to see that the pipe works correctly.
5459 pipe_works=no
5460
5461 rm -f conftest*
5462 cat > conftest.$ac_ext <<EOF
5463#ifdef __cplusplus
5464extern "C" {
5465#endif
5466char nm_test_var;
5467void nm_test_func(){}
5468#ifdef __cplusplus
5469}
5470#endif
5471int main(){nm_test_var='a';nm_test_func();return(0);}
5472EOF
5473
5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475 (eval $ac_compile) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; then
5479 # Now try to grab the symbols.
5480 nlist=conftest.nm
5481 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5482 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && test -s "$nlist"; then
5486 # Try sorting and uniquifying the output.
5487 if sort "$nlist" | uniq > "$nlist"T; then
5488 mv -f "$nlist"T "$nlist"
5489 else
5490 rm -f "$nlist"T
5491 fi
5492
5493 # Make sure that we snagged all the symbols we need.
5494 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5495 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5496 cat <<EOF > conftest.$ac_ext
5497#ifdef __cplusplus
5498extern "C" {
5499#endif
5500
5501EOF
5502 # Now generate the symbol file.
5503 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5504
5505 cat <<EOF >> conftest.$ac_ext
5506#if defined (__STDC__) && __STDC__
5507# define lt_ptr_t void *
5508#else
5509# define lt_ptr_t char *
5510# define const
5511#endif
5512
5513/* The mapping between symbol names and symbols. */
5514const struct {
5515 const char *name;
5516 lt_ptr_t address;
5517}
5518lt_preloaded_symbols[] =
5519{
5520EOF
5521 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5522 cat <<\EOF >> conftest.$ac_ext
5523 {0, (lt_ptr_t) 0}
5524};
5525
5526#ifdef __cplusplus
5527}
5528#endif
5529EOF
5530 # Now try linking the two files.
5531 mv conftest.$ac_objext conftstm.$ac_objext
5532 lt_save_LIBS="$LIBS"
5533 lt_save_CFLAGS="$CFLAGS"
5534 LIBS="conftstm.$ac_objext"
5535 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5537 (eval $ac_link) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5541 pipe_works=yes
5542 fi
5543 LIBS="$lt_save_LIBS"
5544 CFLAGS="$lt_save_CFLAGS"
5545 else
5546 echo "cannot find nm_test_func in $nlist" >&5
5547 fi
5548 else
5549 echo "cannot find nm_test_var in $nlist" >&5
5550 fi
5551 else
5552 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5553 fi
5554 else
5555 echo "$progname: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 fi
5558 rm -f conftest* conftst*
5559
5560 # Do not use the global_symbol_pipe unless it works.
5561 if test "$pipe_works" = yes; then
5562 break
5563 else
5564 lt_cv_sys_global_symbol_pipe=
5565 fi
5566done
5567
5568fi
5569
5570if test -z "$lt_cv_sys_global_symbol_pipe"; then
5571 lt_cv_sys_global_symbol_to_cdecl=
5572fi
5573if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5574 echo "$as_me:$LINENO: result: failed" >&5
5575echo "${ECHO_T}failed" >&6
5576else
5577 echo "$as_me:$LINENO: result: ok" >&5
5578echo "${ECHO_T}ok" >&6
5579fi
5580
5581echo "$as_me:$LINENO: checking for objdir" >&5
5582echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5583if test "${lt_cv_objdir+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586 rm -f .libs 2>/dev/null
5587mkdir .libs 2>/dev/null
5588if test -d .libs; then
5589 lt_cv_objdir=.libs
5590else
5591 # MS-DOS does not allow filenames that begin with a dot.
5592 lt_cv_objdir=_libs
5593fi
5594rmdir .libs 2>/dev/null
5595fi
5596echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5597echo "${ECHO_T}$lt_cv_objdir" >&6
5598objdir=$lt_cv_objdir
5599
5600
5601
5602
5603
5604case $host_os in
5605aix3*)
5606 # AIX sometimes has problems with the GCC collect2 program. For some
5607 # reason, if we set the COLLECT_NAMES environment variable, the problems
5608 # vanish in a puff of smoke.
5609 if test "X${COLLECT_NAMES+set}" != Xset; then
5610 COLLECT_NAMES=
5611 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005612 fi
5613 ;;
5614esac
5615
John Criswell47fdd832003-07-14 16:52:07 +00005616# Sed substitution that helps us do robust quoting. It backslashifies
5617# metacharacters that are still active within double-quoted strings.
5618Xsed='sed -e s/^X//'
5619sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5620
5621# Same as above, but do not quote variable references.
5622double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5623
5624# Sed substitution to delay expansion of an escaped shell variable in a
5625# double_quote_subst'ed string.
5626delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5627
5628# Sed substitution to avoid accidental globbing in evaled expressions
5629no_glob_subst='s/\*/\\\*/g'
5630
5631# Constants:
5632rm="rm -f"
5633
5634# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005635default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005636can_build_shared=yes
5637
5638# All known linkers require a `.a' archive for static linking (except M$VC,
5639# which needs '.lib').
5640libext=a
5641ltmain="$ac_aux_dir/ltmain.sh"
5642ofile="$default_ofile"
5643with_gnu_ld="$lt_cv_prog_gnu_ld"
5644
5645if test -n "$ac_tool_prefix"; then
5646 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5647set dummy ${ac_tool_prefix}ar; ac_word=$2
5648echo "$as_me:$LINENO: checking for $ac_word" >&5
5649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5650if test "${ac_cv_prog_AR+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653 if test -n "$AR"; then
5654 ac_cv_prog_AR="$AR" # Let the user override the test.
5655else
5656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657for as_dir in $PATH
5658do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_AR="${ac_tool_prefix}ar"
5664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667done
5668done
5669
5670fi
5671fi
5672AR=$ac_cv_prog_AR
5673if test -n "$AR"; then
5674 echo "$as_me:$LINENO: result: $AR" >&5
5675echo "${ECHO_T}$AR" >&6
5676else
5677 echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679fi
5680
5681fi
5682if test -z "$ac_cv_prog_AR"; then
5683 ac_ct_AR=$AR
5684 # Extract the first word of "ar", so it can be a program name with args.
5685set dummy ar; ac_word=$2
5686echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691 if test -n "$ac_ct_AR"; then
5692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_ac_ct_AR="ar"
5702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705done
5706done
5707
5708 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5709fi
5710fi
5711ac_ct_AR=$ac_cv_prog_ac_ct_AR
5712if test -n "$ac_ct_AR"; then
5713 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5714echo "${ECHO_T}$ac_ct_AR" >&6
5715else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718fi
5719
5720 AR=$ac_ct_AR
5721else
5722 AR="$ac_cv_prog_AR"
5723fi
5724
John Criswell7a73b802003-06-30 21:59:07 +00005725if test -n "$ac_tool_prefix"; then
5726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5727set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5728echo "$as_me:$LINENO: checking for $ac_word" >&5
5729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5730if test "${ac_cv_prog_RANLIB+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732else
5733 if test -n "$RANLIB"; then
5734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747done
5748done
5749
5750fi
5751fi
5752RANLIB=$ac_cv_prog_RANLIB
5753if test -n "$RANLIB"; then
5754 echo "$as_me:$LINENO: result: $RANLIB" >&5
5755echo "${ECHO_T}$RANLIB" >&6
5756else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759fi
5760
5761fi
5762if test -z "$ac_cv_prog_RANLIB"; then
5763 ac_ct_RANLIB=$RANLIB
5764 # Extract the first word of "ranlib", so it can be a program name with args.
5765set dummy ranlib; ac_word=$2
5766echo "$as_me:$LINENO: checking for $ac_word" >&5
5767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771 if test -n "$ac_ct_RANLIB"; then
5772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_RANLIB="ranlib"
5782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785done
5786done
5787
5788 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5789fi
5790fi
5791ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5792if test -n "$ac_ct_RANLIB"; then
5793 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5794echo "${ECHO_T}$ac_ct_RANLIB" >&6
5795else
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798fi
5799
5800 RANLIB=$ac_ct_RANLIB
5801else
5802 RANLIB="$ac_cv_prog_RANLIB"
5803fi
5804
5805if test -n "$ac_tool_prefix"; then
5806 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5807set dummy ${ac_tool_prefix}strip; ac_word=$2
5808echo "$as_me:$LINENO: checking for $ac_word" >&5
5809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5810if test "${ac_cv_prog_STRIP+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813 if test -n "$STRIP"; then
5814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827done
5828done
5829
5830fi
5831fi
5832STRIP=$ac_cv_prog_STRIP
5833if test -n "$STRIP"; then
5834 echo "$as_me:$LINENO: result: $STRIP" >&5
5835echo "${ECHO_T}$STRIP" >&6
5836else
5837 echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6
5839fi
5840
5841fi
5842if test -z "$ac_cv_prog_STRIP"; then
5843 ac_ct_STRIP=$STRIP
5844 # Extract the first word of "strip", so it can be a program name with args.
5845set dummy strip; ac_word=$2
5846echo "$as_me:$LINENO: checking for $ac_word" >&5
5847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851 if test -n "$ac_ct_STRIP"; then
5852 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_ac_ct_STRIP="strip"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865done
5866done
5867
5868 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5869fi
5870fi
5871ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5872if test -n "$ac_ct_STRIP"; then
5873 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5874echo "${ECHO_T}$ac_ct_STRIP" >&6
5875else
5876 echo "$as_me:$LINENO: result: no" >&5
5877echo "${ECHO_T}no" >&6
5878fi
5879
5880 STRIP=$ac_ct_STRIP
5881else
5882 STRIP="$ac_cv_prog_STRIP"
5883fi
5884
5885
John Criswell7a73b802003-06-30 21:59:07 +00005886old_CC="$CC"
5887old_CFLAGS="$CFLAGS"
5888
5889# Set sane defaults for various variables
5890test -z "$AR" && AR=ar
5891test -z "$AR_FLAGS" && AR_FLAGS=cru
5892test -z "$AS" && AS=as
5893test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005894test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005895test -z "$DLLTOOL" && DLLTOOL=dlltool
5896test -z "$LD" && LD=ld
5897test -z "$LN_S" && LN_S="ln -s"
5898test -z "$MAGIC_CMD" && MAGIC_CMD=file
5899test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005900test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005901test -z "$OBJDUMP" && OBJDUMP=objdump
5902test -z "$RANLIB" && RANLIB=:
5903test -z "$STRIP" && STRIP=:
5904test -z "$ac_objext" && ac_objext=o
5905
John Criswell7a73b802003-06-30 21:59:07 +00005906# Determine commands to create old-style static archives.
5907old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5908old_postinstall_cmds='chmod 644 $oldlib'
5909old_postuninstall_cmds=
5910
5911if test -n "$RANLIB"; then
5912 case $host_os in
5913 openbsd*)
5914 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5915 ;;
5916 *)
5917 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5918 ;;
5919 esac
5920 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5921fi
5922
John Criswell47fdd832003-07-14 16:52:07 +00005923# Only perform the check for file, if the check method requires it
5924case $deplibs_check_method in
5925file_magic*)
5926 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5927 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5928echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005931else
John Criswell47fdd832003-07-14 16:52:07 +00005932 case $MAGIC_CMD in
5933[\\/*] | ?:[\\/]*)
5934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5935 ;;
5936*)
5937 lt_save_MAGIC_CMD="$MAGIC_CMD"
5938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5940 for ac_dir in $ac_dummy; do
5941 IFS="$lt_save_ifs"
5942 test -z "$ac_dir" && ac_dir=.
5943 if test -f $ac_dir/${ac_tool_prefix}file; then
5944 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5945 if test -n "$file_magic_test_file"; then
5946 case $deplibs_check_method in
5947 "file_magic "*)
5948 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5951 $EGREP "$file_magic_regex" > /dev/null; then
5952 :
5953 else
5954 cat <<EOF 1>&2
5955
5956*** Warning: the command libtool uses to detect shared libraries,
5957*** $file_magic_cmd, produces output that libtool cannot recognize.
5958*** The result is that libtool may fail to recognize shared libraries
5959*** as such. This will affect the creation of libtool libraries that
5960*** depend on shared libraries, but programs linked with such libtool
5961*** libraries will work regardless of this problem. Nevertheless, you
5962*** may want to report the problem to your system manager and/or to
5963*** bug-libtool@gnu.org
5964
5965EOF
5966 fi ;;
5967 esac
5968 fi
5969 break
5970 fi
5971 done
5972 IFS="$lt_save_ifs"
5973 MAGIC_CMD="$lt_save_MAGIC_CMD"
5974 ;;
5975esac
John Criswell7a73b802003-06-30 21:59:07 +00005976fi
John Criswell7a73b802003-06-30 21:59:07 +00005977
John Criswell47fdd832003-07-14 16:52:07 +00005978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5979if test -n "$MAGIC_CMD"; then
5980 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5981echo "${ECHO_T}$MAGIC_CMD" >&6
5982else
5983 echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
5985fi
John Criswell7a73b802003-06-30 21:59:07 +00005986
John Criswell47fdd832003-07-14 16:52:07 +00005987if test -z "$lt_cv_path_MAGIC_CMD"; then
5988 if test -n "$ac_tool_prefix"; then
5989 echo "$as_me:$LINENO: checking for file" >&5
5990echo $ECHO_N "checking for file... $ECHO_C" >&6
5991if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 case $MAGIC_CMD in
5995[\\/*] | ?:[\\/]*)
5996 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5997 ;;
5998*)
5999 lt_save_MAGIC_CMD="$MAGIC_CMD"
6000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6001 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6002 for ac_dir in $ac_dummy; do
6003 IFS="$lt_save_ifs"
6004 test -z "$ac_dir" && ac_dir=.
6005 if test -f $ac_dir/file; then
6006 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6007 if test -n "$file_magic_test_file"; then
6008 case $deplibs_check_method in
6009 "file_magic "*)
6010 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6012 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6013 $EGREP "$file_magic_regex" > /dev/null; then
6014 :
6015 else
6016 cat <<EOF 1>&2
6017
6018*** Warning: the command libtool uses to detect shared libraries,
6019*** $file_magic_cmd, produces output that libtool cannot recognize.
6020*** The result is that libtool may fail to recognize shared libraries
6021*** as such. This will affect the creation of libtool libraries that
6022*** depend on shared libraries, but programs linked with such libtool
6023*** libraries will work regardless of this problem. Nevertheless, you
6024*** may want to report the problem to your system manager and/or to
6025*** bug-libtool@gnu.org
6026
6027EOF
6028 fi ;;
6029 esac
6030 fi
6031 break
6032 fi
6033 done
6034 IFS="$lt_save_ifs"
6035 MAGIC_CMD="$lt_save_MAGIC_CMD"
6036 ;;
6037esac
6038fi
6039
6040MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6041if test -n "$MAGIC_CMD"; then
6042 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6043echo "${ECHO_T}$MAGIC_CMD" >&6
6044else
6045 echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6
6047fi
6048
6049 else
6050 MAGIC_CMD=:
6051 fi
6052fi
6053
6054 fi
6055 ;;
6056esac
6057
6058enable_dlopen=no
6059enable_win32_dll=no
6060
6061# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6062if test "${enable_libtool_lock+set}" = set; then
6063 enableval="$enable_libtool_lock"
6064
6065fi;
6066test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6067
John Criswell7a73b802003-06-30 21:59:07 +00006068
6069# Check whether --with-pic or --without-pic was given.
6070if test "${with_pic+set}" = set; then
6071 withval="$with_pic"
6072 pic_mode="$withval"
6073else
6074 pic_mode=default
6075fi;
6076test -z "$pic_mode" && pic_mode=default
6077
John Criswell47fdd832003-07-14 16:52:07 +00006078# Use C for the default configuration in the libtool script
6079tagname=
6080lt_save_CC="$CC"
6081ac_ext=c
6082ac_cpp='$CPP $CPPFLAGS'
6083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
6087
6088# Source file extension for C test sources.
6089ac_ext=c
6090
6091# Object file extension for compiled C test sources.
6092objext=o
6093objext=$objext
6094
6095# Code to be used in simple compile tests
6096lt_simple_compile_test_code="int some_variable = 0;\n"
6097
6098# Code to be used in simple link tests
6099lt_simple_link_test_code='int main(){return(0);}\n'
6100
6101
6102# If no C compiler was specified, use CC.
6103LTCC=${LTCC-"$CC"}
6104
6105# Allow CC to be a program name with arguments.
6106compiler=$CC
6107
6108
6109#
6110# Check for any special shared library compilation flags.
6111#
6112lt_prog_cc_shlib=
6113if test "$GCC" = no; then
6114 case $host_os in
6115 sco3.2v5*)
6116 lt_prog_cc_shlib='-belf'
6117 ;;
6118 esac
6119fi
6120if test -n "$lt_prog_cc_shlib"; then
6121 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6122echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6123 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6124 else
6125 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6126echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6127 lt_cv_prog_cc_can_build_shared=no
6128 fi
6129fi
6130
6131
6132#
6133# Check to make sure the static flag actually works.
6134#
6135echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6136echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6137if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
John Criswell47fdd832003-07-14 16:52:07 +00006140 lt_prog_compiler_static_works=no
6141 save_LDFLAGS="$LDFLAGS"
6142 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6143 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6144 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6145 # The compiler can only warn and ignore the option if not recognized
6146 # So say no if there are warnings
6147 if test -s conftest.err; then
6148 # Append any errors to the config.log.
6149 cat conftest.err 1>&5
6150 else
6151 lt_prog_compiler_static_works=yes
6152 fi
6153 fi
6154 $rm conftest*
6155 LDFLAGS="$save_LDFLAGS"
6156
6157fi
6158echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6159echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6160
6161if test x"$lt_prog_compiler_static_works" = xyes; then
6162 :
6163else
6164 lt_prog_compiler_static=
6165fi
6166
6167
6168
6169## CAVEAT EMPTOR:
6170## There is no encapsulation within the following macros, do not change
6171## the running order or otherwise move them around unless you know exactly
6172## what you are doing...
6173
6174lt_prog_compiler_no_builtin_flag=
6175
6176if test "$GCC" = yes; then
6177 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6178
6179 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6180echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6181if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184 lt_cv_prog_compiler_rtti_exceptions=no
6185 ac_outfile=conftest.$ac_objext
6186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6187 lt_compiler_flag="-fno-rtti -fno-exceptions"
6188 # Insert the option either (1) after the last *FLAGS variable, or
6189 # (2) before a word containing "conftest.", or (3) at the end.
6190 # Note that $ac_compile itself does not contain backslashes and begins
6191 # with a dollar sign (not a hyphen), so the echo should work correctly.
6192 # The option is referenced via a variable to avoid confusing sed.
6193 lt_compile=`echo "$ac_compile" | $SED \
6194 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6196 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +00006197 (eval echo "\"\$as_me:6197: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006198 (eval "$lt_compile" 2>conftest.err)
6199 ac_status=$?
6200 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006201 echo "$as_me:6201: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006202 if (exit $ac_status) && test -s "$ac_outfile"; then
6203 # The compiler can only warn and ignore the option if not recognized
6204 # So say no if there are warnings
6205 if test ! -s conftest.err; then
6206 lt_cv_prog_compiler_rtti_exceptions=yes
6207 fi
6208 fi
6209 $rm conftest*
6210
6211fi
6212echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6213echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6214
6215if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6216 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6217else
6218 :
6219fi
6220
6221fi
6222
6223lt_prog_compiler_wl=
6224lt_prog_compiler_pic=
6225lt_prog_compiler_static=
6226
6227echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6228echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006229
6230 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006231 lt_prog_compiler_wl='-Wl,'
6232 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006233
6234 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006235 aix*)
6236 # All AIX code is PIC.
6237 if test "$host_cpu" = ia64; then
6238 # AIX 5 now supports IA64 processor
6239 lt_prog_compiler_static='-Bstatic'
6240 fi
John Criswell7a73b802003-06-30 21:59:07 +00006241 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006242
John Criswell7a73b802003-06-30 21:59:07 +00006243 amigaos*)
6244 # FIXME: we need at least 68020 code to build shared libraries, but
6245 # adding the `-m68020' flag to GCC prevents building anything better,
6246 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006247 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006248 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006249
6250 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006251 # PIC is the default for these OSes.
6252 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006253
6254 mingw* | pw32* | os2*)
6255 # This hack is so that the source file can tell whether it is being
6256 # built for inclusion in a dll (and should export symbols for example).
6257 lt_prog_compiler_pic='-DDLL_EXPORT'
6258 ;;
6259
John Criswell7a73b802003-06-30 21:59:07 +00006260 darwin* | rhapsody*)
6261 # PIC is the default on this platform
6262 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006263 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006264 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006265
6266 msdosdjgpp*)
6267 # Just because we use GCC doesn't mean we suddenly get shared libraries
6268 # on systems that don't support them.
6269 lt_prog_compiler_can_build_shared=no
6270 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006271 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006272
John Criswell7a73b802003-06-30 21:59:07 +00006273 sysv4*MP*)
6274 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006275 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006276 fi
6277 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006278
6279 hpux*)
6280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6281 # not for PA HP-UX.
6282 case "$host_cpu" in
6283 hppa*64*|ia64*)
6284 # +Z the default
6285 ;;
6286 *)
6287 lt_prog_compiler_pic='-fPIC'
6288 ;;
6289 esac
6290 ;;
6291
John Criswell7a73b802003-06-30 21:59:07 +00006292 *)
John Criswell47fdd832003-07-14 16:52:07 +00006293 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006294 ;;
6295 esac
6296 else
John Criswell47fdd832003-07-14 16:52:07 +00006297 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006298 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006299 aix*)
6300 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006301 if test "$host_cpu" = ia64; then
6302 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006303 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006304 else
John Criswell47fdd832003-07-14 16:52:07 +00006305 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006306 fi
6307 ;;
6308
John Criswell47fdd832003-07-14 16:52:07 +00006309 mingw* | pw32* | os2*)
6310 # This hack is so that the source file can tell whether it is being
6311 # built for inclusion in a dll (and should export symbols for example).
6312 lt_prog_compiler_pic='-DDLL_EXPORT'
6313 ;;
6314
John Criswell7a73b802003-06-30 21:59:07 +00006315 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006316 lt_prog_compiler_wl='-Wl,'
6317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6318 # not for PA HP-UX.
6319 case "$host_cpu" in
6320 hppa*64*|ia64*)
6321 # +Z the default
6322 ;;
6323 *)
6324 lt_prog_compiler_pic='+Z'
6325 ;;
6326 esac
6327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6328 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006329 ;;
6330
John Criswell47fdd832003-07-14 16:52:07 +00006331 irix5* | irix6* | nonstopux*)
6332 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006333 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006334 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006335 ;;
6336
6337 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006338 lt_prog_compiler_pic='-KPIC'
6339 lt_prog_compiler_static='-Bstatic'
6340 ;;
6341
6342 linux*)
6343 case $CC in
6344 icc|ecc)
6345 lt_prog_compiler_wl='-Wl,'
6346 lt_prog_compiler_pic='-KPIC'
6347 lt_prog_compiler_static='-static'
6348 ;;
6349 ccc)
6350 lt_prog_compiler_wl='-Wl,'
6351 # All Alpha code is PIC.
6352 lt_prog_compiler_static='-non_shared'
6353 ;;
6354 esac
John Criswell7a73b802003-06-30 21:59:07 +00006355 ;;
6356
6357 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006358 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006359 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006360 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006361 ;;
6362
6363 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006364 lt_prog_compiler_pic='-Kpic'
6365 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006366 ;;
6367
6368 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006369 lt_prog_compiler_wl='-Wl,'
6370 lt_prog_compiler_pic='-KPIC'
6371 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006372 ;;
6373
6374 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006375 lt_prog_compiler_wl='-Qoption ld '
6376 lt_prog_compiler_pic='-PIC'
6377 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006378 ;;
6379
6380 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006381 lt_prog_compiler_wl='-Wl,'
6382 lt_prog_compiler_pic='-KPIC'
6383 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006384 ;;
6385
6386 sysv4*MP*)
6387 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006388 lt_prog_compiler_pic='-Kconform_pic'
6389 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006390 fi
6391 ;;
6392
John Criswell47fdd832003-07-14 16:52:07 +00006393 uts4*)
6394 lt_prog_compiler_pic='-pic'
6395 lt_prog_compiler_static='-Bstatic'
6396 ;;
6397
John Criswell7a73b802003-06-30 21:59:07 +00006398 *)
John Criswell47fdd832003-07-14 16:52:07 +00006399 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006400 ;;
6401 esac
6402 fi
6403
John Criswell47fdd832003-07-14 16:52:07 +00006404echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6405echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006406
John Criswell47fdd832003-07-14 16:52:07 +00006407#
6408# Check to make sure the PIC flag actually works.
6409#
6410if test -n "$lt_prog_compiler_pic"; then
6411 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6412echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6413if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
John Criswell47fdd832003-07-14 16:52:07 +00006416 lt_prog_compiler_pic_works=no
6417 ac_outfile=conftest.$ac_objext
6418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6420 # Insert the option either (1) after the last *FLAGS variable, or
6421 # (2) before a word containing "conftest.", or (3) at the end.
6422 # Note that $ac_compile itself does not contain backslashes and begins
6423 # with a dollar sign (not a hyphen), so the echo should work correctly.
6424 # The option is referenced via a variable to avoid confusing sed.
6425 lt_compile=`echo "$ac_compile" | $SED \
6426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6428 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +00006429 (eval echo "\"\$as_me:6429: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006430 (eval "$lt_compile" 2>conftest.err)
6431 ac_status=$?
6432 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006433 echo "$as_me:6433: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006434 if (exit $ac_status) && test -s "$ac_outfile"; then
6435 # The compiler can only warn and ignore the option if not recognized
6436 # So say no if there are warnings
6437 if test ! -s conftest.err; then
6438 lt_prog_compiler_pic_works=yes
6439 fi
6440 fi
6441 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006442
John Criswell47fdd832003-07-14 16:52:07 +00006443fi
6444echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6445echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006446
John Criswell47fdd832003-07-14 16:52:07 +00006447if test x"$lt_prog_compiler_pic_works" = xyes; then
6448 case $lt_prog_compiler_pic in
6449 "" | " "*) ;;
6450 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6451 esac
John Criswell7a73b802003-06-30 21:59:07 +00006452else
John Criswell47fdd832003-07-14 16:52:07 +00006453 lt_prog_compiler_pic=
6454 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006455fi
6456
John Criswell7a73b802003-06-30 21:59:07 +00006457fi
John Criswell47fdd832003-07-14 16:52:07 +00006458case "$host_os" in
6459 # For platforms which do not support PIC, -DPIC is meaningless:
6460 *djgpp*)
6461 lt_prog_compiler_pic=
6462 ;;
6463 *)
6464 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6465 ;;
6466esac
John Criswell7a73b802003-06-30 21:59:07 +00006467
John Criswell7a73b802003-06-30 21:59:07 +00006468echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6469echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006470if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
John Criswell47fdd832003-07-14 16:52:07 +00006473 lt_cv_prog_compiler_c_o=no
6474 $rm -r conftest 2>/dev/null
6475 mkdir conftest
6476 cd conftest
6477 mkdir out
6478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006479
John Criswell47fdd832003-07-14 16:52:07 +00006480 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6481 # that will create temporary files in the current directory regardless of
6482 # the output directory. Thus, making CWD read-only will cause this test
6483 # to fail, enabling locking or at least warning the user not to do parallel
6484 # builds.
6485 chmod -w .
6486
6487 lt_compiler_flag="-o out/conftest2.$ac_objext"
6488 # Insert the option either (1) after the last *FLAGS variable, or
6489 # (2) before a word containing "conftest.", or (3) at the end.
6490 # Note that $ac_compile itself does not contain backslashes and begins
6491 # with a dollar sign (not a hyphen), so the echo should work correctly.
6492 lt_compile=`echo "$ac_compile" | $SED \
6493 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6495 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +00006496 (eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006497 (eval "$lt_compile" 2>out/conftest.err)
6498 ac_status=$?
6499 cat out/conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006500 echo "$as_me:6500: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6502 then
6503 # The compiler can only warn and ignore the option if not recognized
6504 # So say no if there are warnings
6505 if test ! -s out/conftest.err; then
6506 lt_cv_prog_compiler_c_o=yes
6507 fi
6508 fi
6509 chmod u+w .
6510 $rm conftest* out/*
6511 rmdir out
6512 cd ..
6513 rmdir conftest
6514 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006515
6516fi
John Criswell47fdd832003-07-14 16:52:07 +00006517echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6518echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006519
John Criswell7a73b802003-06-30 21:59:07 +00006520
John Criswell7a73b802003-06-30 21:59:07 +00006521hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006522if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006523 # do not overwrite the value of need_locks provided by the user
6524 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6525echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6526 hard_links=yes
6527 $rm conftest*
6528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6529 touch conftest.a
6530 ln conftest.a conftest.b 2>&5 || hard_links=no
6531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6532 echo "$as_me:$LINENO: result: $hard_links" >&5
6533echo "${ECHO_T}$hard_links" >&6
6534 if test "$hard_links" = no; then
6535 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6536echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6537 need_locks=warn
6538 fi
6539else
6540 need_locks=no
6541fi
John Criswell7a73b802003-06-30 21:59:07 +00006542
John Criswell47fdd832003-07-14 16:52:07 +00006543echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6544echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6545
6546 runpath_var=
6547 allow_undefined_flag=
6548 enable_shared_with_static_runtimes=no
6549 archive_cmds=
6550 archive_expsym_cmds=
6551 old_archive_From_new_cmds=
6552 old_archive_from_expsyms_cmds=
6553 export_dynamic_flag_spec=
6554 whole_archive_flag_spec=
6555 thread_safe_flag_spec=
6556 hardcode_libdir_flag_spec=
6557 hardcode_libdir_flag_spec_ld=
6558 hardcode_libdir_separator=
6559 hardcode_direct=no
6560 hardcode_minus_L=no
6561 hardcode_shlibpath_var=unsupported
6562 link_all_deplibs=unknown
6563 hardcode_automatic=no
6564 module_cmds=
6565 module_expsym_cmds=
6566 always_export_symbols=no
6567 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6568 # include_expsyms should be a list of space-separated symbols to be *always*
6569 # included in the symbol list
6570 include_expsyms=
6571 # exclude_expsyms can be an extended regexp of symbols to exclude
6572 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6573 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6574 # as well as any symbol that contains `d'.
6575 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6576 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6577 # platforms (ab)use it in PIC code, but their linkers get confused if
6578 # the symbol is explicitly referenced. Since portable code cannot
6579 # rely on this symbol name, it's probably fine to never include it in
6580 # preloaded symbol tables.
6581 extract_expsyms_cmds=
6582
6583 case $host_os in
6584 cygwin* | mingw* | pw32*)
6585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6586 # When not using gcc, we currently assume that we are using
6587 # Microsoft Visual C++.
6588 if test "$GCC" != yes; then
6589 with_gnu_ld=no
6590 fi
6591 ;;
6592 openbsd*)
6593 with_gnu_ld=no
6594 ;;
6595 esac
6596
6597 ld_shlibs=yes
6598 if test "$with_gnu_ld" = yes; then
6599 # If archive_cmds runs LD, not CC, wlarc should be empty
6600 wlarc='${wl}'
6601
6602 # See if GNU ld supports shared libraries.
6603 case $host_os in
6604 aix3* | aix4* | aix5*)
6605 # On AIX/PPC, the GNU linker is very broken
6606 if test "$host_cpu" != ia64; then
6607 ld_shlibs=no
6608 cat <<EOF 1>&2
6609
6610*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6611*** to be unable to reliably create shared libraries on AIX.
6612*** Therefore, libtool is disabling shared libraries support. If you
6613*** really care for shared libraries, you may want to modify your PATH
6614*** so that a non-GNU linker is found, and then restart.
6615
6616EOF
6617 fi
6618 ;;
6619
6620 amigaos*)
6621 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)'
6622 hardcode_libdir_flag_spec='-L$libdir'
6623 hardcode_minus_L=yes
6624
6625 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6626 # that the semantics of dynamic libraries on AmigaOS, at least up
6627 # to version 4, is to share data among multiple programs linked
6628 # with the same dynamic library. Since this doesn't match the
6629 # behavior of shared libraries on other platforms, we can't use
6630 # them.
6631 ld_shlibs=no
6632 ;;
6633
6634 beos*)
6635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6636 allow_undefined_flag=unsupported
6637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6638 # support --undefined. This deserves some investigation. FIXME
6639 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6640 else
6641 ld_shlibs=no
6642 fi
6643 ;;
6644
6645 cygwin* | mingw* | pw32*)
6646 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6647 # as there is no search path for DLLs.
6648 hardcode_libdir_flag_spec='-L$libdir'
6649 allow_undefined_flag=unsupported
6650 always_export_symbols=no
6651 enable_shared_with_static_runtimes=yes
6652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6653
6654 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6656 # If the export-symbols file already is a .def file (1st line
6657 # is EXPORTS), use it as is; otherwise, prepend...
6658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6659 cp $export_symbols $output_objdir/$soname.def;
6660 else
6661 echo EXPORTS > $output_objdir/$soname.def;
6662 cat $export_symbols >> $output_objdir/$soname.def;
6663 fi~
6664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6665 else
6666 ld_shlibs=no
6667 fi
6668 ;;
6669
6670 netbsd*)
6671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6672 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6673 wlarc=
6674 else
6675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6677 fi
6678 ;;
6679
6680 solaris* | sysv5*)
6681 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6682 ld_shlibs=no
6683 cat <<EOF 1>&2
6684
6685*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6686*** create shared libraries on Solaris systems. Therefore, libtool
6687*** is disabling shared libraries support. We urge you to upgrade GNU
6688*** binutils to release 2.9.1 or newer. Another option is to modify
6689*** your PATH or compiler configuration so that the native linker is
6690*** used, and then restart.
6691
6692EOF
6693 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6696 else
6697 ld_shlibs=no
6698 fi
6699 ;;
6700
6701 sunos4*)
6702 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6703 wlarc=
6704 hardcode_direct=yes
6705 hardcode_shlibpath_var=no
6706 ;;
6707
6708 *)
6709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6712 else
6713 ld_shlibs=no
6714 fi
6715 ;;
6716 esac
6717
6718 if test "$ld_shlibs" = yes; then
6719 runpath_var=LD_RUN_PATH
6720 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6721 export_dynamic_flag_spec='${wl}--export-dynamic'
6722 # ancient GNU ld didn't support --whole-archive et. al.
6723 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6724 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6725 else
6726 whole_archive_flag_spec=
6727 fi
6728 fi
6729 else
6730 # PORTME fill in a description of your system's linker (not GNU ld)
6731 case $host_os in
6732 aix3*)
6733 allow_undefined_flag=unsupported
6734 always_export_symbols=yes
6735 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'
6736 # Note: this linker hardcodes the directories in LIBPATH if there
6737 # are no directories specified by -L.
6738 hardcode_minus_L=yes
6739 if test "$GCC" = yes && test -z "$link_static_flag"; then
6740 # Neither direct hardcoding nor static linking is supported with a
6741 # broken collect2.
6742 hardcode_direct=unsupported
6743 fi
6744 ;;
6745
6746 aix4* | aix5*)
6747 if test "$host_cpu" = ia64; then
6748 # On IA64, the linker does run time linking by default, so we don't
6749 # have to do anything special.
6750 aix_use_runtimelinking=no
6751 exp_sym_flag='-Bexport'
6752 no_entry_flag=""
6753 else
6754 # If we're using GNU nm, then we don't want the "-C" option.
6755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6756 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6757 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'
6758 else
6759 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'
6760 fi
6761 aix_use_runtimelinking=no
6762
6763 # Test if we are trying to use run time linking or normal
6764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6765 # need to do runtime linking.
6766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6767 for ld_flag in $LDFLAGS; do
6768 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6769 aix_use_runtimelinking=yes
6770 break
6771 fi
6772 done
6773 esac
6774
6775 exp_sym_flag='-bexport'
6776 no_entry_flag='-bnoentry'
6777 fi
6778
6779 # When large executables or shared objects are built, AIX ld can
6780 # have problems creating the table of contents. If linking a library
6781 # or program results in "error TOC overflow" add -mminimal-toc to
6782 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6783 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6784
6785 archive_cmds=''
6786 hardcode_direct=yes
6787 hardcode_libdir_separator=':'
6788 link_all_deplibs=yes
6789
6790 if test "$GCC" = yes; then
6791 case $host_os in aix4.012|aix4.012.*)
6792 # We only want to do this on AIX 4.2 and lower, the check
6793 # below for broken collect2 doesn't work under 4.3+
6794 collect2name=`${CC} -print-prog-name=collect2`
6795 if test -f "$collect2name" && \
6796 strings "$collect2name" | grep resolve_lib_name >/dev/null
6797 then
6798 # We have reworked collect2
6799 hardcode_direct=yes
6800 else
6801 # We have old collect2
6802 hardcode_direct=unsupported
6803 # It fails to find uninstalled libraries when the uninstalled
6804 # path is not listed in the libpath. Setting hardcode_minus_L
6805 # to unsupported forces relinking
6806 hardcode_minus_L=yes
6807 hardcode_libdir_flag_spec='-L$libdir'
6808 hardcode_libdir_separator=
6809 fi
6810 esac
6811 shared_flag='-shared'
6812 else
6813 # not using gcc
6814 if test "$host_cpu" = ia64; then
6815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6816 # chokes on -Wl,-G. The following line is correct:
6817 shared_flag='-G'
6818 else
6819 if test "$aix_use_runtimelinking" = yes; then
6820 shared_flag='${wl}-G'
6821 else
6822 shared_flag='${wl}-bM:SRE'
6823 fi
6824 fi
6825 fi
6826
6827 # It seems that -bexpall does not export symbols beginning with
6828 # underscore (_), so it is better to generate a list of symbols to export.
6829 always_export_symbols=yes
6830 if test "$aix_use_runtimelinking" = yes; then
6831 # Warning - without using the other runtime loading flags (-brtl),
6832 # -berok will link without error, but may produce a broken library.
6833 allow_undefined_flag='-berok'
6834 # Determine the default libpath from the value encoded in an empty executable.
6835 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006836#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006837/* confdefs.h. */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006842
John Criswell7a73b802003-06-30 21:59:07 +00006843int
6844main ()
6845{
John Criswell47fdd832003-07-14 16:52:07 +00006846
John Criswell7a73b802003-06-30 21:59:07 +00006847 ;
6848 return 0;
6849}
6850_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006851rm -f conftest.$ac_objext conftest$ac_exeext
6852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006857 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 (eval $ac_try) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006863
John Criswell47fdd832003-07-14 16:52:07 +00006864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6865}'`
6866# Check for a 64-bit object if we didn't find anything.
6867if 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; }
6868}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006869else
6870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006871sed 's/^/| /' conftest.$ac_ext >&5
6872
John Criswell7a73b802003-06-30 21:59:07 +00006873fi
John Criswell47fdd832003-07-14 16:52:07 +00006874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006876
John Criswell47fdd832003-07-14 16:52:07 +00006877 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6878 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"
6879 else
6880 if test "$host_cpu" = ia64; then
6881 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6882 allow_undefined_flag="-z nodefs"
6883 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"
6884 else
6885 # Determine the default libpath from the value encoded in an empty executable.
6886 cat >conftest.$ac_ext <<_ACEOF
6887#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006888/* confdefs.h. */
6889_ACEOF
6890cat confdefs.h >>conftest.$ac_ext
6891cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006893
John Criswell47fdd832003-07-14 16:52:07 +00006894int
6895main ()
6896{
John Criswell7a73b802003-06-30 21:59:07 +00006897
John Criswell47fdd832003-07-14 16:52:07 +00006898 ;
6899 return 0;
6900}
6901_ACEOF
6902rm -f conftest.$ac_objext conftest$ac_exeext
6903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006914
John Criswell47fdd832003-07-14 16:52:07 +00006915aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6916}'`
6917# Check for a 64-bit object if we didn't find anything.
6918if 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; }
6919}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006920else
John Criswell47fdd832003-07-14 16:52:07 +00006921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006922sed 's/^/| /' conftest.$ac_ext >&5
6923
John Criswell47fdd832003-07-14 16:52:07 +00006924fi
6925rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6926if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006927
John Criswell47fdd832003-07-14 16:52:07 +00006928 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6929 # Warning - without using the other run time loading flags,
6930 # -berok will link without error, but may produce a broken library.
6931 no_undefined_flag=' ${wl}-bernotok'
6932 allow_undefined_flag=' ${wl}-berok'
6933 # -bexpall does not export symbols beginning with underscore (_)
6934 always_export_symbols=yes
6935 # Exported symbols can be pulled into shared objects from archives
6936 whole_archive_flag_spec=' '
6937 archive_cmds_need_lc=yes
6938 # This is similar to how AIX traditionally builds it's shared libraries.
6939 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 +00006940 fi
6941 fi
John Criswell7a73b802003-06-30 21:59:07 +00006942 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006943
6944 amigaos*)
6945 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)'
6946 hardcode_libdir_flag_spec='-L$libdir'
6947 hardcode_minus_L=yes
6948 # see comment about different semantics on the GNU ld section
6949 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006950 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006951
John Criswell47fdd832003-07-14 16:52:07 +00006952 bsdi4*)
6953 export_dynamic_flag_spec=-rdynamic
6954 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006955
John Criswell47fdd832003-07-14 16:52:07 +00006956 cygwin* | mingw* | pw32*)
6957 # When not using gcc, we currently assume that we are using
6958 # Microsoft Visual C++.
6959 # hardcode_libdir_flag_spec is actually meaningless, as there is
6960 # no search path for DLLs.
6961 hardcode_libdir_flag_spec=' '
6962 allow_undefined_flag=unsupported
6963 # Tell ltmain to make .lib files, not .a files.
6964 libext=lib
6965 # Tell ltmain to make .dll files, not .so files.
6966 shrext=".dll"
6967 # FIXME: Setting linknames here is a bad hack.
6968 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6969 # The linker will automatically build a .lib file if we build a DLL.
6970 old_archive_From_new_cmds='true'
6971 # FIXME: Should let the user specify the lib program.
6972 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6973 fix_srcfile_path='`cygpath -w "$srcfile"`'
6974 enable_shared_with_static_runtimes=yes
6975 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006976
John Criswell47fdd832003-07-14 16:52:07 +00006977 darwin* | rhapsody*)
6978 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6979 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006980 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006981 rhapsody* | darwin1.[012])
6982 allow_undefined_flag='-undefined suppress'
6983 ;;
6984 *) # Darwin 1.3 on
6985 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006986 ;;
6987 esac
John Criswell47fdd832003-07-14 16:52:07 +00006988 # FIXME: Relying on posixy $() will cause problems for
6989 # cross-compilation, but unfortunately the echo tests do not
6990 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6991 # `"' quotes if we put them in here... so don't!
6992 lt_int_apple_cc_single_mod=no
6993 output_verbose_link_cmd='echo'
6994 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6995 lt_int_apple_cc_single_mod=yes
6996 fi
6997 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6998 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6999 else
7000 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'
7001 fi
7002 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7003 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7004 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7005 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}'
7006 else
7007 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}'
7008 fi
7009 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}'
7010 hardcode_direct=no
7011 hardcode_automatic=yes
7012 hardcode_shlibpath_var=unsupported
7013 whole_archive_flag_spec='-all_load $convenience'
7014 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007015 fi
John Criswell47fdd832003-07-14 16:52:07 +00007016 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007017
John Criswell47fdd832003-07-14 16:52:07 +00007018 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007020 hardcode_libdir_flag_spec='-L$libdir'
7021 hardcode_shlibpath_var=no
7022 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007023
John Criswell47fdd832003-07-14 16:52:07 +00007024 freebsd1*)
7025 ld_shlibs=no
7026 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007027
John Criswell47fdd832003-07-14 16:52:07 +00007028 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7029 # support. Future versions do this automatically, but an explicit c++rt0.o
7030 # does not break anything, and helps significantly (at the cost of a little
7031 # extra space).
7032 freebsd2.2*)
7033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7034 hardcode_libdir_flag_spec='-R$libdir'
7035 hardcode_direct=yes
7036 hardcode_shlibpath_var=no
7037 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007038
John Criswell47fdd832003-07-14 16:52:07 +00007039 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7040 freebsd2*)
7041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7042 hardcode_direct=yes
7043 hardcode_minus_L=yes
7044 hardcode_shlibpath_var=no
7045 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007046
John Criswell47fdd832003-07-14 16:52:07 +00007047 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7048 freebsd*)
7049 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7050 hardcode_libdir_flag_spec='-R$libdir'
7051 hardcode_direct=yes
7052 hardcode_shlibpath_var=no
7053 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007054
John Criswell47fdd832003-07-14 16:52:07 +00007055 hpux9*)
7056 if test "$GCC" = yes; then
7057 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'
7058 else
7059 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'
7060 fi
7061 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7062 hardcode_libdir_separator=:
7063 hardcode_direct=yes
7064
7065 # hardcode_minus_L: Not really in the search PATH,
7066 # but as the default location of the library.
7067 hardcode_minus_L=yes
7068 export_dynamic_flag_spec='${wl}-E'
7069 ;;
7070
7071 hpux10* | hpux11*)
7072 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7073 case "$host_cpu" in
7074 hppa*64*|ia64*)
7075 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7076 ;;
7077 *)
7078 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7079 ;;
7080 esac
7081 else
7082 case "$host_cpu" in
7083 hppa*64*|ia64*)
7084 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7085 ;;
7086 *)
7087 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7088 ;;
7089 esac
7090 fi
7091 if test "$with_gnu_ld" = no; then
7092 case "$host_cpu" in
7093 hppa*64*)
7094 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7095 hardcode_libdir_flag_spec_ld='+b $libdir'
7096 hardcode_libdir_separator=:
7097 hardcode_direct=no
7098 hardcode_shlibpath_var=no
7099 ;;
7100 ia64*)
7101 hardcode_libdir_flag_spec='-L$libdir'
7102 hardcode_direct=no
7103 hardcode_shlibpath_var=no
7104
7105 # hardcode_minus_L: Not really in the search PATH,
7106 # but as the default location of the library.
7107 hardcode_minus_L=yes
7108 ;;
7109 *)
7110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7111 hardcode_libdir_separator=:
7112 hardcode_direct=yes
7113 export_dynamic_flag_spec='${wl}-E'
7114
7115 # hardcode_minus_L: Not really in the search PATH,
7116 # but as the default location of the library.
7117 hardcode_minus_L=yes
7118 ;;
7119 esac
7120 fi
7121 ;;
7122
7123 irix5* | irix6* | nonstopux*)
7124 if test "$GCC" = yes; then
7125 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'
7126 else
7127 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'
7128 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7129 fi
7130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7131 hardcode_libdir_separator=:
7132 link_all_deplibs=yes
7133 ;;
7134
7135 netbsd*)
7136 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7138 else
7139 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7140 fi
7141 hardcode_libdir_flag_spec='-R$libdir'
7142 hardcode_direct=yes
7143 hardcode_shlibpath_var=no
7144 ;;
7145
7146 newsos6)
7147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7148 hardcode_direct=yes
7149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7150 hardcode_libdir_separator=:
7151 hardcode_shlibpath_var=no
7152 ;;
7153
7154 openbsd*)
7155 hardcode_direct=yes
7156 hardcode_shlibpath_var=no
7157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7160 export_dynamic_flag_spec='${wl}-E'
7161 else
7162 case $host_os in
7163 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7165 hardcode_libdir_flag_spec='-R$libdir'
7166 ;;
7167 *)
7168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7169 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7170 ;;
7171 esac
7172 fi
7173 ;;
7174
7175 os2*)
7176 hardcode_libdir_flag_spec='-L$libdir'
7177 hardcode_minus_L=yes
7178 allow_undefined_flag=unsupported
7179 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'
7180 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7181 ;;
7182
7183 osf3*)
7184 if test "$GCC" = yes; then
7185 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7186 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'
7187 else
7188 allow_undefined_flag=' -expect_unresolved \*'
7189 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'
7190 fi
7191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7192 hardcode_libdir_separator=:
7193 ;;
7194
7195 osf4* | osf5*) # as osf3* with the addition of -msym flag
7196 if test "$GCC" = yes; then
7197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7198 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'
7199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200 else
7201 allow_undefined_flag=' -expect_unresolved \*'
7202 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'
7203 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7204 $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'
7205
7206 # Both c and cxx compiler support -rpath directly
7207 hardcode_libdir_flag_spec='-rpath $libdir'
7208 fi
7209 hardcode_libdir_separator=:
7210 ;;
7211
7212 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7214 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007215 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007216 runpath_var=LD_RUN_PATH
7217 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007218 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007219
John Criswell47fdd832003-07-14 16:52:07 +00007220 solaris*)
7221 no_undefined_flag=' -z text'
7222 if test "$GCC" = yes; then
7223 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7225 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7226 else
7227 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7228 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7229 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7230 fi
7231 hardcode_libdir_flag_spec='-R$libdir'
7232 hardcode_shlibpath_var=no
7233 case $host_os in
7234 solaris2.[0-5] | solaris2.[0-5].*) ;;
7235 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7236 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7237 esac
7238 link_all_deplibs=yes
7239 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007240
John Criswell47fdd832003-07-14 16:52:07 +00007241 sunos4*)
7242 if test "x$host_vendor" = xsequent; then
7243 # Use $CC to link under sequent, because it throws in some extra .o
7244 # files that make .init and .fini sections work.
7245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7246 else
7247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7248 fi
7249 hardcode_libdir_flag_spec='-L$libdir'
7250 hardcode_direct=yes
7251 hardcode_minus_L=yes
7252 hardcode_shlibpath_var=no
7253 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007254
John Criswell47fdd832003-07-14 16:52:07 +00007255 sysv4)
7256 case $host_vendor in
7257 sni)
7258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7259 hardcode_direct=yes # is this really true???
7260 ;;
7261 siemens)
7262 ## LD is ld it makes a PLAMLIB
7263 ## CC just makes a GrossModule.
7264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7265 reload_cmds='$CC -r -o $output$reload_objs'
7266 hardcode_direct=no
7267 ;;
7268 motorola)
7269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7271 ;;
7272 esac
7273 runpath_var='LD_RUN_PATH'
7274 hardcode_shlibpath_var=no
7275 ;;
7276
7277 sysv4.3*)
7278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7279 hardcode_shlibpath_var=no
7280 export_dynamic_flag_spec='-Bexport'
7281 ;;
7282
7283 sysv4*MP*)
7284 if test -d /usr/nec; then
7285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286 hardcode_shlibpath_var=no
7287 runpath_var=LD_RUN_PATH
7288 hardcode_runpath_var=yes
7289 ld_shlibs=yes
7290 fi
7291 ;;
7292
7293 sysv4.2uw2*)
7294 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7295 hardcode_direct=yes
7296 hardcode_minus_L=no
7297 hardcode_shlibpath_var=no
7298 hardcode_runpath_var=yes
7299 runpath_var=LD_RUN_PATH
7300 ;;
7301
7302 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7303 no_undefined_flag='${wl}-z ${wl}text'
7304 if test "$GCC" = yes; then
7305 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7306 else
7307 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7308 fi
7309 runpath_var='LD_RUN_PATH'
7310 hardcode_shlibpath_var=no
7311 ;;
7312
7313 sysv5*)
7314 no_undefined_flag=' -z text'
7315 # $CC -shared without GNU ld will not create a library from C++
7316 # object files and a static libstdc++, better avoid it by now
7317 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7318 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7320 hardcode_libdir_flag_spec=
7321 hardcode_shlibpath_var=no
7322 runpath_var='LD_RUN_PATH'
7323 ;;
7324
7325 uts4*)
7326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7327 hardcode_libdir_flag_spec='-L$libdir'
7328 hardcode_shlibpath_var=no
7329 ;;
7330
7331 *)
7332 ld_shlibs=no
7333 ;;
7334 esac
7335 fi
7336
John Criswell7a73b802003-06-30 21:59:07 +00007337echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7338echo "${ECHO_T}$ld_shlibs" >&6
7339test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007340
John Criswell47fdd832003-07-14 16:52:07 +00007341variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7342if test "$GCC" = yes; then
7343 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7344fi
7345
7346#
7347# Do we need to explicitly link libc?
7348#
7349case "x$archive_cmds_need_lc" in
7350x|xyes)
7351 # Assume -lc should be added
7352 archive_cmds_need_lc=yes
7353
7354 if test "$enable_shared" = yes && test "$GCC" = yes; then
7355 case $archive_cmds in
7356 *'~'*)
7357 # FIXME: we may have to deal with multi-command sequences.
7358 ;;
7359 '$CC '*)
7360 # Test whether the compiler implicitly links with -lc since on some
7361 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7362 # to ld, don't add -lc before -lgcc.
7363 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7364echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7365 $rm conftest*
7366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7367
7368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7369 (eval $ac_compile) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } 2>conftest.err; then
7373 soname=conftest
7374 lib=conftest
7375 libobjs=conftest.$ac_objext
7376 deplibs=
7377 wl=$lt_prog_compiler_wl
7378 compiler_flags=-v
7379 linker_flags=-v
7380 verstring=
7381 output_objdir=.
7382 libname=conftest
7383 lt_save_allow_undefined_flag=$allow_undefined_flag
7384 allow_undefined_flag=
7385 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7386 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }
7390 then
7391 archive_cmds_need_lc=no
7392 else
7393 archive_cmds_need_lc=yes
7394 fi
7395 allow_undefined_flag=$lt_save_allow_undefined_flag
7396 else
7397 cat conftest.err 1>&5
7398 fi
7399 $rm conftest*
7400 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7401echo "${ECHO_T}$archive_cmds_need_lc" >&6
7402 ;;
7403 esac
7404 fi
7405 ;;
7406esac
7407
John Criswell7a73b802003-06-30 21:59:07 +00007408echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7409echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7410hardcode_action=
7411if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007412 test -n "$runpath_var " || \
7413 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007414
7415 # We can hardcode non-existant directories.
7416 if test "$hardcode_direct" != no &&
7417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7418 # have to relink, otherwise we might link with an installed library
7419 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007421 test "$hardcode_minus_L" != no; then
7422 # Linking always hardcodes the temporary library directory.
7423 hardcode_action=relink
7424 else
7425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7426 hardcode_action=immediate
7427 fi
7428else
7429 # We cannot hardcode anything, or else we can only hardcode existing
7430 # directories.
7431 hardcode_action=unsupported
7432fi
7433echo "$as_me:$LINENO: result: $hardcode_action" >&5
7434echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007435
John Criswell47fdd832003-07-14 16:52:07 +00007436if test "$hardcode_action" = relink; then
7437 # Fast installation is not supported
7438 enable_fast_install=no
7439elif test "$shlibpath_overrides_runpath" = yes ||
7440 test "$enable_shared" = no; then
7441 # Fast installation is not necessary
7442 enable_fast_install=needless
7443fi
7444
John Criswell7a73b802003-06-30 21:59:07 +00007445striplib=
7446old_striplib=
7447echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7448echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7449if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7450 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7451 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454else
John Criswell47fdd832003-07-14 16:52:07 +00007455# FIXME - insert some real tests, host_os isn't really good enough
7456 case $host_os in
7457 darwin*)
7458 if test -n "$STRIP" ; then
7459 striplib="$STRIP -x"
7460 echo "$as_me:$LINENO: result: yes" >&5
7461echo "${ECHO_T}yes" >&6
7462 else
John Criswell7a73b802003-06-30 21:59:07 +00007463 echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6
7465fi
John Criswell47fdd832003-07-14 16:52:07 +00007466 ;;
7467 *)
7468 echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6
7470 ;;
7471 esac
7472fi
John Criswell7a73b802003-06-30 21:59:07 +00007473
John Criswell7a73b802003-06-30 21:59:07 +00007474echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7475echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7476library_names_spec=
7477libname_spec='lib$name'
7478soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007479shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007480postinstall_cmds=
7481postuninstall_cmds=
7482finish_cmds=
7483finish_eval=
7484shlibpath_var=
7485shlibpath_overrides_runpath=unknown
7486version_type=none
7487dynamic_linker="$host_os ld.so"
7488sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007489if test "$GCC" = yes; then
7490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7491 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7492 # if the path contains ";" then we assume it to be the separator
7493 # otherwise default to the standard path separator (i.e. ":") - it is
7494 # assumed that no part of a normal pathname contains ";" but that should
7495 # okay in the real world where ";" in dirpaths is itself problematic.
7496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7497 else
7498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7499 fi
7500else
7501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7502fi
7503need_lib_prefix=unknown
7504hardcode_into_libs=no
7505
7506# when you set need_version to no, make sure it does not cause -set_version
7507# flags to be left without arguments
7508need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007509
7510case $host_os in
7511aix3*)
7512 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007514 shlibpath_var=LIBPATH
7515
John Criswell47fdd832003-07-14 16:52:07 +00007516 # AIX 3 has no versioning support, so we append a major version to the name.
7517 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007518 ;;
7519
7520aix4* | aix5*)
7521 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007522 need_lib_prefix=no
7523 need_version=no
7524 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007525 if test "$host_cpu" = ia64; then
7526 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007528 shlibpath_var=LD_LIBRARY_PATH
7529 else
7530 # With GCC up to 2.95.x, collect2 would create an import file
7531 # for dependence libraries. The import file would start with
7532 # the line `#! .'. This would cause the generated library to
7533 # depend on `.', always an invalid library. This was fixed in
7534 # development snapshots of GCC prior to 3.0.
7535 case $host_os in
7536 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7538 echo ' yes '
7539 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7540 :
7541 else
7542 can_build_shared=no
7543 fi
7544 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007545 esac
John Criswell47fdd832003-07-14 16:52:07 +00007546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7547 # soname into executable. Probably we can add versioning support to
7548 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007549 if test "$aix_use_runtimelinking" = yes; then
7550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7551 # instead of lib<name>.a to let people know that these are not
7552 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007554 else
7555 # We preserve .a as extension for shared libraries through AIX4.2
7556 # and later when we are not doing run time linking.
7557 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007558 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007559 fi
7560 shlibpath_var=LIBPATH
7561 fi
7562 ;;
7563
7564amigaos*)
7565 library_names_spec='$libname.ixlibrary $libname.a'
7566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7567 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'
7568 ;;
7569
7570beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007571 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007572 dynamic_linker="$host_os ld.so"
7573 shlibpath_var=LIBRARY_PATH
7574 ;;
7575
7576bsdi4*)
7577 version_type=linux
7578 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7580 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7582 shlibpath_var=LD_LIBRARY_PATH
7583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007585 # the default ld.so.conf also contains /usr/contrib/lib and
7586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7587 # libtool to hard-code these into programs
7588 ;;
7589
7590cygwin* | mingw* | pw32*)
7591 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007592 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007593 need_version=no
7594 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007595
John Criswell7a73b802003-06-30 21:59:07 +00007596 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007597 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007598 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7600 postinstall_cmds='base_file=`basename \${file}`~
7601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007602 dldir=$destdir/`dirname \$dlpath`~
7603 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007604 $install_prog $dir/$dlname \$dldir/$dlname'
7605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007606 dlpath=$dir/\$dldll~
7607 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007608 shlibpath_overrides_runpath=yes
7609
7610 case $host_os in
7611 cygwin*)
7612 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7613 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7614 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7615 ;;
7616 mingw*)
7617 # MinGW DLLs use traditional 'lib' prefix
7618 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7619 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7620 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7621 # It is most probably a Windows format PATH printed by
7622 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7623 # path with ; separators, and with drive letters. We can handle the
7624 # drive letters (cygwin fileutils understands them), so leave them,
7625 # especially as we might pass files found there to a mingw objdump,
7626 # which wouldn't understand a cygwinified path. Ahh.
7627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7628 else
7629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7630 fi
7631 ;;
7632 pw32*)
7633 # pw32 DLLs use 'pw' prefix rather than 'lib'
7634 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7635 ;;
7636 esac
John Criswell7a73b802003-06-30 21:59:07 +00007637 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007638
John Criswell7a73b802003-06-30 21:59:07 +00007639 *)
John Criswell47fdd832003-07-14 16:52:07 +00007640 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007641 ;;
7642 esac
7643 dynamic_linker='Win32 ld.exe'
7644 # FIXME: first we should search . and the directory the executable is in
7645 shlibpath_var=PATH
7646 ;;
7647
7648darwin* | rhapsody*)
7649 dynamic_linker="$host_os dyld"
7650 version_type=darwin
7651 need_lib_prefix=no
7652 need_version=no
7653 # FIXME: Relying on posixy $() will cause problems for
7654 # cross-compilation, but unfortunately the echo tests do not
7655 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007656 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7657 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007658 shlibpath_overrides_runpath=yes
7659 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007660 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7661 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7662 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7663 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"`
7664 fi
7665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7666 ;;
7667
7668dgux*)
7669 version_type=linux
7670 need_lib_prefix=no
7671 need_version=no
7672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7673 soname_spec='${libname}${release}${shared_ext}$major'
7674 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007675 ;;
7676
7677freebsd1*)
7678 dynamic_linker=no
7679 ;;
7680
7681freebsd*)
7682 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7683 version_type=freebsd-$objformat
7684 case $version_type in
7685 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007687 need_version=no
7688 need_lib_prefix=no
7689 ;;
7690 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007692 need_version=yes
7693 ;;
7694 esac
7695 shlibpath_var=LD_LIBRARY_PATH
7696 case $host_os in
7697 freebsd2*)
7698 shlibpath_overrides_runpath=yes
7699 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007700 freebsd3.01* | freebsdelf3.01*)
7701 shlibpath_overrides_runpath=yes
7702 hardcode_into_libs=yes
7703 ;;
7704 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007705 shlibpath_overrides_runpath=no
7706 hardcode_into_libs=yes
7707 ;;
7708 esac
7709 ;;
7710
7711gnu*)
7712 version_type=linux
7713 need_lib_prefix=no
7714 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7716 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007717 shlibpath_var=LD_LIBRARY_PATH
7718 hardcode_into_libs=yes
7719 ;;
7720
7721hpux9* | hpux10* | hpux11*)
7722 # Give a soname corresponding to the major version so that dld.sl refuses to
7723 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007724 version_type=sunos
7725 need_lib_prefix=no
7726 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007727 case "$host_cpu" in
7728 ia64*)
7729 shrext='.so'
7730 hardcode_into_libs=yes
7731 dynamic_linker="$host_os dld.so"
7732 shlibpath_var=LD_LIBRARY_PATH
7733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7735 soname_spec='${libname}${release}${shared_ext}$major'
7736 if test "X$HPUX_IA64_MODE" = X32; then
7737 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7738 else
7739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7740 fi
7741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7742 ;;
7743 hppa*64*)
7744 shrext='.sl'
7745 hardcode_into_libs=yes
7746 dynamic_linker="$host_os dld.sl"
7747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7750 soname_spec='${libname}${release}${shared_ext}$major'
7751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7753 ;;
7754 *)
7755 shrext='.sl'
7756 dynamic_linker="$host_os dld.sl"
7757 shlibpath_var=SHLIB_PATH
7758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7760 soname_spec='${libname}${release}${shared_ext}$major'
7761 ;;
7762 esac
John Criswell7a73b802003-06-30 21:59:07 +00007763 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7764 postinstall_cmds='chmod 555 $lib'
7765 ;;
7766
John Criswell47fdd832003-07-14 16:52:07 +00007767irix5* | irix6* | nonstopux*)
7768 case $host_os in
7769 nonstopux*) version_type=nonstopux ;;
7770 *)
7771 if test "$lt_cv_prog_gnu_ld" = yes; then
7772 version_type=linux
7773 else
7774 version_type=irix
7775 fi ;;
7776 esac
John Criswell7a73b802003-06-30 21:59:07 +00007777 need_lib_prefix=no
7778 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007779 soname_spec='${libname}${release}${shared_ext}$major'
7780 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 +00007781 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007782 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007783 libsuff= shlibsuff=
7784 ;;
7785 *)
7786 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7788 libsuff= shlibsuff= libmagic=32-bit;;
7789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7790 libsuff=32 shlibsuff=N32 libmagic=N32;;
7791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7792 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007793 *) libsuff= shlibsuff= libmagic=never-match;;
7794 esac
7795 ;;
7796 esac
7797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7798 shlibpath_overrides_runpath=no
7799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007801 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007802 ;;
7803
7804# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007805linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007806 dynamic_linker=no
7807 ;;
7808
7809# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007810linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007811 version_type=linux
7812 need_lib_prefix=no
7813 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7817 shlibpath_var=LD_LIBRARY_PATH
7818 shlibpath_overrides_runpath=no
7819 # This implies no fast_install, which is unacceptable.
7820 # Some rework will be needed to allow for fast_install
7821 # before this can be enabled.
7822 hardcode_into_libs=yes
7823
7824 # We used to test for /lib/ld.so.1 and disable shared libraries on
7825 # powerpc, because MkLinux only supported shared libraries with the
7826 # GNU dynamic linker. Since this was broken with cross compilers,
7827 # most powerpc-linux boxes support dynamic linking these days and
7828 # people can always --disable-shared, the test was removed, and we
7829 # assume the GNU/Linux dynamic linker is in use.
7830 dynamic_linker='GNU/Linux ld.so'
7831 ;;
7832
7833netbsd*)
7834 version_type=sunos
7835 need_lib_prefix=no
7836 need_version=no
7837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7840 dynamic_linker='NetBSD (a.out) ld.so'
7841 else
John Criswell47fdd832003-07-14 16:52:07 +00007842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7843 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007844 dynamic_linker='NetBSD ld.elf_so'
7845 fi
7846 shlibpath_var=LD_LIBRARY_PATH
7847 shlibpath_overrides_runpath=yes
7848 hardcode_into_libs=yes
7849 ;;
7850
7851newsos6)
7852 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854 shlibpath_var=LD_LIBRARY_PATH
7855 shlibpath_overrides_runpath=yes
7856 ;;
7857
7858nto-qnx)
7859 version_type=linux
7860 need_lib_prefix=no
7861 need_version=no
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007864 shlibpath_var=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath=yes
7866 ;;
7867
7868openbsd*)
7869 version_type=sunos
7870 need_lib_prefix=no
7871 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7874 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007875 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 +00007876 case $host_os in
7877 openbsd2.[89] | openbsd2.[89].*)
7878 shlibpath_overrides_runpath=no
7879 ;;
7880 *)
7881 shlibpath_overrides_runpath=yes
7882 ;;
7883 esac
John Criswell7a73b802003-06-30 21:59:07 +00007884 else
7885 shlibpath_overrides_runpath=yes
7886 fi
John Criswell7a73b802003-06-30 21:59:07 +00007887 ;;
7888
7889os2*)
7890 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007891 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007892 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007893 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007894 dynamic_linker='OS/2 ld.exe'
7895 shlibpath_var=LIBPATH
7896 ;;
7897
7898osf3* | osf4* | osf5*)
7899 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007900 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007901 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007902 soname_spec='${libname}${release}${shared_ext}$major'
7903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007904 shlibpath_var=LD_LIBRARY_PATH
7905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7906 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7907 ;;
7908
7909sco3.2v5*)
7910 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007911 soname_spec='${libname}${release}${shared_ext}$major'
7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007913 shlibpath_var=LD_LIBRARY_PATH
7914 ;;
7915
7916solaris*)
7917 version_type=linux
7918 need_lib_prefix=no
7919 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7921 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007922 shlibpath_var=LD_LIBRARY_PATH
7923 shlibpath_overrides_runpath=yes
7924 hardcode_into_libs=yes
7925 # ldd complains unless libraries are executable
7926 postinstall_cmds='chmod +x $lib'
7927 ;;
7928
7929sunos4*)
7930 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007932 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7933 shlibpath_var=LD_LIBRARY_PATH
7934 shlibpath_overrides_runpath=yes
7935 if test "$with_gnu_ld" = yes; then
7936 need_lib_prefix=no
7937 fi
7938 need_version=yes
7939 ;;
7940
7941sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7942 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7944 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007945 shlibpath_var=LD_LIBRARY_PATH
7946 case $host_vendor in
7947 sni)
7948 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007949 need_lib_prefix=no
7950 export_dynamic_flag_spec='${wl}-Blargedynsym'
7951 runpath_var=LD_RUN_PATH
7952 ;;
7953 siemens)
7954 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007955 ;;
7956 motorola)
7957 need_lib_prefix=no
7958 need_version=no
7959 shlibpath_overrides_runpath=no
7960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7961 ;;
7962 esac
7963 ;;
7964
John Criswell7a73b802003-06-30 21:59:07 +00007965sysv4*MP*)
7966 if test -d /usr/nec ;then
7967 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007968 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7969 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007970 shlibpath_var=LD_LIBRARY_PATH
7971 fi
7972 ;;
7973
John Criswell47fdd832003-07-14 16:52:07 +00007974uts4*)
7975 version_type=linux
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977 soname_spec='${libname}${release}${shared_ext}$major'
7978 shlibpath_var=LD_LIBRARY_PATH
7979 ;;
7980
John Criswell7a73b802003-06-30 21:59:07 +00007981*)
7982 dynamic_linker=no
7983 ;;
7984esac
7985echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7986echo "${ECHO_T}$dynamic_linker" >&6
7987test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007988
7989if test "x$enable_dlopen" != xyes; then
7990 enable_dlopen=unknown
7991 enable_dlopen_self=unknown
7992 enable_dlopen_self_static=unknown
7993else
7994 lt_cv_dlopen=no
7995 lt_cv_dlopen_libs=
7996
7997 case $host_os in
7998 beos*)
7999 lt_cv_dlopen="load_add_on"
8000 lt_cv_dlopen_libs=
8001 lt_cv_dlopen_self=yes
8002 ;;
8003
John Criswell47fdd832003-07-14 16:52:07 +00008004 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008005 lt_cv_dlopen="LoadLibrary"
8006 lt_cv_dlopen_libs=
8007 ;;
8008
John Criswell47fdd832003-07-14 16:52:07 +00008009 cygwin*)
8010 lt_cv_dlopen="dlopen"
8011 lt_cv_dlopen_libs=
8012 ;;
8013
8014 darwin*)
8015 # if libdl is installed we need to link against it
8016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8017echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8018if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021 ac_check_lib_save_LIBS=$LIBS
8022LIBS="-ldl $LIBS"
8023cat >conftest.$ac_ext <<_ACEOF
8024#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008025/* confdefs.h. */
8026_ACEOF
8027cat confdefs.h >>conftest.$ac_ext
8028cat >>conftest.$ac_ext <<_ACEOF
8029/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008030
8031/* Override any gcc2 internal prototype to avoid an error. */
8032#ifdef __cplusplus
8033extern "C"
8034#endif
8035/* We use char because int might match the return type of a gcc2
8036 builtin and then its argument prototype would still apply. */
8037char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008038int
8039main ()
8040{
8041dlopen ();
8042 ;
8043 return 0;
8044}
8045_ACEOF
8046rm -f conftest.$ac_objext conftest$ac_exeext
8047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048 (eval $ac_link) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -s conftest$ac_exeext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_cv_lib_dl_dlopen=yes
8059else
8060 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008061sed 's/^/| /' conftest.$ac_ext >&5
8062
John Criswell47fdd832003-07-14 16:52:07 +00008063ac_cv_lib_dl_dlopen=no
8064fi
8065rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8066LIBS=$ac_check_lib_save_LIBS
8067fi
8068echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8069echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8070if test $ac_cv_lib_dl_dlopen = yes; then
8071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8072else
8073
8074 lt_cv_dlopen="dyld"
8075 lt_cv_dlopen_libs=
8076 lt_cv_dlopen_self=yes
8077
8078fi
8079
8080 ;;
8081
John Criswell7a73b802003-06-30 21:59:07 +00008082 *)
8083 echo "$as_me:$LINENO: checking for shl_load" >&5
8084echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8085if test "${ac_cv_func_shl_load+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 cat >conftest.$ac_ext <<_ACEOF
8089#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008090/* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008095/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008096 which can conflict with char shl_load (); below.
8097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098 <limits.h> exists even on freestanding compilers. */
8099#ifdef __STDC__
8100# include <limits.h>
8101#else
8102# include <assert.h>
8103#endif
John Criswell7a73b802003-06-30 21:59:07 +00008104/* Override any gcc2 internal prototype to avoid an error. */
8105#ifdef __cplusplus
8106extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008107{
John Criswell7a73b802003-06-30 21:59:07 +00008108#endif
8109/* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8111char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008112/* The GNU C library defines this for functions which it implements
8113 to always fail with ENOSYS. Some functions are actually named
8114 something starting with __ and the normal name is an alias. */
8115#if defined (__stub_shl_load) || defined (__stub___shl_load)
8116choke me
8117#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008118char (*f) () = shl_load;
8119#endif
8120#ifdef __cplusplus
8121}
John Criswell7a73b802003-06-30 21:59:07 +00008122#endif
8123
John Criswell0c38eaf2003-09-10 15:17:25 +00008124int
8125main ()
8126{
8127return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008128 ;
8129 return 0;
8130}
8131_ACEOF
8132rm -f conftest.$ac_objext conftest$ac_exeext
8133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_cv_func_shl_load=yes
8145else
8146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008147sed 's/^/| /' conftest.$ac_ext >&5
8148
John Criswell7a73b802003-06-30 21:59:07 +00008149ac_cv_func_shl_load=no
8150fi
8151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8152fi
8153echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8154echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8155if test $ac_cv_func_shl_load = yes; then
8156 lt_cv_dlopen="shl_load"
8157else
8158 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8159echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8160if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162else
8163 ac_check_lib_save_LIBS=$LIBS
8164LIBS="-ldld $LIBS"
8165cat >conftest.$ac_ext <<_ACEOF
8166#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008167/* confdefs.h. */
8168_ACEOF
8169cat confdefs.h >>conftest.$ac_ext
8170cat >>conftest.$ac_ext <<_ACEOF
8171/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008172
8173/* Override any gcc2 internal prototype to avoid an error. */
8174#ifdef __cplusplus
8175extern "C"
8176#endif
8177/* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8179char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008180int
8181main ()
8182{
8183shl_load ();
8184 ;
8185 return 0;
8186}
8187_ACEOF
8188rm -f conftest.$ac_objext conftest$ac_exeext
8189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190 (eval $ac_link) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -s conftest$ac_exeext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_cv_lib_dld_shl_load=yes
8201else
8202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008203sed 's/^/| /' conftest.$ac_ext >&5
8204
John Criswell7a73b802003-06-30 21:59:07 +00008205ac_cv_lib_dld_shl_load=no
8206fi
8207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8208LIBS=$ac_check_lib_save_LIBS
8209fi
8210echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8211echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8212if test $ac_cv_lib_dld_shl_load = yes; then
8213 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8214else
8215 echo "$as_me:$LINENO: checking for dlopen" >&5
8216echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8217if test "${ac_cv_func_dlopen+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220 cat >conftest.$ac_ext <<_ACEOF
8221#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008227/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008228 which can conflict with char dlopen (); below.
8229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8230 <limits.h> exists even on freestanding compilers. */
8231#ifdef __STDC__
8232# include <limits.h>
8233#else
8234# include <assert.h>
8235#endif
John Criswell7a73b802003-06-30 21:59:07 +00008236/* Override any gcc2 internal prototype to avoid an error. */
8237#ifdef __cplusplus
8238extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008239{
John Criswell7a73b802003-06-30 21:59:07 +00008240#endif
8241/* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8243char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008244/* The GNU C library defines this for functions which it implements
8245 to always fail with ENOSYS. Some functions are actually named
8246 something starting with __ and the normal name is an alias. */
8247#if defined (__stub_dlopen) || defined (__stub___dlopen)
8248choke me
8249#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008250char (*f) () = dlopen;
8251#endif
8252#ifdef __cplusplus
8253}
John Criswell7a73b802003-06-30 21:59:07 +00008254#endif
8255
John Criswell0c38eaf2003-09-10 15:17:25 +00008256int
8257main ()
8258{
8259return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008260 ;
8261 return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest$ac_exeext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 ac_cv_func_dlopen=yes
8277else
8278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008279sed 's/^/| /' conftest.$ac_ext >&5
8280
John Criswell7a73b802003-06-30 21:59:07 +00008281ac_cv_func_dlopen=no
8282fi
8283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8284fi
8285echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8286echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8287if test $ac_cv_func_dlopen = yes; then
8288 lt_cv_dlopen="dlopen"
8289else
8290 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8291echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8292if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295 ac_check_lib_save_LIBS=$LIBS
8296LIBS="-ldl $LIBS"
8297cat >conftest.$ac_ext <<_ACEOF
8298#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
8303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008304
8305/* Override any gcc2 internal prototype to avoid an error. */
8306#ifdef __cplusplus
8307extern "C"
8308#endif
8309/* We use char because int might match the return type of a gcc2
8310 builtin and then its argument prototype would still apply. */
8311char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008312int
8313main ()
8314{
8315dlopen ();
8316 ;
8317 return 0;
8318}
8319_ACEOF
8320rm -f conftest.$ac_objext conftest$ac_exeext
8321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8322 (eval $ac_link) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -s conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_lib_dl_dlopen=yes
8333else
8334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008335sed 's/^/| /' conftest.$ac_ext >&5
8336
John Criswell7a73b802003-06-30 21:59:07 +00008337ac_cv_lib_dl_dlopen=no
8338fi
8339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8340LIBS=$ac_check_lib_save_LIBS
8341fi
8342echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8343echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8344if test $ac_cv_lib_dl_dlopen = yes; then
8345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8346else
8347 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8348echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8349if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352 ac_check_lib_save_LIBS=$LIBS
8353LIBS="-lsvld $LIBS"
8354cat >conftest.$ac_ext <<_ACEOF
8355#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008361
8362/* Override any gcc2 internal prototype to avoid an error. */
8363#ifdef __cplusplus
8364extern "C"
8365#endif
8366/* We use char because int might match the return type of a gcc2
8367 builtin and then its argument prototype would still apply. */
8368char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008369int
8370main ()
8371{
8372dlopen ();
8373 ;
8374 return 0;
8375}
8376_ACEOF
8377rm -f conftest.$ac_objext conftest$ac_exeext
8378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379 (eval $ac_link) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_lib_svld_dlopen=yes
8390else
8391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008392sed 's/^/| /' conftest.$ac_ext >&5
8393
John Criswell7a73b802003-06-30 21:59:07 +00008394ac_cv_lib_svld_dlopen=no
8395fi
8396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8397LIBS=$ac_check_lib_save_LIBS
8398fi
8399echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8400echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8401if test $ac_cv_lib_svld_dlopen = yes; then
8402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8403else
8404 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8405echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8406if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409 ac_check_lib_save_LIBS=$LIBS
8410LIBS="-ldld $LIBS"
8411cat >conftest.$ac_ext <<_ACEOF
8412#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008413/* confdefs.h. */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008418
8419/* Override any gcc2 internal prototype to avoid an error. */
8420#ifdef __cplusplus
8421extern "C"
8422#endif
8423/* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008426int
8427main ()
8428{
8429dld_link ();
8430 ;
8431 return 0;
8432}
8433_ACEOF
8434rm -f conftest.$ac_objext conftest$ac_exeext
8435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_cv_lib_dld_dld_link=yes
8447else
8448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008449sed 's/^/| /' conftest.$ac_ext >&5
8450
John Criswell7a73b802003-06-30 21:59:07 +00008451ac_cv_lib_dld_dld_link=no
8452fi
8453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454LIBS=$ac_check_lib_save_LIBS
8455fi
8456echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8457echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8458if test $ac_cv_lib_dld_dld_link = yes; then
8459 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8460fi
8461
8462
8463fi
8464
8465
8466fi
8467
8468
8469fi
8470
8471
8472fi
8473
8474
8475fi
8476
8477 ;;
8478 esac
8479
8480 if test "x$lt_cv_dlopen" != xno; then
8481 enable_dlopen=yes
8482 else
8483 enable_dlopen=no
8484 fi
8485
8486 case $lt_cv_dlopen in
8487 dlopen)
8488 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008489 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008490
8491 save_LDFLAGS="$LDFLAGS"
8492 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8493
8494 save_LIBS="$LIBS"
8495 LIBS="$lt_cv_dlopen_libs $LIBS"
8496
8497 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8498echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8499if test "${lt_cv_dlopen_self+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502 if test "$cross_compiling" = yes; then :
8503 lt_cv_dlopen_self=cross
8504else
John Criswell47fdd832003-07-14 16:52:07 +00008505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008506 lt_status=$lt_dlunknown
8507 cat > conftest.$ac_ext <<EOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008508#line 8508 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008509#include "confdefs.h"
8510
8511#if HAVE_DLFCN_H
8512#include <dlfcn.h>
8513#endif
8514
8515#include <stdio.h>
8516
8517#ifdef RTLD_GLOBAL
8518# define LT_DLGLOBAL RTLD_GLOBAL
8519#else
8520# ifdef DL_GLOBAL
8521# define LT_DLGLOBAL DL_GLOBAL
8522# else
8523# define LT_DLGLOBAL 0
8524# endif
8525#endif
8526
8527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8528 find out it does not work in some platform. */
8529#ifndef LT_DLLAZY_OR_NOW
8530# ifdef RTLD_LAZY
8531# define LT_DLLAZY_OR_NOW RTLD_LAZY
8532# else
8533# ifdef DL_LAZY
8534# define LT_DLLAZY_OR_NOW DL_LAZY
8535# else
8536# ifdef RTLD_NOW
8537# define LT_DLLAZY_OR_NOW RTLD_NOW
8538# else
8539# ifdef DL_NOW
8540# define LT_DLLAZY_OR_NOW DL_NOW
8541# else
8542# define LT_DLLAZY_OR_NOW 0
8543# endif
8544# endif
8545# endif
8546# endif
8547#endif
8548
8549#ifdef __cplusplus
8550extern "C" void exit (int);
8551#endif
8552
8553void fnord() { int i=42;}
8554int main ()
8555{
8556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8557 int status = $lt_dlunknown;
8558
8559 if (self)
8560 {
8561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8562 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8563 /* dlclose (self); */
8564 }
8565
8566 exit (status);
8567}
8568EOF
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8574 (./conftest; exit; ) 2>/dev/null
8575 lt_status=$?
8576 case x$lt_status in
8577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8579 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8580 esac
8581 else :
8582 # compilation failed
8583 lt_cv_dlopen_self=no
8584 fi
8585fi
8586rm -fr conftest*
8587
8588
8589fi
8590echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8591echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8592
8593 if test "x$lt_cv_dlopen_self" = xyes; then
8594 LDFLAGS="$LDFLAGS $link_static_flag"
8595 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8596echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8597if test "${lt_cv_dlopen_self_static+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8599else
8600 if test "$cross_compiling" = yes; then :
8601 lt_cv_dlopen_self_static=cross
8602else
John Criswell47fdd832003-07-14 16:52:07 +00008603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008604 lt_status=$lt_dlunknown
8605 cat > conftest.$ac_ext <<EOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008606#line 8606 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008607#include "confdefs.h"
8608
8609#if HAVE_DLFCN_H
8610#include <dlfcn.h>
8611#endif
8612
8613#include <stdio.h>
8614
8615#ifdef RTLD_GLOBAL
8616# define LT_DLGLOBAL RTLD_GLOBAL
8617#else
8618# ifdef DL_GLOBAL
8619# define LT_DLGLOBAL DL_GLOBAL
8620# else
8621# define LT_DLGLOBAL 0
8622# endif
8623#endif
8624
8625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8626 find out it does not work in some platform. */
8627#ifndef LT_DLLAZY_OR_NOW
8628# ifdef RTLD_LAZY
8629# define LT_DLLAZY_OR_NOW RTLD_LAZY
8630# else
8631# ifdef DL_LAZY
8632# define LT_DLLAZY_OR_NOW DL_LAZY
8633# else
8634# ifdef RTLD_NOW
8635# define LT_DLLAZY_OR_NOW RTLD_NOW
8636# else
8637# ifdef DL_NOW
8638# define LT_DLLAZY_OR_NOW DL_NOW
8639# else
8640# define LT_DLLAZY_OR_NOW 0
8641# endif
8642# endif
8643# endif
8644# endif
8645#endif
8646
8647#ifdef __cplusplus
8648extern "C" void exit (int);
8649#endif
8650
8651void fnord() { int i=42;}
8652int main ()
8653{
8654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8655 int status = $lt_dlunknown;
8656
8657 if (self)
8658 {
8659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8660 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8661 /* dlclose (self); */
8662 }
8663
8664 exit (status);
8665}
8666EOF
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8672 (./conftest; exit; ) 2>/dev/null
8673 lt_status=$?
8674 case x$lt_status in
8675 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8676 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8677 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8678 esac
8679 else :
8680 # compilation failed
8681 lt_cv_dlopen_self_static=no
8682 fi
8683fi
8684rm -fr conftest*
8685
8686
8687fi
8688echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8689echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8690 fi
8691
8692 CPPFLAGS="$save_CPPFLAGS"
8693 LDFLAGS="$save_LDFLAGS"
8694 LIBS="$save_LIBS"
8695 ;;
8696 esac
8697
8698 case $lt_cv_dlopen_self in
8699 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8700 *) enable_dlopen_self=unknown ;;
8701 esac
8702
8703 case $lt_cv_dlopen_self_static in
8704 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8705 *) enable_dlopen_self_static=unknown ;;
8706 esac
8707fi
8708
8709
John Criswell47fdd832003-07-14 16:52:07 +00008710# Report which librarie types wil actually be built
8711echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8712echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8713echo "$as_me:$LINENO: result: $can_build_shared" >&5
8714echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008715
John Criswell47fdd832003-07-14 16:52:07 +00008716echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8717echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8718test "$can_build_shared" = "no" && enable_shared=no
8719
8720# On AIX, shared libraries and static libraries use the same namespace, and
8721# are all built from PIC.
8722case "$host_os" in
8723aix3*)
8724 test "$enable_shared" = yes && enable_static=no
8725 if test -n "$RANLIB"; then
8726 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8727 postinstall_cmds='$RANLIB $lib'
8728 fi
8729 ;;
8730
8731aix4*)
8732 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8733 test "$enable_shared" = yes && enable_static=no
8734 fi
8735 ;;
8736 darwin* | rhapsody*)
8737 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8738 archive_cmds_need_lc=no
8739 case "$host_os" in
8740 rhapsody* | darwin1.[012])
8741 allow_undefined_flag='-undefined suppress'
8742 ;;
8743 *) # Darwin 1.3 on
8744 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8745 ;;
8746 esac
8747 # FIXME: Relying on posixy $() will cause problems for
8748 # cross-compilation, but unfortunately the echo tests do not
8749 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8750 # `"' quotes if we put them in here... so don't!
8751 output_verbose_link_cmd='echo'
8752 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8753 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8755 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}'
8756 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}'
8757 hardcode_direct=no
8758 hardcode_automatic=yes
8759 hardcode_shlibpath_var=unsupported
8760 whole_archive_flag_spec='-all_load $convenience'
8761 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008762 fi
John Criswell7a73b802003-06-30 21:59:07 +00008763 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008764esac
8765echo "$as_me:$LINENO: result: $enable_shared" >&5
8766echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008767
John Criswell47fdd832003-07-14 16:52:07 +00008768echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8769echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8770# Make sure either enable_shared or enable_static is yes.
8771test "$enable_shared" = yes || enable_static=yes
8772echo "$as_me:$LINENO: result: $enable_static" >&5
8773echo "${ECHO_T}$enable_static" >&6
8774
8775# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008776# libtool distribution, otherwise you forgot to ship ltmain.sh
8777# with your package, and you will get complaints that there are
8778# no rules to generate ltmain.sh.
8779if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008780 # See if we are running on zsh, and set the options which allow our commands through
8781 # without removal of \ escapes.
8782 if test -n "${ZSH_VERSION+set}" ; then
8783 setopt NO_GLOB_SUBST
8784 fi
John Criswell7a73b802003-06-30 21:59:07 +00008785 # Now quote all the things that may contain metacharacters while being
8786 # careful not to overquote the AC_SUBSTed values. We take copies of the
8787 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8789 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8790 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8791 deplibs_check_method reload_flag reload_cmds need_locks \
8792 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8793 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008794 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008795 old_postinstall_cmds old_postuninstall_cmds \
8796 compiler \
8797 CC \
8798 LD \
8799 lt_prog_compiler_wl \
8800 lt_prog_compiler_pic \
8801 lt_prog_compiler_static \
8802 lt_prog_compiler_no_builtin_flag \
8803 export_dynamic_flag_spec \
8804 thread_safe_flag_spec \
8805 whole_archive_flag_spec \
8806 enable_shared_with_static_runtimes \
8807 old_archive_cmds \
8808 old_archive_from_new_cmds \
8809 predep_objects \
8810 postdep_objects \
8811 predeps \
8812 postdeps \
8813 compiler_lib_search_path \
8814 archive_cmds \
8815 archive_expsym_cmds \
8816 postinstall_cmds \
8817 postuninstall_cmds \
8818 old_archive_from_expsyms_cmds \
8819 allow_undefined_flag \
8820 no_undefined_flag \
8821 export_symbols_cmds \
8822 hardcode_libdir_flag_spec \
8823 hardcode_libdir_flag_spec_ld \
8824 hardcode_libdir_separator \
8825 hardcode_automatic \
8826 module_cmds \
8827 module_expsym_cmds \
8828 lt_cv_prog_compiler_c_o \
8829 exclude_expsyms \
8830 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008831
8832 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008833 old_archive_cmds | \
8834 old_archive_from_new_cmds | \
8835 archive_cmds | \
8836 archive_expsym_cmds | \
8837 module_cmds | \
8838 module_expsym_cmds | \
8839 old_archive_from_expsyms_cmds | \
8840 export_symbols_cmds | \
8841 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008842 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008843 old_postinstall_cmds | old_postuninstall_cmds | \
8844 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008845 # Double-quote double-evaled strings.
8846 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8847 ;;
8848 *)
8849 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8850 ;;
8851 esac
8852 done
8853
John Criswell47fdd832003-07-14 16:52:07 +00008854 case $lt_echo in
8855 *'\$0 --fallback-echo"')
8856 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8857 ;;
8858 esac
8859
8860cfgfile="${ofile}T"
8861 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8862 $rm -f "$cfgfile"
8863 { echo "$as_me:$LINENO: creating $ofile" >&5
8864echo "$as_me: creating $ofile" >&6;}
8865
8866 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008867#! $SHELL
8868
John Criswell47fdd832003-07-14 16:52:07 +00008869# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008870# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8871# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8872#
John Criswell47fdd832003-07-14 16:52:07 +00008873# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8874# Free Software Foundation, Inc.
8875#
8876# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008877# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8878#
8879# This program is free software; you can redistribute it and/or modify
8880# it under the terms of the GNU General Public License as published by
8881# the Free Software Foundation; either version 2 of the License, or
8882# (at your option) any later version.
8883#
8884# This program is distributed in the hope that it will be useful, but
8885# WITHOUT ANY WARRANTY; without even the implied warranty of
8886# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8887# General Public License for more details.
8888#
8889# You should have received a copy of the GNU General Public License
8890# along with this program; if not, write to the Free Software
8891# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8892#
8893# As a special exception to the GNU General Public License, if you
8894# distribute this file as part of a program that contains a
8895# configuration script generated by Autoconf, you may include it under
8896# the same distribution terms that you use for the rest of that program.
8897
John Criswell47fdd832003-07-14 16:52:07 +00008898# A sed program that does not truncate output.
8899SED=$lt_SED
8900
John Criswell7a73b802003-06-30 21:59:07 +00008901# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008902Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008903
8904# The HP-UX ksh and POSIX shell print the target directory to stdout
8905# if CDPATH is set.
8906if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8907
John Criswell47fdd832003-07-14 16:52:07 +00008908# The names of the tagged configurations supported by this script.
8909available_tags=
8910
John Criswell7a73b802003-06-30 21:59:07 +00008911# ### BEGIN LIBTOOL CONFIG
8912
8913# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8914
8915# Shell to use when invoking shell scripts.
8916SHELL=$lt_SHELL
8917
8918# Whether or not to build shared libraries.
8919build_libtool_libs=$enable_shared
8920
8921# Whether or not to build static libraries.
8922build_old_libs=$enable_static
8923
8924# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008925build_libtool_need_lc=$archive_cmds_need_lc
8926
8927# Whether or not to disallow shared libs when runtime libs are static
8928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008929
8930# Whether or not to optimize for fast installation.
8931fast_install=$enable_fast_install
8932
8933# The host system.
8934host_alias=$host_alias
8935host=$host
8936
8937# An echo program that does not interpret backslashes.
8938echo=$lt_echo
8939
8940# The archiver.
8941AR=$lt_AR
8942AR_FLAGS=$lt_AR_FLAGS
8943
John Criswell47fdd832003-07-14 16:52:07 +00008944# A C compiler.
8945LTCC=$lt_LTCC
8946
8947# A language-specific compiler.
8948CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008949
8950# Is the compiler the GNU C compiler?
8951with_gcc=$GCC
8952
John Criswell47fdd832003-07-14 16:52:07 +00008953# An ERE matcher.
8954EGREP=$lt_EGREP
8955
John Criswell7a73b802003-06-30 21:59:07 +00008956# The linker used to build libraries.
8957LD=$lt_LD
8958
8959# Whether we need hard or soft links.
8960LN_S=$lt_LN_S
8961
8962# A BSD-compatible nm program.
8963NM=$lt_NM
8964
8965# A symbol stripping program
8966STRIP=$STRIP
8967
8968# Used to examine libraries when file_magic_cmd begins "file"
8969MAGIC_CMD=$MAGIC_CMD
8970
8971# Used on cygwin: DLL creation program.
8972DLLTOOL="$DLLTOOL"
8973
8974# Used on cygwin: object dumper.
8975OBJDUMP="$OBJDUMP"
8976
8977# Used on cygwin: assembler.
8978AS="$AS"
8979
8980# The name of the directory that contains temporary libtool files.
8981objdir=$objdir
8982
8983# How to create reloadable object files.
8984reload_flag=$lt_reload_flag
8985reload_cmds=$lt_reload_cmds
8986
8987# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008988wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008989
8990# Object file suffix (normally "o").
8991objext="$ac_objext"
8992
8993# Old archive suffix (normally "a").
8994libext="$libext"
8995
John Criswell47fdd832003-07-14 16:52:07 +00008996# Shared library suffix (normally ".so").
8997shrext='$shrext'
8998
John Criswell7a73b802003-06-30 21:59:07 +00008999# Executable file suffix (normally "").
9000exeext="$exeext"
9001
9002# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009003pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009004pic_mode=$pic_mode
9005
John Criswell47fdd832003-07-14 16:52:07 +00009006# What is the maximum length of a command?
9007max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009008
John Criswell47fdd832003-07-14 16:52:07 +00009009# Does compiler simultaneously support -c and -o options?
9010compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009011
9012# Must we lock files when doing compilation ?
9013need_locks=$lt_need_locks
9014
9015# Do we need the lib prefix for modules?
9016need_lib_prefix=$need_lib_prefix
9017
9018# Do we need a version for libraries?
9019need_version=$need_version
9020
9021# Whether dlopen is supported.
9022dlopen_support=$enable_dlopen
9023
9024# Whether dlopen of programs is supported.
9025dlopen_self=$enable_dlopen_self
9026
9027# Whether dlopen of statically linked programs is supported.
9028dlopen_self_static=$enable_dlopen_self_static
9029
9030# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009031link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009032
9033# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009034no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009035
9036# Compiler flag to allow reflexive dlopens.
9037export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9038
9039# Compiler flag to generate shared objects directly from archives.
9040whole_archive_flag_spec=$lt_whole_archive_flag_spec
9041
9042# Compiler flag to generate thread-safe objects.
9043thread_safe_flag_spec=$lt_thread_safe_flag_spec
9044
9045# Library versioning type.
9046version_type=$version_type
9047
9048# Format of library name prefix.
9049libname_spec=$lt_libname_spec
9050
9051# List of archive names. First name is the real one, the rest are links.
9052# The last name is the one that the linker finds with -lNAME.
9053library_names_spec=$lt_library_names_spec
9054
9055# The coded name of the library, if different from the real name.
9056soname_spec=$lt_soname_spec
9057
9058# Commands used to build and install an old-style archive.
9059RANLIB=$lt_RANLIB
9060old_archive_cmds=$lt_old_archive_cmds
9061old_postinstall_cmds=$lt_old_postinstall_cmds
9062old_postuninstall_cmds=$lt_old_postuninstall_cmds
9063
9064# Create an old-style archive from a shared archive.
9065old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9066
9067# Create a temporary old-style archive to link instead of a shared archive.
9068old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9069
9070# Commands used to build and install a shared archive.
9071archive_cmds=$lt_archive_cmds
9072archive_expsym_cmds=$lt_archive_expsym_cmds
9073postinstall_cmds=$lt_postinstall_cmds
9074postuninstall_cmds=$lt_postuninstall_cmds
9075
John Criswell47fdd832003-07-14 16:52:07 +00009076# Commands used to build a loadable module (assumed same as above if empty)
9077module_cmds=$lt_module_cmds
9078module_expsym_cmds=$lt_module_expsym_cmds
9079
John Criswell7a73b802003-06-30 21:59:07 +00009080# Commands to strip libraries.
9081old_striplib=$lt_old_striplib
9082striplib=$lt_striplib
9083
John Criswell47fdd832003-07-14 16:52:07 +00009084# Dependencies to place before the objects being linked to create a
9085# shared library.
9086predep_objects=$lt_predep_objects
9087
9088# Dependencies to place after the objects being linked to create a
9089# shared library.
9090postdep_objects=$lt_postdep_objects
9091
9092# Dependencies to place before the objects being linked to create a
9093# shared library.
9094predeps=$lt_predeps
9095
9096# Dependencies to place after the objects being linked to create a
9097# shared library.
9098postdeps=$lt_postdeps
9099
9100# The library search path used internally by the compiler when linking
9101# a shared library.
9102compiler_lib_search_path=$lt_compiler_lib_search_path
9103
John Criswell7a73b802003-06-30 21:59:07 +00009104# Method to check whether dependent libraries are shared objects.
9105deplibs_check_method=$lt_deplibs_check_method
9106
9107# Command to use when deplibs_check_method == file_magic.
9108file_magic_cmd=$lt_file_magic_cmd
9109
9110# Flag that allows shared libraries with undefined symbols to be built.
9111allow_undefined_flag=$lt_allow_undefined_flag
9112
9113# Flag that forces no undefined symbols.
9114no_undefined_flag=$lt_no_undefined_flag
9115
9116# Commands used to finish a libtool library installation in a directory.
9117finish_cmds=$lt_finish_cmds
9118
9119# Same as above, but a single script fragment to be evaled but not shown.
9120finish_eval=$lt_finish_eval
9121
9122# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009123global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009124
9125# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009126global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009127
9128# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009129global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009130
9131# This is the shared library runtime path variable.
9132runpath_var=$runpath_var
9133
9134# This is the shared library path variable.
9135shlibpath_var=$shlibpath_var
9136
9137# Is shlibpath searched before the hard-coded library search path?
9138shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9139
9140# How to hardcode a shared library path into an executable.
9141hardcode_action=$hardcode_action
9142
9143# Whether we should hardcode library paths into libraries.
9144hardcode_into_libs=$hardcode_into_libs
9145
9146# Flag to hardcode \$libdir into a binary during linking.
9147# This must work even if \$libdir does not exist.
9148hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9149
John Criswell47fdd832003-07-14 16:52:07 +00009150# If ld is used when linking, flag to hardcode \$libdir into
9151# a binary during linking. This must work even if \$libdir does
9152# not exist.
9153hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9154
John Criswell7a73b802003-06-30 21:59:07 +00009155# Whether we need a single -rpath flag with a separated argument.
9156hardcode_libdir_separator=$lt_hardcode_libdir_separator
9157
John Criswell47fdd832003-07-14 16:52:07 +00009158# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009159# resulting binary.
9160hardcode_direct=$hardcode_direct
9161
9162# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9163# resulting binary.
9164hardcode_minus_L=$hardcode_minus_L
9165
9166# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9167# the resulting binary.
9168hardcode_shlibpath_var=$hardcode_shlibpath_var
9169
John Criswell47fdd832003-07-14 16:52:07 +00009170# Set to yes if building a shared library automatically hardcodes DIR into the library
9171# and all subsequent libraries and executables linked against it.
9172hardcode_automatic=$hardcode_automatic
9173
John Criswell7a73b802003-06-30 21:59:07 +00009174# Variables whose values should be saved in libtool wrapper scripts and
9175# restored at relink time.
9176variables_saved_for_relink="$variables_saved_for_relink"
9177
9178# Whether libtool must link a program against all its dependency libraries.
9179link_all_deplibs=$link_all_deplibs
9180
9181# Compile-time system search path for libraries
9182sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9183
9184# Run-time system search path for libraries
9185sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9186
9187# Fix the shell variable \$srcfile for the compiler.
9188fix_srcfile_path="$fix_srcfile_path"
9189
9190# Set to yes if exported symbols are required.
9191always_export_symbols=$always_export_symbols
9192
9193# The commands to list exported symbols.
9194export_symbols_cmds=$lt_export_symbols_cmds
9195
9196# The commands to extract the exported symbol list from a shared archive.
9197extract_expsyms_cmds=$lt_extract_expsyms_cmds
9198
9199# Symbols that should not be listed in the preloaded symbols.
9200exclude_expsyms=$lt_exclude_expsyms
9201
9202# Symbols that must always be exported.
9203include_expsyms=$lt_include_expsyms
9204
9205# ### END LIBTOOL CONFIG
9206
9207__EOF__
9208
John Criswell47fdd832003-07-14 16:52:07 +00009209
John Criswell7a73b802003-06-30 21:59:07 +00009210 case $host_os in
9211 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009212 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009213
9214# AIX sometimes has problems with the GCC collect2 program. For some
9215# reason, if we set the COLLECT_NAMES environment variable, the problems
9216# vanish in a puff of smoke.
9217if test "X${COLLECT_NAMES+set}" != Xset; then
9218 COLLECT_NAMES=
9219 export COLLECT_NAMES
9220fi
9221EOF
9222 ;;
9223 esac
9224
John Criswell7a73b802003-06-30 21:59:07 +00009225 # We use sed instead of cat because bash on DJGPP gets confused if
9226 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9227 # text mode, it properly converts lines to CR/LF. This bash problem
9228 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009229 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009230
John Criswell47fdd832003-07-14 16:52:07 +00009231 mv -f "$cfgfile" "$ofile" || \
9232 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009233 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009234
9235else
9236 # If there is no Makefile yet, we rely on a make rule to execute
9237 # `config.status --recheck' to rerun these tests and create the
9238 # libtool script then.
9239 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009240fi
John Criswell7a73b802003-06-30 21:59:07 +00009241
9242
John Criswell47fdd832003-07-14 16:52:07 +00009243ac_ext=c
9244ac_cpp='$CPP $CPPFLAGS'
9245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9247ac_compiler_gnu=$ac_cv_c_compiler_gnu
9248
9249CC="$lt_save_CC"
9250
9251
9252# Check whether --with-tags or --without-tags was given.
9253if test "${with_tags+set}" = set; then
9254 withval="$with_tags"
9255 tagnames="$withval"
9256fi;
9257
9258if test -f "$ltmain" && test -n "$tagnames"; then
9259 if test ! -f "${ofile}"; then
9260 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9261echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9262 fi
9263
9264 if test -z "$LTCC"; then
9265 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9266 if test -z "$LTCC"; then
9267 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9268echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9269 else
9270 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9271echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9272 fi
9273 fi
9274
9275 # Extract list of available tagged configurations in $ofile.
9276 # Note that this assumes the entire list is on one line.
9277 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9278
9279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9280 for tagname in $tagnames; do
9281 IFS="$lt_save_ifs"
9282 # Check whether tagname contains only valid characters
9283 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9284 "") ;;
9285 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9286echo "$as_me: error: invalid tag name: $tagname" >&2;}
9287 { (exit 1); exit 1; }; }
9288 ;;
9289 esac
9290
9291 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9292 then
9293 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9294echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9295 { (exit 1); exit 1; }; }
9296 fi
9297
9298 # Update the list of available tags.
9299 if test -n "$tagname"; then
9300 echo appending configuration tag \"$tagname\" to $ofile
9301
9302 case $tagname in
9303 CXX)
9304 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9305 ac_ext=cc
9306ac_cpp='$CXXCPP $CPPFLAGS'
9307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9310
9311
9312
9313
9314archive_cmds_need_lc_CXX=no
9315allow_undefined_flag_CXX=
9316always_export_symbols_CXX=no
9317archive_expsym_cmds_CXX=
9318export_dynamic_flag_spec_CXX=
9319hardcode_direct_CXX=no
9320hardcode_libdir_flag_spec_CXX=
9321hardcode_libdir_flag_spec_ld_CXX=
9322hardcode_libdir_separator_CXX=
9323hardcode_minus_L_CXX=no
9324hardcode_automatic_CXX=no
9325module_cmds_CXX=
9326module_expsym_cmds_CXX=
9327link_all_deplibs_CXX=unknown
9328old_archive_cmds_CXX=$old_archive_cmds
9329no_undefined_flag_CXX=
9330whole_archive_flag_spec_CXX=
9331enable_shared_with_static_runtimes_CXX=no
9332
9333# Dependencies to place before and after the object being linked:
9334predep_objects_CXX=
9335postdep_objects_CXX=
9336predeps_CXX=
9337postdeps_CXX=
9338compiler_lib_search_path_CXX=
9339
9340# Source file extension for C++ test sources.
9341ac_ext=cc
9342
9343# Object file extension for compiled C++ test sources.
9344objext=o
9345objext_CXX=$objext
9346
9347# Code to be used in simple compile tests
9348lt_simple_compile_test_code="int some_variable = 0;\n"
9349
9350# Code to be used in simple link tests
9351lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9352
9353# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9354
9355# If no C compiler was specified, use CC.
9356LTCC=${LTCC-"$CC"}
9357
9358# Allow CC to be a program name with arguments.
9359compiler=$CC
9360
9361
9362# Allow CC to be a program name with arguments.
9363lt_save_CC=$CC
9364lt_save_LD=$LD
9365lt_save_GCC=$GCC
9366GCC=$GXX
9367lt_save_with_gnu_ld=$with_gnu_ld
9368lt_save_path_LD=$lt_cv_path_LD
9369if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9370 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9371else
9372 unset lt_cv_prog_gnu_ld
9373fi
9374if test -n "${lt_cv_path_LDCXX+set}"; then
9375 lt_cv_path_LD=$lt_cv_path_LDCXX
9376else
9377 unset lt_cv_path_LD
9378fi
9379test -z "${LDCXX+set}" || LD=$LDCXX
9380CC=${CXX-"c++"}
9381compiler=$CC
9382compiler_CXX=$CC
9383cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9384
9385# We don't want -fno-exception wen compiling C++ code, so set the
9386# no_builtin_flag separately
9387if test "$GXX" = yes; then
9388 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9389else
9390 lt_prog_compiler_no_builtin_flag_CXX=
9391fi
9392
9393if test "$GXX" = yes; then
9394 # Set up default GNU C++ configuration
9395
9396
9397# Check whether --with-gnu-ld or --without-gnu-ld was given.
9398if test "${with_gnu_ld+set}" = set; then
9399 withval="$with_gnu_ld"
9400 test "$withval" = no || with_gnu_ld=yes
9401else
9402 with_gnu_ld=no
9403fi;
9404ac_prog=ld
9405if test "$GCC" = yes; then
9406 # Check if gcc -print-prog-name=ld gives a path.
9407 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9408echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9409 case $host in
9410 *-*-mingw*)
9411 # gcc leaves a trailing carriage return which upsets mingw
9412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9413 *)
9414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9415 esac
9416 case $ac_prog in
9417 # Accept absolute paths.
9418 [\\/]* | ?:[\\/]*)
9419 re_direlt='/[^/][^/]*/\.\./'
9420 # Canonicalize the path of ld
9421 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9422 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9423 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9424 done
9425 test -z "$LD" && LD="$ac_prog"
9426 ;;
9427 "")
9428 # If it fails, then pretend we aren't using GCC.
9429 ac_prog=ld
9430 ;;
9431 *)
9432 # If it is relative, then search for the first ld in PATH.
9433 with_gnu_ld=unknown
9434 ;;
9435 esac
9436elif test "$with_gnu_ld" = yes; then
9437 echo "$as_me:$LINENO: checking for GNU ld" >&5
9438echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9439else
9440 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9441echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9442fi
9443if test "${lt_cv_path_LD+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446 if test -z "$LD"; then
9447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9448 for ac_dir in $PATH; do
9449 IFS="$lt_save_ifs"
9450 test -z "$ac_dir" && ac_dir=.
9451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9452 lt_cv_path_LD="$ac_dir/$ac_prog"
9453 # Check to see if the program is GNU ld. I'd rather use --version,
9454 # but apparently some GNU ld's only accept -v.
9455 # Break only if it was the GNU/non-GNU ld that we prefer.
9456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9457 *GNU* | *'with BFD'*)
9458 test "$with_gnu_ld" != no && break
9459 ;;
9460 *)
9461 test "$with_gnu_ld" != yes && break
9462 ;;
9463 esac
9464 fi
9465 done
9466 IFS="$lt_save_ifs"
9467else
9468 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9469fi
9470fi
9471
9472LD="$lt_cv_path_LD"
9473if test -n "$LD"; then
9474 echo "$as_me:$LINENO: result: $LD" >&5
9475echo "${ECHO_T}$LD" >&6
9476else
9477 echo "$as_me:$LINENO: result: no" >&5
9478echo "${ECHO_T}no" >&6
9479fi
9480test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9481echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9482 { (exit 1); exit 1; }; }
9483echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9484echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9485if test "${lt_cv_prog_gnu_ld+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9489case `"$LD" -v 2>&1 </dev/null` in
9490*GNU* | *'with BFD'*)
9491 lt_cv_prog_gnu_ld=yes
9492 ;;
9493*)
9494 lt_cv_prog_gnu_ld=no
9495 ;;
9496esac
9497fi
9498echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9499echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9500with_gnu_ld=$lt_cv_prog_gnu_ld
9501
9502
9503
9504 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9505 # archiving commands below assume that GNU ld is being used.
9506 if test "$with_gnu_ld" = yes; then
9507 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508 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'
9509
9510 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9511 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9512
9513 # If archive_cmds runs LD, not CC, wlarc should be empty
9514 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9515 # investigate it a little bit more. (MM)
9516 wlarc='${wl}'
9517
9518 # ancient GNU ld didn't support --whole-archive et. al.
9519 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9520 grep 'no-whole-archive' > /dev/null; then
9521 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9522 else
9523 whole_archive_flag_spec_CXX=
9524 fi
9525 else
9526 with_gnu_ld=no
9527 wlarc=
9528
9529 # A generic and very simple default shared library creation
9530 # command for GNU C++ for the case where it uses the native
9531 # linker, instead of GNU ld. If possible, this setting should
9532 # overridden to take advantage of the native linker features on
9533 # the platform it is being used on.
9534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9535 fi
9536
9537 # Commands to make compiler produce verbose output that lists
9538 # what "hidden" libraries, object files and flags are used when
9539 # linking a shared library.
9540 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9541
9542else
9543 GXX=no
9544 with_gnu_ld=no
9545 wlarc=
9546fi
9547
9548# PORTME: fill in a description of your system's C++ link characteristics
9549echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9550echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9551ld_shlibs_CXX=yes
9552case $host_os in
9553 aix3*)
9554 # FIXME: insert proper C++ library support
9555 ld_shlibs_CXX=no
9556 ;;
9557 aix4* | aix5*)
9558 if test "$host_cpu" = ia64; then
9559 # On IA64, the linker does run time linking by default, so we don't
9560 # have to do anything special.
9561 aix_use_runtimelinking=no
9562 exp_sym_flag='-Bexport'
9563 no_entry_flag=""
9564 else
9565 aix_use_runtimelinking=no
9566
9567 # Test if we are trying to use run time linking or normal
9568 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9569 # need to do runtime linking.
9570 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9571 for ld_flag in $LDFLAGS; do
9572 case $ld_flag in
9573 *-brtl*)
9574 aix_use_runtimelinking=yes
9575 break
9576 ;;
9577 esac
9578 done
9579 esac
9580
9581 exp_sym_flag='-bexport'
9582 no_entry_flag='-bnoentry'
9583 fi
9584
9585 # When large executables or shared objects are built, AIX ld can
9586 # have problems creating the table of contents. If linking a library
9587 # or program results in "error TOC overflow" add -mminimal-toc to
9588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9590
9591 archive_cmds_CXX=''
9592 hardcode_direct_CXX=yes
9593 hardcode_libdir_separator_CXX=':'
9594 link_all_deplibs_CXX=yes
9595
9596 if test "$GXX" = yes; then
9597 case $host_os in aix4.012|aix4.012.*)
9598 # We only want to do this on AIX 4.2 and lower, the check
9599 # below for broken collect2 doesn't work under 4.3+
9600 collect2name=`${CC} -print-prog-name=collect2`
9601 if test -f "$collect2name" && \
9602 strings "$collect2name" | grep resolve_lib_name >/dev/null
9603 then
9604 # We have reworked collect2
9605 hardcode_direct_CXX=yes
9606 else
9607 # We have old collect2
9608 hardcode_direct_CXX=unsupported
9609 # It fails to find uninstalled libraries when the uninstalled
9610 # path is not listed in the libpath. Setting hardcode_minus_L
9611 # to unsupported forces relinking
9612 hardcode_minus_L_CXX=yes
9613 hardcode_libdir_flag_spec_CXX='-L$libdir'
9614 hardcode_libdir_separator_CXX=
9615 fi
9616 esac
9617 shared_flag='-shared'
9618 else
9619 # not using gcc
9620 if test "$host_cpu" = ia64; then
9621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9622 # chokes on -Wl,-G. The following line is correct:
9623 shared_flag='-G'
9624 else
9625 if test "$aix_use_runtimelinking" = yes; then
9626 shared_flag='${wl}-G'
9627 else
9628 shared_flag='${wl}-bM:SRE'
9629 fi
9630 fi
9631 fi
9632
9633 # It seems that -bexpall does not export symbols beginning with
9634 # underscore (_), so it is better to generate a list of symbols to export.
9635 always_export_symbols_CXX=yes
9636 if test "$aix_use_runtimelinking" = yes; then
9637 # Warning - without using the other runtime loading flags (-brtl),
9638 # -berok will link without error, but may produce a broken library.
9639 allow_undefined_flag_CXX='-berok'
9640 # Determine the default libpath from the value encoded in an empty executable.
9641 cat >conftest.$ac_ext <<_ACEOF
9642#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009643/* confdefs.h. */
9644_ACEOF
9645cat confdefs.h >>conftest.$ac_ext
9646cat >>conftest.$ac_ext <<_ACEOF
9647/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009648
John Criswell47fdd832003-07-14 16:52:07 +00009649int
9650main ()
9651{
9652
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext conftest$ac_exeext
9658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try='test -s conftest$ac_exeext'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669
9670aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9671}'`
9672# Check for a 64-bit object if we didn't find anything.
9673if 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; }
9674}'`; fi
9675else
9676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009677sed 's/^/| /' conftest.$ac_ext >&5
9678
John Criswell47fdd832003-07-14 16:52:07 +00009679fi
9680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9681if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9682
9683 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9684
9685 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"
9686 else
9687 if test "$host_cpu" = ia64; then
9688 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9689 allow_undefined_flag_CXX="-z nodefs"
9690 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"
9691 else
9692 # Determine the default libpath from the value encoded in an empty executable.
9693 cat >conftest.$ac_ext <<_ACEOF
9694#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009695/* confdefs.h. */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009700
John Criswell47fdd832003-07-14 16:52:07 +00009701int
9702main ()
9703{
9704
9705 ;
9706 return 0;
9707}
9708_ACEOF
9709rm -f conftest.$ac_objext conftest$ac_exeext
9710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711 (eval $ac_link) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721
9722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9723}'`
9724# Check for a 64-bit object if we didn't find anything.
9725if 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; }
9726}'`; fi
9727else
9728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009729sed 's/^/| /' conftest.$ac_ext >&5
9730
John Criswell47fdd832003-07-14 16:52:07 +00009731fi
9732rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9733if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9734
9735 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9736 # Warning - without using the other run time loading flags,
9737 # -berok will link without error, but may produce a broken library.
9738 no_undefined_flag_CXX=' ${wl}-bernotok'
9739 allow_undefined_flag_CXX=' ${wl}-berok'
9740 # -bexpall does not export symbols beginning with underscore (_)
9741 always_export_symbols_CXX=yes
9742 # Exported symbols can be pulled into shared objects from archives
9743 whole_archive_flag_spec_CXX=' '
9744 archive_cmds_need_lc_CXX=yes
9745 # This is similar to how AIX traditionally builds it's shared libraries.
9746 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'
9747 fi
9748 fi
9749 ;;
9750 chorus*)
9751 case $cc_basename in
9752 *)
9753 # FIXME: insert proper C++ library support
9754 ld_shlibs_CXX=no
9755 ;;
9756 esac
9757 ;;
9758
9759 cygwin* | mingw* | pw32*)
9760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9761 # as there is no search path for DLLs.
9762 hardcode_libdir_flag_spec_CXX='-L$libdir'
9763 allow_undefined_flag_CXX=unsupported
9764 always_export_symbols_CXX=no
9765 enable_shared_with_static_runtimes_CXX=yes
9766
9767 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9768 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'
9769 # If the export-symbols file already is a .def file (1st line
9770 # is EXPORTS), use it as is; otherwise, prepend...
9771 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9772 cp $export_symbols $output_objdir/$soname.def;
9773 else
9774 echo EXPORTS > $output_objdir/$soname.def;
9775 cat $export_symbols >> $output_objdir/$soname.def;
9776 fi~
9777 $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'
9778 else
9779 ld_shlibs_CXX=no
9780 fi
9781 ;;
9782
9783 darwin* | rhapsody*)
9784 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9785 archive_cmds_need_lc_CXX=no
9786 case "$host_os" in
9787 rhapsody* | darwin1.[012])
9788 allow_undefined_flag_CXX='-undefined suppress'
9789 ;;
9790 *) # Darwin 1.3 on
9791 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9792 ;;
9793 esac
9794 lt_int_apple_cc_single_mod=no
9795 output_verbose_link_cmd='echo'
9796 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9797 lt_int_apple_cc_single_mod=yes
9798 fi
9799 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9800 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9801 else
9802 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'
9803 fi
9804 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9805
9806 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9807 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9808 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}'
9809 else
9810 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}'
9811 fi
9812 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}'
9813 hardcode_direct_CXX=no
9814 hardcode_automatic_CXX=yes
9815 hardcode_shlibpath_var_CXX=unsupported
9816 whole_archive_flag_spec_CXX='-all_load $convenience'
9817 link_all_deplibs_CXX=yes
9818 fi
9819 ;;
9820
9821 dgux*)
9822 case $cc_basename in
9823 ec++)
9824 # FIXME: insert proper C++ library support
9825 ld_shlibs_CXX=no
9826 ;;
9827 ghcx)
9828 # Green Hills C++ Compiler
9829 # FIXME: insert proper C++ library support
9830 ld_shlibs_CXX=no
9831 ;;
9832 *)
9833 # FIXME: insert proper C++ library support
9834 ld_shlibs_CXX=no
9835 ;;
9836 esac
9837 ;;
9838 freebsd12*)
9839 # C++ shared libraries reported to be fairly broken before switch to ELF
9840 ld_shlibs_CXX=no
9841 ;;
9842 freebsd-elf*)
9843 archive_cmds_need_lc_CXX=no
9844 ;;
9845 freebsd*)
9846 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9847 # conventions
9848 ld_shlibs_CXX=yes
9849 ;;
9850 gnu*)
9851 ;;
9852 hpux9*)
9853 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9854 hardcode_libdir_separator_CXX=:
9855 export_dynamic_flag_spec_CXX='${wl}-E'
9856 hardcode_direct_CXX=yes
9857 hardcode_minus_L_CXX=yes # Not in the search PATH,
9858 # but as the default
9859 # location of the library.
9860
9861 case $cc_basename in
9862 CC)
9863 # FIXME: insert proper C++ library support
9864 ld_shlibs_CXX=no
9865 ;;
9866 aCC)
9867 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'
9868 # Commands to make compiler produce verbose output that lists
9869 # what "hidden" libraries, object files and flags are used when
9870 # linking a shared library.
9871 #
9872 # There doesn't appear to be a way to prevent this compiler from
9873 # explicitly linking system object files so we need to strip them
9874 # from the output so that they don't get included in the library
9875 # dependencies.
9876 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'
9877 ;;
9878 *)
9879 if test "$GXX" = yes; then
9880 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'
9881 else
9882 # FIXME: insert proper C++ library support
9883 ld_shlibs_CXX=no
9884 fi
9885 ;;
9886 esac
9887 ;;
9888 hpux10*|hpux11*)
9889 if test $with_gnu_ld = no; then
9890 case "$host_cpu" in
9891 hppa*64*)
9892 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9893 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9894 hardcode_libdir_separator_CXX=:
9895 ;;
9896 ia64*)
9897 hardcode_libdir_flag_spec_CXX='-L$libdir'
9898 ;;
9899 *)
9900 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9901 hardcode_libdir_separator_CXX=:
9902 export_dynamic_flag_spec_CXX='${wl}-E'
9903 ;;
9904 esac
9905 fi
9906 case "$host_cpu" in
9907 hppa*64*)
9908 hardcode_direct_CXX=no
9909 hardcode_shlibpath_var_CXX=no
9910 ;;
9911 ia64*)
9912 hardcode_direct_CXX=no
9913 hardcode_shlibpath_var_CXX=no
9914 hardcode_minus_L_CXX=yes # Not in the search PATH,
9915 # but as the default
9916 # location of the library.
9917 ;;
9918 *)
9919 hardcode_direct_CXX=yes
9920 hardcode_minus_L_CXX=yes # Not in the search PATH,
9921 # but as the default
9922 # location of the library.
9923 ;;
9924 esac
9925
9926 case $cc_basename in
9927 CC)
9928 # FIXME: insert proper C++ library support
9929 ld_shlibs_CXX=no
9930 ;;
9931 aCC)
9932 case "$host_cpu" in
9933 hppa*64*|ia64*)
9934 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9935 ;;
9936 *)
9937 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9938 ;;
9939 esac
9940 # Commands to make compiler produce verbose output that lists
9941 # what "hidden" libraries, object files and flags are used when
9942 # linking a shared library.
9943 #
9944 # There doesn't appear to be a way to prevent this compiler from
9945 # explicitly linking system object files so we need to strip them
9946 # from the output so that they don't get included in the library
9947 # dependencies.
9948 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'
9949 ;;
9950 *)
9951 if test "$GXX" = yes; then
9952 if test $with_gnu_ld = no; then
9953 case "$host_cpu" in
9954 ia64*|hppa*64*)
9955 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9956 ;;
9957 *)
9958 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'
9959 ;;
9960 esac
9961 fi
9962 else
9963 # FIXME: insert proper C++ library support
9964 ld_shlibs_CXX=no
9965 fi
9966 ;;
9967 esac
9968 ;;
9969 irix5* | irix6*)
9970 case $cc_basename in
9971 CC)
9972 # SGI C++
9973 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'
9974
9975 # Archives containing C++ object files must be created using
9976 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9977 # necessary to make sure instantiated templates are included
9978 # in the archive.
9979 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9980 ;;
9981 *)
9982 if test "$GXX" = yes; then
9983 if test "$with_gnu_ld" = no; then
9984 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'
9985 else
9986 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'
9987 fi
9988 fi
9989 link_all_deplibs_CXX=yes
9990 ;;
9991 esac
9992 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9993 hardcode_libdir_separator_CXX=:
9994 ;;
9995 linux*)
9996 case $cc_basename in
9997 KCC)
9998 # Kuck and Associates, Inc. (KAI) C++ Compiler
9999
10000 # KCC will only create a shared library if the output file
10001 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10002 # to its proper name (with version) after linking.
10003 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'
10004 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'
10005 # Commands to make compiler produce verbose output that lists
10006 # what "hidden" libraries, object files and flags are used when
10007 # linking a shared library.
10008 #
10009 # There doesn't appear to be a way to prevent this compiler from
10010 # explicitly linking system object files so we need to strip them
10011 # from the output so that they don't get included in the library
10012 # dependencies.
10013 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'
10014
10015 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10016 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10017
10018 # Archives containing C++ object files must be created using
10019 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10020 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10021 ;;
10022 icpc)
10023 # Intel C++
10024 with_gnu_ld=yes
10025 archive_cmds_need_lc_CXX=no
10026 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10027 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'
10028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10030 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10031 ;;
10032 cxx)
10033 # Compaq C++
10034 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10035 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'
10036
10037 runpath_var=LD_RUN_PATH
10038 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10039 hardcode_libdir_separator_CXX=:
10040
10041 # Commands to make compiler produce verbose output that lists
10042 # what "hidden" libraries, object files and flags are used when
10043 # linking a shared library.
10044 #
10045 # There doesn't appear to be a way to prevent this compiler from
10046 # explicitly linking system object files so we need to strip them
10047 # from the output so that they don't get included in the library
10048 # dependencies.
10049 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'
10050 ;;
10051 esac
10052 ;;
10053 lynxos*)
10054 # FIXME: insert proper C++ library support
10055 ld_shlibs_CXX=no
10056 ;;
10057 m88k*)
10058 # FIXME: insert proper C++ library support
10059 ld_shlibs_CXX=no
10060 ;;
10061 mvs*)
10062 case $cc_basename in
10063 cxx)
10064 # FIXME: insert proper C++ library support
10065 ld_shlibs_CXX=no
10066 ;;
10067 *)
10068 # FIXME: insert proper C++ library support
10069 ld_shlibs_CXX=no
10070 ;;
10071 esac
10072 ;;
10073 netbsd*)
10074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10075 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10076 wlarc=
10077 hardcode_libdir_flag_spec_CXX='-R$libdir'
10078 hardcode_direct_CXX=yes
10079 hardcode_shlibpath_var_CXX=no
10080 fi
10081 # Workaround some broken pre-1.5 toolchains
10082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10083 ;;
10084 osf3*)
10085 case $cc_basename in
10086 KCC)
10087 # Kuck and Associates, Inc. (KAI) C++ Compiler
10088
10089 # KCC will only create a shared library if the output file
10090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10091 # to its proper name (with version) after linking.
10092 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'
10093
10094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10095 hardcode_libdir_separator_CXX=:
10096
10097 # Archives containing C++ object files must be created using
10098 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10100
10101 ;;
10102 RCC)
10103 # Rational C++ 2.4.1
10104 # FIXME: insert proper C++ library support
10105 ld_shlibs_CXX=no
10106 ;;
10107 cxx)
10108 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10109 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'
10110
10111 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10112 hardcode_libdir_separator_CXX=:
10113
10114 # Commands to make compiler produce verbose output that lists
10115 # what "hidden" libraries, object files and flags are used when
10116 # linking a shared library.
10117 #
10118 # There doesn't appear to be a way to prevent this compiler from
10119 # explicitly linking system object files so we need to strip them
10120 # from the output so that they don't get included in the library
10121 # dependencies.
10122 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'
10123 ;;
10124 *)
10125 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10126 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10127 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'
10128
10129 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10130 hardcode_libdir_separator_CXX=:
10131
10132 # Commands to make compiler produce verbose output that lists
10133 # what "hidden" libraries, object files and flags are used when
10134 # linking a shared library.
10135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10136
10137 else
10138 # FIXME: insert proper C++ library support
10139 ld_shlibs_CXX=no
10140 fi
10141 ;;
10142 esac
10143 ;;
10144 osf4* | osf5*)
10145 case $cc_basename in
10146 KCC)
10147 # Kuck and Associates, Inc. (KAI) C++ Compiler
10148
10149 # KCC will only create a shared library if the output file
10150 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10151 # to its proper name (with version) after linking.
10152 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'
10153
10154 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10155 hardcode_libdir_separator_CXX=:
10156
10157 # Archives containing C++ object files must be created using
10158 # the KAI C++ compiler.
10159 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10160 ;;
10161 RCC)
10162 # Rational C++ 2.4.1
10163 # FIXME: insert proper C++ library support
10164 ld_shlibs_CXX=no
10165 ;;
10166 cxx)
10167 allow_undefined_flag_CXX=' -expect_unresolved \*'
10168 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'
10169 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10170 echo "-hidden">> $lib.exp~
10171 $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~
10172 $rm $lib.exp'
10173
10174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10175 hardcode_libdir_separator_CXX=:
10176
10177 # Commands to make compiler produce verbose output that lists
10178 # what "hidden" libraries, object files and flags are used when
10179 # linking a shared library.
10180 #
10181 # There doesn't appear to be a way to prevent this compiler from
10182 # explicitly linking system object files so we need to strip them
10183 # from the output so that they don't get included in the library
10184 # dependencies.
10185 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'
10186 ;;
10187 *)
10188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10190 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'
10191
10192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10193 hardcode_libdir_separator_CXX=:
10194
10195 # Commands to make compiler produce verbose output that lists
10196 # what "hidden" libraries, object files and flags are used when
10197 # linking a shared library.
10198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10199
10200 else
10201 # FIXME: insert proper C++ library support
10202 ld_shlibs_CXX=no
10203 fi
10204 ;;
10205 esac
10206 ;;
10207 psos*)
10208 # FIXME: insert proper C++ library support
10209 ld_shlibs_CXX=no
10210 ;;
10211 sco*)
10212 archive_cmds_need_lc_CXX=no
10213 case $cc_basename in
10214 CC)
10215 # FIXME: insert proper C++ library support
10216 ld_shlibs_CXX=no
10217 ;;
10218 *)
10219 # FIXME: insert proper C++ library support
10220 ld_shlibs_CXX=no
10221 ;;
10222 esac
10223 ;;
10224 sunos4*)
10225 case $cc_basename in
10226 CC)
10227 # Sun C++ 4.x
10228 # FIXME: insert proper C++ library support
10229 ld_shlibs_CXX=no
10230 ;;
10231 lcc)
10232 # Lucid
10233 # FIXME: insert proper C++ library support
10234 ld_shlibs_CXX=no
10235 ;;
10236 *)
10237 # FIXME: insert proper C++ library support
10238 ld_shlibs_CXX=no
10239 ;;
10240 esac
10241 ;;
10242 solaris*)
10243 case $cc_basename in
10244 CC)
10245 # Sun C++ 4.2, 5.x and Centerline C++
10246 no_undefined_flag_CXX=' -zdefs'
10247 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10248 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10249 $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'
10250
10251 hardcode_libdir_flag_spec_CXX='-R$libdir'
10252 hardcode_shlibpath_var_CXX=no
10253 case $host_os in
10254 solaris2.0-5 | solaris2.0-5.*) ;;
10255 *)
10256 # The C++ compiler is used as linker so we must use $wl
10257 # flag to pass the commands to the underlying system
10258 # linker.
10259 # Supported since Solaris 2.6 (maybe 2.5.1?)
10260 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10261 ;;
10262 esac
10263 link_all_deplibs_CXX=yes
10264
10265 # Commands to make compiler produce verbose output that lists
10266 # what "hidden" libraries, object files and flags are used when
10267 # linking a shared library.
10268 #
10269 # There doesn't appear to be a way to prevent this compiler from
10270 # explicitly linking system object files so we need to strip them
10271 # from the output so that they don't get included in the library
10272 # dependencies.
10273 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'
10274
10275 # Archives containing C++ object files must be created using
10276 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10277 # necessary to make sure instantiated templates are included
10278 # in the archive.
10279 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10280 ;;
10281 gcx)
10282 # Green Hills C++ Compiler
10283 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10284
10285 # The C++ compiler must be used to create the archive.
10286 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10287 ;;
10288 *)
10289 # GNU C++ compiler with Solaris linker
10290 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10291 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10292 if $CC --version | grep -v '^2\.7' > /dev/null; then
10293 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10294 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10296
10297 # Commands to make compiler produce verbose output that lists
10298 # what "hidden" libraries, object files and flags are used when
10299 # linking a shared library.
10300 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10301 else
10302 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10303 # platform.
10304 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10305 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10306 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10307
10308 # Commands to make compiler produce verbose output that lists
10309 # what "hidden" libraries, object files and flags are used when
10310 # linking a shared library.
10311 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10312 fi
10313
10314 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10315 fi
10316 ;;
10317 esac
10318 ;;
10319 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10320 archive_cmds_need_lc_CXX=no
10321 ;;
10322 tandem*)
10323 case $cc_basename in
10324 NCC)
10325 # NonStop-UX NCC 3.20
10326 # FIXME: insert proper C++ library support
10327 ld_shlibs_CXX=no
10328 ;;
10329 *)
10330 # FIXME: insert proper C++ library support
10331 ld_shlibs_CXX=no
10332 ;;
10333 esac
10334 ;;
10335 vxworks*)
10336 # FIXME: insert proper C++ library support
10337 ld_shlibs_CXX=no
10338 ;;
10339 *)
10340 # FIXME: insert proper C++ library support
10341 ld_shlibs_CXX=no
10342 ;;
10343esac
10344echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10345echo "${ECHO_T}$ld_shlibs_CXX" >&6
10346test "$ld_shlibs_CXX" = no && can_build_shared=no
10347
10348GCC_CXX="$GXX"
10349LD_CXX="$LD"
10350
10351## CAVEAT EMPTOR:
10352## There is no encapsulation within the following macros, do not change
10353## the running order or otherwise move them around unless you know exactly
10354## what you are doing...
10355
10356cat > conftest.$ac_ext <<EOF
10357class Foo
10358{
10359public:
10360 Foo (void) { a = 0; }
10361private:
10362 int a;
10363};
10364EOF
10365
10366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; then
10371 # Parse the compiler output and extract the necessary
10372 # objects, libraries and library flags.
10373
10374 # Sentinel used to keep track of whether or not we are before
10375 # the conftest object file.
10376 pre_test_object_deps_done=no
10377
10378 # The `*' in the case matches for architectures that use `case' in
10379 # $output_verbose_cmd can trigger glob expansion during the loop
10380 # eval without this substitution.
10381 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10382
10383 for p in `eval $output_verbose_link_cmd`; do
10384 case $p in
10385
10386 -L* | -R* | -l*)
10387 # Some compilers place space between "-{L,R}" and the path.
10388 # Remove the space.
10389 if test $p = "-L" \
10390 || test $p = "-R"; then
10391 prev=$p
10392 continue
10393 else
10394 prev=
10395 fi
10396
10397 if test "$pre_test_object_deps_done" = no; then
10398 case $p in
10399 -L* | -R*)
10400 # Internal compiler library paths should come after those
10401 # provided the user. The postdeps already come after the
10402 # user supplied libs so there is no need to process them.
10403 if test -z "$compiler_lib_search_path_CXX"; then
10404 compiler_lib_search_path_CXX="${prev}${p}"
10405 else
10406 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10407 fi
10408 ;;
10409 # The "-l" case would never come before the object being
10410 # linked, so don't bother handling this case.
10411 esac
10412 else
10413 if test -z "$postdeps_CXX"; then
10414 postdeps_CXX="${prev}${p}"
10415 else
10416 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10417 fi
10418 fi
10419 ;;
10420
10421 *.$objext)
10422 # This assumes that the test object file only shows up
10423 # once in the compiler output.
10424 if test "$p" = "conftest.$objext"; then
10425 pre_test_object_deps_done=yes
10426 continue
10427 fi
10428
10429 if test "$pre_test_object_deps_done" = no; then
10430 if test -z "$predep_objects_CXX"; then
10431 predep_objects_CXX="$p"
10432 else
10433 predep_objects_CXX="$predep_objects_CXX $p"
10434 fi
10435 else
10436 if test -z "$postdep_objects_CXX"; then
10437 postdep_objects_CXX="$p"
10438 else
10439 postdep_objects_CXX="$postdep_objects_CXX $p"
10440 fi
10441 fi
10442 ;;
10443
10444 *) ;; # Ignore the rest.
10445
10446 esac
10447 done
10448
10449 # Clean up.
10450 rm -f a.out a.exe
10451else
10452 echo "libtool.m4: error: problem compiling CXX test program"
10453fi
10454
10455$rm -f confest.$objext
10456
10457case " $postdeps_CXX " in
10458*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10459esac
10460
10461lt_prog_compiler_wl_CXX=
10462lt_prog_compiler_pic_CXX=
10463lt_prog_compiler_static_CXX=
10464
10465echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10466echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10467
10468 # C++ specific cases for pic, static, wl, etc.
10469 if test "$GXX" = yes; then
10470 lt_prog_compiler_wl_CXX='-Wl,'
10471 lt_prog_compiler_static_CXX='-static'
10472
10473 case $host_os in
10474 aix*)
10475 # All AIX code is PIC.
10476 if test "$host_cpu" = ia64; then
10477 # AIX 5 now supports IA64 processor
10478 lt_prog_compiler_static_CXX='-Bstatic'
10479 fi
10480 ;;
10481 amigaos*)
10482 # FIXME: we need at least 68020 code to build shared libraries, but
10483 # adding the `-m68020' flag to GCC prevents building anything better,
10484 # like `-m68040'.
10485 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10486 ;;
10487 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10488 # PIC is the default for these OSes.
10489 ;;
10490 mingw* | os2* | pw32*)
10491 # This hack is so that the source file can tell whether it is being
10492 # built for inclusion in a dll (and should export symbols for example).
10493 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10494 ;;
10495 darwin* | rhapsody*)
10496 # PIC is the default on this platform
10497 # Common symbols not allowed in MH_DYLIB files
10498 lt_prog_compiler_pic_CXX='-fno-common'
10499 ;;
10500 *djgpp*)
10501 # DJGPP does not support shared libraries at all
10502 lt_prog_compiler_pic_CXX=
10503 ;;
10504 sysv4*MP*)
10505 if test -d /usr/nec; then
10506 lt_prog_compiler_pic_CXX=-Kconform_pic
10507 fi
10508 ;;
10509 hpux*)
10510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10511 # not for PA HP-UX.
10512 case "$host_cpu" in
10513 hppa*64*|ia64*)
10514 ;;
10515 *)
10516 lt_prog_compiler_pic_CXX='-fPIC'
10517 ;;
10518 esac
10519 ;;
10520 *)
10521 lt_prog_compiler_pic_CXX='-fPIC'
10522 ;;
10523 esac
10524 else
10525 case $host_os in
10526 aix4* | aix5*)
10527 # All AIX code is PIC.
10528 if test "$host_cpu" = ia64; then
10529 # AIX 5 now supports IA64 processor
10530 lt_prog_compiler_static_CXX='-Bstatic'
10531 else
10532 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10533 fi
10534 ;;
10535 chorus*)
10536 case $cc_basename in
10537 cxch68)
10538 # Green Hills C++ Compiler
10539 # _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"
10540 ;;
10541 esac
10542 ;;
10543 dgux*)
10544 case $cc_basename in
10545 ec++)
10546 lt_prog_compiler_pic_CXX='-KPIC'
10547 ;;
10548 ghcx)
10549 # Green Hills C++ Compiler
10550 lt_prog_compiler_pic_CXX='-pic'
10551 ;;
10552 *)
10553 ;;
10554 esac
10555 ;;
10556 freebsd*)
10557 # FreeBSD uses GNU C++
10558 ;;
10559 hpux9* | hpux10* | hpux11*)
10560 case $cc_basename in
10561 CC)
10562 lt_prog_compiler_wl_CXX='-Wl,'
10563 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10564 if test "$host_cpu" != ia64; then
10565 lt_prog_compiler_pic_CXX='+Z'
10566 fi
10567 ;;
10568 aCC)
10569 lt_prog_compiler_wl_CXX='-Wl,'
10570 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10571 case "$host_cpu" in
10572 hppa*64*|ia64*)
10573 # +Z the default
10574 ;;
10575 *)
10576 lt_prog_compiler_pic_CXX='+Z'
10577 ;;
10578 esac
10579 ;;
10580 *)
10581 ;;
10582 esac
10583 ;;
10584 irix5* | irix6* | nonstopux*)
10585 case $cc_basename in
10586 CC)
10587 lt_prog_compiler_wl_CXX='-Wl,'
10588 lt_prog_compiler_static_CXX='-non_shared'
10589 # CC pic flag -KPIC is the default.
10590 ;;
10591 *)
10592 ;;
10593 esac
10594 ;;
10595 linux*)
10596 case $cc_basename in
10597 KCC)
10598 # KAI C++ Compiler
10599 lt_prog_compiler_wl_CXX='--backend -Wl,'
10600 lt_prog_compiler_pic_CXX='-fPIC'
10601 ;;
10602 icpc)
10603 # Intel C++
10604 lt_prog_compiler_wl_CXX='-Wl,'
10605 lt_prog_compiler_pic_CXX='-KPIC'
10606 lt_prog_compiler_static_CXX='-static'
10607 ;;
10608 cxx)
10609 # Compaq C++
10610 # Make sure the PIC flag is empty. It appears that all Alpha
10611 # Linux and Compaq Tru64 Unix objects are PIC.
10612 lt_prog_compiler_pic_CXX=
10613 lt_prog_compiler_static_CXX='-non_shared'
10614 ;;
10615 *)
10616 ;;
10617 esac
10618 ;;
10619 lynxos*)
10620 ;;
10621 m88k*)
10622 ;;
10623 mvs*)
10624 case $cc_basename in
10625 cxx)
10626 lt_prog_compiler_pic_CXX='-W c,exportall'
10627 ;;
10628 *)
10629 ;;
10630 esac
10631 ;;
10632 netbsd*)
10633 ;;
10634 osf3* | osf4* | osf5*)
10635 case $cc_basename in
10636 KCC)
10637 lt_prog_compiler_wl_CXX='--backend -Wl,'
10638 ;;
10639 RCC)
10640 # Rational C++ 2.4.1
10641 lt_prog_compiler_pic_CXX='-pic'
10642 ;;
10643 cxx)
10644 # Digital/Compaq C++
10645 lt_prog_compiler_wl_CXX='-Wl,'
10646 # Make sure the PIC flag is empty. It appears that all Alpha
10647 # Linux and Compaq Tru64 Unix objects are PIC.
10648 lt_prog_compiler_pic_CXX=
10649 lt_prog_compiler_static_CXX='-non_shared'
10650 ;;
10651 *)
10652 ;;
10653 esac
10654 ;;
10655 psos*)
10656 ;;
10657 sco*)
10658 case $cc_basename in
10659 CC)
10660 lt_prog_compiler_pic_CXX='-fPIC'
10661 ;;
10662 *)
10663 ;;
10664 esac
10665 ;;
10666 solaris*)
10667 case $cc_basename in
10668 CC)
10669 # Sun C++ 4.2, 5.x and Centerline C++
10670 lt_prog_compiler_pic_CXX='-KPIC'
10671 lt_prog_compiler_static_CXX='-Bstatic'
10672 lt_prog_compiler_wl_CXX='-Qoption ld '
10673 ;;
10674 gcx)
10675 # Green Hills C++ Compiler
10676 lt_prog_compiler_pic_CXX='-PIC'
10677 ;;
10678 *)
10679 ;;
10680 esac
10681 ;;
10682 sunos4*)
10683 case $cc_basename in
10684 CC)
10685 # Sun C++ 4.x
10686 lt_prog_compiler_pic_CXX='-pic'
10687 lt_prog_compiler_static_CXX='-Bstatic'
10688 ;;
10689 lcc)
10690 # Lucid
10691 lt_prog_compiler_pic_CXX='-pic'
10692 ;;
10693 *)
10694 ;;
10695 esac
10696 ;;
10697 tandem*)
10698 case $cc_basename in
10699 NCC)
10700 # NonStop-UX NCC 3.20
10701 lt_prog_compiler_pic_CXX='-KPIC'
10702 ;;
10703 *)
10704 ;;
10705 esac
10706 ;;
10707 unixware*)
10708 ;;
10709 vxworks*)
10710 ;;
10711 *)
10712 lt_prog_compiler_can_build_shared_CXX=no
10713 ;;
10714 esac
10715 fi
10716
10717echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10718echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10719
10720#
10721# Check to make sure the PIC flag actually works.
10722#
10723if test -n "$lt_prog_compiler_pic_CXX"; then
10724 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10725echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10726if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728else
10729 lt_prog_compiler_pic_works_CXX=no
10730 ac_outfile=conftest.$ac_objext
10731 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10732 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10733 # Insert the option either (1) after the last *FLAGS variable, or
10734 # (2) before a word containing "conftest.", or (3) at the end.
10735 # Note that $ac_compile itself does not contain backslashes and begins
10736 # with a dollar sign (not a hyphen), so the echo should work correctly.
10737 # The option is referenced via a variable to avoid confusing sed.
10738 lt_compile=`echo "$ac_compile" | $SED \
10739 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10741 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +000010742 (eval echo "\"\$as_me:10742: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010743 (eval "$lt_compile" 2>conftest.err)
10744 ac_status=$?
10745 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010746 echo "$as_me:10746: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010747 if (exit $ac_status) && test -s "$ac_outfile"; then
10748 # The compiler can only warn and ignore the option if not recognized
10749 # So say no if there are warnings
10750 if test ! -s conftest.err; then
10751 lt_prog_compiler_pic_works_CXX=yes
10752 fi
10753 fi
10754 $rm conftest*
10755
10756fi
10757echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10758echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10759
10760if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10761 case $lt_prog_compiler_pic_CXX in
10762 "" | " "*) ;;
10763 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10764 esac
10765else
10766 lt_prog_compiler_pic_CXX=
10767 lt_prog_compiler_can_build_shared_CXX=no
10768fi
10769
10770fi
10771case "$host_os" in
10772 # For platforms which do not support PIC, -DPIC is meaningless:
10773 *djgpp*)
10774 lt_prog_compiler_pic_CXX=
10775 ;;
10776 *)
10777 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10778 ;;
10779esac
10780
10781echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10782echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10783if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 lt_cv_prog_compiler_c_o_CXX=no
10787 $rm -r conftest 2>/dev/null
10788 mkdir conftest
10789 cd conftest
10790 mkdir out
10791 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10792
10793 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10794 # that will create temporary files in the current directory regardless of
10795 # the output directory. Thus, making CWD read-only will cause this test
10796 # to fail, enabling locking or at least warning the user not to do parallel
10797 # builds.
10798 chmod -w .
10799
10800 lt_compiler_flag="-o out/conftest2.$ac_objext"
10801 # Insert the option either (1) after the last *FLAGS variable, or
10802 # (2) before a word containing "conftest.", or (3) at the end.
10803 # Note that $ac_compile itself does not contain backslashes and begins
10804 # with a dollar sign (not a hyphen), so the echo should work correctly.
10805 lt_compile=`echo "$ac_compile" | $SED \
10806 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10808 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +000010809 (eval echo "\"\$as_me:10809: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010810 (eval "$lt_compile" 2>out/conftest.err)
10811 ac_status=$?
10812 cat out/conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010813 echo "$as_me:10813: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10815 then
10816 # The compiler can only warn and ignore the option if not recognized
10817 # So say no if there are warnings
10818 if test ! -s out/conftest.err; then
10819 lt_cv_prog_compiler_c_o_CXX=yes
10820 fi
10821 fi
10822 chmod u+w .
10823 $rm conftest* out/*
10824 rmdir out
10825 cd ..
10826 rmdir conftest
10827 $rm conftest*
10828
10829fi
10830echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10831echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10832
10833
10834hard_links="nottested"
10835if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10836 # do not overwrite the value of need_locks provided by the user
10837 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10838echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10839 hard_links=yes
10840 $rm conftest*
10841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10842 touch conftest.a
10843 ln conftest.a conftest.b 2>&5 || hard_links=no
10844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10845 echo "$as_me:$LINENO: result: $hard_links" >&5
10846echo "${ECHO_T}$hard_links" >&6
10847 if test "$hard_links" = no; then
10848 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10849echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10850 need_locks=warn
10851 fi
10852else
10853 need_locks=no
10854fi
10855
10856echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10857echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10858
10859 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10860 case $host_os in
10861 aix4* | aix5*)
10862 # If we're using GNU nm, then we don't want the "-C" option.
10863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10865 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'
10866 else
10867 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'
10868 fi
10869 ;;
10870 pw32*)
10871 export_symbols_cmds_CXX="$ltdll_cmds"
10872 ;;
10873 cygwin* | mingw*)
10874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10875 ;;
10876 *)
10877 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10878 ;;
10879 esac
10880
10881echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10882echo "${ECHO_T}$ld_shlibs_CXX" >&6
10883test "$ld_shlibs_CXX" = no && can_build_shared=no
10884
10885variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10886if test "$GCC" = yes; then
10887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10888fi
10889
10890#
10891# Do we need to explicitly link libc?
10892#
10893case "x$archive_cmds_need_lc_CXX" in
10894x|xyes)
10895 # Assume -lc should be added
10896 archive_cmds_need_lc_CXX=yes
10897
10898 if test "$enable_shared" = yes && test "$GCC" = yes; then
10899 case $archive_cmds_CXX in
10900 *'~'*)
10901 # FIXME: we may have to deal with multi-command sequences.
10902 ;;
10903 '$CC '*)
10904 # Test whether the compiler implicitly links with -lc since on some
10905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10906 # to ld, don't add -lc before -lgcc.
10907 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10908echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10909 $rm conftest*
10910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10911
10912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913 (eval $ac_compile) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } 2>conftest.err; then
10917 soname=conftest
10918 lib=conftest
10919 libobjs=conftest.$ac_objext
10920 deplibs=
10921 wl=$lt_prog_compiler_wl_CXX
10922 compiler_flags=-v
10923 linker_flags=-v
10924 verstring=
10925 output_objdir=.
10926 libname=conftest
10927 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10928 allow_undefined_flag_CXX=
10929 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10930 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }
10934 then
10935 archive_cmds_need_lc_CXX=no
10936 else
10937 archive_cmds_need_lc_CXX=yes
10938 fi
10939 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10940 else
10941 cat conftest.err 1>&5
10942 fi
10943 $rm conftest*
10944 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10945echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10946 ;;
10947 esac
10948 fi
10949 ;;
10950esac
10951
10952echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10953echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10954hardcode_action_CXX=
10955if test -n "$hardcode_libdir_flag_spec_CXX" || \
10956 test -n "$runpath_var CXX" || \
10957 test "X$hardcode_automatic_CXX"="Xyes" ; then
10958
10959 # We can hardcode non-existant directories.
10960 if test "$hardcode_direct_CXX" != no &&
10961 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10962 # have to relink, otherwise we might link with an installed library
10963 # when we should be linking with a yet-to-be-installed one
10964 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10965 test "$hardcode_minus_L_CXX" != no; then
10966 # Linking always hardcodes the temporary library directory.
10967 hardcode_action_CXX=relink
10968 else
10969 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10970 hardcode_action_CXX=immediate
10971 fi
10972else
10973 # We cannot hardcode anything, or else we can only hardcode existing
10974 # directories.
10975 hardcode_action_CXX=unsupported
10976fi
10977echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10978echo "${ECHO_T}$hardcode_action_CXX" >&6
10979
10980if test "$hardcode_action_CXX" = relink; then
10981 # Fast installation is not supported
10982 enable_fast_install=no
10983elif test "$shlibpath_overrides_runpath" = yes ||
10984 test "$enable_shared" = no; then
10985 # Fast installation is not necessary
10986 enable_fast_install=needless
10987fi
10988
10989striplib=
10990old_striplib=
10991echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10992echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10993if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10994 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10995 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10996 echo "$as_me:$LINENO: result: yes" >&5
10997echo "${ECHO_T}yes" >&6
10998else
10999# FIXME - insert some real tests, host_os isn't really good enough
11000 case $host_os in
11001 darwin*)
11002 if test -n "$STRIP" ; then
11003 striplib="$STRIP -x"
11004 echo "$as_me:$LINENO: result: yes" >&5
11005echo "${ECHO_T}yes" >&6
11006 else
11007 echo "$as_me:$LINENO: result: no" >&5
11008echo "${ECHO_T}no" >&6
11009fi
11010 ;;
11011 *)
11012 echo "$as_me:$LINENO: result: no" >&5
11013echo "${ECHO_T}no" >&6
11014 ;;
11015 esac
11016fi
11017
11018echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11019echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11020library_names_spec=
11021libname_spec='lib$name'
11022soname_spec=
11023shrext=".so"
11024postinstall_cmds=
11025postuninstall_cmds=
11026finish_cmds=
11027finish_eval=
11028shlibpath_var=
11029shlibpath_overrides_runpath=unknown
11030version_type=none
11031dynamic_linker="$host_os ld.so"
11032sys_lib_dlsearch_path_spec="/lib /usr/lib"
11033if test "$GCC" = yes; then
11034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11036 # if the path contains ";" then we assume it to be the separator
11037 # otherwise default to the standard path separator (i.e. ":") - it is
11038 # assumed that no part of a normal pathname contains ";" but that should
11039 # okay in the real world where ";" in dirpaths is itself problematic.
11040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11041 else
11042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11043 fi
11044else
11045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11046fi
11047need_lib_prefix=unknown
11048hardcode_into_libs=no
11049
11050# when you set need_version to no, make sure it does not cause -set_version
11051# flags to be left without arguments
11052need_version=unknown
11053
11054case $host_os in
11055aix3*)
11056 version_type=linux
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11058 shlibpath_var=LIBPATH
11059
11060 # AIX 3 has no versioning support, so we append a major version to the name.
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 ;;
11063
11064aix4* | aix5*)
11065 version_type=linux
11066 need_lib_prefix=no
11067 need_version=no
11068 hardcode_into_libs=yes
11069 if test "$host_cpu" = ia64; then
11070 # AIX 5 supports IA64
11071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 else
11074 # With GCC up to 2.95.x, collect2 would create an import file
11075 # for dependence libraries. The import file would start with
11076 # the line `#! .'. This would cause the generated library to
11077 # depend on `.', always an invalid library. This was fixed in
11078 # development snapshots of GCC prior to 3.0.
11079 case $host_os in
11080 aix4 | aix4.[01] | aix4.[01].*)
11081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11082 echo ' yes '
11083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11084 :
11085 else
11086 can_build_shared=no
11087 fi
11088 ;;
11089 esac
11090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11091 # soname into executable. Probably we can add versioning support to
11092 # collect2, so additional links can be useful in future.
11093 if test "$aix_use_runtimelinking" = yes; then
11094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11095 # instead of lib<name>.a to let people know that these are not
11096 # typical AIX shared libraries.
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 else
11099 # We preserve .a as extension for shared libraries through AIX4.2
11100 # and later when we are not doing run time linking.
11101 library_names_spec='${libname}${release}.a $libname.a'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 fi
11104 shlibpath_var=LIBPATH
11105 fi
11106 ;;
11107
11108amigaos*)
11109 library_names_spec='$libname.ixlibrary $libname.a'
11110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11111 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'
11112 ;;
11113
11114beos*)
11115 library_names_spec='${libname}${shared_ext}'
11116 dynamic_linker="$host_os ld.so"
11117 shlibpath_var=LIBRARY_PATH
11118 ;;
11119
11120bsdi4*)
11121 version_type=linux
11122 need_version=no
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11129 # the default ld.so.conf also contains /usr/contrib/lib and
11130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11131 # libtool to hard-code these into programs
11132 ;;
11133
11134cygwin* | mingw* | pw32*)
11135 version_type=windows
11136 shrext=".dll"
11137 need_version=no
11138 need_lib_prefix=no
11139
11140 case $GCC,$host_os in
11141 yes,cygwin* | yes,mingw* | yes,pw32*)
11142 library_names_spec='$libname.dll.a'
11143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11144 postinstall_cmds='base_file=`basename \${file}`~
11145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11146 dldir=$destdir/`dirname \$dlpath`~
11147 test -d \$dldir || mkdir -p \$dldir~
11148 $install_prog $dir/$dlname \$dldir/$dlname'
11149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11150 dlpath=$dir/\$dldll~
11151 $rm \$dlpath'
11152 shlibpath_overrides_runpath=yes
11153
11154 case $host_os in
11155 cygwin*)
11156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11158 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11159 ;;
11160 mingw*)
11161 # MinGW DLLs use traditional 'lib' prefix
11162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11165 # It is most probably a Windows format PATH printed by
11166 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11167 # path with ; separators, and with drive letters. We can handle the
11168 # drive letters (cygwin fileutils understands them), so leave them,
11169 # especially as we might pass files found there to a mingw objdump,
11170 # which wouldn't understand a cygwinified path. Ahh.
11171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11172 else
11173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11174 fi
11175 ;;
11176 pw32*)
11177 # pw32 DLLs use 'pw' prefix rather than 'lib'
11178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11179 ;;
11180 esac
11181 ;;
11182
11183 *)
11184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11185 ;;
11186 esac
11187 dynamic_linker='Win32 ld.exe'
11188 # FIXME: first we should search . and the directory the executable is in
11189 shlibpath_var=PATH
11190 ;;
11191
11192darwin* | rhapsody*)
11193 dynamic_linker="$host_os dyld"
11194 version_type=darwin
11195 need_lib_prefix=no
11196 need_version=no
11197 # FIXME: Relying on posixy $() will cause problems for
11198 # cross-compilation, but unfortunately the echo tests do not
11199 # yet detect zsh echo's removal of \ escapes.
11200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11201 soname_spec='${libname}${release}${major}$shared_ext'
11202 shlibpath_overrides_runpath=yes
11203 shlibpath_var=DYLD_LIBRARY_PATH
11204 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11205 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11206 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11207 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"`
11208 fi
11209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11210 ;;
11211
11212dgux*)
11213 version_type=linux
11214 need_lib_prefix=no
11215 need_version=no
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 ;;
11220
11221freebsd1*)
11222 dynamic_linker=no
11223 ;;
11224
11225freebsd*)
11226 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11227 version_type=freebsd-$objformat
11228 case $version_type in
11229 freebsd-elf*)
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11231 need_version=no
11232 need_lib_prefix=no
11233 ;;
11234 freebsd-*)
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11236 need_version=yes
11237 ;;
11238 esac
11239 shlibpath_var=LD_LIBRARY_PATH
11240 case $host_os in
11241 freebsd2*)
11242 shlibpath_overrides_runpath=yes
11243 ;;
11244 freebsd3.01* | freebsdelf3.01*)
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11247 ;;
11248 *) # from 3.2 on
11249 shlibpath_overrides_runpath=no
11250 hardcode_into_libs=yes
11251 ;;
11252 esac
11253 ;;
11254
11255gnu*)
11256 version_type=linux
11257 need_lib_prefix=no
11258 need_version=no
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 hardcode_into_libs=yes
11263 ;;
11264
11265hpux9* | hpux10* | hpux11*)
11266 # Give a soname corresponding to the major version so that dld.sl refuses to
11267 # link against other versions.
11268 version_type=sunos
11269 need_lib_prefix=no
11270 need_version=no
11271 case "$host_cpu" in
11272 ia64*)
11273 shrext='.so'
11274 hardcode_into_libs=yes
11275 dynamic_linker="$host_os dld.so"
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 if test "X$HPUX_IA64_MODE" = X32; then
11281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11282 else
11283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11284 fi
11285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286 ;;
11287 hppa*64*)
11288 shrext='.sl'
11289 hardcode_into_libs=yes
11290 dynamic_linker="$host_os dld.sl"
11291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11297 ;;
11298 *)
11299 shrext='.sl'
11300 dynamic_linker="$host_os dld.sl"
11301 shlibpath_var=SHLIB_PATH
11302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 ;;
11306 esac
11307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11308 postinstall_cmds='chmod 555 $lib'
11309 ;;
11310
11311irix5* | irix6* | nonstopux*)
11312 case $host_os in
11313 nonstopux*) version_type=nonstopux ;;
11314 *)
11315 if test "$lt_cv_prog_gnu_ld" = yes; then
11316 version_type=linux
11317 else
11318 version_type=irix
11319 fi ;;
11320 esac
11321 need_lib_prefix=no
11322 need_version=no
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11325 case $host_os in
11326 irix5* | nonstopux*)
11327 libsuff= shlibsuff=
11328 ;;
11329 *)
11330 case $LD in # libtool.m4 will add one of these switches to LD
11331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11332 libsuff= shlibsuff= libmagic=32-bit;;
11333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11334 libsuff=32 shlibsuff=N32 libmagic=N32;;
11335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11337 *) libsuff= shlibsuff= libmagic=never-match;;
11338 esac
11339 ;;
11340 esac
11341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11342 shlibpath_overrides_runpath=no
11343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11345 hardcode_into_libs=yes
11346 ;;
11347
11348# No shared lib support for Linux oldld, aout, or coff.
11349linux*oldld* | linux*aout* | linux*coff*)
11350 dynamic_linker=no
11351 ;;
11352
11353# This must be Linux ELF.
11354linux*)
11355 version_type=linux
11356 need_lib_prefix=no
11357 need_version=no
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=no
11363 # This implies no fast_install, which is unacceptable.
11364 # Some rework will be needed to allow for fast_install
11365 # before this can be enabled.
11366 hardcode_into_libs=yes
11367
11368 # We used to test for /lib/ld.so.1 and disable shared libraries on
11369 # powerpc, because MkLinux only supported shared libraries with the
11370 # GNU dynamic linker. Since this was broken with cross compilers,
11371 # most powerpc-linux boxes support dynamic linking these days and
11372 # people can always --disable-shared, the test was removed, and we
11373 # assume the GNU/Linux dynamic linker is in use.
11374 dynamic_linker='GNU/Linux ld.so'
11375 ;;
11376
11377netbsd*)
11378 version_type=sunos
11379 need_lib_prefix=no
11380 need_version=no
11381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384 dynamic_linker='NetBSD (a.out) ld.so'
11385 else
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 dynamic_linker='NetBSD ld.elf_so'
11389 fi
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=yes
11392 hardcode_into_libs=yes
11393 ;;
11394
11395newsos6)
11396 version_type=linux
11397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=yes
11400 ;;
11401
11402nto-qnx)
11403 version_type=linux
11404 need_lib_prefix=no
11405 need_version=no
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=yes
11410 ;;
11411
11412openbsd*)
11413 version_type=sunos
11414 need_lib_prefix=no
11415 need_version=no
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11420 case $host_os in
11421 openbsd2.[89] | openbsd2.[89].*)
11422 shlibpath_overrides_runpath=no
11423 ;;
11424 *)
11425 shlibpath_overrides_runpath=yes
11426 ;;
11427 esac
11428 else
11429 shlibpath_overrides_runpath=yes
11430 fi
11431 ;;
11432
11433os2*)
11434 libname_spec='$name'
11435 shrext=".dll"
11436 need_lib_prefix=no
11437 library_names_spec='$libname${shared_ext} $libname.a'
11438 dynamic_linker='OS/2 ld.exe'
11439 shlibpath_var=LIBPATH
11440 ;;
11441
11442osf3* | osf4* | osf5*)
11443 version_type=osf
11444 need_lib_prefix=no
11445 need_version=no
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11451 ;;
11452
11453sco3.2v5*)
11454 version_type=osf
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 ;;
11459
11460solaris*)
11461 version_type=linux
11462 need_lib_prefix=no
11463 need_version=no
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 shlibpath_overrides_runpath=yes
11468 hardcode_into_libs=yes
11469 # ldd complains unless libraries are executable
11470 postinstall_cmds='chmod +x $lib'
11471 ;;
11472
11473sunos4*)
11474 version_type=sunos
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=yes
11479 if test "$with_gnu_ld" = yes; then
11480 need_lib_prefix=no
11481 fi
11482 need_version=yes
11483 ;;
11484
11485sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11486 version_type=linux
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 case $host_vendor in
11491 sni)
11492 shlibpath_overrides_runpath=no
11493 need_lib_prefix=no
11494 export_dynamic_flag_spec='${wl}-Blargedynsym'
11495 runpath_var=LD_RUN_PATH
11496 ;;
11497 siemens)
11498 need_lib_prefix=no
11499 ;;
11500 motorola)
11501 need_lib_prefix=no
11502 need_version=no
11503 shlibpath_overrides_runpath=no
11504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11505 ;;
11506 esac
11507 ;;
11508
11509sysv4*MP*)
11510 if test -d /usr/nec ;then
11511 version_type=linux
11512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11513 soname_spec='$libname${shared_ext}.$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 fi
11516 ;;
11517
11518uts4*)
11519 version_type=linux
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 ;;
11524
11525*)
11526 dynamic_linker=no
11527 ;;
11528esac
11529echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11530echo "${ECHO_T}$dynamic_linker" >&6
11531test "$dynamic_linker" = no && can_build_shared=no
11532
11533if test "x$enable_dlopen" != xyes; then
11534 enable_dlopen=unknown
11535 enable_dlopen_self=unknown
11536 enable_dlopen_self_static=unknown
11537else
11538 lt_cv_dlopen=no
11539 lt_cv_dlopen_libs=
11540
11541 case $host_os in
11542 beos*)
11543 lt_cv_dlopen="load_add_on"
11544 lt_cv_dlopen_libs=
11545 lt_cv_dlopen_self=yes
11546 ;;
11547
11548 mingw* | pw32*)
11549 lt_cv_dlopen="LoadLibrary"
11550 lt_cv_dlopen_libs=
11551 ;;
11552
11553 cygwin*)
11554 lt_cv_dlopen="dlopen"
11555 lt_cv_dlopen_libs=
11556 ;;
11557
11558 darwin*)
11559 # if libdl is installed we need to link against it
11560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11561echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11562if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 ac_check_lib_save_LIBS=$LIBS
11566LIBS="-ldl $LIBS"
11567cat >conftest.$ac_ext <<_ACEOF
11568#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011574
11575/* Override any gcc2 internal prototype to avoid an error. */
11576#ifdef __cplusplus
11577extern "C"
11578#endif
11579/* We use char because int might match the return type of a gcc2
11580 builtin and then its argument prototype would still apply. */
11581char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011582int
11583main ()
11584{
11585dlopen ();
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590rm -f conftest.$ac_objext conftest$ac_exeext
11591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11592 (eval $ac_link) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -s conftest$ac_exeext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_lib_dl_dlopen=yes
11603else
11604 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011605sed 's/^/| /' conftest.$ac_ext >&5
11606
John Criswell47fdd832003-07-14 16:52:07 +000011607ac_cv_lib_dl_dlopen=no
11608fi
11609rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11610LIBS=$ac_check_lib_save_LIBS
11611fi
11612echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11613echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11614if test $ac_cv_lib_dl_dlopen = yes; then
11615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11616else
11617
11618 lt_cv_dlopen="dyld"
11619 lt_cv_dlopen_libs=
11620 lt_cv_dlopen_self=yes
11621
11622fi
11623
11624 ;;
11625
11626 *)
11627 echo "$as_me:$LINENO: checking for shl_load" >&5
11628echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11629if test "${ac_cv_func_shl_load+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 cat >conftest.$ac_ext <<_ACEOF
11633#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011634/* confdefs.h. */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011639/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011640 which can conflict with char shl_load (); below.
11641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11642 <limits.h> exists even on freestanding compilers. */
11643#ifdef __STDC__
11644# include <limits.h>
11645#else
11646# include <assert.h>
11647#endif
John Criswell47fdd832003-07-14 16:52:07 +000011648/* Override any gcc2 internal prototype to avoid an error. */
11649#ifdef __cplusplus
11650extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011651{
John Criswell47fdd832003-07-14 16:52:07 +000011652#endif
11653/* We use char because int might match the return type of a gcc2
11654 builtin and then its argument prototype would still apply. */
11655char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011656/* The GNU C library defines this for functions which it implements
11657 to always fail with ENOSYS. Some functions are actually named
11658 something starting with __ and the normal name is an alias. */
11659#if defined (__stub_shl_load) || defined (__stub___shl_load)
11660choke me
11661#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011662char (*f) () = shl_load;
11663#endif
11664#ifdef __cplusplus
11665}
John Criswell47fdd832003-07-14 16:52:07 +000011666#endif
11667
John Criswell0c38eaf2003-09-10 15:17:25 +000011668int
11669main ()
11670{
11671return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011672 ;
11673 return 0;
11674}
11675_ACEOF
11676rm -f conftest.$ac_objext conftest$ac_exeext
11677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_func_shl_load=yes
11689else
11690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011691sed 's/^/| /' conftest.$ac_ext >&5
11692
John Criswell47fdd832003-07-14 16:52:07 +000011693ac_cv_func_shl_load=no
11694fi
11695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11696fi
11697echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11698echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11699if test $ac_cv_func_shl_load = yes; then
11700 lt_cv_dlopen="shl_load"
11701else
11702 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11703echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11704if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11706else
11707 ac_check_lib_save_LIBS=$LIBS
11708LIBS="-ldld $LIBS"
11709cat >conftest.$ac_ext <<_ACEOF
11710#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011716
11717/* Override any gcc2 internal prototype to avoid an error. */
11718#ifdef __cplusplus
11719extern "C"
11720#endif
11721/* We use char because int might match the return type of a gcc2
11722 builtin and then its argument prototype would still apply. */
11723char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011724int
11725main ()
11726{
11727shl_load ();
11728 ;
11729 return 0;
11730}
11731_ACEOF
11732rm -f conftest.$ac_objext conftest$ac_exeext
11733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11734 (eval $ac_link) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -s conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_cv_lib_dld_shl_load=yes
11745else
11746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011747sed 's/^/| /' conftest.$ac_ext >&5
11748
John Criswell47fdd832003-07-14 16:52:07 +000011749ac_cv_lib_dld_shl_load=no
11750fi
11751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11752LIBS=$ac_check_lib_save_LIBS
11753fi
11754echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11755echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11756if test $ac_cv_lib_dld_shl_load = yes; then
11757 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11758else
11759 echo "$as_me:$LINENO: checking for dlopen" >&5
11760echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11761if test "${ac_cv_func_dlopen+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 cat >conftest.$ac_ext <<_ACEOF
11765#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011771/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011772 which can conflict with char dlopen (); below.
11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 <limits.h> exists even on freestanding compilers. */
11775#ifdef __STDC__
11776# include <limits.h>
11777#else
11778# include <assert.h>
11779#endif
John Criswell47fdd832003-07-14 16:52:07 +000011780/* Override any gcc2 internal prototype to avoid an error. */
11781#ifdef __cplusplus
11782extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011783{
John Criswell47fdd832003-07-14 16:52:07 +000011784#endif
11785/* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11787char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011788/* The GNU C library defines this for functions which it implements
11789 to always fail with ENOSYS. Some functions are actually named
11790 something starting with __ and the normal name is an alias. */
11791#if defined (__stub_dlopen) || defined (__stub___dlopen)
11792choke me
11793#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011794char (*f) () = dlopen;
11795#endif
11796#ifdef __cplusplus
11797}
John Criswell47fdd832003-07-14 16:52:07 +000011798#endif
11799
John Criswell0c38eaf2003-09-10 15:17:25 +000011800int
11801main ()
11802{
11803return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011804 ;
11805 return 0;
11806}
11807_ACEOF
11808rm -f conftest.$ac_objext conftest$ac_exeext
11809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810 (eval $ac_link) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_func_dlopen=yes
11821else
11822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011823sed 's/^/| /' conftest.$ac_ext >&5
11824
John Criswell47fdd832003-07-14 16:52:07 +000011825ac_cv_func_dlopen=no
11826fi
11827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11828fi
11829echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11830echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11831if test $ac_cv_func_dlopen = yes; then
11832 lt_cv_dlopen="dlopen"
11833else
11834 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11835echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11836if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839 ac_check_lib_save_LIBS=$LIBS
11840LIBS="-ldl $LIBS"
11841cat >conftest.$ac_ext <<_ACEOF
11842#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011843/* confdefs.h. */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011848
11849/* Override any gcc2 internal prototype to avoid an error. */
11850#ifdef __cplusplus
11851extern "C"
11852#endif
11853/* We use char because int might match the return type of a gcc2
11854 builtin and then its argument prototype would still apply. */
11855char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011856int
11857main ()
11858{
11859dlopen ();
11860 ;
11861 return 0;
11862}
11863_ACEOF
11864rm -f conftest.$ac_objext conftest$ac_exeext
11865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866 (eval $ac_link) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_lib_dl_dlopen=yes
11877else
11878 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011879sed 's/^/| /' conftest.$ac_ext >&5
11880
John Criswell47fdd832003-07-14 16:52:07 +000011881ac_cv_lib_dl_dlopen=no
11882fi
11883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11884LIBS=$ac_check_lib_save_LIBS
11885fi
11886echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11887echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11888if test $ac_cv_lib_dl_dlopen = yes; then
11889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11890else
11891 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11892echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11893if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895else
11896 ac_check_lib_save_LIBS=$LIBS
11897LIBS="-lsvld $LIBS"
11898cat >conftest.$ac_ext <<_ACEOF
11899#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011900/* confdefs.h. */
11901_ACEOF
11902cat confdefs.h >>conftest.$ac_ext
11903cat >>conftest.$ac_ext <<_ACEOF
11904/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011905
11906/* Override any gcc2 internal prototype to avoid an error. */
11907#ifdef __cplusplus
11908extern "C"
11909#endif
11910/* We use char because int might match the return type of a gcc2
11911 builtin and then its argument prototype would still apply. */
11912char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011913int
11914main ()
11915{
11916dlopen ();
11917 ;
11918 return 0;
11919}
11920_ACEOF
11921rm -f conftest.$ac_objext conftest$ac_exeext
11922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11923 (eval $ac_link) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_lib_svld_dlopen=yes
11934else
11935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011936sed 's/^/| /' conftest.$ac_ext >&5
11937
John Criswell47fdd832003-07-14 16:52:07 +000011938ac_cv_lib_svld_dlopen=no
11939fi
11940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11941LIBS=$ac_check_lib_save_LIBS
11942fi
11943echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11944echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11945if test $ac_cv_lib_svld_dlopen = yes; then
11946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11947else
11948 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11949echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11950if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 ac_check_lib_save_LIBS=$LIBS
11954LIBS="-ldld $LIBS"
11955cat >conftest.$ac_ext <<_ACEOF
11956#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011962
11963/* Override any gcc2 internal prototype to avoid an error. */
11964#ifdef __cplusplus
11965extern "C"
11966#endif
11967/* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011970int
11971main ()
11972{
11973dld_link ();
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext conftest$ac_exeext
11979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980 (eval $ac_link) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 ac_cv_lib_dld_dld_link=yes
11991else
11992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011993sed 's/^/| /' conftest.$ac_ext >&5
11994
John Criswell47fdd832003-07-14 16:52:07 +000011995ac_cv_lib_dld_dld_link=no
11996fi
11997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11998LIBS=$ac_check_lib_save_LIBS
11999fi
12000echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12001echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12002if test $ac_cv_lib_dld_dld_link = yes; then
12003 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12004fi
12005
12006
12007fi
12008
12009
12010fi
12011
12012
12013fi
12014
12015
12016fi
12017
12018
12019fi
12020
12021 ;;
12022 esac
12023
12024 if test "x$lt_cv_dlopen" != xno; then
12025 enable_dlopen=yes
12026 else
12027 enable_dlopen=no
12028 fi
12029
12030 case $lt_cv_dlopen in
12031 dlopen)
12032 save_CPPFLAGS="$CPPFLAGS"
12033 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12034
12035 save_LDFLAGS="$LDFLAGS"
12036 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12037
12038 save_LIBS="$LIBS"
12039 LIBS="$lt_cv_dlopen_libs $LIBS"
12040
12041 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12042echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12043if test "${lt_cv_dlopen_self+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045else
12046 if test "$cross_compiling" = yes; then :
12047 lt_cv_dlopen_self=cross
12048else
12049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12050 lt_status=$lt_dlunknown
12051 cat > conftest.$ac_ext <<EOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012052#line 12052 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012053#include "confdefs.h"
12054
12055#if HAVE_DLFCN_H
12056#include <dlfcn.h>
12057#endif
12058
12059#include <stdio.h>
12060
12061#ifdef RTLD_GLOBAL
12062# define LT_DLGLOBAL RTLD_GLOBAL
12063#else
12064# ifdef DL_GLOBAL
12065# define LT_DLGLOBAL DL_GLOBAL
12066# else
12067# define LT_DLGLOBAL 0
12068# endif
12069#endif
12070
12071/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12072 find out it does not work in some platform. */
12073#ifndef LT_DLLAZY_OR_NOW
12074# ifdef RTLD_LAZY
12075# define LT_DLLAZY_OR_NOW RTLD_LAZY
12076# else
12077# ifdef DL_LAZY
12078# define LT_DLLAZY_OR_NOW DL_LAZY
12079# else
12080# ifdef RTLD_NOW
12081# define LT_DLLAZY_OR_NOW RTLD_NOW
12082# else
12083# ifdef DL_NOW
12084# define LT_DLLAZY_OR_NOW DL_NOW
12085# else
12086# define LT_DLLAZY_OR_NOW 0
12087# endif
12088# endif
12089# endif
12090# endif
12091#endif
12092
12093#ifdef __cplusplus
12094extern "C" void exit (int);
12095#endif
12096
12097void fnord() { int i=42;}
12098int main ()
12099{
12100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12101 int status = $lt_dlunknown;
12102
12103 if (self)
12104 {
12105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12106 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12107 /* dlclose (self); */
12108 }
12109
12110 exit (status);
12111}
12112EOF
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12118 (./conftest; exit; ) 2>/dev/null
12119 lt_status=$?
12120 case x$lt_status in
12121 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12122 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12123 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12124 esac
12125 else :
12126 # compilation failed
12127 lt_cv_dlopen_self=no
12128 fi
12129fi
12130rm -fr conftest*
12131
12132
12133fi
12134echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12135echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12136
12137 if test "x$lt_cv_dlopen_self" = xyes; then
12138 LDFLAGS="$LDFLAGS $link_static_flag"
12139 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12140echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12141if test "${lt_cv_dlopen_self_static+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 if test "$cross_compiling" = yes; then :
12145 lt_cv_dlopen_self_static=cross
12146else
12147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12148 lt_status=$lt_dlunknown
12149 cat > conftest.$ac_ext <<EOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012150#line 12150 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012151#include "confdefs.h"
12152
12153#if HAVE_DLFCN_H
12154#include <dlfcn.h>
12155#endif
12156
12157#include <stdio.h>
12158
12159#ifdef RTLD_GLOBAL
12160# define LT_DLGLOBAL RTLD_GLOBAL
12161#else
12162# ifdef DL_GLOBAL
12163# define LT_DLGLOBAL DL_GLOBAL
12164# else
12165# define LT_DLGLOBAL 0
12166# endif
12167#endif
12168
12169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12170 find out it does not work in some platform. */
12171#ifndef LT_DLLAZY_OR_NOW
12172# ifdef RTLD_LAZY
12173# define LT_DLLAZY_OR_NOW RTLD_LAZY
12174# else
12175# ifdef DL_LAZY
12176# define LT_DLLAZY_OR_NOW DL_LAZY
12177# else
12178# ifdef RTLD_NOW
12179# define LT_DLLAZY_OR_NOW RTLD_NOW
12180# else
12181# ifdef DL_NOW
12182# define LT_DLLAZY_OR_NOW DL_NOW
12183# else
12184# define LT_DLLAZY_OR_NOW 0
12185# endif
12186# endif
12187# endif
12188# endif
12189#endif
12190
12191#ifdef __cplusplus
12192extern "C" void exit (int);
12193#endif
12194
12195void fnord() { int i=42;}
12196int main ()
12197{
12198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12199 int status = $lt_dlunknown;
12200
12201 if (self)
12202 {
12203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12204 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12205 /* dlclose (self); */
12206 }
12207
12208 exit (status);
12209}
12210EOF
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212 (eval $ac_link) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12216 (./conftest; exit; ) 2>/dev/null
12217 lt_status=$?
12218 case x$lt_status in
12219 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12220 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12221 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12222 esac
12223 else :
12224 # compilation failed
12225 lt_cv_dlopen_self_static=no
12226 fi
12227fi
12228rm -fr conftest*
12229
12230
12231fi
12232echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12233echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12234 fi
12235
12236 CPPFLAGS="$save_CPPFLAGS"
12237 LDFLAGS="$save_LDFLAGS"
12238 LIBS="$save_LIBS"
12239 ;;
12240 esac
12241
12242 case $lt_cv_dlopen_self in
12243 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12244 *) enable_dlopen_self=unknown ;;
12245 esac
12246
12247 case $lt_cv_dlopen_self_static in
12248 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12249 *) enable_dlopen_self_static=unknown ;;
12250 esac
12251fi
12252
12253
12254# The else clause should only fire when bootstrapping the
12255# libtool distribution, otherwise you forgot to ship ltmain.sh
12256# with your package, and you will get complaints that there are
12257# no rules to generate ltmain.sh.
12258if test -f "$ltmain"; then
12259 # See if we are running on zsh, and set the options which allow our commands through
12260 # without removal of \ escapes.
12261 if test -n "${ZSH_VERSION+set}" ; then
12262 setopt NO_GLOB_SUBST
12263 fi
12264 # Now quote all the things that may contain metacharacters while being
12265 # careful not to overquote the AC_SUBSTed values. We take copies of the
12266 # variables and quote the copies for generation of the libtool script.
12267 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12268 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12269 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12270 deplibs_check_method reload_flag reload_cmds need_locks \
12271 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12272 lt_cv_sys_global_symbol_to_c_name_address \
12273 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12274 old_postinstall_cmds old_postuninstall_cmds \
12275 compiler_CXX \
12276 CC_CXX \
12277 LD_CXX \
12278 lt_prog_compiler_wl_CXX \
12279 lt_prog_compiler_pic_CXX \
12280 lt_prog_compiler_static_CXX \
12281 lt_prog_compiler_no_builtin_flag_CXX \
12282 export_dynamic_flag_spec_CXX \
12283 thread_safe_flag_spec_CXX \
12284 whole_archive_flag_spec_CXX \
12285 enable_shared_with_static_runtimes_CXX \
12286 old_archive_cmds_CXX \
12287 old_archive_from_new_cmds_CXX \
12288 predep_objects_CXX \
12289 postdep_objects_CXX \
12290 predeps_CXX \
12291 postdeps_CXX \
12292 compiler_lib_search_path_CXX \
12293 archive_cmds_CXX \
12294 archive_expsym_cmds_CXX \
12295 postinstall_cmds_CXX \
12296 postuninstall_cmds_CXX \
12297 old_archive_from_expsyms_cmds_CXX \
12298 allow_undefined_flag_CXX \
12299 no_undefined_flag_CXX \
12300 export_symbols_cmds_CXX \
12301 hardcode_libdir_flag_spec_CXX \
12302 hardcode_libdir_flag_spec_ld_CXX \
12303 hardcode_libdir_separator_CXX \
12304 hardcode_automatic_CXX \
12305 module_cmds_CXX \
12306 module_expsym_cmds_CXX \
12307 lt_cv_prog_compiler_c_o_CXX \
12308 exclude_expsyms_CXX \
12309 include_expsyms_CXX; do
12310
12311 case $var in
12312 old_archive_cmds_CXX | \
12313 old_archive_from_new_cmds_CXX | \
12314 archive_cmds_CXX | \
12315 archive_expsym_cmds_CXX | \
12316 module_cmds_CXX | \
12317 module_expsym_cmds_CXX | \
12318 old_archive_from_expsyms_cmds_CXX | \
12319 export_symbols_cmds_CXX | \
12320 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12321 postinstall_cmds | postuninstall_cmds | \
12322 old_postinstall_cmds | old_postuninstall_cmds | \
12323 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12324 # Double-quote double-evaled strings.
12325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12326 ;;
12327 *)
12328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12329 ;;
12330 esac
12331 done
12332
12333 case $lt_echo in
12334 *'\$0 --fallback-echo"')
12335 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12336 ;;
12337 esac
12338
12339cfgfile="$ofile"
12340
12341 cat <<__EOF__ >> "$cfgfile"
12342# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12343
12344# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12345
12346# Shell to use when invoking shell scripts.
12347SHELL=$lt_SHELL
12348
12349# Whether or not to build shared libraries.
12350build_libtool_libs=$enable_shared
12351
12352# Whether or not to build static libraries.
12353build_old_libs=$enable_static
12354
12355# Whether or not to add -lc for building shared libraries.
12356build_libtool_need_lc=$archive_cmds_need_lc_CXX
12357
12358# Whether or not to disallow shared libs when runtime libs are static
12359allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12360
12361# Whether or not to optimize for fast installation.
12362fast_install=$enable_fast_install
12363
12364# The host system.
12365host_alias=$host_alias
12366host=$host
12367
12368# An echo program that does not interpret backslashes.
12369echo=$lt_echo
12370
12371# The archiver.
12372AR=$lt_AR
12373AR_FLAGS=$lt_AR_FLAGS
12374
12375# A C compiler.
12376LTCC=$lt_LTCC
12377
12378# A language-specific compiler.
12379CC=$lt_compiler_CXX
12380
12381# Is the compiler the GNU C compiler?
12382with_gcc=$GCC_CXX
12383
12384# An ERE matcher.
12385EGREP=$lt_EGREP
12386
12387# The linker used to build libraries.
12388LD=$lt_LD_CXX
12389
12390# Whether we need hard or soft links.
12391LN_S=$lt_LN_S
12392
12393# A BSD-compatible nm program.
12394NM=$lt_NM
12395
12396# A symbol stripping program
12397STRIP=$STRIP
12398
12399# Used to examine libraries when file_magic_cmd begins "file"
12400MAGIC_CMD=$MAGIC_CMD
12401
12402# Used on cygwin: DLL creation program.
12403DLLTOOL="$DLLTOOL"
12404
12405# Used on cygwin: object dumper.
12406OBJDUMP="$OBJDUMP"
12407
12408# Used on cygwin: assembler.
12409AS="$AS"
12410
12411# The name of the directory that contains temporary libtool files.
12412objdir=$objdir
12413
12414# How to create reloadable object files.
12415reload_flag=$lt_reload_flag
12416reload_cmds=$lt_reload_cmds
12417
12418# How to pass a linker flag through the compiler.
12419wl=$lt_lt_prog_compiler_wl_CXX
12420
12421# Object file suffix (normally "o").
12422objext="$ac_objext"
12423
12424# Old archive suffix (normally "a").
12425libext="$libext"
12426
12427# Shared library suffix (normally ".so").
12428shrext='$shrext'
12429
12430# Executable file suffix (normally "").
12431exeext="$exeext"
12432
12433# Additional compiler flags for building library objects.
12434pic_flag=$lt_lt_prog_compiler_pic_CXX
12435pic_mode=$pic_mode
12436
12437# What is the maximum length of a command?
12438max_cmd_len=$lt_cv_sys_max_cmd_len
12439
12440# Does compiler simultaneously support -c and -o options?
12441compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12442
12443# Must we lock files when doing compilation ?
12444need_locks=$lt_need_locks
12445
12446# Do we need the lib prefix for modules?
12447need_lib_prefix=$need_lib_prefix
12448
12449# Do we need a version for libraries?
12450need_version=$need_version
12451
12452# Whether dlopen is supported.
12453dlopen_support=$enable_dlopen
12454
12455# Whether dlopen of programs is supported.
12456dlopen_self=$enable_dlopen_self
12457
12458# Whether dlopen of statically linked programs is supported.
12459dlopen_self_static=$enable_dlopen_self_static
12460
12461# Compiler flag to prevent dynamic linking.
12462link_static_flag=$lt_lt_prog_compiler_static_CXX
12463
12464# Compiler flag to turn off builtin functions.
12465no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12466
12467# Compiler flag to allow reflexive dlopens.
12468export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12469
12470# Compiler flag to generate shared objects directly from archives.
12471whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12472
12473# Compiler flag to generate thread-safe objects.
12474thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12475
12476# Library versioning type.
12477version_type=$version_type
12478
12479# Format of library name prefix.
12480libname_spec=$lt_libname_spec
12481
12482# List of archive names. First name is the real one, the rest are links.
12483# The last name is the one that the linker finds with -lNAME.
12484library_names_spec=$lt_library_names_spec
12485
12486# The coded name of the library, if different from the real name.
12487soname_spec=$lt_soname_spec
12488
12489# Commands used to build and install an old-style archive.
12490RANLIB=$lt_RANLIB
12491old_archive_cmds=$lt_old_archive_cmds_CXX
12492old_postinstall_cmds=$lt_old_postinstall_cmds
12493old_postuninstall_cmds=$lt_old_postuninstall_cmds
12494
12495# Create an old-style archive from a shared archive.
12496old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12497
12498# Create a temporary old-style archive to link instead of a shared archive.
12499old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12500
12501# Commands used to build and install a shared archive.
12502archive_cmds=$lt_archive_cmds_CXX
12503archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12504postinstall_cmds=$lt_postinstall_cmds
12505postuninstall_cmds=$lt_postuninstall_cmds
12506
12507# Commands used to build a loadable module (assumed same as above if empty)
12508module_cmds=$lt_module_cmds_CXX
12509module_expsym_cmds=$lt_module_expsym_cmds_CXX
12510
12511# Commands to strip libraries.
12512old_striplib=$lt_old_striplib
12513striplib=$lt_striplib
12514
12515# Dependencies to place before the objects being linked to create a
12516# shared library.
12517predep_objects=$lt_predep_objects_CXX
12518
12519# Dependencies to place after the objects being linked to create a
12520# shared library.
12521postdep_objects=$lt_postdep_objects_CXX
12522
12523# Dependencies to place before the objects being linked to create a
12524# shared library.
12525predeps=$lt_predeps_CXX
12526
12527# Dependencies to place after the objects being linked to create a
12528# shared library.
12529postdeps=$lt_postdeps_CXX
12530
12531# The library search path used internally by the compiler when linking
12532# a shared library.
12533compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12534
12535# Method to check whether dependent libraries are shared objects.
12536deplibs_check_method=$lt_deplibs_check_method
12537
12538# Command to use when deplibs_check_method == file_magic.
12539file_magic_cmd=$lt_file_magic_cmd
12540
12541# Flag that allows shared libraries with undefined symbols to be built.
12542allow_undefined_flag=$lt_allow_undefined_flag_CXX
12543
12544# Flag that forces no undefined symbols.
12545no_undefined_flag=$lt_no_undefined_flag_CXX
12546
12547# Commands used to finish a libtool library installation in a directory.
12548finish_cmds=$lt_finish_cmds
12549
12550# Same as above, but a single script fragment to be evaled but not shown.
12551finish_eval=$lt_finish_eval
12552
12553# Take the output of nm and produce a listing of raw symbols and C names.
12554global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12555
12556# Transform the output of nm in a proper C declaration
12557global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12558
12559# Transform the output of nm in a C name address pair
12560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12561
12562# This is the shared library runtime path variable.
12563runpath_var=$runpath_var
12564
12565# This is the shared library path variable.
12566shlibpath_var=$shlibpath_var
12567
12568# Is shlibpath searched before the hard-coded library search path?
12569shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12570
12571# How to hardcode a shared library path into an executable.
12572hardcode_action=$hardcode_action_CXX
12573
12574# Whether we should hardcode library paths into libraries.
12575hardcode_into_libs=$hardcode_into_libs
12576
12577# Flag to hardcode \$libdir into a binary during linking.
12578# This must work even if \$libdir does not exist.
12579hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12580
12581# If ld is used when linking, flag to hardcode \$libdir into
12582# a binary during linking. This must work even if \$libdir does
12583# not exist.
12584hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12585
12586# Whether we need a single -rpath flag with a separated argument.
12587hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12588
12589# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12590# resulting binary.
12591hardcode_direct=$hardcode_direct_CXX
12592
12593# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12594# resulting binary.
12595hardcode_minus_L=$hardcode_minus_L_CXX
12596
12597# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12598# the resulting binary.
12599hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12600
12601# Set to yes if building a shared library automatically hardcodes DIR into the library
12602# and all subsequent libraries and executables linked against it.
12603hardcode_automatic=$hardcode_automatic_CXX
12604
12605# Variables whose values should be saved in libtool wrapper scripts and
12606# restored at relink time.
12607variables_saved_for_relink="$variables_saved_for_relink"
12608
12609# Whether libtool must link a program against all its dependency libraries.
12610link_all_deplibs=$link_all_deplibs_CXX
12611
12612# Compile-time system search path for libraries
12613sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12614
12615# Run-time system search path for libraries
12616sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12617
12618# Fix the shell variable \$srcfile for the compiler.
12619fix_srcfile_path="$fix_srcfile_path_CXX"
12620
12621# Set to yes if exported symbols are required.
12622always_export_symbols=$always_export_symbols_CXX
12623
12624# The commands to list exported symbols.
12625export_symbols_cmds=$lt_export_symbols_cmds_CXX
12626
12627# The commands to extract the exported symbol list from a shared archive.
12628extract_expsyms_cmds=$lt_extract_expsyms_cmds
12629
12630# Symbols that should not be listed in the preloaded symbols.
12631exclude_expsyms=$lt_exclude_expsyms_CXX
12632
12633# Symbols that must always be exported.
12634include_expsyms=$lt_include_expsyms_CXX
12635
12636# ### END LIBTOOL TAG CONFIG: $tagname
12637
12638__EOF__
12639
12640
12641else
12642 # If there is no Makefile yet, we rely on a make rule to execute
12643 # `config.status --recheck' to rerun these tests and create the
12644 # libtool script then.
12645 test -f Makefile && make "$ltmain"
12646fi
12647
12648
12649ac_ext=c
12650ac_cpp='$CPP $CPPFLAGS'
12651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654
12655CC=$lt_save_CC
12656LDCXX=$LD
12657LD=$lt_save_LD
12658GCC=$lt_save_GCC
12659with_gnu_ldcxx=$with_gnu_ld
12660with_gnu_ld=$lt_save_with_gnu_ld
12661lt_cv_path_LDCXX=$lt_cv_path_LD
12662lt_cv_path_LD=$lt_save_path_LD
12663lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12664lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12665
12666 else
12667 tagname=""
12668 fi
12669 ;;
12670
12671 F77)
12672 if test -n "$F77" && test "X$F77" != "Xno"; then
12673
12674ac_ext=f
12675ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12676ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12678
12679
12680archive_cmds_need_lc_F77=no
12681allow_undefined_flag_F77=
12682always_export_symbols_F77=no
12683archive_expsym_cmds_F77=
12684export_dynamic_flag_spec_F77=
12685hardcode_direct_F77=no
12686hardcode_libdir_flag_spec_F77=
12687hardcode_libdir_flag_spec_ld_F77=
12688hardcode_libdir_separator_F77=
12689hardcode_minus_L_F77=no
12690hardcode_automatic_F77=no
12691module_cmds_F77=
12692module_expsym_cmds_F77=
12693link_all_deplibs_F77=unknown
12694old_archive_cmds_F77=$old_archive_cmds
12695no_undefined_flag_F77=
12696whole_archive_flag_spec_F77=
12697enable_shared_with_static_runtimes_F77=no
12698
12699# Source file extension for f77 test sources.
12700ac_ext=f
12701
12702# Object file extension for compiled f77 test sources.
12703objext=o
12704objext_F77=$objext
12705
12706# Code to be used in simple compile tests
12707lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12708
12709# Code to be used in simple link tests
12710lt_simple_link_test_code=" program t\n end\n"
12711
12712# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12713
12714# If no C compiler was specified, use CC.
12715LTCC=${LTCC-"$CC"}
12716
12717# Allow CC to be a program name with arguments.
12718compiler=$CC
12719
12720
12721# Allow CC to be a program name with arguments.
12722lt_save_CC="$CC"
12723CC=${F77-"f77"}
12724compiler=$CC
12725compiler_F77=$CC
12726cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12727
12728echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12729echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12730echo "$as_me:$LINENO: result: $can_build_shared" >&5
12731echo "${ECHO_T}$can_build_shared" >&6
12732
12733echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12734echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12735test "$can_build_shared" = "no" && enable_shared=no
12736
12737# On AIX, shared libraries and static libraries use the same namespace, and
12738# are all built from PIC.
12739case "$host_os" in
12740aix3*)
12741 test "$enable_shared" = yes && enable_static=no
12742 if test -n "$RANLIB"; then
12743 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12744 postinstall_cmds='$RANLIB $lib'
12745 fi
12746 ;;
12747aix4*)
12748 test "$enable_shared" = yes && enable_static=no
12749 ;;
12750esac
12751echo "$as_me:$LINENO: result: $enable_shared" >&5
12752echo "${ECHO_T}$enable_shared" >&6
12753
12754echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12755echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12756# Make sure either enable_shared or enable_static is yes.
12757test "$enable_shared" = yes || enable_static=yes
12758echo "$as_me:$LINENO: result: $enable_static" >&5
12759echo "${ECHO_T}$enable_static" >&6
12760
12761test "$ld_shlibs_F77" = no && can_build_shared=no
12762
12763GCC_F77="$G77"
12764LD_F77="$LD"
12765
12766lt_prog_compiler_wl_F77=
12767lt_prog_compiler_pic_F77=
12768lt_prog_compiler_static_F77=
12769
12770echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12771echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12772
12773 if test "$GCC" = yes; then
12774 lt_prog_compiler_wl_F77='-Wl,'
12775 lt_prog_compiler_static_F77='-static'
12776
12777 case $host_os in
12778 aix*)
12779 # All AIX code is PIC.
12780 if test "$host_cpu" = ia64; then
12781 # AIX 5 now supports IA64 processor
12782 lt_prog_compiler_static_F77='-Bstatic'
12783 fi
12784 ;;
12785
12786 amigaos*)
12787 # FIXME: we need at least 68020 code to build shared libraries, but
12788 # adding the `-m68020' flag to GCC prevents building anything better,
12789 # like `-m68040'.
12790 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12791 ;;
12792
12793 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12794 # PIC is the default for these OSes.
12795 ;;
12796
12797 mingw* | pw32* | os2*)
12798 # This hack is so that the source file can tell whether it is being
12799 # built for inclusion in a dll (and should export symbols for example).
12800 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12801 ;;
12802
12803 darwin* | rhapsody*)
12804 # PIC is the default on this platform
12805 # Common symbols not allowed in MH_DYLIB files
12806 lt_prog_compiler_pic_F77='-fno-common'
12807 ;;
12808
12809 msdosdjgpp*)
12810 # Just because we use GCC doesn't mean we suddenly get shared libraries
12811 # on systems that don't support them.
12812 lt_prog_compiler_can_build_shared_F77=no
12813 enable_shared=no
12814 ;;
12815
12816 sysv4*MP*)
12817 if test -d /usr/nec; then
12818 lt_prog_compiler_pic_F77=-Kconform_pic
12819 fi
12820 ;;
12821
12822 hpux*)
12823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12824 # not for PA HP-UX.
12825 case "$host_cpu" in
12826 hppa*64*|ia64*)
12827 # +Z the default
12828 ;;
12829 *)
12830 lt_prog_compiler_pic_F77='-fPIC'
12831 ;;
12832 esac
12833 ;;
12834
12835 *)
12836 lt_prog_compiler_pic_F77='-fPIC'
12837 ;;
12838 esac
12839 else
12840 # PORTME Check for flag to pass linker flags through the system compiler.
12841 case $host_os in
12842 aix*)
12843 lt_prog_compiler_wl_F77='-Wl,'
12844 if test "$host_cpu" = ia64; then
12845 # AIX 5 now supports IA64 processor
12846 lt_prog_compiler_static_F77='-Bstatic'
12847 else
12848 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12849 fi
12850 ;;
12851
12852 mingw* | pw32* | os2*)
12853 # This hack is so that the source file can tell whether it is being
12854 # built for inclusion in a dll (and should export symbols for example).
12855 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12856 ;;
12857
12858 hpux9* | hpux10* | hpux11*)
12859 lt_prog_compiler_wl_F77='-Wl,'
12860 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12861 # not for PA HP-UX.
12862 case "$host_cpu" in
12863 hppa*64*|ia64*)
12864 # +Z the default
12865 ;;
12866 *)
12867 lt_prog_compiler_pic_F77='+Z'
12868 ;;
12869 esac
12870 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12871 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12872 ;;
12873
12874 irix5* | irix6* | nonstopux*)
12875 lt_prog_compiler_wl_F77='-Wl,'
12876 # PIC (with -KPIC) is the default.
12877 lt_prog_compiler_static_F77='-non_shared'
12878 ;;
12879
12880 newsos6)
12881 lt_prog_compiler_pic_F77='-KPIC'
12882 lt_prog_compiler_static_F77='-Bstatic'
12883 ;;
12884
12885 linux*)
12886 case $CC in
12887 icc|ecc)
12888 lt_prog_compiler_wl_F77='-Wl,'
12889 lt_prog_compiler_pic_F77='-KPIC'
12890 lt_prog_compiler_static_F77='-static'
12891 ;;
12892 ccc)
12893 lt_prog_compiler_wl_F77='-Wl,'
12894 # All Alpha code is PIC.
12895 lt_prog_compiler_static_F77='-non_shared'
12896 ;;
12897 esac
12898 ;;
12899
12900 osf3* | osf4* | osf5*)
12901 lt_prog_compiler_wl_F77='-Wl,'
12902 # All OSF/1 code is PIC.
12903 lt_prog_compiler_static_F77='-non_shared'
12904 ;;
12905
12906 sco3.2v5*)
12907 lt_prog_compiler_pic_F77='-Kpic'
12908 lt_prog_compiler_static_F77='-dn'
12909 ;;
12910
12911 solaris*)
12912 lt_prog_compiler_wl_F77='-Wl,'
12913 lt_prog_compiler_pic_F77='-KPIC'
12914 lt_prog_compiler_static_F77='-Bstatic'
12915 ;;
12916
12917 sunos4*)
12918 lt_prog_compiler_wl_F77='-Qoption ld '
12919 lt_prog_compiler_pic_F77='-PIC'
12920 lt_prog_compiler_static_F77='-Bstatic'
12921 ;;
12922
12923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12924 lt_prog_compiler_wl_F77='-Wl,'
12925 lt_prog_compiler_pic_F77='-KPIC'
12926 lt_prog_compiler_static_F77='-Bstatic'
12927 ;;
12928
12929 sysv4*MP*)
12930 if test -d /usr/nec ;then
12931 lt_prog_compiler_pic_F77='-Kconform_pic'
12932 lt_prog_compiler_static_F77='-Bstatic'
12933 fi
12934 ;;
12935
12936 uts4*)
12937 lt_prog_compiler_pic_F77='-pic'
12938 lt_prog_compiler_static_F77='-Bstatic'
12939 ;;
12940
12941 *)
12942 lt_prog_compiler_can_build_shared_F77=no
12943 ;;
12944 esac
12945 fi
12946
12947echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12948echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12949
12950#
12951# Check to make sure the PIC flag actually works.
12952#
12953if test -n "$lt_prog_compiler_pic_F77"; then
12954 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12955echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12956if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12958else
12959 lt_prog_compiler_pic_works_F77=no
12960 ac_outfile=conftest.$ac_objext
12961 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12962 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12963 # Insert the option either (1) after the last *FLAGS variable, or
12964 # (2) before a word containing "conftest.", or (3) at the end.
12965 # Note that $ac_compile itself does not contain backslashes and begins
12966 # with a dollar sign (not a hyphen), so the echo should work correctly.
12967 # The option is referenced via a variable to avoid confusing sed.
12968 lt_compile=`echo "$ac_compile" | $SED \
12969 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12971 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +000012972 (eval echo "\"\$as_me:12972: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012973 (eval "$lt_compile" 2>conftest.err)
12974 ac_status=$?
12975 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012976 echo "$as_me:12976: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012977 if (exit $ac_status) && test -s "$ac_outfile"; then
12978 # The compiler can only warn and ignore the option if not recognized
12979 # So say no if there are warnings
12980 if test ! -s conftest.err; then
12981 lt_prog_compiler_pic_works_F77=yes
12982 fi
12983 fi
12984 $rm conftest*
12985
12986fi
12987echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12988echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12989
12990if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12991 case $lt_prog_compiler_pic_F77 in
12992 "" | " "*) ;;
12993 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12994 esac
12995else
12996 lt_prog_compiler_pic_F77=
12997 lt_prog_compiler_can_build_shared_F77=no
12998fi
12999
13000fi
13001case "$host_os" in
13002 # For platforms which do not support PIC, -DPIC is meaningless:
13003 *djgpp*)
13004 lt_prog_compiler_pic_F77=
13005 ;;
13006 *)
13007 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13008 ;;
13009esac
13010
13011echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13012echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13013if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13015else
13016 lt_cv_prog_compiler_c_o_F77=no
13017 $rm -r conftest 2>/dev/null
13018 mkdir conftest
13019 cd conftest
13020 mkdir out
13021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13022
13023 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13024 # that will create temporary files in the current directory regardless of
13025 # the output directory. Thus, making CWD read-only will cause this test
13026 # to fail, enabling locking or at least warning the user not to do parallel
13027 # builds.
13028 chmod -w .
13029
13030 lt_compiler_flag="-o out/conftest2.$ac_objext"
13031 # Insert the option either (1) after the last *FLAGS variable, or
13032 # (2) before a word containing "conftest.", or (3) at the end.
13033 # Note that $ac_compile itself does not contain backslashes and begins
13034 # with a dollar sign (not a hyphen), so the echo should work correctly.
13035 lt_compile=`echo "$ac_compile" | $SED \
13036 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13038 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +000013039 (eval echo "\"\$as_me:13039: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013040 (eval "$lt_compile" 2>out/conftest.err)
13041 ac_status=$?
13042 cat out/conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013043 echo "$as_me:13043: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13045 then
13046 # The compiler can only warn and ignore the option if not recognized
13047 # So say no if there are warnings
13048 if test ! -s out/conftest.err; then
13049 lt_cv_prog_compiler_c_o_F77=yes
13050 fi
13051 fi
13052 chmod u+w .
13053 $rm conftest* out/*
13054 rmdir out
13055 cd ..
13056 rmdir conftest
13057 $rm conftest*
13058
13059fi
13060echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13061echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13062
13063
13064hard_links="nottested"
13065if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13066 # do not overwrite the value of need_locks provided by the user
13067 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13068echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13069 hard_links=yes
13070 $rm conftest*
13071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13072 touch conftest.a
13073 ln conftest.a conftest.b 2>&5 || hard_links=no
13074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13075 echo "$as_me:$LINENO: result: $hard_links" >&5
13076echo "${ECHO_T}$hard_links" >&6
13077 if test "$hard_links" = no; then
13078 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13079echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13080 need_locks=warn
13081 fi
13082else
13083 need_locks=no
13084fi
13085
13086echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13087echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13088
13089 runpath_var=
13090 allow_undefined_flag_F77=
13091 enable_shared_with_static_runtimes_F77=no
13092 archive_cmds_F77=
13093 archive_expsym_cmds_F77=
13094 old_archive_From_new_cmds_F77=
13095 old_archive_from_expsyms_cmds_F77=
13096 export_dynamic_flag_spec_F77=
13097 whole_archive_flag_spec_F77=
13098 thread_safe_flag_spec_F77=
13099 hardcode_libdir_flag_spec_F77=
13100 hardcode_libdir_flag_spec_ld_F77=
13101 hardcode_libdir_separator_F77=
13102 hardcode_direct_F77=no
13103 hardcode_minus_L_F77=no
13104 hardcode_shlibpath_var_F77=unsupported
13105 link_all_deplibs_F77=unknown
13106 hardcode_automatic_F77=no
13107 module_cmds_F77=
13108 module_expsym_cmds_F77=
13109 always_export_symbols_F77=no
13110 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13111 # include_expsyms should be a list of space-separated symbols to be *always*
13112 # included in the symbol list
13113 include_expsyms_F77=
13114 # exclude_expsyms can be an extended regexp of symbols to exclude
13115 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13116 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13117 # as well as any symbol that contains `d'.
13118 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13119 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13120 # platforms (ab)use it in PIC code, but their linkers get confused if
13121 # the symbol is explicitly referenced. Since portable code cannot
13122 # rely on this symbol name, it's probably fine to never include it in
13123 # preloaded symbol tables.
13124 extract_expsyms_cmds=
13125
13126 case $host_os in
13127 cygwin* | mingw* | pw32*)
13128 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13129 # When not using gcc, we currently assume that we are using
13130 # Microsoft Visual C++.
13131 if test "$GCC" != yes; then
13132 with_gnu_ld=no
13133 fi
13134 ;;
13135 openbsd*)
13136 with_gnu_ld=no
13137 ;;
13138 esac
13139
13140 ld_shlibs_F77=yes
13141 if test "$with_gnu_ld" = yes; then
13142 # If archive_cmds runs LD, not CC, wlarc should be empty
13143 wlarc='${wl}'
13144
13145 # See if GNU ld supports shared libraries.
13146 case $host_os in
13147 aix3* | aix4* | aix5*)
13148 # On AIX/PPC, the GNU linker is very broken
13149 if test "$host_cpu" != ia64; then
13150 ld_shlibs_F77=no
13151 cat <<EOF 1>&2
13152
13153*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13154*** to be unable to reliably create shared libraries on AIX.
13155*** Therefore, libtool is disabling shared libraries support. If you
13156*** really care for shared libraries, you may want to modify your PATH
13157*** so that a non-GNU linker is found, and then restart.
13158
13159EOF
13160 fi
13161 ;;
13162
13163 amigaos*)
13164 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13165 hardcode_libdir_flag_spec_F77='-L$libdir'
13166 hardcode_minus_L_F77=yes
13167
13168 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13169 # that the semantics of dynamic libraries on AmigaOS, at least up
13170 # to version 4, is to share data among multiple programs linked
13171 # with the same dynamic library. Since this doesn't match the
13172 # behavior of shared libraries on other platforms, we can't use
13173 # them.
13174 ld_shlibs_F77=no
13175 ;;
13176
13177 beos*)
13178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13179 allow_undefined_flag_F77=unsupported
13180 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13181 # support --undefined. This deserves some investigation. FIXME
13182 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13183 else
13184 ld_shlibs_F77=no
13185 fi
13186 ;;
13187
13188 cygwin* | mingw* | pw32*)
13189 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13190 # as there is no search path for DLLs.
13191 hardcode_libdir_flag_spec_F77='-L$libdir'
13192 allow_undefined_flag_F77=unsupported
13193 always_export_symbols_F77=no
13194 enable_shared_with_static_runtimes_F77=yes
13195 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13196
13197 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13199 # If the export-symbols file already is a .def file (1st line
13200 # is EXPORTS), use it as is; otherwise, prepend...
13201 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13202 cp $export_symbols $output_objdir/$soname.def;
13203 else
13204 echo EXPORTS > $output_objdir/$soname.def;
13205 cat $export_symbols >> $output_objdir/$soname.def;
13206 fi~
13207 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13208 else
13209 ld_shlibs=no
13210 fi
13211 ;;
13212
13213 netbsd*)
13214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13215 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13216 wlarc=
13217 else
13218 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13219 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13220 fi
13221 ;;
13222
13223 solaris* | sysv5*)
13224 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13225 ld_shlibs_F77=no
13226 cat <<EOF 1>&2
13227
13228*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13229*** create shared libraries on Solaris systems. Therefore, libtool
13230*** is disabling shared libraries support. We urge you to upgrade GNU
13231*** binutils to release 2.9.1 or newer. Another option is to modify
13232*** your PATH or compiler configuration so that the native linker is
13233*** used, and then restart.
13234
13235EOF
13236 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13237 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13239 else
13240 ld_shlibs_F77=no
13241 fi
13242 ;;
13243
13244 sunos4*)
13245 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13246 wlarc=
13247 hardcode_direct_F77=yes
13248 hardcode_shlibpath_var_F77=no
13249 ;;
13250
13251 *)
13252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13253 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13254 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13255 else
13256 ld_shlibs_F77=no
13257 fi
13258 ;;
13259 esac
13260
13261 if test "$ld_shlibs_F77" = yes; then
13262 runpath_var=LD_RUN_PATH
13263 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13264 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13265 # ancient GNU ld didn't support --whole-archive et. al.
13266 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13267 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13268 else
13269 whole_archive_flag_spec_F77=
13270 fi
13271 fi
13272 else
13273 # PORTME fill in a description of your system's linker (not GNU ld)
13274 case $host_os in
13275 aix3*)
13276 allow_undefined_flag_F77=unsupported
13277 always_export_symbols_F77=yes
13278 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'
13279 # Note: this linker hardcodes the directories in LIBPATH if there
13280 # are no directories specified by -L.
13281 hardcode_minus_L_F77=yes
13282 if test "$GCC" = yes && test -z "$link_static_flag"; then
13283 # Neither direct hardcoding nor static linking is supported with a
13284 # broken collect2.
13285 hardcode_direct_F77=unsupported
13286 fi
13287 ;;
13288
13289 aix4* | aix5*)
13290 if test "$host_cpu" = ia64; then
13291 # On IA64, the linker does run time linking by default, so we don't
13292 # have to do anything special.
13293 aix_use_runtimelinking=no
13294 exp_sym_flag='-Bexport'
13295 no_entry_flag=""
13296 else
13297 # If we're using GNU nm, then we don't want the "-C" option.
13298 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13299 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13300 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'
13301 else
13302 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'
13303 fi
13304 aix_use_runtimelinking=no
13305
13306 # Test if we are trying to use run time linking or normal
13307 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13308 # need to do runtime linking.
13309 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13310 for ld_flag in $LDFLAGS; do
13311 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13312 aix_use_runtimelinking=yes
13313 break
13314 fi
13315 done
13316 esac
13317
13318 exp_sym_flag='-bexport'
13319 no_entry_flag='-bnoentry'
13320 fi
13321
13322 # When large executables or shared objects are built, AIX ld can
13323 # have problems creating the table of contents. If linking a library
13324 # or program results in "error TOC overflow" add -mminimal-toc to
13325 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13326 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13327
13328 archive_cmds_F77=''
13329 hardcode_direct_F77=yes
13330 hardcode_libdir_separator_F77=':'
13331 link_all_deplibs_F77=yes
13332
13333 if test "$GCC" = yes; then
13334 case $host_os in aix4.012|aix4.012.*)
13335 # We only want to do this on AIX 4.2 and lower, the check
13336 # below for broken collect2 doesn't work under 4.3+
13337 collect2name=`${CC} -print-prog-name=collect2`
13338 if test -f "$collect2name" && \
13339 strings "$collect2name" | grep resolve_lib_name >/dev/null
13340 then
13341 # We have reworked collect2
13342 hardcode_direct_F77=yes
13343 else
13344 # We have old collect2
13345 hardcode_direct_F77=unsupported
13346 # It fails to find uninstalled libraries when the uninstalled
13347 # path is not listed in the libpath. Setting hardcode_minus_L
13348 # to unsupported forces relinking
13349 hardcode_minus_L_F77=yes
13350 hardcode_libdir_flag_spec_F77='-L$libdir'
13351 hardcode_libdir_separator_F77=
13352 fi
13353 esac
13354 shared_flag='-shared'
13355 else
13356 # not using gcc
13357 if test "$host_cpu" = ia64; then
13358 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13359 # chokes on -Wl,-G. The following line is correct:
13360 shared_flag='-G'
13361 else
13362 if test "$aix_use_runtimelinking" = yes; then
13363 shared_flag='${wl}-G'
13364 else
13365 shared_flag='${wl}-bM:SRE'
13366 fi
13367 fi
13368 fi
13369
13370 # It seems that -bexpall does not export symbols beginning with
13371 # underscore (_), so it is better to generate a list of symbols to export.
13372 always_export_symbols_F77=yes
13373 if test "$aix_use_runtimelinking" = yes; then
13374 # Warning - without using the other runtime loading flags (-brtl),
13375 # -berok will link without error, but may produce a broken library.
13376 allow_undefined_flag_F77='-berok'
13377 # Determine the default libpath from the value encoded in an empty executable.
13378 cat >conftest.$ac_ext <<_ACEOF
13379 program main
13380
13381 end
13382_ACEOF
13383rm -f conftest.$ac_objext conftest$ac_exeext
13384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13385 (eval $ac_link) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -s conftest$ac_exeext'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395
13396aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13397}'`
13398# Check for a 64-bit object if we didn't find anything.
13399if 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; }
13400}'`; fi
13401else
13402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013403sed 's/^/| /' conftest.$ac_ext >&5
13404
John Criswell47fdd832003-07-14 16:52:07 +000013405fi
13406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13407if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13408
13409 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13410 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"
13411 else
13412 if test "$host_cpu" = ia64; then
13413 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13414 allow_undefined_flag_F77="-z nodefs"
13415 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"
13416 else
13417 # Determine the default libpath from the value encoded in an empty executable.
13418 cat >conftest.$ac_ext <<_ACEOF
13419 program main
13420
13421 end
13422_ACEOF
13423rm -f conftest.$ac_objext conftest$ac_exeext
13424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435
13436aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13437}'`
13438# Check for a 64-bit object if we didn't find anything.
13439if 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; }
13440}'`; fi
13441else
13442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013443sed 's/^/| /' conftest.$ac_ext >&5
13444
John Criswell47fdd832003-07-14 16:52:07 +000013445fi
13446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13447if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13448
13449 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13450 # Warning - without using the other run time loading flags,
13451 # -berok will link without error, but may produce a broken library.
13452 no_undefined_flag_F77=' ${wl}-bernotok'
13453 allow_undefined_flag_F77=' ${wl}-berok'
13454 # -bexpall does not export symbols beginning with underscore (_)
13455 always_export_symbols_F77=yes
13456 # Exported symbols can be pulled into shared objects from archives
13457 whole_archive_flag_spec_F77=' '
13458 archive_cmds_need_lc_F77=yes
13459 # This is similar to how AIX traditionally builds it's shared libraries.
13460 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'
13461 fi
13462 fi
13463 ;;
13464
13465 amigaos*)
13466 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)'
13467 hardcode_libdir_flag_spec_F77='-L$libdir'
13468 hardcode_minus_L_F77=yes
13469 # see comment about different semantics on the GNU ld section
13470 ld_shlibs_F77=no
13471 ;;
13472
13473 bsdi4*)
13474 export_dynamic_flag_spec_F77=-rdynamic
13475 ;;
13476
13477 cygwin* | mingw* | pw32*)
13478 # When not using gcc, we currently assume that we are using
13479 # Microsoft Visual C++.
13480 # hardcode_libdir_flag_spec is actually meaningless, as there is
13481 # no search path for DLLs.
13482 hardcode_libdir_flag_spec_F77=' '
13483 allow_undefined_flag_F77=unsupported
13484 # Tell ltmain to make .lib files, not .a files.
13485 libext=lib
13486 # Tell ltmain to make .dll files, not .so files.
13487 shrext=".dll"
13488 # FIXME: Setting linknames here is a bad hack.
13489 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13490 # The linker will automatically build a .lib file if we build a DLL.
13491 old_archive_From_new_cmds_F77='true'
13492 # FIXME: Should let the user specify the lib program.
13493 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13494 fix_srcfile_path='`cygpath -w "$srcfile"`'
13495 enable_shared_with_static_runtimes_F77=yes
13496 ;;
13497
13498 darwin* | rhapsody*)
13499 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13500 archive_cmds_need_lc_F77=no
13501 case "$host_os" in
13502 rhapsody* | darwin1.[012])
13503 allow_undefined_flag_F77='-undefined suppress'
13504 ;;
13505 *) # Darwin 1.3 on
13506 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13507 ;;
13508 esac
13509 # FIXME: Relying on posixy $() will cause problems for
13510 # cross-compilation, but unfortunately the echo tests do not
13511 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13512 # `"' quotes if we put them in here... so don't!
13513 lt_int_apple_cc_single_mod=no
13514 output_verbose_link_cmd='echo'
13515 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13516 lt_int_apple_cc_single_mod=yes
13517 fi
13518 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13519 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13520 else
13521 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'
13522 fi
13523 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13524 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13525 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13526 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}'
13527 else
13528 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}'
13529 fi
13530 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}'
13531 hardcode_direct_F77=no
13532 hardcode_automatic_F77=yes
13533 hardcode_shlibpath_var_F77=unsupported
13534 whole_archive_flag_spec_F77='-all_load $convenience'
13535 link_all_deplibs_F77=yes
13536 fi
13537 ;;
13538
13539 dgux*)
13540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13541 hardcode_libdir_flag_spec_F77='-L$libdir'
13542 hardcode_shlibpath_var_F77=no
13543 ;;
13544
13545 freebsd1*)
13546 ld_shlibs_F77=no
13547 ;;
13548
13549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13550 # support. Future versions do this automatically, but an explicit c++rt0.o
13551 # does not break anything, and helps significantly (at the cost of a little
13552 # extra space).
13553 freebsd2.2*)
13554 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13555 hardcode_libdir_flag_spec_F77='-R$libdir'
13556 hardcode_direct_F77=yes
13557 hardcode_shlibpath_var_F77=no
13558 ;;
13559
13560 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13561 freebsd2*)
13562 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13563 hardcode_direct_F77=yes
13564 hardcode_minus_L_F77=yes
13565 hardcode_shlibpath_var_F77=no
13566 ;;
13567
13568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13569 freebsd*)
13570 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13571 hardcode_libdir_flag_spec_F77='-R$libdir'
13572 hardcode_direct_F77=yes
13573 hardcode_shlibpath_var_F77=no
13574 ;;
13575
13576 hpux9*)
13577 if test "$GCC" = yes; then
13578 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'
13579 else
13580 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'
13581 fi
13582 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13583 hardcode_libdir_separator_F77=:
13584 hardcode_direct_F77=yes
13585
13586 # hardcode_minus_L: Not really in the search PATH,
13587 # but as the default location of the library.
13588 hardcode_minus_L_F77=yes
13589 export_dynamic_flag_spec_F77='${wl}-E'
13590 ;;
13591
13592 hpux10* | hpux11*)
13593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13594 case "$host_cpu" in
13595 hppa*64*|ia64*)
13596 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13597 ;;
13598 *)
13599 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13600 ;;
13601 esac
13602 else
13603 case "$host_cpu" in
13604 hppa*64*|ia64*)
13605 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13606 ;;
13607 *)
13608 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13609 ;;
13610 esac
13611 fi
13612 if test "$with_gnu_ld" = no; then
13613 case "$host_cpu" in
13614 hppa*64*)
13615 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13616 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13617 hardcode_libdir_separator_F77=:
13618 hardcode_direct_F77=no
13619 hardcode_shlibpath_var_F77=no
13620 ;;
13621 ia64*)
13622 hardcode_libdir_flag_spec_F77='-L$libdir'
13623 hardcode_direct_F77=no
13624 hardcode_shlibpath_var_F77=no
13625
13626 # hardcode_minus_L: Not really in the search PATH,
13627 # but as the default location of the library.
13628 hardcode_minus_L_F77=yes
13629 ;;
13630 *)
13631 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13632 hardcode_libdir_separator_F77=:
13633 hardcode_direct_F77=yes
13634 export_dynamic_flag_spec_F77='${wl}-E'
13635
13636 # hardcode_minus_L: Not really in the search PATH,
13637 # but as the default location of the library.
13638 hardcode_minus_L_F77=yes
13639 ;;
13640 esac
13641 fi
13642 ;;
13643
13644 irix5* | irix6* | nonstopux*)
13645 if test "$GCC" = yes; then
13646 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'
13647 else
13648 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'
13649 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13650 fi
13651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13652 hardcode_libdir_separator_F77=:
13653 link_all_deplibs_F77=yes
13654 ;;
13655
13656 netbsd*)
13657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13658 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13659 else
13660 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13661 fi
13662 hardcode_libdir_flag_spec_F77='-R$libdir'
13663 hardcode_direct_F77=yes
13664 hardcode_shlibpath_var_F77=no
13665 ;;
13666
13667 newsos6)
13668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13669 hardcode_direct_F77=yes
13670 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13671 hardcode_libdir_separator_F77=:
13672 hardcode_shlibpath_var_F77=no
13673 ;;
13674
13675 openbsd*)
13676 hardcode_direct_F77=yes
13677 hardcode_shlibpath_var_F77=no
13678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13679 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13680 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13681 export_dynamic_flag_spec_F77='${wl}-E'
13682 else
13683 case $host_os in
13684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13685 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13686 hardcode_libdir_flag_spec_F77='-R$libdir'
13687 ;;
13688 *)
13689 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13690 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13691 ;;
13692 esac
13693 fi
13694 ;;
13695
13696 os2*)
13697 hardcode_libdir_flag_spec_F77='-L$libdir'
13698 hardcode_minus_L_F77=yes
13699 allow_undefined_flag_F77=unsupported
13700 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'
13701 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13702 ;;
13703
13704 osf3*)
13705 if test "$GCC" = yes; then
13706 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13707 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'
13708 else
13709 allow_undefined_flag_F77=' -expect_unresolved \*'
13710 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'
13711 fi
13712 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13713 hardcode_libdir_separator_F77=:
13714 ;;
13715
13716 osf4* | osf5*) # as osf3* with the addition of -msym flag
13717 if test "$GCC" = yes; then
13718 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13719 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'
13720 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13721 else
13722 allow_undefined_flag_F77=' -expect_unresolved \*'
13723 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'
13724 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~
13725 $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'
13726
13727 # Both c and cxx compiler support -rpath directly
13728 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13729 fi
13730 hardcode_libdir_separator_F77=:
13731 ;;
13732
13733 sco3.2v5*)
13734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13735 hardcode_shlibpath_var_F77=no
13736 export_dynamic_flag_spec_F77='${wl}-Bexport'
13737 runpath_var=LD_RUN_PATH
13738 hardcode_runpath_var=yes
13739 ;;
13740
13741 solaris*)
13742 no_undefined_flag_F77=' -z text'
13743 if test "$GCC" = yes; then
13744 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13745 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13746 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13747 else
13748 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13750 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13751 fi
13752 hardcode_libdir_flag_spec_F77='-R$libdir'
13753 hardcode_shlibpath_var_F77=no
13754 case $host_os in
13755 solaris2.[0-5] | solaris2.[0-5].*) ;;
13756 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13757 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13758 esac
13759 link_all_deplibs_F77=yes
13760 ;;
13761
13762 sunos4*)
13763 if test "x$host_vendor" = xsequent; then
13764 # Use $CC to link under sequent, because it throws in some extra .o
13765 # files that make .init and .fini sections work.
13766 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13767 else
13768 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13769 fi
13770 hardcode_libdir_flag_spec_F77='-L$libdir'
13771 hardcode_direct_F77=yes
13772 hardcode_minus_L_F77=yes
13773 hardcode_shlibpath_var_F77=no
13774 ;;
13775
13776 sysv4)
13777 case $host_vendor in
13778 sni)
13779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_direct_F77=yes # is this really true???
13781 ;;
13782 siemens)
13783 ## LD is ld it makes a PLAMLIB
13784 ## CC just makes a GrossModule.
13785 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13786 reload_cmds_F77='$CC -r -o $output$reload_objs'
13787 hardcode_direct_F77=no
13788 ;;
13789 motorola)
13790 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13792 ;;
13793 esac
13794 runpath_var='LD_RUN_PATH'
13795 hardcode_shlibpath_var_F77=no
13796 ;;
13797
13798 sysv4.3*)
13799 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13800 hardcode_shlibpath_var_F77=no
13801 export_dynamic_flag_spec_F77='-Bexport'
13802 ;;
13803
13804 sysv4*MP*)
13805 if test -d /usr/nec; then
13806 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807 hardcode_shlibpath_var_F77=no
13808 runpath_var=LD_RUN_PATH
13809 hardcode_runpath_var=yes
13810 ld_shlibs_F77=yes
13811 fi
13812 ;;
13813
13814 sysv4.2uw2*)
13815 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13816 hardcode_direct_F77=yes
13817 hardcode_minus_L_F77=no
13818 hardcode_shlibpath_var_F77=no
13819 hardcode_runpath_var=yes
13820 runpath_var=LD_RUN_PATH
13821 ;;
13822
13823 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13824 no_undefined_flag_F77='${wl}-z ${wl}text'
13825 if test "$GCC" = yes; then
13826 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 else
13828 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 fi
13830 runpath_var='LD_RUN_PATH'
13831 hardcode_shlibpath_var_F77=no
13832 ;;
13833
13834 sysv5*)
13835 no_undefined_flag_F77=' -z text'
13836 # $CC -shared without GNU ld will not create a library from C++
13837 # object files and a static libstdc++, better avoid it by now
13838 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13839 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13841 hardcode_libdir_flag_spec_F77=
13842 hardcode_shlibpath_var_F77=no
13843 runpath_var='LD_RUN_PATH'
13844 ;;
13845
13846 uts4*)
13847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13848 hardcode_libdir_flag_spec_F77='-L$libdir'
13849 hardcode_shlibpath_var_F77=no
13850 ;;
13851
13852 *)
13853 ld_shlibs_F77=no
13854 ;;
13855 esac
13856 fi
13857
13858echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13859echo "${ECHO_T}$ld_shlibs_F77" >&6
13860test "$ld_shlibs_F77" = no && can_build_shared=no
13861
13862variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13863if test "$GCC" = yes; then
13864 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13865fi
13866
13867#
13868# Do we need to explicitly link libc?
13869#
13870case "x$archive_cmds_need_lc_F77" in
13871x|xyes)
13872 # Assume -lc should be added
13873 archive_cmds_need_lc_F77=yes
13874
13875 if test "$enable_shared" = yes && test "$GCC" = yes; then
13876 case $archive_cmds_F77 in
13877 *'~'*)
13878 # FIXME: we may have to deal with multi-command sequences.
13879 ;;
13880 '$CC '*)
13881 # Test whether the compiler implicitly links with -lc since on some
13882 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13883 # to ld, don't add -lc before -lgcc.
13884 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13885echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13886 $rm conftest*
13887 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13888
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } 2>conftest.err; then
13894 soname=conftest
13895 lib=conftest
13896 libobjs=conftest.$ac_objext
13897 deplibs=
13898 wl=$lt_prog_compiler_wl_F77
13899 compiler_flags=-v
13900 linker_flags=-v
13901 verstring=
13902 output_objdir=.
13903 libname=conftest
13904 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13905 allow_undefined_flag_F77=
13906 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13907 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }
13911 then
13912 archive_cmds_need_lc_F77=no
13913 else
13914 archive_cmds_need_lc_F77=yes
13915 fi
13916 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13917 else
13918 cat conftest.err 1>&5
13919 fi
13920 $rm conftest*
13921 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13922echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13923 ;;
13924 esac
13925 fi
13926 ;;
13927esac
13928
13929echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13930echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13931hardcode_action_F77=
13932if test -n "$hardcode_libdir_flag_spec_F77" || \
13933 test -n "$runpath_var F77" || \
13934 test "X$hardcode_automatic_F77"="Xyes" ; then
13935
13936 # We can hardcode non-existant directories.
13937 if test "$hardcode_direct_F77" != no &&
13938 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13939 # have to relink, otherwise we might link with an installed library
13940 # when we should be linking with a yet-to-be-installed one
13941 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13942 test "$hardcode_minus_L_F77" != no; then
13943 # Linking always hardcodes the temporary library directory.
13944 hardcode_action_F77=relink
13945 else
13946 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13947 hardcode_action_F77=immediate
13948 fi
13949else
13950 # We cannot hardcode anything, or else we can only hardcode existing
13951 # directories.
13952 hardcode_action_F77=unsupported
13953fi
13954echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13955echo "${ECHO_T}$hardcode_action_F77" >&6
13956
13957if test "$hardcode_action_F77" = relink; then
13958 # Fast installation is not supported
13959 enable_fast_install=no
13960elif test "$shlibpath_overrides_runpath" = yes ||
13961 test "$enable_shared" = no; then
13962 # Fast installation is not necessary
13963 enable_fast_install=needless
13964fi
13965
13966striplib=
13967old_striplib=
13968echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13969echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13970if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13971 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13972 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13973 echo "$as_me:$LINENO: result: yes" >&5
13974echo "${ECHO_T}yes" >&6
13975else
13976# FIXME - insert some real tests, host_os isn't really good enough
13977 case $host_os in
13978 darwin*)
13979 if test -n "$STRIP" ; then
13980 striplib="$STRIP -x"
13981 echo "$as_me:$LINENO: result: yes" >&5
13982echo "${ECHO_T}yes" >&6
13983 else
13984 echo "$as_me:$LINENO: result: no" >&5
13985echo "${ECHO_T}no" >&6
13986fi
13987 ;;
13988 *)
13989 echo "$as_me:$LINENO: result: no" >&5
13990echo "${ECHO_T}no" >&6
13991 ;;
13992 esac
13993fi
13994
13995echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13996echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13997library_names_spec=
13998libname_spec='lib$name'
13999soname_spec=
14000shrext=".so"
14001postinstall_cmds=
14002postuninstall_cmds=
14003finish_cmds=
14004finish_eval=
14005shlibpath_var=
14006shlibpath_overrides_runpath=unknown
14007version_type=none
14008dynamic_linker="$host_os ld.so"
14009sys_lib_dlsearch_path_spec="/lib /usr/lib"
14010if test "$GCC" = yes; then
14011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14012 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14013 # if the path contains ";" then we assume it to be the separator
14014 # otherwise default to the standard path separator (i.e. ":") - it is
14015 # assumed that no part of a normal pathname contains ";" but that should
14016 # okay in the real world where ";" in dirpaths is itself problematic.
14017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14018 else
14019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14020 fi
14021else
14022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14023fi
14024need_lib_prefix=unknown
14025hardcode_into_libs=no
14026
14027# when you set need_version to no, make sure it does not cause -set_version
14028# flags to be left without arguments
14029need_version=unknown
14030
14031case $host_os in
14032aix3*)
14033 version_type=linux
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14035 shlibpath_var=LIBPATH
14036
14037 # AIX 3 has no versioning support, so we append a major version to the name.
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 ;;
14040
14041aix4* | aix5*)
14042 version_type=linux
14043 need_lib_prefix=no
14044 need_version=no
14045 hardcode_into_libs=yes
14046 if test "$host_cpu" = ia64; then
14047 # AIX 5 supports IA64
14048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14049 shlibpath_var=LD_LIBRARY_PATH
14050 else
14051 # With GCC up to 2.95.x, collect2 would create an import file
14052 # for dependence libraries. The import file would start with
14053 # the line `#! .'. This would cause the generated library to
14054 # depend on `.', always an invalid library. This was fixed in
14055 # development snapshots of GCC prior to 3.0.
14056 case $host_os in
14057 aix4 | aix4.[01] | aix4.[01].*)
14058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14059 echo ' yes '
14060 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14061 :
14062 else
14063 can_build_shared=no
14064 fi
14065 ;;
14066 esac
14067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14068 # soname into executable. Probably we can add versioning support to
14069 # collect2, so additional links can be useful in future.
14070 if test "$aix_use_runtimelinking" = yes; then
14071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14072 # instead of lib<name>.a to let people know that these are not
14073 # typical AIX shared libraries.
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 else
14076 # We preserve .a as extension for shared libraries through AIX4.2
14077 # and later when we are not doing run time linking.
14078 library_names_spec='${libname}${release}.a $libname.a'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 fi
14081 shlibpath_var=LIBPATH
14082 fi
14083 ;;
14084
14085amigaos*)
14086 library_names_spec='$libname.ixlibrary $libname.a'
14087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14088 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'
14089 ;;
14090
14091beos*)
14092 library_names_spec='${libname}${shared_ext}'
14093 dynamic_linker="$host_os ld.so"
14094 shlibpath_var=LIBRARY_PATH
14095 ;;
14096
14097bsdi4*)
14098 version_type=linux
14099 need_version=no
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14106 # the default ld.so.conf also contains /usr/contrib/lib and
14107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14108 # libtool to hard-code these into programs
14109 ;;
14110
14111cygwin* | mingw* | pw32*)
14112 version_type=windows
14113 shrext=".dll"
14114 need_version=no
14115 need_lib_prefix=no
14116
14117 case $GCC,$host_os in
14118 yes,cygwin* | yes,mingw* | yes,pw32*)
14119 library_names_spec='$libname.dll.a'
14120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14121 postinstall_cmds='base_file=`basename \${file}`~
14122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14123 dldir=$destdir/`dirname \$dlpath`~
14124 test -d \$dldir || mkdir -p \$dldir~
14125 $install_prog $dir/$dlname \$dldir/$dlname'
14126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14127 dlpath=$dir/\$dldll~
14128 $rm \$dlpath'
14129 shlibpath_overrides_runpath=yes
14130
14131 case $host_os in
14132 cygwin*)
14133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14135 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14136 ;;
14137 mingw*)
14138 # MinGW DLLs use traditional 'lib' prefix
14139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14141 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14142 # It is most probably a Windows format PATH printed by
14143 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14144 # path with ; separators, and with drive letters. We can handle the
14145 # drive letters (cygwin fileutils understands them), so leave them,
14146 # especially as we might pass files found there to a mingw objdump,
14147 # which wouldn't understand a cygwinified path. Ahh.
14148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14149 else
14150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14151 fi
14152 ;;
14153 pw32*)
14154 # pw32 DLLs use 'pw' prefix rather than 'lib'
14155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14156 ;;
14157 esac
14158 ;;
14159
14160 *)
14161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14162 ;;
14163 esac
14164 dynamic_linker='Win32 ld.exe'
14165 # FIXME: first we should search . and the directory the executable is in
14166 shlibpath_var=PATH
14167 ;;
14168
14169darwin* | rhapsody*)
14170 dynamic_linker="$host_os dyld"
14171 version_type=darwin
14172 need_lib_prefix=no
14173 need_version=no
14174 # FIXME: Relying on posixy $() will cause problems for
14175 # cross-compilation, but unfortunately the echo tests do not
14176 # yet detect zsh echo's removal of \ escapes.
14177 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14178 soname_spec='${libname}${release}${major}$shared_ext'
14179 shlibpath_overrides_runpath=yes
14180 shlibpath_var=DYLD_LIBRARY_PATH
14181 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14182 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14183 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14184 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"`
14185 fi
14186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14187 ;;
14188
14189dgux*)
14190 version_type=linux
14191 need_lib_prefix=no
14192 need_version=no
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14194 soname_spec='${libname}${release}${shared_ext}$major'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 ;;
14197
14198freebsd1*)
14199 dynamic_linker=no
14200 ;;
14201
14202freebsd*)
14203 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14204 version_type=freebsd-$objformat
14205 case $version_type in
14206 freebsd-elf*)
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14208 need_version=no
14209 need_lib_prefix=no
14210 ;;
14211 freebsd-*)
14212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14213 need_version=yes
14214 ;;
14215 esac
14216 shlibpath_var=LD_LIBRARY_PATH
14217 case $host_os in
14218 freebsd2*)
14219 shlibpath_overrides_runpath=yes
14220 ;;
14221 freebsd3.01* | freebsdelf3.01*)
14222 shlibpath_overrides_runpath=yes
14223 hardcode_into_libs=yes
14224 ;;
14225 *) # from 3.2 on
14226 shlibpath_overrides_runpath=no
14227 hardcode_into_libs=yes
14228 ;;
14229 esac
14230 ;;
14231
14232gnu*)
14233 version_type=linux
14234 need_lib_prefix=no
14235 need_version=no
14236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14237 soname_spec='${libname}${release}${shared_ext}$major'
14238 shlibpath_var=LD_LIBRARY_PATH
14239 hardcode_into_libs=yes
14240 ;;
14241
14242hpux9* | hpux10* | hpux11*)
14243 # Give a soname corresponding to the major version so that dld.sl refuses to
14244 # link against other versions.
14245 version_type=sunos
14246 need_lib_prefix=no
14247 need_version=no
14248 case "$host_cpu" in
14249 ia64*)
14250 shrext='.so'
14251 hardcode_into_libs=yes
14252 dynamic_linker="$host_os dld.so"
14253 shlibpath_var=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 if test "X$HPUX_IA64_MODE" = X32; then
14258 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14259 else
14260 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14261 fi
14262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14263 ;;
14264 hppa*64*)
14265 shrext='.sl'
14266 hardcode_into_libs=yes
14267 dynamic_linker="$host_os dld.sl"
14268 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14274 ;;
14275 *)
14276 shrext='.sl'
14277 dynamic_linker="$host_os dld.sl"
14278 shlibpath_var=SHLIB_PATH
14279 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14281 soname_spec='${libname}${release}${shared_ext}$major'
14282 ;;
14283 esac
14284 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14285 postinstall_cmds='chmod 555 $lib'
14286 ;;
14287
14288irix5* | irix6* | nonstopux*)
14289 case $host_os in
14290 nonstopux*) version_type=nonstopux ;;
14291 *)
14292 if test "$lt_cv_prog_gnu_ld" = yes; then
14293 version_type=linux
14294 else
14295 version_type=irix
14296 fi ;;
14297 esac
14298 need_lib_prefix=no
14299 need_version=no
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14302 case $host_os in
14303 irix5* | nonstopux*)
14304 libsuff= shlibsuff=
14305 ;;
14306 *)
14307 case $LD in # libtool.m4 will add one of these switches to LD
14308 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14309 libsuff= shlibsuff= libmagic=32-bit;;
14310 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14311 libsuff=32 shlibsuff=N32 libmagic=N32;;
14312 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14313 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14314 *) libsuff= shlibsuff= libmagic=never-match;;
14315 esac
14316 ;;
14317 esac
14318 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14319 shlibpath_overrides_runpath=no
14320 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14321 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14322 hardcode_into_libs=yes
14323 ;;
14324
14325# No shared lib support for Linux oldld, aout, or coff.
14326linux*oldld* | linux*aout* | linux*coff*)
14327 dynamic_linker=no
14328 ;;
14329
14330# This must be Linux ELF.
14331linux*)
14332 version_type=linux
14333 need_lib_prefix=no
14334 need_version=no
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=no
14340 # This implies no fast_install, which is unacceptable.
14341 # Some rework will be needed to allow for fast_install
14342 # before this can be enabled.
14343 hardcode_into_libs=yes
14344
14345 # We used to test for /lib/ld.so.1 and disable shared libraries on
14346 # powerpc, because MkLinux only supported shared libraries with the
14347 # GNU dynamic linker. Since this was broken with cross compilers,
14348 # most powerpc-linux boxes support dynamic linking these days and
14349 # people can always --disable-shared, the test was removed, and we
14350 # assume the GNU/Linux dynamic linker is in use.
14351 dynamic_linker='GNU/Linux ld.so'
14352 ;;
14353
14354netbsd*)
14355 version_type=sunos
14356 need_lib_prefix=no
14357 need_version=no
14358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14361 dynamic_linker='NetBSD (a.out) ld.so'
14362 else
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 dynamic_linker='NetBSD ld.elf_so'
14366 fi
14367 shlibpath_var=LD_LIBRARY_PATH
14368 shlibpath_overrides_runpath=yes
14369 hardcode_into_libs=yes
14370 ;;
14371
14372newsos6)
14373 version_type=linux
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 shlibpath_overrides_runpath=yes
14377 ;;
14378
14379nto-qnx)
14380 version_type=linux
14381 need_lib_prefix=no
14382 need_version=no
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 shlibpath_var=LD_LIBRARY_PATH
14386 shlibpath_overrides_runpath=yes
14387 ;;
14388
14389openbsd*)
14390 version_type=sunos
14391 need_lib_prefix=no
14392 need_version=no
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14395 shlibpath_var=LD_LIBRARY_PATH
14396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14397 case $host_os in
14398 openbsd2.[89] | openbsd2.[89].*)
14399 shlibpath_overrides_runpath=no
14400 ;;
14401 *)
14402 shlibpath_overrides_runpath=yes
14403 ;;
14404 esac
14405 else
14406 shlibpath_overrides_runpath=yes
14407 fi
14408 ;;
14409
14410os2*)
14411 libname_spec='$name'
14412 shrext=".dll"
14413 need_lib_prefix=no
14414 library_names_spec='$libname${shared_ext} $libname.a'
14415 dynamic_linker='OS/2 ld.exe'
14416 shlibpath_var=LIBPATH
14417 ;;
14418
14419osf3* | osf4* | osf5*)
14420 version_type=osf
14421 need_lib_prefix=no
14422 need_version=no
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14428 ;;
14429
14430sco3.2v5*)
14431 version_type=osf
14432 soname_spec='${libname}${release}${shared_ext}$major'
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 ;;
14436
14437solaris*)
14438 version_type=linux
14439 need_lib_prefix=no
14440 need_version=no
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442 soname_spec='${libname}${release}${shared_ext}$major'
14443 shlibpath_var=LD_LIBRARY_PATH
14444 shlibpath_overrides_runpath=yes
14445 hardcode_into_libs=yes
14446 # ldd complains unless libraries are executable
14447 postinstall_cmds='chmod +x $lib'
14448 ;;
14449
14450sunos4*)
14451 version_type=sunos
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath=yes
14456 if test "$with_gnu_ld" = yes; then
14457 need_lib_prefix=no
14458 fi
14459 need_version=yes
14460 ;;
14461
14462sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14463 version_type=linux
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465 soname_spec='${libname}${release}${shared_ext}$major'
14466 shlibpath_var=LD_LIBRARY_PATH
14467 case $host_vendor in
14468 sni)
14469 shlibpath_overrides_runpath=no
14470 need_lib_prefix=no
14471 export_dynamic_flag_spec='${wl}-Blargedynsym'
14472 runpath_var=LD_RUN_PATH
14473 ;;
14474 siemens)
14475 need_lib_prefix=no
14476 ;;
14477 motorola)
14478 need_lib_prefix=no
14479 need_version=no
14480 shlibpath_overrides_runpath=no
14481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14482 ;;
14483 esac
14484 ;;
14485
14486sysv4*MP*)
14487 if test -d /usr/nec ;then
14488 version_type=linux
14489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14490 soname_spec='$libname${shared_ext}.$major'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 fi
14493 ;;
14494
14495uts4*)
14496 version_type=linux
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 ;;
14501
14502*)
14503 dynamic_linker=no
14504 ;;
14505esac
14506echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14507echo "${ECHO_T}$dynamic_linker" >&6
14508test "$dynamic_linker" = no && can_build_shared=no
14509
14510
14511# The else clause should only fire when bootstrapping the
14512# libtool distribution, otherwise you forgot to ship ltmain.sh
14513# with your package, and you will get complaints that there are
14514# no rules to generate ltmain.sh.
14515if test -f "$ltmain"; then
14516 # See if we are running on zsh, and set the options which allow our commands through
14517 # without removal of \ escapes.
14518 if test -n "${ZSH_VERSION+set}" ; then
14519 setopt NO_GLOB_SUBST
14520 fi
14521 # Now quote all the things that may contain metacharacters while being
14522 # careful not to overquote the AC_SUBSTed values. We take copies of the
14523 # variables and quote the copies for generation of the libtool script.
14524 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14525 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14526 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14527 deplibs_check_method reload_flag reload_cmds need_locks \
14528 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14529 lt_cv_sys_global_symbol_to_c_name_address \
14530 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14531 old_postinstall_cmds old_postuninstall_cmds \
14532 compiler_F77 \
14533 CC_F77 \
14534 LD_F77 \
14535 lt_prog_compiler_wl_F77 \
14536 lt_prog_compiler_pic_F77 \
14537 lt_prog_compiler_static_F77 \
14538 lt_prog_compiler_no_builtin_flag_F77 \
14539 export_dynamic_flag_spec_F77 \
14540 thread_safe_flag_spec_F77 \
14541 whole_archive_flag_spec_F77 \
14542 enable_shared_with_static_runtimes_F77 \
14543 old_archive_cmds_F77 \
14544 old_archive_from_new_cmds_F77 \
14545 predep_objects_F77 \
14546 postdep_objects_F77 \
14547 predeps_F77 \
14548 postdeps_F77 \
14549 compiler_lib_search_path_F77 \
14550 archive_cmds_F77 \
14551 archive_expsym_cmds_F77 \
14552 postinstall_cmds_F77 \
14553 postuninstall_cmds_F77 \
14554 old_archive_from_expsyms_cmds_F77 \
14555 allow_undefined_flag_F77 \
14556 no_undefined_flag_F77 \
14557 export_symbols_cmds_F77 \
14558 hardcode_libdir_flag_spec_F77 \
14559 hardcode_libdir_flag_spec_ld_F77 \
14560 hardcode_libdir_separator_F77 \
14561 hardcode_automatic_F77 \
14562 module_cmds_F77 \
14563 module_expsym_cmds_F77 \
14564 lt_cv_prog_compiler_c_o_F77 \
14565 exclude_expsyms_F77 \
14566 include_expsyms_F77; do
14567
14568 case $var in
14569 old_archive_cmds_F77 | \
14570 old_archive_from_new_cmds_F77 | \
14571 archive_cmds_F77 | \
14572 archive_expsym_cmds_F77 | \
14573 module_cmds_F77 | \
14574 module_expsym_cmds_F77 | \
14575 old_archive_from_expsyms_cmds_F77 | \
14576 export_symbols_cmds_F77 | \
14577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14578 postinstall_cmds | postuninstall_cmds | \
14579 old_postinstall_cmds | old_postuninstall_cmds | \
14580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14581 # Double-quote double-evaled strings.
14582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14583 ;;
14584 *)
14585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14586 ;;
14587 esac
14588 done
14589
14590 case $lt_echo in
14591 *'\$0 --fallback-echo"')
14592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14593 ;;
14594 esac
14595
14596cfgfile="$ofile"
14597
14598 cat <<__EOF__ >> "$cfgfile"
14599# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14600
14601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14602
14603# Shell to use when invoking shell scripts.
14604SHELL=$lt_SHELL
14605
14606# Whether or not to build shared libraries.
14607build_libtool_libs=$enable_shared
14608
14609# Whether or not to build static libraries.
14610build_old_libs=$enable_static
14611
14612# Whether or not to add -lc for building shared libraries.
14613build_libtool_need_lc=$archive_cmds_need_lc_F77
14614
14615# Whether or not to disallow shared libs when runtime libs are static
14616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14617
14618# Whether or not to optimize for fast installation.
14619fast_install=$enable_fast_install
14620
14621# The host system.
14622host_alias=$host_alias
14623host=$host
14624
14625# An echo program that does not interpret backslashes.
14626echo=$lt_echo
14627
14628# The archiver.
14629AR=$lt_AR
14630AR_FLAGS=$lt_AR_FLAGS
14631
14632# A C compiler.
14633LTCC=$lt_LTCC
14634
14635# A language-specific compiler.
14636CC=$lt_compiler_F77
14637
14638# Is the compiler the GNU C compiler?
14639with_gcc=$GCC_F77
14640
14641# An ERE matcher.
14642EGREP=$lt_EGREP
14643
14644# The linker used to build libraries.
14645LD=$lt_LD_F77
14646
14647# Whether we need hard or soft links.
14648LN_S=$lt_LN_S
14649
14650# A BSD-compatible nm program.
14651NM=$lt_NM
14652
14653# A symbol stripping program
14654STRIP=$STRIP
14655
14656# Used to examine libraries when file_magic_cmd begins "file"
14657MAGIC_CMD=$MAGIC_CMD
14658
14659# Used on cygwin: DLL creation program.
14660DLLTOOL="$DLLTOOL"
14661
14662# Used on cygwin: object dumper.
14663OBJDUMP="$OBJDUMP"
14664
14665# Used on cygwin: assembler.
14666AS="$AS"
14667
14668# The name of the directory that contains temporary libtool files.
14669objdir=$objdir
14670
14671# How to create reloadable object files.
14672reload_flag=$lt_reload_flag
14673reload_cmds=$lt_reload_cmds
14674
14675# How to pass a linker flag through the compiler.
14676wl=$lt_lt_prog_compiler_wl_F77
14677
14678# Object file suffix (normally "o").
14679objext="$ac_objext"
14680
14681# Old archive suffix (normally "a").
14682libext="$libext"
14683
14684# Shared library suffix (normally ".so").
14685shrext='$shrext'
14686
14687# Executable file suffix (normally "").
14688exeext="$exeext"
14689
14690# Additional compiler flags for building library objects.
14691pic_flag=$lt_lt_prog_compiler_pic_F77
14692pic_mode=$pic_mode
14693
14694# What is the maximum length of a command?
14695max_cmd_len=$lt_cv_sys_max_cmd_len
14696
14697# Does compiler simultaneously support -c and -o options?
14698compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14699
14700# Must we lock files when doing compilation ?
14701need_locks=$lt_need_locks
14702
14703# Do we need the lib prefix for modules?
14704need_lib_prefix=$need_lib_prefix
14705
14706# Do we need a version for libraries?
14707need_version=$need_version
14708
14709# Whether dlopen is supported.
14710dlopen_support=$enable_dlopen
14711
14712# Whether dlopen of programs is supported.
14713dlopen_self=$enable_dlopen_self
14714
14715# Whether dlopen of statically linked programs is supported.
14716dlopen_self_static=$enable_dlopen_self_static
14717
14718# Compiler flag to prevent dynamic linking.
14719link_static_flag=$lt_lt_prog_compiler_static_F77
14720
14721# Compiler flag to turn off builtin functions.
14722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14723
14724# Compiler flag to allow reflexive dlopens.
14725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14726
14727# Compiler flag to generate shared objects directly from archives.
14728whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14729
14730# Compiler flag to generate thread-safe objects.
14731thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14732
14733# Library versioning type.
14734version_type=$version_type
14735
14736# Format of library name prefix.
14737libname_spec=$lt_libname_spec
14738
14739# List of archive names. First name is the real one, the rest are links.
14740# The last name is the one that the linker finds with -lNAME.
14741library_names_spec=$lt_library_names_spec
14742
14743# The coded name of the library, if different from the real name.
14744soname_spec=$lt_soname_spec
14745
14746# Commands used to build and install an old-style archive.
14747RANLIB=$lt_RANLIB
14748old_archive_cmds=$lt_old_archive_cmds_F77
14749old_postinstall_cmds=$lt_old_postinstall_cmds
14750old_postuninstall_cmds=$lt_old_postuninstall_cmds
14751
14752# Create an old-style archive from a shared archive.
14753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14754
14755# Create a temporary old-style archive to link instead of a shared archive.
14756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14757
14758# Commands used to build and install a shared archive.
14759archive_cmds=$lt_archive_cmds_F77
14760archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14761postinstall_cmds=$lt_postinstall_cmds
14762postuninstall_cmds=$lt_postuninstall_cmds
14763
14764# Commands used to build a loadable module (assumed same as above if empty)
14765module_cmds=$lt_module_cmds_F77
14766module_expsym_cmds=$lt_module_expsym_cmds_F77
14767
14768# Commands to strip libraries.
14769old_striplib=$lt_old_striplib
14770striplib=$lt_striplib
14771
14772# Dependencies to place before the objects being linked to create a
14773# shared library.
14774predep_objects=$lt_predep_objects_F77
14775
14776# Dependencies to place after the objects being linked to create a
14777# shared library.
14778postdep_objects=$lt_postdep_objects_F77
14779
14780# Dependencies to place before the objects being linked to create a
14781# shared library.
14782predeps=$lt_predeps_F77
14783
14784# Dependencies to place after the objects being linked to create a
14785# shared library.
14786postdeps=$lt_postdeps_F77
14787
14788# The library search path used internally by the compiler when linking
14789# a shared library.
14790compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14791
14792# Method to check whether dependent libraries are shared objects.
14793deplibs_check_method=$lt_deplibs_check_method
14794
14795# Command to use when deplibs_check_method == file_magic.
14796file_magic_cmd=$lt_file_magic_cmd
14797
14798# Flag that allows shared libraries with undefined symbols to be built.
14799allow_undefined_flag=$lt_allow_undefined_flag_F77
14800
14801# Flag that forces no undefined symbols.
14802no_undefined_flag=$lt_no_undefined_flag_F77
14803
14804# Commands used to finish a libtool library installation in a directory.
14805finish_cmds=$lt_finish_cmds
14806
14807# Same as above, but a single script fragment to be evaled but not shown.
14808finish_eval=$lt_finish_eval
14809
14810# Take the output of nm and produce a listing of raw symbols and C names.
14811global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14812
14813# Transform the output of nm in a proper C declaration
14814global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14815
14816# Transform the output of nm in a C name address pair
14817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14818
14819# This is the shared library runtime path variable.
14820runpath_var=$runpath_var
14821
14822# This is the shared library path variable.
14823shlibpath_var=$shlibpath_var
14824
14825# Is shlibpath searched before the hard-coded library search path?
14826shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14827
14828# How to hardcode a shared library path into an executable.
14829hardcode_action=$hardcode_action_F77
14830
14831# Whether we should hardcode library paths into libraries.
14832hardcode_into_libs=$hardcode_into_libs
14833
14834# Flag to hardcode \$libdir into a binary during linking.
14835# This must work even if \$libdir does not exist.
14836hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14837
14838# If ld is used when linking, flag to hardcode \$libdir into
14839# a binary during linking. This must work even if \$libdir does
14840# not exist.
14841hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14842
14843# Whether we need a single -rpath flag with a separated argument.
14844hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14845
14846# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14847# resulting binary.
14848hardcode_direct=$hardcode_direct_F77
14849
14850# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14851# resulting binary.
14852hardcode_minus_L=$hardcode_minus_L_F77
14853
14854# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14855# the resulting binary.
14856hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14857
14858# Set to yes if building a shared library automatically hardcodes DIR into the library
14859# and all subsequent libraries and executables linked against it.
14860hardcode_automatic=$hardcode_automatic_F77
14861
14862# Variables whose values should be saved in libtool wrapper scripts and
14863# restored at relink time.
14864variables_saved_for_relink="$variables_saved_for_relink"
14865
14866# Whether libtool must link a program against all its dependency libraries.
14867link_all_deplibs=$link_all_deplibs_F77
14868
14869# Compile-time system search path for libraries
14870sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14871
14872# Run-time system search path for libraries
14873sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14874
14875# Fix the shell variable \$srcfile for the compiler.
14876fix_srcfile_path="$fix_srcfile_path_F77"
14877
14878# Set to yes if exported symbols are required.
14879always_export_symbols=$always_export_symbols_F77
14880
14881# The commands to list exported symbols.
14882export_symbols_cmds=$lt_export_symbols_cmds_F77
14883
14884# The commands to extract the exported symbol list from a shared archive.
14885extract_expsyms_cmds=$lt_extract_expsyms_cmds
14886
14887# Symbols that should not be listed in the preloaded symbols.
14888exclude_expsyms=$lt_exclude_expsyms_F77
14889
14890# Symbols that must always be exported.
14891include_expsyms=$lt_include_expsyms_F77
14892
14893# ### END LIBTOOL TAG CONFIG: $tagname
14894
14895__EOF__
14896
14897
14898else
14899 # If there is no Makefile yet, we rely on a make rule to execute
14900 # `config.status --recheck' to rerun these tests and create the
14901 # libtool script then.
14902 test -f Makefile && make "$ltmain"
14903fi
14904
14905
14906ac_ext=c
14907ac_cpp='$CPP $CPPFLAGS'
14908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14910ac_compiler_gnu=$ac_cv_c_compiler_gnu
14911
14912CC="$lt_save_CC"
14913
14914 else
14915 tagname=""
14916 fi
14917 ;;
14918
14919 GCJ)
14920 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14921
14922
14923
14924# Source file extension for Java test sources.
14925ac_ext=java
14926
14927# Object file extension for compiled Java test sources.
14928objext=o
14929objext_GCJ=$objext
14930
14931# Code to be used in simple compile tests
14932lt_simple_compile_test_code="class foo {}\n"
14933
14934# Code to be used in simple link tests
14935lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14936
14937# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14938
14939# If no C compiler was specified, use CC.
14940LTCC=${LTCC-"$CC"}
14941
14942# Allow CC to be a program name with arguments.
14943compiler=$CC
14944
14945
14946# Allow CC to be a program name with arguments.
14947lt_save_CC="$CC"
14948CC=${GCJ-"gcj"}
14949compiler=$CC
14950compiler_GCJ=$CC
14951
14952# GCJ did not exist at the time GCC didn't implicitly link libc in.
14953archive_cmds_need_lc_GCJ=no
14954
14955## CAVEAT EMPTOR:
14956## There is no encapsulation within the following macros, do not change
14957## the running order or otherwise move them around unless you know exactly
14958## what you are doing...
14959
14960lt_prog_compiler_no_builtin_flag_GCJ=
14961
14962if test "$GCC" = yes; then
14963 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14964
14965 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14966echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14967if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969else
14970 lt_cv_prog_compiler_rtti_exceptions=no
14971 ac_outfile=conftest.$ac_objext
14972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14973 lt_compiler_flag="-fno-rtti -fno-exceptions"
14974 # Insert the option either (1) after the last *FLAGS variable, or
14975 # (2) before a word containing "conftest.", or (3) at the end.
14976 # Note that $ac_compile itself does not contain backslashes and begins
14977 # with a dollar sign (not a hyphen), so the echo should work correctly.
14978 # The option is referenced via a variable to avoid confusing sed.
14979 lt_compile=`echo "$ac_compile" | $SED \
14980 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14982 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +000014983 (eval echo "\"\$as_me:14983: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014984 (eval "$lt_compile" 2>conftest.err)
14985 ac_status=$?
14986 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014987 echo "$as_me:14987: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014988 if (exit $ac_status) && test -s "$ac_outfile"; then
14989 # The compiler can only warn and ignore the option if not recognized
14990 # So say no if there are warnings
14991 if test ! -s conftest.err; then
14992 lt_cv_prog_compiler_rtti_exceptions=yes
14993 fi
14994 fi
14995 $rm conftest*
14996
14997fi
14998echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14999echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15000
15001if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15002 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15003else
15004 :
15005fi
15006
15007fi
15008
15009lt_prog_compiler_wl_GCJ=
15010lt_prog_compiler_pic_GCJ=
15011lt_prog_compiler_static_GCJ=
15012
15013echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15014echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15015
15016 if test "$GCC" = yes; then
15017 lt_prog_compiler_wl_GCJ='-Wl,'
15018 lt_prog_compiler_static_GCJ='-static'
15019
15020 case $host_os in
15021 aix*)
15022 # All AIX code is PIC.
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static_GCJ='-Bstatic'
15026 fi
15027 ;;
15028
15029 amigaos*)
15030 # FIXME: we need at least 68020 code to build shared libraries, but
15031 # adding the `-m68020' flag to GCC prevents building anything better,
15032 # like `-m68040'.
15033 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15034 ;;
15035
15036 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15037 # PIC is the default for these OSes.
15038 ;;
15039
15040 mingw* | pw32* | os2*)
15041 # This hack is so that the source file can tell whether it is being
15042 # built for inclusion in a dll (and should export symbols for example).
15043 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15044 ;;
15045
15046 darwin* | rhapsody*)
15047 # PIC is the default on this platform
15048 # Common symbols not allowed in MH_DYLIB files
15049 lt_prog_compiler_pic_GCJ='-fno-common'
15050 ;;
15051
15052 msdosdjgpp*)
15053 # Just because we use GCC doesn't mean we suddenly get shared libraries
15054 # on systems that don't support them.
15055 lt_prog_compiler_can_build_shared_GCJ=no
15056 enable_shared=no
15057 ;;
15058
15059 sysv4*MP*)
15060 if test -d /usr/nec; then
15061 lt_prog_compiler_pic_GCJ=-Kconform_pic
15062 fi
15063 ;;
15064
15065 hpux*)
15066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15067 # not for PA HP-UX.
15068 case "$host_cpu" in
15069 hppa*64*|ia64*)
15070 # +Z the default
15071 ;;
15072 *)
15073 lt_prog_compiler_pic_GCJ='-fPIC'
15074 ;;
15075 esac
15076 ;;
15077
15078 *)
15079 lt_prog_compiler_pic_GCJ='-fPIC'
15080 ;;
15081 esac
15082 else
15083 # PORTME Check for flag to pass linker flags through the system compiler.
15084 case $host_os in
15085 aix*)
15086 lt_prog_compiler_wl_GCJ='-Wl,'
15087 if test "$host_cpu" = ia64; then
15088 # AIX 5 now supports IA64 processor
15089 lt_prog_compiler_static_GCJ='-Bstatic'
15090 else
15091 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15092 fi
15093 ;;
15094
15095 mingw* | pw32* | os2*)
15096 # This hack is so that the source file can tell whether it is being
15097 # built for inclusion in a dll (and should export symbols for example).
15098 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15099 ;;
15100
15101 hpux9* | hpux10* | hpux11*)
15102 lt_prog_compiler_wl_GCJ='-Wl,'
15103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15104 # not for PA HP-UX.
15105 case "$host_cpu" in
15106 hppa*64*|ia64*)
15107 # +Z the default
15108 ;;
15109 *)
15110 lt_prog_compiler_pic_GCJ='+Z'
15111 ;;
15112 esac
15113 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15114 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15115 ;;
15116
15117 irix5* | irix6* | nonstopux*)
15118 lt_prog_compiler_wl_GCJ='-Wl,'
15119 # PIC (with -KPIC) is the default.
15120 lt_prog_compiler_static_GCJ='-non_shared'
15121 ;;
15122
15123 newsos6)
15124 lt_prog_compiler_pic_GCJ='-KPIC'
15125 lt_prog_compiler_static_GCJ='-Bstatic'
15126 ;;
15127
15128 linux*)
15129 case $CC in
15130 icc|ecc)
15131 lt_prog_compiler_wl_GCJ='-Wl,'
15132 lt_prog_compiler_pic_GCJ='-KPIC'
15133 lt_prog_compiler_static_GCJ='-static'
15134 ;;
15135 ccc)
15136 lt_prog_compiler_wl_GCJ='-Wl,'
15137 # All Alpha code is PIC.
15138 lt_prog_compiler_static_GCJ='-non_shared'
15139 ;;
15140 esac
15141 ;;
15142
15143 osf3* | osf4* | osf5*)
15144 lt_prog_compiler_wl_GCJ='-Wl,'
15145 # All OSF/1 code is PIC.
15146 lt_prog_compiler_static_GCJ='-non_shared'
15147 ;;
15148
15149 sco3.2v5*)
15150 lt_prog_compiler_pic_GCJ='-Kpic'
15151 lt_prog_compiler_static_GCJ='-dn'
15152 ;;
15153
15154 solaris*)
15155 lt_prog_compiler_wl_GCJ='-Wl,'
15156 lt_prog_compiler_pic_GCJ='-KPIC'
15157 lt_prog_compiler_static_GCJ='-Bstatic'
15158 ;;
15159
15160 sunos4*)
15161 lt_prog_compiler_wl_GCJ='-Qoption ld '
15162 lt_prog_compiler_pic_GCJ='-PIC'
15163 lt_prog_compiler_static_GCJ='-Bstatic'
15164 ;;
15165
15166 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15167 lt_prog_compiler_wl_GCJ='-Wl,'
15168 lt_prog_compiler_pic_GCJ='-KPIC'
15169 lt_prog_compiler_static_GCJ='-Bstatic'
15170 ;;
15171
15172 sysv4*MP*)
15173 if test -d /usr/nec ;then
15174 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15175 lt_prog_compiler_static_GCJ='-Bstatic'
15176 fi
15177 ;;
15178
15179 uts4*)
15180 lt_prog_compiler_pic_GCJ='-pic'
15181 lt_prog_compiler_static_GCJ='-Bstatic'
15182 ;;
15183
15184 *)
15185 lt_prog_compiler_can_build_shared_GCJ=no
15186 ;;
15187 esac
15188 fi
15189
15190echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15191echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15192
15193#
15194# Check to make sure the PIC flag actually works.
15195#
15196if test -n "$lt_prog_compiler_pic_GCJ"; then
15197 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15198echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15199if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201else
15202 lt_prog_compiler_pic_works_GCJ=no
15203 ac_outfile=conftest.$ac_objext
15204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15205 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15206 # Insert the option either (1) after the last *FLAGS variable, or
15207 # (2) before a word containing "conftest.", or (3) at the end.
15208 # Note that $ac_compile itself does not contain backslashes and begins
15209 # with a dollar sign (not a hyphen), so the echo should work correctly.
15210 # The option is referenced via a variable to avoid confusing sed.
15211 lt_compile=`echo "$ac_compile" | $SED \
15212 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +000015215 (eval echo "\"\$as_me:15215: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015216 (eval "$lt_compile" 2>conftest.err)
15217 ac_status=$?
15218 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015219 echo "$as_me:15219: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015220 if (exit $ac_status) && test -s "$ac_outfile"; then
15221 # The compiler can only warn and ignore the option if not recognized
15222 # So say no if there are warnings
15223 if test ! -s conftest.err; then
15224 lt_prog_compiler_pic_works_GCJ=yes
15225 fi
15226 fi
15227 $rm conftest*
15228
15229fi
15230echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15231echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15232
15233if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15234 case $lt_prog_compiler_pic_GCJ in
15235 "" | " "*) ;;
15236 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15237 esac
15238else
15239 lt_prog_compiler_pic_GCJ=
15240 lt_prog_compiler_can_build_shared_GCJ=no
15241fi
15242
15243fi
15244case "$host_os" in
15245 # For platforms which do not support PIC, -DPIC is meaningless:
15246 *djgpp*)
15247 lt_prog_compiler_pic_GCJ=
15248 ;;
15249 *)
15250 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15251 ;;
15252esac
15253
15254echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15255echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15256if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258else
15259 lt_cv_prog_compiler_c_o_GCJ=no
15260 $rm -r conftest 2>/dev/null
15261 mkdir conftest
15262 cd conftest
15263 mkdir out
15264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15265
15266 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15267 # that will create temporary files in the current directory regardless of
15268 # the output directory. Thus, making CWD read-only will cause this test
15269 # to fail, enabling locking or at least warning the user not to do parallel
15270 # builds.
15271 chmod -w .
15272
15273 lt_compiler_flag="-o out/conftest2.$ac_objext"
15274 # Insert the option either (1) after the last *FLAGS variable, or
15275 # (2) before a word containing "conftest.", or (3) at the end.
15276 # Note that $ac_compile itself does not contain backslashes and begins
15277 # with a dollar sign (not a hyphen), so the echo should work correctly.
15278 lt_compile=`echo "$ac_compile" | $SED \
15279 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15281 -e 's:$: $lt_compiler_flag:'`
John Criswell0c38eaf2003-09-10 15:17:25 +000015282 (eval echo "\"\$as_me:15282: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015283 (eval "$lt_compile" 2>out/conftest.err)
15284 ac_status=$?
15285 cat out/conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015286 echo "$as_me:15286: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15288 then
15289 # The compiler can only warn and ignore the option if not recognized
15290 # So say no if there are warnings
15291 if test ! -s out/conftest.err; then
15292 lt_cv_prog_compiler_c_o_GCJ=yes
15293 fi
15294 fi
15295 chmod u+w .
15296 $rm conftest* out/*
15297 rmdir out
15298 cd ..
15299 rmdir conftest
15300 $rm conftest*
15301
15302fi
15303echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15304echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15305
15306
15307hard_links="nottested"
15308if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15309 # do not overwrite the value of need_locks provided by the user
15310 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15311echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15312 hard_links=yes
15313 $rm conftest*
15314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15315 touch conftest.a
15316 ln conftest.a conftest.b 2>&5 || hard_links=no
15317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15318 echo "$as_me:$LINENO: result: $hard_links" >&5
15319echo "${ECHO_T}$hard_links" >&6
15320 if test "$hard_links" = no; then
15321 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15322echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15323 need_locks=warn
15324 fi
15325else
15326 need_locks=no
15327fi
15328
15329echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15330echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15331
15332 runpath_var=
15333 allow_undefined_flag_GCJ=
15334 enable_shared_with_static_runtimes_GCJ=no
15335 archive_cmds_GCJ=
15336 archive_expsym_cmds_GCJ=
15337 old_archive_From_new_cmds_GCJ=
15338 old_archive_from_expsyms_cmds_GCJ=
15339 export_dynamic_flag_spec_GCJ=
15340 whole_archive_flag_spec_GCJ=
15341 thread_safe_flag_spec_GCJ=
15342 hardcode_libdir_flag_spec_GCJ=
15343 hardcode_libdir_flag_spec_ld_GCJ=
15344 hardcode_libdir_separator_GCJ=
15345 hardcode_direct_GCJ=no
15346 hardcode_minus_L_GCJ=no
15347 hardcode_shlibpath_var_GCJ=unsupported
15348 link_all_deplibs_GCJ=unknown
15349 hardcode_automatic_GCJ=no
15350 module_cmds_GCJ=
15351 module_expsym_cmds_GCJ=
15352 always_export_symbols_GCJ=no
15353 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15354 # include_expsyms should be a list of space-separated symbols to be *always*
15355 # included in the symbol list
15356 include_expsyms_GCJ=
15357 # exclude_expsyms can be an extended regexp of symbols to exclude
15358 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15359 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15360 # as well as any symbol that contains `d'.
15361 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15362 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15363 # platforms (ab)use it in PIC code, but their linkers get confused if
15364 # the symbol is explicitly referenced. Since portable code cannot
15365 # rely on this symbol name, it's probably fine to never include it in
15366 # preloaded symbol tables.
15367 extract_expsyms_cmds=
15368
15369 case $host_os in
15370 cygwin* | mingw* | pw32*)
15371 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15372 # When not using gcc, we currently assume that we are using
15373 # Microsoft Visual C++.
15374 if test "$GCC" != yes; then
15375 with_gnu_ld=no
15376 fi
15377 ;;
15378 openbsd*)
15379 with_gnu_ld=no
15380 ;;
15381 esac
15382
15383 ld_shlibs_GCJ=yes
15384 if test "$with_gnu_ld" = yes; then
15385 # If archive_cmds runs LD, not CC, wlarc should be empty
15386 wlarc='${wl}'
15387
15388 # See if GNU ld supports shared libraries.
15389 case $host_os in
15390 aix3* | aix4* | aix5*)
15391 # On AIX/PPC, the GNU linker is very broken
15392 if test "$host_cpu" != ia64; then
15393 ld_shlibs_GCJ=no
15394 cat <<EOF 1>&2
15395
15396*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15397*** to be unable to reliably create shared libraries on AIX.
15398*** Therefore, libtool is disabling shared libraries support. If you
15399*** really care for shared libraries, you may want to modify your PATH
15400*** so that a non-GNU linker is found, and then restart.
15401
15402EOF
15403 fi
15404 ;;
15405
15406 amigaos*)
15407 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)'
15408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15409 hardcode_minus_L_GCJ=yes
15410
15411 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15412 # that the semantics of dynamic libraries on AmigaOS, at least up
15413 # to version 4, is to share data among multiple programs linked
15414 # with the same dynamic library. Since this doesn't match the
15415 # behavior of shared libraries on other platforms, we can't use
15416 # them.
15417 ld_shlibs_GCJ=no
15418 ;;
15419
15420 beos*)
15421 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15422 allow_undefined_flag_GCJ=unsupported
15423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15424 # support --undefined. This deserves some investigation. FIXME
15425 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426 else
15427 ld_shlibs_GCJ=no
15428 fi
15429 ;;
15430
15431 cygwin* | mingw* | pw32*)
15432 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15433 # as there is no search path for DLLs.
15434 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15435 allow_undefined_flag_GCJ=unsupported
15436 always_export_symbols_GCJ=no
15437 enable_shared_with_static_runtimes_GCJ=yes
15438 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15439
15440 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15441 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15442 # If the export-symbols file already is a .def file (1st line
15443 # is EXPORTS), use it as is; otherwise, prepend...
15444 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15445 cp $export_symbols $output_objdir/$soname.def;
15446 else
15447 echo EXPORTS > $output_objdir/$soname.def;
15448 cat $export_symbols >> $output_objdir/$soname.def;
15449 fi~
15450 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15451 else
15452 ld_shlibs=no
15453 fi
15454 ;;
15455
15456 netbsd*)
15457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15458 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15459 wlarc=
15460 else
15461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15463 fi
15464 ;;
15465
15466 solaris* | sysv5*)
15467 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15468 ld_shlibs_GCJ=no
15469 cat <<EOF 1>&2
15470
15471*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15472*** create shared libraries on Solaris systems. Therefore, libtool
15473*** is disabling shared libraries support. We urge you to upgrade GNU
15474*** binutils to release 2.9.1 or newer. Another option is to modify
15475*** your PATH or compiler configuration so that the native linker is
15476*** used, and then restart.
15477
15478EOF
15479 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15482 else
15483 ld_shlibs_GCJ=no
15484 fi
15485 ;;
15486
15487 sunos4*)
15488 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15489 wlarc=
15490 hardcode_direct_GCJ=yes
15491 hardcode_shlibpath_var_GCJ=no
15492 ;;
15493
15494 *)
15495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15498 else
15499 ld_shlibs_GCJ=no
15500 fi
15501 ;;
15502 esac
15503
15504 if test "$ld_shlibs_GCJ" = yes; then
15505 runpath_var=LD_RUN_PATH
15506 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15507 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15508 # ancient GNU ld didn't support --whole-archive et. al.
15509 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15510 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15511 else
15512 whole_archive_flag_spec_GCJ=
15513 fi
15514 fi
15515 else
15516 # PORTME fill in a description of your system's linker (not GNU ld)
15517 case $host_os in
15518 aix3*)
15519 allow_undefined_flag_GCJ=unsupported
15520 always_export_symbols_GCJ=yes
15521 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'
15522 # Note: this linker hardcodes the directories in LIBPATH if there
15523 # are no directories specified by -L.
15524 hardcode_minus_L_GCJ=yes
15525 if test "$GCC" = yes && test -z "$link_static_flag"; then
15526 # Neither direct hardcoding nor static linking is supported with a
15527 # broken collect2.
15528 hardcode_direct_GCJ=unsupported
15529 fi
15530 ;;
15531
15532 aix4* | aix5*)
15533 if test "$host_cpu" = ia64; then
15534 # On IA64, the linker does run time linking by default, so we don't
15535 # have to do anything special.
15536 aix_use_runtimelinking=no
15537 exp_sym_flag='-Bexport'
15538 no_entry_flag=""
15539 else
15540 # If we're using GNU nm, then we don't want the "-C" option.
15541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15543 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'
15544 else
15545 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'
15546 fi
15547 aix_use_runtimelinking=no
15548
15549 # Test if we are trying to use run time linking or normal
15550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15551 # need to do runtime linking.
15552 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15553 for ld_flag in $LDFLAGS; do
15554 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15555 aix_use_runtimelinking=yes
15556 break
15557 fi
15558 done
15559 esac
15560
15561 exp_sym_flag='-bexport'
15562 no_entry_flag='-bnoentry'
15563 fi
15564
15565 # When large executables or shared objects are built, AIX ld can
15566 # have problems creating the table of contents. If linking a library
15567 # or program results in "error TOC overflow" add -mminimal-toc to
15568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15570
15571 archive_cmds_GCJ=''
15572 hardcode_direct_GCJ=yes
15573 hardcode_libdir_separator_GCJ=':'
15574 link_all_deplibs_GCJ=yes
15575
15576 if test "$GCC" = yes; then
15577 case $host_os in aix4.012|aix4.012.*)
15578 # We only want to do this on AIX 4.2 and lower, the check
15579 # below for broken collect2 doesn't work under 4.3+
15580 collect2name=`${CC} -print-prog-name=collect2`
15581 if test -f "$collect2name" && \
15582 strings "$collect2name" | grep resolve_lib_name >/dev/null
15583 then
15584 # We have reworked collect2
15585 hardcode_direct_GCJ=yes
15586 else
15587 # We have old collect2
15588 hardcode_direct_GCJ=unsupported
15589 # It fails to find uninstalled libraries when the uninstalled
15590 # path is not listed in the libpath. Setting hardcode_minus_L
15591 # to unsupported forces relinking
15592 hardcode_minus_L_GCJ=yes
15593 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15594 hardcode_libdir_separator_GCJ=
15595 fi
15596 esac
15597 shared_flag='-shared'
15598 else
15599 # not using gcc
15600 if test "$host_cpu" = ia64; then
15601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15602 # chokes on -Wl,-G. The following line is correct:
15603 shared_flag='-G'
15604 else
15605 if test "$aix_use_runtimelinking" = yes; then
15606 shared_flag='${wl}-G'
15607 else
15608 shared_flag='${wl}-bM:SRE'
15609 fi
15610 fi
15611 fi
15612
15613 # It seems that -bexpall does not export symbols beginning with
15614 # underscore (_), so it is better to generate a list of symbols to export.
15615 always_export_symbols_GCJ=yes
15616 if test "$aix_use_runtimelinking" = yes; then
15617 # Warning - without using the other runtime loading flags (-brtl),
15618 # -berok will link without error, but may produce a broken library.
15619 allow_undefined_flag_GCJ='-berok'
15620 # Determine the default libpath from the value encoded in an empty executable.
15621 cat >conftest.$ac_ext <<_ACEOF
15622#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015623/* confdefs.h. */
15624_ACEOF
15625cat confdefs.h >>conftest.$ac_ext
15626cat >>conftest.$ac_ext <<_ACEOF
15627/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015628
John Criswell47fdd832003-07-14 16:52:07 +000015629int
15630main ()
15631{
15632
15633 ;
15634 return 0;
15635}
15636_ACEOF
15637rm -f conftest.$ac_objext conftest$ac_exeext
15638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15639 (eval $ac_link) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -s conftest$ac_exeext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649
15650aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15651}'`
15652# Check for a 64-bit object if we didn't find anything.
15653if 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; }
15654}'`; fi
15655else
15656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015657sed 's/^/| /' conftest.$ac_ext >&5
15658
John Criswell47fdd832003-07-14 16:52:07 +000015659fi
15660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15661if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15662
15663 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15664 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"
15665 else
15666 if test "$host_cpu" = ia64; then
15667 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15668 allow_undefined_flag_GCJ="-z nodefs"
15669 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"
15670 else
15671 # Determine the default libpath from the value encoded in an empty executable.
15672 cat >conftest.$ac_ext <<_ACEOF
15673#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015674/* confdefs.h. */
15675_ACEOF
15676cat confdefs.h >>conftest.$ac_ext
15677cat >>conftest.$ac_ext <<_ACEOF
15678/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015679
John Criswell47fdd832003-07-14 16:52:07 +000015680int
15681main ()
15682{
15683
15684 ;
15685 return 0;
15686}
15687_ACEOF
15688rm -f conftest.$ac_objext conftest$ac_exeext
15689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15690 (eval $ac_link) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -s conftest$ac_exeext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700
15701aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15702}'`
15703# Check for a 64-bit object if we didn't find anything.
15704if 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; }
15705}'`; fi
15706else
15707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015708sed 's/^/| /' conftest.$ac_ext >&5
15709
John Criswell47fdd832003-07-14 16:52:07 +000015710fi
15711rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15712if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15713
15714 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15715 # Warning - without using the other run time loading flags,
15716 # -berok will link without error, but may produce a broken library.
15717 no_undefined_flag_GCJ=' ${wl}-bernotok'
15718 allow_undefined_flag_GCJ=' ${wl}-berok'
15719 # -bexpall does not export symbols beginning with underscore (_)
15720 always_export_symbols_GCJ=yes
15721 # Exported symbols can be pulled into shared objects from archives
15722 whole_archive_flag_spec_GCJ=' '
15723 archive_cmds_need_lc_GCJ=yes
15724 # This is similar to how AIX traditionally builds it's shared libraries.
15725 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'
15726 fi
15727 fi
15728 ;;
15729
15730 amigaos*)
15731 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)'
15732 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15733 hardcode_minus_L_GCJ=yes
15734 # see comment about different semantics on the GNU ld section
15735 ld_shlibs_GCJ=no
15736 ;;
15737
15738 bsdi4*)
15739 export_dynamic_flag_spec_GCJ=-rdynamic
15740 ;;
15741
15742 cygwin* | mingw* | pw32*)
15743 # When not using gcc, we currently assume that we are using
15744 # Microsoft Visual C++.
15745 # hardcode_libdir_flag_spec is actually meaningless, as there is
15746 # no search path for DLLs.
15747 hardcode_libdir_flag_spec_GCJ=' '
15748 allow_undefined_flag_GCJ=unsupported
15749 # Tell ltmain to make .lib files, not .a files.
15750 libext=lib
15751 # Tell ltmain to make .dll files, not .so files.
15752 shrext=".dll"
15753 # FIXME: Setting linknames here is a bad hack.
15754 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15755 # The linker will automatically build a .lib file if we build a DLL.
15756 old_archive_From_new_cmds_GCJ='true'
15757 # FIXME: Should let the user specify the lib program.
15758 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15759 fix_srcfile_path='`cygpath -w "$srcfile"`'
15760 enable_shared_with_static_runtimes_GCJ=yes
15761 ;;
15762
15763 darwin* | rhapsody*)
15764 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15765 archive_cmds_need_lc_GCJ=no
15766 case "$host_os" in
15767 rhapsody* | darwin1.[012])
15768 allow_undefined_flag_GCJ='-undefined suppress'
15769 ;;
15770 *) # Darwin 1.3 on
15771 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15772 ;;
15773 esac
15774 # FIXME: Relying on posixy $() will cause problems for
15775 # cross-compilation, but unfortunately the echo tests do not
15776 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15777 # `"' quotes if we put them in here... so don't!
15778 lt_int_apple_cc_single_mod=no
15779 output_verbose_link_cmd='echo'
15780 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15781 lt_int_apple_cc_single_mod=yes
15782 fi
15783 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15784 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15785 else
15786 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'
15787 fi
15788 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15789 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15790 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15791 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}'
15792 else
15793 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}'
15794 fi
15795 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}'
15796 hardcode_direct_GCJ=no
15797 hardcode_automatic_GCJ=yes
15798 hardcode_shlibpath_var_GCJ=unsupported
15799 whole_archive_flag_spec_GCJ='-all_load $convenience'
15800 link_all_deplibs_GCJ=yes
15801 fi
15802 ;;
15803
15804 dgux*)
15805 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15807 hardcode_shlibpath_var_GCJ=no
15808 ;;
15809
15810 freebsd1*)
15811 ld_shlibs_GCJ=no
15812 ;;
15813
15814 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15815 # support. Future versions do this automatically, but an explicit c++rt0.o
15816 # does not break anything, and helps significantly (at the cost of a little
15817 # extra space).
15818 freebsd2.2*)
15819 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15820 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15821 hardcode_direct_GCJ=yes
15822 hardcode_shlibpath_var_GCJ=no
15823 ;;
15824
15825 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15826 freebsd2*)
15827 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15828 hardcode_direct_GCJ=yes
15829 hardcode_minus_L_GCJ=yes
15830 hardcode_shlibpath_var_GCJ=no
15831 ;;
15832
15833 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15834 freebsd*)
15835 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15836 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15837 hardcode_direct_GCJ=yes
15838 hardcode_shlibpath_var_GCJ=no
15839 ;;
15840
15841 hpux9*)
15842 if test "$GCC" = yes; then
15843 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'
15844 else
15845 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'
15846 fi
15847 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15848 hardcode_libdir_separator_GCJ=:
15849 hardcode_direct_GCJ=yes
15850
15851 # hardcode_minus_L: Not really in the search PATH,
15852 # but as the default location of the library.
15853 hardcode_minus_L_GCJ=yes
15854 export_dynamic_flag_spec_GCJ='${wl}-E'
15855 ;;
15856
15857 hpux10* | hpux11*)
15858 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15859 case "$host_cpu" in
15860 hppa*64*|ia64*)
15861 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 ;;
15863 *)
15864 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15865 ;;
15866 esac
15867 else
15868 case "$host_cpu" in
15869 hppa*64*|ia64*)
15870 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15871 ;;
15872 *)
15873 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15874 ;;
15875 esac
15876 fi
15877 if test "$with_gnu_ld" = no; then
15878 case "$host_cpu" in
15879 hppa*64*)
15880 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15881 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15882 hardcode_libdir_separator_GCJ=:
15883 hardcode_direct_GCJ=no
15884 hardcode_shlibpath_var_GCJ=no
15885 ;;
15886 ia64*)
15887 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15888 hardcode_direct_GCJ=no
15889 hardcode_shlibpath_var_GCJ=no
15890
15891 # hardcode_minus_L: Not really in the search PATH,
15892 # but as the default location of the library.
15893 hardcode_minus_L_GCJ=yes
15894 ;;
15895 *)
15896 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15897 hardcode_libdir_separator_GCJ=:
15898 hardcode_direct_GCJ=yes
15899 export_dynamic_flag_spec_GCJ='${wl}-E'
15900
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L_GCJ=yes
15904 ;;
15905 esac
15906 fi
15907 ;;
15908
15909 irix5* | irix6* | nonstopux*)
15910 if test "$GCC" = yes; then
15911 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'
15912 else
15913 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'
15914 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15915 fi
15916 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15917 hardcode_libdir_separator_GCJ=:
15918 link_all_deplibs_GCJ=yes
15919 ;;
15920
15921 netbsd*)
15922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15923 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15924 else
15925 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15926 fi
15927 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15928 hardcode_direct_GCJ=yes
15929 hardcode_shlibpath_var_GCJ=no
15930 ;;
15931
15932 newsos6)
15933 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_direct_GCJ=yes
15935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15936 hardcode_libdir_separator_GCJ=:
15937 hardcode_shlibpath_var_GCJ=no
15938 ;;
15939
15940 openbsd*)
15941 hardcode_direct_GCJ=yes
15942 hardcode_shlibpath_var_GCJ=no
15943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15944 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15946 export_dynamic_flag_spec_GCJ='${wl}-E'
15947 else
15948 case $host_os in
15949 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15951 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15952 ;;
15953 *)
15954 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15956 ;;
15957 esac
15958 fi
15959 ;;
15960
15961 os2*)
15962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15963 hardcode_minus_L_GCJ=yes
15964 allow_undefined_flag_GCJ=unsupported
15965 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'
15966 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15967 ;;
15968
15969 osf3*)
15970 if test "$GCC" = yes; then
15971 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15972 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'
15973 else
15974 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15975 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'
15976 fi
15977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15978 hardcode_libdir_separator_GCJ=:
15979 ;;
15980
15981 osf4* | osf5*) # as osf3* with the addition of -msym flag
15982 if test "$GCC" = yes; then
15983 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15984 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'
15985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15986 else
15987 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15988 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'
15989 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~
15990 $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'
15991
15992 # Both c and cxx compiler support -rpath directly
15993 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15994 fi
15995 hardcode_libdir_separator_GCJ=:
15996 ;;
15997
15998 sco3.2v5*)
15999 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16000 hardcode_shlibpath_var_GCJ=no
16001 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16002 runpath_var=LD_RUN_PATH
16003 hardcode_runpath_var=yes
16004 ;;
16005
16006 solaris*)
16007 no_undefined_flag_GCJ=' -z text'
16008 if test "$GCC" = yes; then
16009 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16011 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16012 else
16013 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16014 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16016 fi
16017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16018 hardcode_shlibpath_var_GCJ=no
16019 case $host_os in
16020 solaris2.[0-5] | solaris2.[0-5].*) ;;
16021 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16022 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16023 esac
16024 link_all_deplibs_GCJ=yes
16025 ;;
16026
16027 sunos4*)
16028 if test "x$host_vendor" = xsequent; then
16029 # Use $CC to link under sequent, because it throws in some extra .o
16030 # files that make .init and .fini sections work.
16031 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16032 else
16033 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16034 fi
16035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16036 hardcode_direct_GCJ=yes
16037 hardcode_minus_L_GCJ=yes
16038 hardcode_shlibpath_var_GCJ=no
16039 ;;
16040
16041 sysv4)
16042 case $host_vendor in
16043 sni)
16044 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16045 hardcode_direct_GCJ=yes # is this really true???
16046 ;;
16047 siemens)
16048 ## LD is ld it makes a PLAMLIB
16049 ## CC just makes a GrossModule.
16050 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16051 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16052 hardcode_direct_GCJ=no
16053 ;;
16054 motorola)
16055 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16057 ;;
16058 esac
16059 runpath_var='LD_RUN_PATH'
16060 hardcode_shlibpath_var_GCJ=no
16061 ;;
16062
16063 sysv4.3*)
16064 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_shlibpath_var_GCJ=no
16066 export_dynamic_flag_spec_GCJ='-Bexport'
16067 ;;
16068
16069 sysv4*MP*)
16070 if test -d /usr/nec; then
16071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16072 hardcode_shlibpath_var_GCJ=no
16073 runpath_var=LD_RUN_PATH
16074 hardcode_runpath_var=yes
16075 ld_shlibs_GCJ=yes
16076 fi
16077 ;;
16078
16079 sysv4.2uw2*)
16080 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16081 hardcode_direct_GCJ=yes
16082 hardcode_minus_L_GCJ=no
16083 hardcode_shlibpath_var_GCJ=no
16084 hardcode_runpath_var=yes
16085 runpath_var=LD_RUN_PATH
16086 ;;
16087
16088 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16089 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16090 if test "$GCC" = yes; then
16091 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16092 else
16093 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16094 fi
16095 runpath_var='LD_RUN_PATH'
16096 hardcode_shlibpath_var_GCJ=no
16097 ;;
16098
16099 sysv5*)
16100 no_undefined_flag_GCJ=' -z text'
16101 # $CC -shared without GNU ld will not create a library from C++
16102 # object files and a static libstdc++, better avoid it by now
16103 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16104 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16105 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16106 hardcode_libdir_flag_spec_GCJ=
16107 hardcode_shlibpath_var_GCJ=no
16108 runpath_var='LD_RUN_PATH'
16109 ;;
16110
16111 uts4*)
16112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16114 hardcode_shlibpath_var_GCJ=no
16115 ;;
16116
16117 *)
16118 ld_shlibs_GCJ=no
16119 ;;
16120 esac
16121 fi
16122
16123echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16124echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16125test "$ld_shlibs_GCJ" = no && can_build_shared=no
16126
16127variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16128if test "$GCC" = yes; then
16129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16130fi
16131
16132#
16133# Do we need to explicitly link libc?
16134#
16135case "x$archive_cmds_need_lc_GCJ" in
16136x|xyes)
16137 # Assume -lc should be added
16138 archive_cmds_need_lc_GCJ=yes
16139
16140 if test "$enable_shared" = yes && test "$GCC" = yes; then
16141 case $archive_cmds_GCJ in
16142 *'~'*)
16143 # FIXME: we may have to deal with multi-command sequences.
16144 ;;
16145 '$CC '*)
16146 # Test whether the compiler implicitly links with -lc since on some
16147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16148 # to ld, don't add -lc before -lgcc.
16149 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16150echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16151 $rm conftest*
16152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16153
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155 (eval $ac_compile) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } 2>conftest.err; then
16159 soname=conftest
16160 lib=conftest
16161 libobjs=conftest.$ac_objext
16162 deplibs=
16163 wl=$lt_prog_compiler_wl_GCJ
16164 compiler_flags=-v
16165 linker_flags=-v
16166 verstring=
16167 output_objdir=.
16168 libname=conftest
16169 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16170 allow_undefined_flag_GCJ=
16171 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16172 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }
16176 then
16177 archive_cmds_need_lc_GCJ=no
16178 else
16179 archive_cmds_need_lc_GCJ=yes
16180 fi
16181 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16182 else
16183 cat conftest.err 1>&5
16184 fi
16185 $rm conftest*
16186 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16187echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16188 ;;
16189 esac
16190 fi
16191 ;;
16192esac
16193
16194echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16195echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16196hardcode_action_GCJ=
16197if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16198 test -n "$runpath_var GCJ" || \
16199 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16200
16201 # We can hardcode non-existant directories.
16202 if test "$hardcode_direct_GCJ" != no &&
16203 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16204 # have to relink, otherwise we might link with an installed library
16205 # when we should be linking with a yet-to-be-installed one
16206 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16207 test "$hardcode_minus_L_GCJ" != no; then
16208 # Linking always hardcodes the temporary library directory.
16209 hardcode_action_GCJ=relink
16210 else
16211 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16212 hardcode_action_GCJ=immediate
16213 fi
16214else
16215 # We cannot hardcode anything, or else we can only hardcode existing
16216 # directories.
16217 hardcode_action_GCJ=unsupported
16218fi
16219echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16220echo "${ECHO_T}$hardcode_action_GCJ" >&6
16221
16222if test "$hardcode_action_GCJ" = relink; then
16223 # Fast installation is not supported
16224 enable_fast_install=no
16225elif test "$shlibpath_overrides_runpath" = yes ||
16226 test "$enable_shared" = no; then
16227 # Fast installation is not necessary
16228 enable_fast_install=needless
16229fi
16230
16231striplib=
16232old_striplib=
16233echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16234echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16235if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16236 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16237 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16238 echo "$as_me:$LINENO: result: yes" >&5
16239echo "${ECHO_T}yes" >&6
16240else
16241# FIXME - insert some real tests, host_os isn't really good enough
16242 case $host_os in
16243 darwin*)
16244 if test -n "$STRIP" ; then
16245 striplib="$STRIP -x"
16246 echo "$as_me:$LINENO: result: yes" >&5
16247echo "${ECHO_T}yes" >&6
16248 else
16249 echo "$as_me:$LINENO: result: no" >&5
16250echo "${ECHO_T}no" >&6
16251fi
16252 ;;
16253 *)
16254 echo "$as_me:$LINENO: result: no" >&5
16255echo "${ECHO_T}no" >&6
16256 ;;
16257 esac
16258fi
16259
16260echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16261echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16262library_names_spec=
16263libname_spec='lib$name'
16264soname_spec=
16265shrext=".so"
16266postinstall_cmds=
16267postuninstall_cmds=
16268finish_cmds=
16269finish_eval=
16270shlibpath_var=
16271shlibpath_overrides_runpath=unknown
16272version_type=none
16273dynamic_linker="$host_os ld.so"
16274sys_lib_dlsearch_path_spec="/lib /usr/lib"
16275if test "$GCC" = yes; then
16276 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16277 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16278 # if the path contains ";" then we assume it to be the separator
16279 # otherwise default to the standard path separator (i.e. ":") - it is
16280 # assumed that no part of a normal pathname contains ";" but that should
16281 # okay in the real world where ";" in dirpaths is itself problematic.
16282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16283 else
16284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16285 fi
16286else
16287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16288fi
16289need_lib_prefix=unknown
16290hardcode_into_libs=no
16291
16292# when you set need_version to no, make sure it does not cause -set_version
16293# flags to be left without arguments
16294need_version=unknown
16295
16296case $host_os in
16297aix3*)
16298 version_type=linux
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16300 shlibpath_var=LIBPATH
16301
16302 # AIX 3 has no versioning support, so we append a major version to the name.
16303 soname_spec='${libname}${release}${shared_ext}$major'
16304 ;;
16305
16306aix4* | aix5*)
16307 version_type=linux
16308 need_lib_prefix=no
16309 need_version=no
16310 hardcode_into_libs=yes
16311 if test "$host_cpu" = ia64; then
16312 # AIX 5 supports IA64
16313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 else
16316 # With GCC up to 2.95.x, collect2 would create an import file
16317 # for dependence libraries. The import file would start with
16318 # the line `#! .'. This would cause the generated library to
16319 # depend on `.', always an invalid library. This was fixed in
16320 # development snapshots of GCC prior to 3.0.
16321 case $host_os in
16322 aix4 | aix4.[01] | aix4.[01].*)
16323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16324 echo ' yes '
16325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16326 :
16327 else
16328 can_build_shared=no
16329 fi
16330 ;;
16331 esac
16332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16333 # soname into executable. Probably we can add versioning support to
16334 # collect2, so additional links can be useful in future.
16335 if test "$aix_use_runtimelinking" = yes; then
16336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16337 # instead of lib<name>.a to let people know that these are not
16338 # typical AIX shared libraries.
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340 else
16341 # We preserve .a as extension for shared libraries through AIX4.2
16342 # and later when we are not doing run time linking.
16343 library_names_spec='${libname}${release}.a $libname.a'
16344 soname_spec='${libname}${release}${shared_ext}$major'
16345 fi
16346 shlibpath_var=LIBPATH
16347 fi
16348 ;;
16349
16350amigaos*)
16351 library_names_spec='$libname.ixlibrary $libname.a'
16352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16353 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'
16354 ;;
16355
16356beos*)
16357 library_names_spec='${libname}${shared_ext}'
16358 dynamic_linker="$host_os ld.so"
16359 shlibpath_var=LIBRARY_PATH
16360 ;;
16361
16362bsdi4*)
16363 version_type=linux
16364 need_version=no
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16371 # the default ld.so.conf also contains /usr/contrib/lib and
16372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16373 # libtool to hard-code these into programs
16374 ;;
16375
16376cygwin* | mingw* | pw32*)
16377 version_type=windows
16378 shrext=".dll"
16379 need_version=no
16380 need_lib_prefix=no
16381
16382 case $GCC,$host_os in
16383 yes,cygwin* | yes,mingw* | yes,pw32*)
16384 library_names_spec='$libname.dll.a'
16385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16386 postinstall_cmds='base_file=`basename \${file}`~
16387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16388 dldir=$destdir/`dirname \$dlpath`~
16389 test -d \$dldir || mkdir -p \$dldir~
16390 $install_prog $dir/$dlname \$dldir/$dlname'
16391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16392 dlpath=$dir/\$dldll~
16393 $rm \$dlpath'
16394 shlibpath_overrides_runpath=yes
16395
16396 case $host_os in
16397 cygwin*)
16398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16400 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16401 ;;
16402 mingw*)
16403 # MinGW DLLs use traditional 'lib' prefix
16404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16405 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16406 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16407 # It is most probably a Windows format PATH printed by
16408 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16409 # path with ; separators, and with drive letters. We can handle the
16410 # drive letters (cygwin fileutils understands them), so leave them,
16411 # especially as we might pass files found there to a mingw objdump,
16412 # which wouldn't understand a cygwinified path. Ahh.
16413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16414 else
16415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16416 fi
16417 ;;
16418 pw32*)
16419 # pw32 DLLs use 'pw' prefix rather than 'lib'
16420 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16421 ;;
16422 esac
16423 ;;
16424
16425 *)
16426 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16427 ;;
16428 esac
16429 dynamic_linker='Win32 ld.exe'
16430 # FIXME: first we should search . and the directory the executable is in
16431 shlibpath_var=PATH
16432 ;;
16433
16434darwin* | rhapsody*)
16435 dynamic_linker="$host_os dyld"
16436 version_type=darwin
16437 need_lib_prefix=no
16438 need_version=no
16439 # FIXME: Relying on posixy $() will cause problems for
16440 # cross-compilation, but unfortunately the echo tests do not
16441 # yet detect zsh echo's removal of \ escapes.
16442 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16443 soname_spec='${libname}${release}${major}$shared_ext'
16444 shlibpath_overrides_runpath=yes
16445 shlibpath_var=DYLD_LIBRARY_PATH
16446 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16447 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16448 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16449 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"`
16450 fi
16451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16452 ;;
16453
16454dgux*)
16455 version_type=linux
16456 need_lib_prefix=no
16457 need_version=no
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 ;;
16462
16463freebsd1*)
16464 dynamic_linker=no
16465 ;;
16466
16467freebsd*)
16468 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16469 version_type=freebsd-$objformat
16470 case $version_type in
16471 freebsd-elf*)
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16473 need_version=no
16474 need_lib_prefix=no
16475 ;;
16476 freebsd-*)
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16478 need_version=yes
16479 ;;
16480 esac
16481 shlibpath_var=LD_LIBRARY_PATH
16482 case $host_os in
16483 freebsd2*)
16484 shlibpath_overrides_runpath=yes
16485 ;;
16486 freebsd3.01* | freebsdelf3.01*)
16487 shlibpath_overrides_runpath=yes
16488 hardcode_into_libs=yes
16489 ;;
16490 *) # from 3.2 on
16491 shlibpath_overrides_runpath=no
16492 hardcode_into_libs=yes
16493 ;;
16494 esac
16495 ;;
16496
16497gnu*)
16498 version_type=linux
16499 need_lib_prefix=no
16500 need_version=no
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 hardcode_into_libs=yes
16505 ;;
16506
16507hpux9* | hpux10* | hpux11*)
16508 # Give a soname corresponding to the major version so that dld.sl refuses to
16509 # link against other versions.
16510 version_type=sunos
16511 need_lib_prefix=no
16512 need_version=no
16513 case "$host_cpu" in
16514 ia64*)
16515 shrext='.so'
16516 hardcode_into_libs=yes
16517 dynamic_linker="$host_os dld.so"
16518 shlibpath_var=LD_LIBRARY_PATH
16519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 if test "X$HPUX_IA64_MODE" = X32; then
16523 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16524 else
16525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16526 fi
16527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16528 ;;
16529 hppa*64*)
16530 shrext='.sl'
16531 hardcode_into_libs=yes
16532 dynamic_linker="$host_os dld.sl"
16533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536 soname_spec='${libname}${release}${shared_ext}$major'
16537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16539 ;;
16540 *)
16541 shrext='.sl'
16542 dynamic_linker="$host_os dld.sl"
16543 shlibpath_var=SHLIB_PATH
16544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 ;;
16548 esac
16549 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16550 postinstall_cmds='chmod 555 $lib'
16551 ;;
16552
16553irix5* | irix6* | nonstopux*)
16554 case $host_os in
16555 nonstopux*) version_type=nonstopux ;;
16556 *)
16557 if test "$lt_cv_prog_gnu_ld" = yes; then
16558 version_type=linux
16559 else
16560 version_type=irix
16561 fi ;;
16562 esac
16563 need_lib_prefix=no
16564 need_version=no
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16567 case $host_os in
16568 irix5* | nonstopux*)
16569 libsuff= shlibsuff=
16570 ;;
16571 *)
16572 case $LD in # libtool.m4 will add one of these switches to LD
16573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16574 libsuff= shlibsuff= libmagic=32-bit;;
16575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16576 libsuff=32 shlibsuff=N32 libmagic=N32;;
16577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16578 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16579 *) libsuff= shlibsuff= libmagic=never-match;;
16580 esac
16581 ;;
16582 esac
16583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16584 shlibpath_overrides_runpath=no
16585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16587 hardcode_into_libs=yes
16588 ;;
16589
16590# No shared lib support for Linux oldld, aout, or coff.
16591linux*oldld* | linux*aout* | linux*coff*)
16592 dynamic_linker=no
16593 ;;
16594
16595# This must be Linux ELF.
16596linux*)
16597 version_type=linux
16598 need_lib_prefix=no
16599 need_version=no
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16603 shlibpath_var=LD_LIBRARY_PATH
16604 shlibpath_overrides_runpath=no
16605 # This implies no fast_install, which is unacceptable.
16606 # Some rework will be needed to allow for fast_install
16607 # before this can be enabled.
16608 hardcode_into_libs=yes
16609
16610 # We used to test for /lib/ld.so.1 and disable shared libraries on
16611 # powerpc, because MkLinux only supported shared libraries with the
16612 # GNU dynamic linker. Since this was broken with cross compilers,
16613 # most powerpc-linux boxes support dynamic linking these days and
16614 # people can always --disable-shared, the test was removed, and we
16615 # assume the GNU/Linux dynamic linker is in use.
16616 dynamic_linker='GNU/Linux ld.so'
16617 ;;
16618
16619netbsd*)
16620 version_type=sunos
16621 need_lib_prefix=no
16622 need_version=no
16623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16626 dynamic_linker='NetBSD (a.out) ld.so'
16627 else
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 dynamic_linker='NetBSD ld.elf_so'
16631 fi
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 hardcode_into_libs=yes
16635 ;;
16636
16637newsos6)
16638 version_type=linux
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=yes
16642 ;;
16643
16644nto-qnx)
16645 version_type=linux
16646 need_lib_prefix=no
16647 need_version=no
16648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649 soname_spec='${libname}${release}${shared_ext}$major'
16650 shlibpath_var=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath=yes
16652 ;;
16653
16654openbsd*)
16655 version_type=sunos
16656 need_lib_prefix=no
16657 need_version=no
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16662 case $host_os in
16663 openbsd2.[89] | openbsd2.[89].*)
16664 shlibpath_overrides_runpath=no
16665 ;;
16666 *)
16667 shlibpath_overrides_runpath=yes
16668 ;;
16669 esac
16670 else
16671 shlibpath_overrides_runpath=yes
16672 fi
16673 ;;
16674
16675os2*)
16676 libname_spec='$name'
16677 shrext=".dll"
16678 need_lib_prefix=no
16679 library_names_spec='$libname${shared_ext} $libname.a'
16680 dynamic_linker='OS/2 ld.exe'
16681 shlibpath_var=LIBPATH
16682 ;;
16683
16684osf3* | osf4* | osf5*)
16685 version_type=osf
16686 need_lib_prefix=no
16687 need_version=no
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16693 ;;
16694
16695sco3.2v5*)
16696 version_type=osf
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 ;;
16701
16702solaris*)
16703 version_type=linux
16704 need_lib_prefix=no
16705 need_version=no
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 soname_spec='${libname}${release}${shared_ext}$major'
16708 shlibpath_var=LD_LIBRARY_PATH
16709 shlibpath_overrides_runpath=yes
16710 hardcode_into_libs=yes
16711 # ldd complains unless libraries are executable
16712 postinstall_cmds='chmod +x $lib'
16713 ;;
16714
16715sunos4*)
16716 version_type=sunos
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=yes
16721 if test "$with_gnu_ld" = yes; then
16722 need_lib_prefix=no
16723 fi
16724 need_version=yes
16725 ;;
16726
16727sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16728 version_type=linux
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 case $host_vendor in
16733 sni)
16734 shlibpath_overrides_runpath=no
16735 need_lib_prefix=no
16736 export_dynamic_flag_spec='${wl}-Blargedynsym'
16737 runpath_var=LD_RUN_PATH
16738 ;;
16739 siemens)
16740 need_lib_prefix=no
16741 ;;
16742 motorola)
16743 need_lib_prefix=no
16744 need_version=no
16745 shlibpath_overrides_runpath=no
16746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16747 ;;
16748 esac
16749 ;;
16750
16751sysv4*MP*)
16752 if test -d /usr/nec ;then
16753 version_type=linux
16754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16755 soname_spec='$libname${shared_ext}.$major'
16756 shlibpath_var=LD_LIBRARY_PATH
16757 fi
16758 ;;
16759
16760uts4*)
16761 version_type=linux
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 ;;
16766
16767*)
16768 dynamic_linker=no
16769 ;;
16770esac
16771echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16772echo "${ECHO_T}$dynamic_linker" >&6
16773test "$dynamic_linker" = no && can_build_shared=no
16774
16775if test "x$enable_dlopen" != xyes; then
16776 enable_dlopen=unknown
16777 enable_dlopen_self=unknown
16778 enable_dlopen_self_static=unknown
16779else
16780 lt_cv_dlopen=no
16781 lt_cv_dlopen_libs=
16782
16783 case $host_os in
16784 beos*)
16785 lt_cv_dlopen="load_add_on"
16786 lt_cv_dlopen_libs=
16787 lt_cv_dlopen_self=yes
16788 ;;
16789
16790 mingw* | pw32*)
16791 lt_cv_dlopen="LoadLibrary"
16792 lt_cv_dlopen_libs=
16793 ;;
16794
16795 cygwin*)
16796 lt_cv_dlopen="dlopen"
16797 lt_cv_dlopen_libs=
16798 ;;
16799
16800 darwin*)
16801 # if libdl is installed we need to link against it
16802 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16803echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16804if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16806else
16807 ac_check_lib_save_LIBS=$LIBS
16808LIBS="-ldl $LIBS"
16809cat >conftest.$ac_ext <<_ACEOF
16810#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016811/* confdefs.h. */
16812_ACEOF
16813cat confdefs.h >>conftest.$ac_ext
16814cat >>conftest.$ac_ext <<_ACEOF
16815/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016816
16817/* Override any gcc2 internal prototype to avoid an error. */
16818#ifdef __cplusplus
16819extern "C"
16820#endif
16821/* We use char because int might match the return type of a gcc2
16822 builtin and then its argument prototype would still apply. */
16823char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016824int
16825main ()
16826{
16827dlopen ();
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext conftest$ac_exeext
16833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16834 (eval $ac_link) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try='test -s conftest$ac_exeext'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_lib_dl_dlopen=yes
16845else
16846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016847sed 's/^/| /' conftest.$ac_ext >&5
16848
John Criswell47fdd832003-07-14 16:52:07 +000016849ac_cv_lib_dl_dlopen=no
16850fi
16851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16852LIBS=$ac_check_lib_save_LIBS
16853fi
16854echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16855echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16856if test $ac_cv_lib_dl_dlopen = yes; then
16857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16858else
16859
16860 lt_cv_dlopen="dyld"
16861 lt_cv_dlopen_libs=
16862 lt_cv_dlopen_self=yes
16863
16864fi
16865
16866 ;;
16867
16868 *)
16869 echo "$as_me:$LINENO: checking for shl_load" >&5
16870echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16871if test "${ac_cv_func_shl_load+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16873else
16874 cat >conftest.$ac_ext <<_ACEOF
16875#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016876/* confdefs.h. */
16877_ACEOF
16878cat confdefs.h >>conftest.$ac_ext
16879cat >>conftest.$ac_ext <<_ACEOF
16880/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016881/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016882 which can conflict with char shl_load (); below.
16883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16884 <limits.h> exists even on freestanding compilers. */
16885#ifdef __STDC__
16886# include <limits.h>
16887#else
16888# include <assert.h>
16889#endif
John Criswell47fdd832003-07-14 16:52:07 +000016890/* Override any gcc2 internal prototype to avoid an error. */
16891#ifdef __cplusplus
16892extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016893{
John Criswell47fdd832003-07-14 16:52:07 +000016894#endif
16895/* We use char because int might match the return type of a gcc2
16896 builtin and then its argument prototype would still apply. */
16897char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016898/* The GNU C library defines this for functions which it implements
16899 to always fail with ENOSYS. Some functions are actually named
16900 something starting with __ and the normal name is an alias. */
16901#if defined (__stub_shl_load) || defined (__stub___shl_load)
16902choke me
16903#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016904char (*f) () = shl_load;
16905#endif
16906#ifdef __cplusplus
16907}
John Criswell47fdd832003-07-14 16:52:07 +000016908#endif
16909
John Criswell0c38eaf2003-09-10 15:17:25 +000016910int
16911main ()
16912{
16913return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext conftest$ac_exeext
16919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920 (eval $ac_link) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -s conftest$ac_exeext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_func_shl_load=yes
16931else
16932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016933sed 's/^/| /' conftest.$ac_ext >&5
16934
John Criswell47fdd832003-07-14 16:52:07 +000016935ac_cv_func_shl_load=no
16936fi
16937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16938fi
16939echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16940echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16941if test $ac_cv_func_shl_load = yes; then
16942 lt_cv_dlopen="shl_load"
16943else
16944 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16945echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16946if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16948else
16949 ac_check_lib_save_LIBS=$LIBS
16950LIBS="-ldld $LIBS"
16951cat >conftest.$ac_ext <<_ACEOF
16952#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016953/* confdefs.h. */
16954_ACEOF
16955cat confdefs.h >>conftest.$ac_ext
16956cat >>conftest.$ac_ext <<_ACEOF
16957/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016958
16959/* Override any gcc2 internal prototype to avoid an error. */
16960#ifdef __cplusplus
16961extern "C"
16962#endif
16963/* We use char because int might match the return type of a gcc2
16964 builtin and then its argument prototype would still apply. */
16965char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016966int
16967main ()
16968{
16969shl_load ();
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext conftest$ac_exeext
16975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976 (eval $ac_link) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_lib_dld_shl_load=yes
16987else
16988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016989sed 's/^/| /' conftest.$ac_ext >&5
16990
John Criswell47fdd832003-07-14 16:52:07 +000016991ac_cv_lib_dld_shl_load=no
16992fi
16993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16994LIBS=$ac_check_lib_save_LIBS
16995fi
16996echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16997echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16998if test $ac_cv_lib_dld_shl_load = yes; then
16999 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17000else
17001 echo "$as_me:$LINENO: checking for dlopen" >&5
17002echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17003if test "${ac_cv_func_dlopen+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005else
17006 cat >conftest.$ac_ext <<_ACEOF
17007#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017013/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017014 which can conflict with char dlopen (); below.
17015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17016 <limits.h> exists even on freestanding compilers. */
17017#ifdef __STDC__
17018# include <limits.h>
17019#else
17020# include <assert.h>
17021#endif
John Criswell47fdd832003-07-14 16:52:07 +000017022/* Override any gcc2 internal prototype to avoid an error. */
17023#ifdef __cplusplus
17024extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017025{
John Criswell47fdd832003-07-14 16:52:07 +000017026#endif
17027/* We use char because int might match the return type of a gcc2
17028 builtin and then its argument prototype would still apply. */
17029char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017030/* The GNU C library defines this for functions which it implements
17031 to always fail with ENOSYS. Some functions are actually named
17032 something starting with __ and the normal name is an alias. */
17033#if defined (__stub_dlopen) || defined (__stub___dlopen)
17034choke me
17035#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017036char (*f) () = dlopen;
17037#endif
17038#ifdef __cplusplus
17039}
John Criswell47fdd832003-07-14 16:52:07 +000017040#endif
17041
John Criswell0c38eaf2003-09-10 15:17:25 +000017042int
17043main ()
17044{
17045return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017046 ;
17047 return 0;
17048}
17049_ACEOF
17050rm -f conftest.$ac_objext conftest$ac_exeext
17051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -s conftest$ac_exeext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_func_dlopen=yes
17063else
17064 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017065sed 's/^/| /' conftest.$ac_ext >&5
17066
John Criswell47fdd832003-07-14 16:52:07 +000017067ac_cv_func_dlopen=no
17068fi
17069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17070fi
17071echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17072echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17073if test $ac_cv_func_dlopen = yes; then
17074 lt_cv_dlopen="dlopen"
17075else
17076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17077echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17078if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080else
17081 ac_check_lib_save_LIBS=$LIBS
17082LIBS="-ldl $LIBS"
17083cat >conftest.$ac_ext <<_ACEOF
17084#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017085/* confdefs.h. */
17086_ACEOF
17087cat confdefs.h >>conftest.$ac_ext
17088cat >>conftest.$ac_ext <<_ACEOF
17089/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017090
17091/* Override any gcc2 internal prototype to avoid an error. */
17092#ifdef __cplusplus
17093extern "C"
17094#endif
17095/* We use char because int might match the return type of a gcc2
17096 builtin and then its argument prototype would still apply. */
17097char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017098int
17099main ()
17100{
17101dlopen ();
17102 ;
17103 return 0;
17104}
17105_ACEOF
17106rm -f conftest.$ac_objext conftest$ac_exeext
17107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17108 (eval $ac_link) 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try='test -s conftest$ac_exeext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 ac_cv_lib_dl_dlopen=yes
17119else
17120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017121sed 's/^/| /' conftest.$ac_ext >&5
17122
John Criswell47fdd832003-07-14 16:52:07 +000017123ac_cv_lib_dl_dlopen=no
17124fi
17125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17126LIBS=$ac_check_lib_save_LIBS
17127fi
17128echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17130if test $ac_cv_lib_dl_dlopen = yes; then
17131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17132else
17133 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17134echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17135if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17137else
17138 ac_check_lib_save_LIBS=$LIBS
17139LIBS="-lsvld $LIBS"
17140cat >conftest.$ac_ext <<_ACEOF
17141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017142/* confdefs.h. */
17143_ACEOF
17144cat confdefs.h >>conftest.$ac_ext
17145cat >>conftest.$ac_ext <<_ACEOF
17146/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017147
17148/* Override any gcc2 internal prototype to avoid an error. */
17149#ifdef __cplusplus
17150extern "C"
17151#endif
17152/* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
17154char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017155int
17156main ()
17157{
17158dlopen ();
17159 ;
17160 return 0;
17161}
17162_ACEOF
17163rm -f conftest.$ac_objext conftest$ac_exeext
17164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165 (eval $ac_link) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -s conftest$ac_exeext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_lib_svld_dlopen=yes
17176else
17177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017178sed 's/^/| /' conftest.$ac_ext >&5
17179
John Criswell47fdd832003-07-14 16:52:07 +000017180ac_cv_lib_svld_dlopen=no
17181fi
17182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17183LIBS=$ac_check_lib_save_LIBS
17184fi
17185echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17186echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17187if test $ac_cv_lib_svld_dlopen = yes; then
17188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17189else
17190 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17191echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17192if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194else
17195 ac_check_lib_save_LIBS=$LIBS
17196LIBS="-ldld $LIBS"
17197cat >conftest.$ac_ext <<_ACEOF
17198#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017199/* confdefs.h. */
17200_ACEOF
17201cat confdefs.h >>conftest.$ac_ext
17202cat >>conftest.$ac_ext <<_ACEOF
17203/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017204
17205/* Override any gcc2 internal prototype to avoid an error. */
17206#ifdef __cplusplus
17207extern "C"
17208#endif
17209/* We use char because int might match the return type of a gcc2
17210 builtin and then its argument prototype would still apply. */
17211char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017212int
17213main ()
17214{
17215dld_link ();
17216 ;
17217 return 0;
17218}
17219_ACEOF
17220rm -f conftest.$ac_objext conftest$ac_exeext
17221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -s conftest$ac_exeext'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_cv_lib_dld_dld_link=yes
17233else
17234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017235sed 's/^/| /' conftest.$ac_ext >&5
17236
John Criswell47fdd832003-07-14 16:52:07 +000017237ac_cv_lib_dld_dld_link=no
17238fi
17239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17240LIBS=$ac_check_lib_save_LIBS
17241fi
17242echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17243echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17244if test $ac_cv_lib_dld_dld_link = yes; then
17245 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17246fi
17247
17248
17249fi
17250
17251
17252fi
17253
17254
17255fi
17256
17257
17258fi
17259
17260
17261fi
17262
17263 ;;
17264 esac
17265
17266 if test "x$lt_cv_dlopen" != xno; then
17267 enable_dlopen=yes
17268 else
17269 enable_dlopen=no
17270 fi
17271
17272 case $lt_cv_dlopen in
17273 dlopen)
17274 save_CPPFLAGS="$CPPFLAGS"
17275 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17276
17277 save_LDFLAGS="$LDFLAGS"
17278 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17279
17280 save_LIBS="$LIBS"
17281 LIBS="$lt_cv_dlopen_libs $LIBS"
17282
17283 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17284echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17285if test "${lt_cv_dlopen_self+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287else
17288 if test "$cross_compiling" = yes; then :
17289 lt_cv_dlopen_self=cross
17290else
17291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17292 lt_status=$lt_dlunknown
17293 cat > conftest.$ac_ext <<EOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017294#line 17294 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017295#include "confdefs.h"
17296
17297#if HAVE_DLFCN_H
17298#include <dlfcn.h>
17299#endif
17300
17301#include <stdio.h>
17302
17303#ifdef RTLD_GLOBAL
17304# define LT_DLGLOBAL RTLD_GLOBAL
17305#else
17306# ifdef DL_GLOBAL
17307# define LT_DLGLOBAL DL_GLOBAL
17308# else
17309# define LT_DLGLOBAL 0
17310# endif
17311#endif
17312
17313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17314 find out it does not work in some platform. */
17315#ifndef LT_DLLAZY_OR_NOW
17316# ifdef RTLD_LAZY
17317# define LT_DLLAZY_OR_NOW RTLD_LAZY
17318# else
17319# ifdef DL_LAZY
17320# define LT_DLLAZY_OR_NOW DL_LAZY
17321# else
17322# ifdef RTLD_NOW
17323# define LT_DLLAZY_OR_NOW RTLD_NOW
17324# else
17325# ifdef DL_NOW
17326# define LT_DLLAZY_OR_NOW DL_NOW
17327# else
17328# define LT_DLLAZY_OR_NOW 0
17329# endif
17330# endif
17331# endif
17332# endif
17333#endif
17334
17335#ifdef __cplusplus
17336extern "C" void exit (int);
17337#endif
17338
17339void fnord() { int i=42;}
17340int main ()
17341{
17342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17343 int status = $lt_dlunknown;
17344
17345 if (self)
17346 {
17347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17349 /* dlclose (self); */
17350 }
17351
17352 exit (status);
17353}
17354EOF
17355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17356 (eval $ac_link) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17360 (./conftest; exit; ) 2>/dev/null
17361 lt_status=$?
17362 case x$lt_status in
17363 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17364 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17365 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17366 esac
17367 else :
17368 # compilation failed
17369 lt_cv_dlopen_self=no
17370 fi
17371fi
17372rm -fr conftest*
17373
17374
17375fi
17376echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17377echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17378
17379 if test "x$lt_cv_dlopen_self" = xyes; then
17380 LDFLAGS="$LDFLAGS $link_static_flag"
17381 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17382echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17383if test "${lt_cv_dlopen_self_static+set}" = set; then
17384 echo $ECHO_N "(cached) $ECHO_C" >&6
17385else
17386 if test "$cross_compiling" = yes; then :
17387 lt_cv_dlopen_self_static=cross
17388else
17389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17390 lt_status=$lt_dlunknown
17391 cat > conftest.$ac_ext <<EOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017392#line 17392 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017393#include "confdefs.h"
17394
17395#if HAVE_DLFCN_H
17396#include <dlfcn.h>
17397#endif
17398
17399#include <stdio.h>
17400
17401#ifdef RTLD_GLOBAL
17402# define LT_DLGLOBAL RTLD_GLOBAL
17403#else
17404# ifdef DL_GLOBAL
17405# define LT_DLGLOBAL DL_GLOBAL
17406# else
17407# define LT_DLGLOBAL 0
17408# endif
17409#endif
17410
17411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17412 find out it does not work in some platform. */
17413#ifndef LT_DLLAZY_OR_NOW
17414# ifdef RTLD_LAZY
17415# define LT_DLLAZY_OR_NOW RTLD_LAZY
17416# else
17417# ifdef DL_LAZY
17418# define LT_DLLAZY_OR_NOW DL_LAZY
17419# else
17420# ifdef RTLD_NOW
17421# define LT_DLLAZY_OR_NOW RTLD_NOW
17422# else
17423# ifdef DL_NOW
17424# define LT_DLLAZY_OR_NOW DL_NOW
17425# else
17426# define LT_DLLAZY_OR_NOW 0
17427# endif
17428# endif
17429# endif
17430# endif
17431#endif
17432
17433#ifdef __cplusplus
17434extern "C" void exit (int);
17435#endif
17436
17437void fnord() { int i=42;}
17438int main ()
17439{
17440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17441 int status = $lt_dlunknown;
17442
17443 if (self)
17444 {
17445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17447 /* dlclose (self); */
17448 }
17449
17450 exit (status);
17451}
17452EOF
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454 (eval $ac_link) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17458 (./conftest; exit; ) 2>/dev/null
17459 lt_status=$?
17460 case x$lt_status in
17461 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17462 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17463 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17464 esac
17465 else :
17466 # compilation failed
17467 lt_cv_dlopen_self_static=no
17468 fi
17469fi
17470rm -fr conftest*
17471
17472
17473fi
17474echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17475echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17476 fi
17477
17478 CPPFLAGS="$save_CPPFLAGS"
17479 LDFLAGS="$save_LDFLAGS"
17480 LIBS="$save_LIBS"
17481 ;;
17482 esac
17483
17484 case $lt_cv_dlopen_self in
17485 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17486 *) enable_dlopen_self=unknown ;;
17487 esac
17488
17489 case $lt_cv_dlopen_self_static in
17490 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17491 *) enable_dlopen_self_static=unknown ;;
17492 esac
17493fi
17494
17495
17496# The else clause should only fire when bootstrapping the
17497# libtool distribution, otherwise you forgot to ship ltmain.sh
17498# with your package, and you will get complaints that there are
17499# no rules to generate ltmain.sh.
17500if test -f "$ltmain"; then
17501 # See if we are running on zsh, and set the options which allow our commands through
17502 # without removal of \ escapes.
17503 if test -n "${ZSH_VERSION+set}" ; then
17504 setopt NO_GLOB_SUBST
17505 fi
17506 # Now quote all the things that may contain metacharacters while being
17507 # careful not to overquote the AC_SUBSTed values. We take copies of the
17508 # variables and quote the copies for generation of the libtool script.
17509 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17512 deplibs_check_method reload_flag reload_cmds need_locks \
17513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17514 lt_cv_sys_global_symbol_to_c_name_address \
17515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17516 old_postinstall_cmds old_postuninstall_cmds \
17517 compiler_GCJ \
17518 CC_GCJ \
17519 LD_GCJ \
17520 lt_prog_compiler_wl_GCJ \
17521 lt_prog_compiler_pic_GCJ \
17522 lt_prog_compiler_static_GCJ \
17523 lt_prog_compiler_no_builtin_flag_GCJ \
17524 export_dynamic_flag_spec_GCJ \
17525 thread_safe_flag_spec_GCJ \
17526 whole_archive_flag_spec_GCJ \
17527 enable_shared_with_static_runtimes_GCJ \
17528 old_archive_cmds_GCJ \
17529 old_archive_from_new_cmds_GCJ \
17530 predep_objects_GCJ \
17531 postdep_objects_GCJ \
17532 predeps_GCJ \
17533 postdeps_GCJ \
17534 compiler_lib_search_path_GCJ \
17535 archive_cmds_GCJ \
17536 archive_expsym_cmds_GCJ \
17537 postinstall_cmds_GCJ \
17538 postuninstall_cmds_GCJ \
17539 old_archive_from_expsyms_cmds_GCJ \
17540 allow_undefined_flag_GCJ \
17541 no_undefined_flag_GCJ \
17542 export_symbols_cmds_GCJ \
17543 hardcode_libdir_flag_spec_GCJ \
17544 hardcode_libdir_flag_spec_ld_GCJ \
17545 hardcode_libdir_separator_GCJ \
17546 hardcode_automatic_GCJ \
17547 module_cmds_GCJ \
17548 module_expsym_cmds_GCJ \
17549 lt_cv_prog_compiler_c_o_GCJ \
17550 exclude_expsyms_GCJ \
17551 include_expsyms_GCJ; do
17552
17553 case $var in
17554 old_archive_cmds_GCJ | \
17555 old_archive_from_new_cmds_GCJ | \
17556 archive_cmds_GCJ | \
17557 archive_expsym_cmds_GCJ | \
17558 module_cmds_GCJ | \
17559 module_expsym_cmds_GCJ | \
17560 old_archive_from_expsyms_cmds_GCJ | \
17561 export_symbols_cmds_GCJ | \
17562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17563 postinstall_cmds | postuninstall_cmds | \
17564 old_postinstall_cmds | old_postuninstall_cmds | \
17565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17566 # Double-quote double-evaled strings.
17567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17568 ;;
17569 *)
17570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17571 ;;
17572 esac
17573 done
17574
17575 case $lt_echo in
17576 *'\$0 --fallback-echo"')
17577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17578 ;;
17579 esac
17580
17581cfgfile="$ofile"
17582
17583 cat <<__EOF__ >> "$cfgfile"
17584# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17585
17586# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17587
17588# Shell to use when invoking shell scripts.
17589SHELL=$lt_SHELL
17590
17591# Whether or not to build shared libraries.
17592build_libtool_libs=$enable_shared
17593
17594# Whether or not to build static libraries.
17595build_old_libs=$enable_static
17596
17597# Whether or not to add -lc for building shared libraries.
17598build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17599
17600# Whether or not to disallow shared libs when runtime libs are static
17601allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17602
17603# Whether or not to optimize for fast installation.
17604fast_install=$enable_fast_install
17605
17606# The host system.
17607host_alias=$host_alias
17608host=$host
17609
17610# An echo program that does not interpret backslashes.
17611echo=$lt_echo
17612
17613# The archiver.
17614AR=$lt_AR
17615AR_FLAGS=$lt_AR_FLAGS
17616
17617# A C compiler.
17618LTCC=$lt_LTCC
17619
17620# A language-specific compiler.
17621CC=$lt_compiler_GCJ
17622
17623# Is the compiler the GNU C compiler?
17624with_gcc=$GCC_GCJ
17625
17626# An ERE matcher.
17627EGREP=$lt_EGREP
17628
17629# The linker used to build libraries.
17630LD=$lt_LD_GCJ
17631
17632# Whether we need hard or soft links.
17633LN_S=$lt_LN_S
17634
17635# A BSD-compatible nm program.
17636NM=$lt_NM
17637
17638# A symbol stripping program
17639STRIP=$STRIP
17640
17641# Used to examine libraries when file_magic_cmd begins "file"
17642MAGIC_CMD=$MAGIC_CMD
17643
17644# Used on cygwin: DLL creation program.
17645DLLTOOL="$DLLTOOL"
17646
17647# Used on cygwin: object dumper.
17648OBJDUMP="$OBJDUMP"
17649
17650# Used on cygwin: assembler.
17651AS="$AS"
17652
17653# The name of the directory that contains temporary libtool files.
17654objdir=$objdir
17655
17656# How to create reloadable object files.
17657reload_flag=$lt_reload_flag
17658reload_cmds=$lt_reload_cmds
17659
17660# How to pass a linker flag through the compiler.
17661wl=$lt_lt_prog_compiler_wl_GCJ
17662
17663# Object file suffix (normally "o").
17664objext="$ac_objext"
17665
17666# Old archive suffix (normally "a").
17667libext="$libext"
17668
17669# Shared library suffix (normally ".so").
17670shrext='$shrext'
17671
17672# Executable file suffix (normally "").
17673exeext="$exeext"
17674
17675# Additional compiler flags for building library objects.
17676pic_flag=$lt_lt_prog_compiler_pic_GCJ
17677pic_mode=$pic_mode
17678
17679# What is the maximum length of a command?
17680max_cmd_len=$lt_cv_sys_max_cmd_len
17681
17682# Does compiler simultaneously support -c and -o options?
17683compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17684
17685# Must we lock files when doing compilation ?
17686need_locks=$lt_need_locks
17687
17688# Do we need the lib prefix for modules?
17689need_lib_prefix=$need_lib_prefix
17690
17691# Do we need a version for libraries?
17692need_version=$need_version
17693
17694# Whether dlopen is supported.
17695dlopen_support=$enable_dlopen
17696
17697# Whether dlopen of programs is supported.
17698dlopen_self=$enable_dlopen_self
17699
17700# Whether dlopen of statically linked programs is supported.
17701dlopen_self_static=$enable_dlopen_self_static
17702
17703# Compiler flag to prevent dynamic linking.
17704link_static_flag=$lt_lt_prog_compiler_static_GCJ
17705
17706# Compiler flag to turn off builtin functions.
17707no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17708
17709# Compiler flag to allow reflexive dlopens.
17710export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17711
17712# Compiler flag to generate shared objects directly from archives.
17713whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17714
17715# Compiler flag to generate thread-safe objects.
17716thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17717
17718# Library versioning type.
17719version_type=$version_type
17720
17721# Format of library name prefix.
17722libname_spec=$lt_libname_spec
17723
17724# List of archive names. First name is the real one, the rest are links.
17725# The last name is the one that the linker finds with -lNAME.
17726library_names_spec=$lt_library_names_spec
17727
17728# The coded name of the library, if different from the real name.
17729soname_spec=$lt_soname_spec
17730
17731# Commands used to build and install an old-style archive.
17732RANLIB=$lt_RANLIB
17733old_archive_cmds=$lt_old_archive_cmds_GCJ
17734old_postinstall_cmds=$lt_old_postinstall_cmds
17735old_postuninstall_cmds=$lt_old_postuninstall_cmds
17736
17737# Create an old-style archive from a shared archive.
17738old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17739
17740# Create a temporary old-style archive to link instead of a shared archive.
17741old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17742
17743# Commands used to build and install a shared archive.
17744archive_cmds=$lt_archive_cmds_GCJ
17745archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17746postinstall_cmds=$lt_postinstall_cmds
17747postuninstall_cmds=$lt_postuninstall_cmds
17748
17749# Commands used to build a loadable module (assumed same as above if empty)
17750module_cmds=$lt_module_cmds_GCJ
17751module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17752
17753# Commands to strip libraries.
17754old_striplib=$lt_old_striplib
17755striplib=$lt_striplib
17756
17757# Dependencies to place before the objects being linked to create a
17758# shared library.
17759predep_objects=$lt_predep_objects_GCJ
17760
17761# Dependencies to place after the objects being linked to create a
17762# shared library.
17763postdep_objects=$lt_postdep_objects_GCJ
17764
17765# Dependencies to place before the objects being linked to create a
17766# shared library.
17767predeps=$lt_predeps_GCJ
17768
17769# Dependencies to place after the objects being linked to create a
17770# shared library.
17771postdeps=$lt_postdeps_GCJ
17772
17773# The library search path used internally by the compiler when linking
17774# a shared library.
17775compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17776
17777# Method to check whether dependent libraries are shared objects.
17778deplibs_check_method=$lt_deplibs_check_method
17779
17780# Command to use when deplibs_check_method == file_magic.
17781file_magic_cmd=$lt_file_magic_cmd
17782
17783# Flag that allows shared libraries with undefined symbols to be built.
17784allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17785
17786# Flag that forces no undefined symbols.
17787no_undefined_flag=$lt_no_undefined_flag_GCJ
17788
17789# Commands used to finish a libtool library installation in a directory.
17790finish_cmds=$lt_finish_cmds
17791
17792# Same as above, but a single script fragment to be evaled but not shown.
17793finish_eval=$lt_finish_eval
17794
17795# Take the output of nm and produce a listing of raw symbols and C names.
17796global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17797
17798# Transform the output of nm in a proper C declaration
17799global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17800
17801# Transform the output of nm in a C name address pair
17802global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17803
17804# This is the shared library runtime path variable.
17805runpath_var=$runpath_var
17806
17807# This is the shared library path variable.
17808shlibpath_var=$shlibpath_var
17809
17810# Is shlibpath searched before the hard-coded library search path?
17811shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17812
17813# How to hardcode a shared library path into an executable.
17814hardcode_action=$hardcode_action_GCJ
17815
17816# Whether we should hardcode library paths into libraries.
17817hardcode_into_libs=$hardcode_into_libs
17818
17819# Flag to hardcode \$libdir into a binary during linking.
17820# This must work even if \$libdir does not exist.
17821hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17822
17823# If ld is used when linking, flag to hardcode \$libdir into
17824# a binary during linking. This must work even if \$libdir does
17825# not exist.
17826hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17827
17828# Whether we need a single -rpath flag with a separated argument.
17829hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17830
17831# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17832# resulting binary.
17833hardcode_direct=$hardcode_direct_GCJ
17834
17835# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17836# resulting binary.
17837hardcode_minus_L=$hardcode_minus_L_GCJ
17838
17839# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17840# the resulting binary.
17841hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17842
17843# Set to yes if building a shared library automatically hardcodes DIR into the library
17844# and all subsequent libraries and executables linked against it.
17845hardcode_automatic=$hardcode_automatic_GCJ
17846
17847# Variables whose values should be saved in libtool wrapper scripts and
17848# restored at relink time.
17849variables_saved_for_relink="$variables_saved_for_relink"
17850
17851# Whether libtool must link a program against all its dependency libraries.
17852link_all_deplibs=$link_all_deplibs_GCJ
17853
17854# Compile-time system search path for libraries
17855sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17856
17857# Run-time system search path for libraries
17858sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17859
17860# Fix the shell variable \$srcfile for the compiler.
17861fix_srcfile_path="$fix_srcfile_path_GCJ"
17862
17863# Set to yes if exported symbols are required.
17864always_export_symbols=$always_export_symbols_GCJ
17865
17866# The commands to list exported symbols.
17867export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17868
17869# The commands to extract the exported symbol list from a shared archive.
17870extract_expsyms_cmds=$lt_extract_expsyms_cmds
17871
17872# Symbols that should not be listed in the preloaded symbols.
17873exclude_expsyms=$lt_exclude_expsyms_GCJ
17874
17875# Symbols that must always be exported.
17876include_expsyms=$lt_include_expsyms_GCJ
17877
17878# ### END LIBTOOL TAG CONFIG: $tagname
17879
17880__EOF__
17881
17882
17883else
17884 # If there is no Makefile yet, we rely on a make rule to execute
17885 # `config.status --recheck' to rerun these tests and create the
17886 # libtool script then.
17887 test -f Makefile && make "$ltmain"
17888fi
17889
17890
17891ac_ext=c
17892ac_cpp='$CPP $CPPFLAGS'
17893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17895ac_compiler_gnu=$ac_cv_c_compiler_gnu
17896
17897CC="$lt_save_CC"
17898
17899 else
17900 tagname=""
17901 fi
17902 ;;
17903
17904 RC)
17905
17906
17907
17908# Source file extension for RC test sources.
17909ac_ext=rc
17910
17911# Object file extension for compiled RC test sources.
17912objext=o
17913objext_RC=$objext
17914
17915# Code to be used in simple compile tests
17916lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17917
17918# Code to be used in simple link tests
17919lt_simple_link_test_code="$lt_simple_compile_test_code"
17920
17921# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17922
17923# If no C compiler was specified, use CC.
17924LTCC=${LTCC-"$CC"}
17925
17926# Allow CC to be a program name with arguments.
17927compiler=$CC
17928
17929
17930# Allow CC to be a program name with arguments.
17931lt_save_CC="$CC"
17932CC=${RC-"windres"}
17933compiler=$CC
17934compiler_RC=$CC
17935lt_cv_prog_compiler_c_o_RC=yes
17936
17937# The else clause should only fire when bootstrapping the
17938# libtool distribution, otherwise you forgot to ship ltmain.sh
17939# with your package, and you will get complaints that there are
17940# no rules to generate ltmain.sh.
17941if test -f "$ltmain"; then
17942 # See if we are running on zsh, and set the options which allow our commands through
17943 # without removal of \ escapes.
17944 if test -n "${ZSH_VERSION+set}" ; then
17945 setopt NO_GLOB_SUBST
17946 fi
17947 # Now quote all the things that may contain metacharacters while being
17948 # careful not to overquote the AC_SUBSTed values. We take copies of the
17949 # variables and quote the copies for generation of the libtool script.
17950 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17951 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17952 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17953 deplibs_check_method reload_flag reload_cmds need_locks \
17954 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17955 lt_cv_sys_global_symbol_to_c_name_address \
17956 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17957 old_postinstall_cmds old_postuninstall_cmds \
17958 compiler_RC \
17959 CC_RC \
17960 LD_RC \
17961 lt_prog_compiler_wl_RC \
17962 lt_prog_compiler_pic_RC \
17963 lt_prog_compiler_static_RC \
17964 lt_prog_compiler_no_builtin_flag_RC \
17965 export_dynamic_flag_spec_RC \
17966 thread_safe_flag_spec_RC \
17967 whole_archive_flag_spec_RC \
17968 enable_shared_with_static_runtimes_RC \
17969 old_archive_cmds_RC \
17970 old_archive_from_new_cmds_RC \
17971 predep_objects_RC \
17972 postdep_objects_RC \
17973 predeps_RC \
17974 postdeps_RC \
17975 compiler_lib_search_path_RC \
17976 archive_cmds_RC \
17977 archive_expsym_cmds_RC \
17978 postinstall_cmds_RC \
17979 postuninstall_cmds_RC \
17980 old_archive_from_expsyms_cmds_RC \
17981 allow_undefined_flag_RC \
17982 no_undefined_flag_RC \
17983 export_symbols_cmds_RC \
17984 hardcode_libdir_flag_spec_RC \
17985 hardcode_libdir_flag_spec_ld_RC \
17986 hardcode_libdir_separator_RC \
17987 hardcode_automatic_RC \
17988 module_cmds_RC \
17989 module_expsym_cmds_RC \
17990 lt_cv_prog_compiler_c_o_RC \
17991 exclude_expsyms_RC \
17992 include_expsyms_RC; do
17993
17994 case $var in
17995 old_archive_cmds_RC | \
17996 old_archive_from_new_cmds_RC | \
17997 archive_cmds_RC | \
17998 archive_expsym_cmds_RC | \
17999 module_cmds_RC | \
18000 module_expsym_cmds_RC | \
18001 old_archive_from_expsyms_cmds_RC | \
18002 export_symbols_cmds_RC | \
18003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18004 postinstall_cmds | postuninstall_cmds | \
18005 old_postinstall_cmds | old_postuninstall_cmds | \
18006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18007 # Double-quote double-evaled strings.
18008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18009 ;;
18010 *)
18011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18012 ;;
18013 esac
18014 done
18015
18016 case $lt_echo in
18017 *'\$0 --fallback-echo"')
18018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18019 ;;
18020 esac
18021
18022cfgfile="$ofile"
18023
18024 cat <<__EOF__ >> "$cfgfile"
18025# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18026
18027# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18028
18029# Shell to use when invoking shell scripts.
18030SHELL=$lt_SHELL
18031
18032# Whether or not to build shared libraries.
18033build_libtool_libs=$enable_shared
18034
18035# Whether or not to build static libraries.
18036build_old_libs=$enable_static
18037
18038# Whether or not to add -lc for building shared libraries.
18039build_libtool_need_lc=$archive_cmds_need_lc_RC
18040
18041# Whether or not to disallow shared libs when runtime libs are static
18042allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18043
18044# Whether or not to optimize for fast installation.
18045fast_install=$enable_fast_install
18046
18047# The host system.
18048host_alias=$host_alias
18049host=$host
18050
18051# An echo program that does not interpret backslashes.
18052echo=$lt_echo
18053
18054# The archiver.
18055AR=$lt_AR
18056AR_FLAGS=$lt_AR_FLAGS
18057
18058# A C compiler.
18059LTCC=$lt_LTCC
18060
18061# A language-specific compiler.
18062CC=$lt_compiler_RC
18063
18064# Is the compiler the GNU C compiler?
18065with_gcc=$GCC_RC
18066
18067# An ERE matcher.
18068EGREP=$lt_EGREP
18069
18070# The linker used to build libraries.
18071LD=$lt_LD_RC
18072
18073# Whether we need hard or soft links.
18074LN_S=$lt_LN_S
18075
18076# A BSD-compatible nm program.
18077NM=$lt_NM
18078
18079# A symbol stripping program
18080STRIP=$STRIP
18081
18082# Used to examine libraries when file_magic_cmd begins "file"
18083MAGIC_CMD=$MAGIC_CMD
18084
18085# Used on cygwin: DLL creation program.
18086DLLTOOL="$DLLTOOL"
18087
18088# Used on cygwin: object dumper.
18089OBJDUMP="$OBJDUMP"
18090
18091# Used on cygwin: assembler.
18092AS="$AS"
18093
18094# The name of the directory that contains temporary libtool files.
18095objdir=$objdir
18096
18097# How to create reloadable object files.
18098reload_flag=$lt_reload_flag
18099reload_cmds=$lt_reload_cmds
18100
18101# How to pass a linker flag through the compiler.
18102wl=$lt_lt_prog_compiler_wl_RC
18103
18104# Object file suffix (normally "o").
18105objext="$ac_objext"
18106
18107# Old archive suffix (normally "a").
18108libext="$libext"
18109
18110# Shared library suffix (normally ".so").
18111shrext='$shrext'
18112
18113# Executable file suffix (normally "").
18114exeext="$exeext"
18115
18116# Additional compiler flags for building library objects.
18117pic_flag=$lt_lt_prog_compiler_pic_RC
18118pic_mode=$pic_mode
18119
18120# What is the maximum length of a command?
18121max_cmd_len=$lt_cv_sys_max_cmd_len
18122
18123# Does compiler simultaneously support -c and -o options?
18124compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18125
18126# Must we lock files when doing compilation ?
18127need_locks=$lt_need_locks
18128
18129# Do we need the lib prefix for modules?
18130need_lib_prefix=$need_lib_prefix
18131
18132# Do we need a version for libraries?
18133need_version=$need_version
18134
18135# Whether dlopen is supported.
18136dlopen_support=$enable_dlopen
18137
18138# Whether dlopen of programs is supported.
18139dlopen_self=$enable_dlopen_self
18140
18141# Whether dlopen of statically linked programs is supported.
18142dlopen_self_static=$enable_dlopen_self_static
18143
18144# Compiler flag to prevent dynamic linking.
18145link_static_flag=$lt_lt_prog_compiler_static_RC
18146
18147# Compiler flag to turn off builtin functions.
18148no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18149
18150# Compiler flag to allow reflexive dlopens.
18151export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18152
18153# Compiler flag to generate shared objects directly from archives.
18154whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18155
18156# Compiler flag to generate thread-safe objects.
18157thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18158
18159# Library versioning type.
18160version_type=$version_type
18161
18162# Format of library name prefix.
18163libname_spec=$lt_libname_spec
18164
18165# List of archive names. First name is the real one, the rest are links.
18166# The last name is the one that the linker finds with -lNAME.
18167library_names_spec=$lt_library_names_spec
18168
18169# The coded name of the library, if different from the real name.
18170soname_spec=$lt_soname_spec
18171
18172# Commands used to build and install an old-style archive.
18173RANLIB=$lt_RANLIB
18174old_archive_cmds=$lt_old_archive_cmds_RC
18175old_postinstall_cmds=$lt_old_postinstall_cmds
18176old_postuninstall_cmds=$lt_old_postuninstall_cmds
18177
18178# Create an old-style archive from a shared archive.
18179old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18180
18181# Create a temporary old-style archive to link instead of a shared archive.
18182old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18183
18184# Commands used to build and install a shared archive.
18185archive_cmds=$lt_archive_cmds_RC
18186archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18187postinstall_cmds=$lt_postinstall_cmds
18188postuninstall_cmds=$lt_postuninstall_cmds
18189
18190# Commands used to build a loadable module (assumed same as above if empty)
18191module_cmds=$lt_module_cmds_RC
18192module_expsym_cmds=$lt_module_expsym_cmds_RC
18193
18194# Commands to strip libraries.
18195old_striplib=$lt_old_striplib
18196striplib=$lt_striplib
18197
18198# Dependencies to place before the objects being linked to create a
18199# shared library.
18200predep_objects=$lt_predep_objects_RC
18201
18202# Dependencies to place after the objects being linked to create a
18203# shared library.
18204postdep_objects=$lt_postdep_objects_RC
18205
18206# Dependencies to place before the objects being linked to create a
18207# shared library.
18208predeps=$lt_predeps_RC
18209
18210# Dependencies to place after the objects being linked to create a
18211# shared library.
18212postdeps=$lt_postdeps_RC
18213
18214# The library search path used internally by the compiler when linking
18215# a shared library.
18216compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18217
18218# Method to check whether dependent libraries are shared objects.
18219deplibs_check_method=$lt_deplibs_check_method
18220
18221# Command to use when deplibs_check_method == file_magic.
18222file_magic_cmd=$lt_file_magic_cmd
18223
18224# Flag that allows shared libraries with undefined symbols to be built.
18225allow_undefined_flag=$lt_allow_undefined_flag_RC
18226
18227# Flag that forces no undefined symbols.
18228no_undefined_flag=$lt_no_undefined_flag_RC
18229
18230# Commands used to finish a libtool library installation in a directory.
18231finish_cmds=$lt_finish_cmds
18232
18233# Same as above, but a single script fragment to be evaled but not shown.
18234finish_eval=$lt_finish_eval
18235
18236# Take the output of nm and produce a listing of raw symbols and C names.
18237global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18238
18239# Transform the output of nm in a proper C declaration
18240global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18241
18242# Transform the output of nm in a C name address pair
18243global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18244
18245# This is the shared library runtime path variable.
18246runpath_var=$runpath_var
18247
18248# This is the shared library path variable.
18249shlibpath_var=$shlibpath_var
18250
18251# Is shlibpath searched before the hard-coded library search path?
18252shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18253
18254# How to hardcode a shared library path into an executable.
18255hardcode_action=$hardcode_action_RC
18256
18257# Whether we should hardcode library paths into libraries.
18258hardcode_into_libs=$hardcode_into_libs
18259
18260# Flag to hardcode \$libdir into a binary during linking.
18261# This must work even if \$libdir does not exist.
18262hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18263
18264# If ld is used when linking, flag to hardcode \$libdir into
18265# a binary during linking. This must work even if \$libdir does
18266# not exist.
18267hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18268
18269# Whether we need a single -rpath flag with a separated argument.
18270hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18271
18272# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18273# resulting binary.
18274hardcode_direct=$hardcode_direct_RC
18275
18276# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18277# resulting binary.
18278hardcode_minus_L=$hardcode_minus_L_RC
18279
18280# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18281# the resulting binary.
18282hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18283
18284# Set to yes if building a shared library automatically hardcodes DIR into the library
18285# and all subsequent libraries and executables linked against it.
18286hardcode_automatic=$hardcode_automatic_RC
18287
18288# Variables whose values should be saved in libtool wrapper scripts and
18289# restored at relink time.
18290variables_saved_for_relink="$variables_saved_for_relink"
18291
18292# Whether libtool must link a program against all its dependency libraries.
18293link_all_deplibs=$link_all_deplibs_RC
18294
18295# Compile-time system search path for libraries
18296sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18297
18298# Run-time system search path for libraries
18299sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18300
18301# Fix the shell variable \$srcfile for the compiler.
18302fix_srcfile_path="$fix_srcfile_path_RC"
18303
18304# Set to yes if exported symbols are required.
18305always_export_symbols=$always_export_symbols_RC
18306
18307# The commands to list exported symbols.
18308export_symbols_cmds=$lt_export_symbols_cmds_RC
18309
18310# The commands to extract the exported symbol list from a shared archive.
18311extract_expsyms_cmds=$lt_extract_expsyms_cmds
18312
18313# Symbols that should not be listed in the preloaded symbols.
18314exclude_expsyms=$lt_exclude_expsyms_RC
18315
18316# Symbols that must always be exported.
18317include_expsyms=$lt_include_expsyms_RC
18318
18319# ### END LIBTOOL TAG CONFIG: $tagname
18320
18321__EOF__
18322
18323
18324else
18325 # If there is no Makefile yet, we rely on a make rule to execute
18326 # `config.status --recheck' to rerun these tests and create the
18327 # libtool script then.
18328 test -f Makefile && make "$ltmain"
18329fi
18330
18331
18332ac_ext=c
18333ac_cpp='$CPP $CPPFLAGS'
18334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336ac_compiler_gnu=$ac_cv_c_compiler_gnu
18337
18338CC="$lt_save_CC"
18339
18340 ;;
18341
18342 *)
18343 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18344echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18345 { (exit 1); exit 1; }; }
18346 ;;
18347 esac
18348
18349 # Append the new tag name to the list of available tags.
18350 if test -n "$tagname" ; then
18351 available_tags="$available_tags $tagname"
18352 fi
18353 fi
18354 done
18355 IFS="$lt_save_ifs"
18356
18357 # Now substitute the updated list of available tags.
18358 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18359 mv "${ofile}T" "$ofile"
18360 chmod +x "$ofile"
18361 else
18362 rm -f "${ofile}T"
18363 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18364echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18365 { (exit 1); exit 1; }; }
18366 fi
18367fi
John Criswell7a73b802003-06-30 21:59:07 +000018368
18369
18370
18371# This can be used to rebuild libtool when needed
18372LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18373
18374# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018375LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018376
18377# Prevent multiple expansion
18378
18379
18380
John Criswell47fdd832003-07-14 16:52:07 +000018381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
John Criswellde00db22003-08-25 16:49:54 +000018399# Extract the first word of "pwd", so it can be a program name with args.
18400set dummy pwd; ac_word=$2
18401echo "$as_me:$LINENO: checking for $ac_word" >&5
18402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18403if test "${ac_cv_path_RPWD+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18405else
18406 case $RPWD in
18407 [\\/]* | ?:[\\/]*)
18408 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18409 ;;
18410 *)
18411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18412for as_dir in $PATH
18413do
18414 IFS=$as_save_IFS
18415 test -z "$as_dir" && as_dir=.
18416 for ac_exec_ext in '' $ac_executable_extensions; do
18417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18418 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18420 break 2
18421 fi
18422done
18423done
18424
18425 ;;
18426esac
18427fi
18428RPWD=$ac_cv_path_RPWD
18429
18430if test -n "$RPWD"; then
18431 echo "$as_me:$LINENO: result: $RPWD" >&5
18432echo "${ECHO_T}$RPWD" >&6
18433else
18434 echo "$as_me:$LINENO: result: no" >&5
18435echo "${ECHO_T}no" >&6
18436fi
18437
John Criswell7a73b802003-06-30 21:59:07 +000018438# Extract the first word of "ar", so it can be a program name with args.
18439set dummy ar; ac_word=$2
18440echo "$as_me:$LINENO: checking for $ac_word" >&5
18441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18442if test "${ac_cv_path_AR+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444else
18445 case $AR in
18446 [\\/]* | ?:[\\/]*)
18447 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18448 ;;
18449 *)
18450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18451for as_dir in $PATH
18452do
18453 IFS=$as_save_IFS
18454 test -z "$as_dir" && as_dir=.
18455 for ac_exec_ext in '' $ac_executable_extensions; do
18456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18457 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18459 break 2
18460 fi
18461done
18462done
18463
18464 ;;
18465esac
18466fi
18467AR=$ac_cv_path_AR
18468
18469if test -n "$AR"; then
18470 echo "$as_me:$LINENO: result: $AR" >&5
18471echo "${ECHO_T}$AR" >&6
18472else
18473 echo "$as_me:$LINENO: result: no" >&5
18474echo "${ECHO_T}no" >&6
18475fi
18476
18477# Extract the first word of "sed", so it can be a program name with args.
18478set dummy sed; ac_word=$2
18479echo "$as_me:$LINENO: checking for $ac_word" >&5
18480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18481if test "${ac_cv_path_SED+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483else
18484 case $SED in
18485 [\\/]* | ?:[\\/]*)
18486 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18487 ;;
18488 *)
18489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490for as_dir in $PATH
18491do
18492 IFS=$as_save_IFS
18493 test -z "$as_dir" && as_dir=.
18494 for ac_exec_ext in '' $ac_executable_extensions; do
18495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18498 break 2
18499 fi
18500done
18501done
18502
18503 ;;
18504esac
18505fi
18506SED=$ac_cv_path_SED
18507
18508if test -n "$SED"; then
18509 echo "$as_me:$LINENO: result: $SED" >&5
18510echo "${ECHO_T}$SED" >&6
18511else
18512 echo "$as_me:$LINENO: result: no" >&5
18513echo "${ECHO_T}no" >&6
18514fi
18515
18516# Extract the first word of "rm", so it can be a program name with args.
18517set dummy rm; ac_word=$2
18518echo "$as_me:$LINENO: checking for $ac_word" >&5
18519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520if test "${ac_cv_path_RM+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522else
18523 case $RM in
18524 [\\/]* | ?:[\\/]*)
18525 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18526 ;;
18527 *)
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529for as_dir in $PATH
18530do
18531 IFS=$as_save_IFS
18532 test -z "$as_dir" && as_dir=.
18533 for ac_exec_ext in '' $ac_executable_extensions; do
18534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537 break 2
18538 fi
18539done
18540done
18541
18542 ;;
18543esac
18544fi
18545RM=$ac_cv_path_RM
18546
18547if test -n "$RM"; then
18548 echo "$as_me:$LINENO: result: $RM" >&5
18549echo "${ECHO_T}$RM" >&6
18550else
18551 echo "$as_me:$LINENO: result: no" >&5
18552echo "${ECHO_T}no" >&6
18553fi
18554
18555# Extract the first word of "echo", so it can be a program name with args.
18556set dummy echo; ac_word=$2
18557echo "$as_me:$LINENO: checking for $ac_word" >&5
18558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18559if test "${ac_cv_path_ECHO+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561else
18562 case $ECHO in
18563 [\\/]* | ?:[\\/]*)
18564 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18565 ;;
18566 *)
18567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18568for as_dir in $PATH
18569do
18570 IFS=$as_save_IFS
18571 test -z "$as_dir" && as_dir=.
18572 for ac_exec_ext in '' $ac_executable_extensions; do
18573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18574 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18576 break 2
18577 fi
18578done
18579done
18580
18581 ;;
18582esac
18583fi
18584ECHO=$ac_cv_path_ECHO
18585
18586if test -n "$ECHO"; then
18587 echo "$as_me:$LINENO: result: $ECHO" >&5
18588echo "${ECHO_T}$ECHO" >&6
18589else
18590 echo "$as_me:$LINENO: result: no" >&5
18591echo "${ECHO_T}no" >&6
18592fi
18593
18594# Extract the first word of "mkdir", so it can be a program name with args.
18595set dummy mkdir; ac_word=$2
18596echo "$as_me:$LINENO: checking for $ac_word" >&5
18597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18598if test "${ac_cv_path_MKDIR+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600else
18601 case $MKDIR in
18602 [\\/]* | ?:[\\/]*)
18603 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18604 ;;
18605 *)
18606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607for as_dir in $PATH
18608do
18609 IFS=$as_save_IFS
18610 test -z "$as_dir" && as_dir=.
18611 for ac_exec_ext in '' $ac_executable_extensions; do
18612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18613 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18615 break 2
18616 fi
18617done
18618done
18619
18620 ;;
18621esac
18622fi
18623MKDIR=$ac_cv_path_MKDIR
18624
18625if test -n "$MKDIR"; then
18626 echo "$as_me:$LINENO: result: $MKDIR" >&5
18627echo "${ECHO_T}$MKDIR" >&6
18628else
18629 echo "$as_me:$LINENO: result: no" >&5
18630echo "${ECHO_T}no" >&6
18631fi
18632
18633# Extract the first word of "date", so it can be a program name with args.
18634set dummy date; ac_word=$2
18635echo "$as_me:$LINENO: checking for $ac_word" >&5
18636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18637if test "${ac_cv_path_DATE+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640 case $DATE in
18641 [\\/]* | ?:[\\/]*)
18642 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18643 ;;
18644 *)
18645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646for as_dir in $PATH
18647do
18648 IFS=$as_save_IFS
18649 test -z "$as_dir" && as_dir=.
18650 for ac_exec_ext in '' $ac_executable_extensions; do
18651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18652 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18654 break 2
18655 fi
18656done
18657done
18658
18659 ;;
18660esac
18661fi
18662DATE=$ac_cv_path_DATE
18663
18664if test -n "$DATE"; then
18665 echo "$as_me:$LINENO: result: $DATE" >&5
18666echo "${ECHO_T}$DATE" >&6
18667else
18668 echo "$as_me:$LINENO: result: no" >&5
18669echo "${ECHO_T}no" >&6
18670fi
18671
18672# Extract the first word of "mv", so it can be a program name with args.
18673set dummy mv; ac_word=$2
18674echo "$as_me:$LINENO: checking for $ac_word" >&5
18675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676if test "${ac_cv_path_MV+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679 case $MV in
18680 [\\/]* | ?:[\\/]*)
18681 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18682 ;;
18683 *)
18684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685for as_dir in $PATH
18686do
18687 IFS=$as_save_IFS
18688 test -z "$as_dir" && as_dir=.
18689 for ac_exec_ext in '' $ac_executable_extensions; do
18690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693 break 2
18694 fi
18695done
18696done
18697
18698 ;;
18699esac
18700fi
18701MV=$ac_cv_path_MV
18702
18703if test -n "$MV"; then
18704 echo "$as_me:$LINENO: result: $MV" >&5
18705echo "${ECHO_T}$MV" >&6
18706else
18707 echo "$as_me:$LINENO: result: no" >&5
18708echo "${ECHO_T}no" >&6
18709fi
18710
18711# Extract the first word of "dot", so it can be a program name with args.
18712set dummy dot; ac_word=$2
18713echo "$as_me:$LINENO: checking for $ac_word" >&5
18714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18715if test "${ac_cv_path_DOT+set}" = set; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
18717else
18718 case $DOT in
18719 [\\/]* | ?:[\\/]*)
18720 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18721 ;;
18722 *)
18723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724for as_dir in $PATH
18725do
18726 IFS=$as_save_IFS
18727 test -z "$as_dir" && as_dir=.
18728 for ac_exec_ext in '' $ac_executable_extensions; do
18729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18732 break 2
18733 fi
18734done
18735done
18736
18737 ;;
18738esac
18739fi
18740DOT=$ac_cv_path_DOT
18741
18742if test -n "$DOT"; then
18743 echo "$as_me:$LINENO: result: $DOT" >&5
18744echo "${ECHO_T}$DOT" >&6
18745else
18746 echo "$as_me:$LINENO: result: no" >&5
18747echo "${ECHO_T}no" >&6
18748fi
18749
18750# Extract the first word of "etags", so it can be a program name with args.
18751set dummy etags; ac_word=$2
18752echo "$as_me:$LINENO: checking for $ac_word" >&5
18753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18754if test "${ac_cv_path_ETAGS+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18756else
18757 case $ETAGS in
18758 [\\/]* | ?:[\\/]*)
18759 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18760 ;;
18761 *)
18762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18763for as_dir in $PATH
18764do
18765 IFS=$as_save_IFS
18766 test -z "$as_dir" && as_dir=.
18767 for ac_exec_ext in '' $ac_executable_extensions; do
18768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18769 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18771 break 2
18772 fi
18773done
18774done
18775
18776 ;;
18777esac
18778fi
18779ETAGS=$ac_cv_path_ETAGS
18780
18781if test -n "$ETAGS"; then
18782 echo "$as_me:$LINENO: result: $ETAGS" >&5
18783echo "${ECHO_T}$ETAGS" >&6
18784else
18785 echo "$as_me:$LINENO: result: no" >&5
18786echo "${ECHO_T}no" >&6
18787fi
18788
18789# Extract the first word of "purify", so it can be a program name with args.
18790set dummy purify; ac_word=$2
18791echo "$as_me:$LINENO: checking for $ac_word" >&5
18792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18793if test "${ac_cv_path_PURIFY+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795else
18796 case $PURIFY in
18797 [\\/]* | ?:[\\/]*)
18798 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18799 ;;
18800 *)
18801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802for as_dir in $PATH
18803do
18804 IFS=$as_save_IFS
18805 test -z "$as_dir" && as_dir=.
18806 for ac_exec_ext in '' $ac_executable_extensions; do
18807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18808 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18810 break 2
18811 fi
18812done
18813done
18814
18815 ;;
18816esac
18817fi
18818PURIFY=$ac_cv_path_PURIFY
18819
18820if test -n "$PURIFY"; then
18821 echo "$as_me:$LINENO: result: $PURIFY" >&5
18822echo "${ECHO_T}$PURIFY" >&6
18823else
18824 echo "$as_me:$LINENO: result: no" >&5
18825echo "${ECHO_T}no" >&6
18826fi
18827
John Criswellde00db22003-08-25 16:49:54 +000018828# Extract the first word of "python", so it can be a program name with args.
18829set dummy python; ac_word=$2
18830echo "$as_me:$LINENO: checking for $ac_word" >&5
18831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18832if test "${ac_cv_path_PYTHON+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834else
18835 case $PYTHON in
18836 [\\/]* | ?:[\\/]*)
18837 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18838 ;;
18839 *)
18840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841for as_dir in $PATH
18842do
18843 IFS=$as_save_IFS
18844 test -z "$as_dir" && as_dir=.
18845 for ac_exec_ext in '' $ac_executable_extensions; do
18846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18847 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18849 break 2
18850 fi
18851done
18852done
18853
18854 ;;
18855esac
18856fi
18857PYTHON=$ac_cv_path_PYTHON
18858
18859if test -n "$PYTHON"; then
18860 echo "$as_me:$LINENO: result: $PYTHON" >&5
18861echo "${ECHO_T}$PYTHON" >&6
18862else
18863 echo "$as_me:$LINENO: result: no" >&5
18864echo "${ECHO_T}no" >&6
18865fi
18866
18867# Extract the first word of "qmtest", so it can be a program name with args.
18868set dummy qmtest; ac_word=$2
18869echo "$as_me:$LINENO: checking for $ac_word" >&5
18870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18871if test "${ac_cv_path_QMTEST+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873else
18874 case $QMTEST in
18875 [\\/]* | ?:[\\/]*)
18876 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18877 ;;
18878 *)
18879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18880for as_dir in $PATH
18881do
18882 IFS=$as_save_IFS
18883 test -z "$as_dir" && as_dir=.
18884 for ac_exec_ext in '' $ac_executable_extensions; do
18885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18886 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18888 break 2
18889 fi
18890done
18891done
18892
18893 ;;
18894esac
18895fi
18896QMTEST=$ac_cv_path_QMTEST
18897
18898if test -n "$QMTEST"; then
18899 echo "$as_me:$LINENO: result: $QMTEST" >&5
18900echo "${ECHO_T}$QMTEST" >&6
18901else
18902 echo "$as_me:$LINENO: result: no" >&5
18903echo "${ECHO_T}no" >&6
18904fi
18905
18906
18907pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18908pymajor=`echo $pyversion | cut -d. -f1`
18909pyminor=`echo $pyversion | cut -d. -f2`
18910
18911if test "$pymajor" -ge "2"
18912then
18913 if test "$pymajor" -eq "2"
18914 then
18915 if test "$pyminor" -lt "2"
18916 then
18917 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18918echo "$as_me: error: Python 2.2 or greater required" >&2;}
18919 { (exit 1); exit 1; }; }
18920 fi
18921 fi
18922else
18923 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18924echo "$as_me: error: Python 2.2 or greater required" >&2;}
18925 { (exit 1); exit 1; }; }
18926fi
John Criswell7a73b802003-06-30 21:59:07 +000018927
18928
18929
18930
18931
18932echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18933echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18934if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936else
18937 ac_check_lib_save_LIBS=$LIBS
18938LIBS="-lelf $LIBS"
18939cat >conftest.$ac_ext <<_ACEOF
18940#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018941/* confdefs.h. */
18942_ACEOF
18943cat confdefs.h >>conftest.$ac_ext
18944cat >>conftest.$ac_ext <<_ACEOF
18945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018946
18947/* Override any gcc2 internal prototype to avoid an error. */
18948#ifdef __cplusplus
18949extern "C"
18950#endif
18951/* We use char because int might match the return type of a gcc2
18952 builtin and then its argument prototype would still apply. */
18953char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018954int
18955main ()
18956{
18957elf_begin ();
18958 ;
18959 return 0;
18960}
18961_ACEOF
18962rm -f conftest.$ac_objext conftest$ac_exeext
18963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964 (eval $ac_link) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } &&
18968 { ac_try='test -s conftest$ac_exeext'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_cv_lib_elf_elf_begin=yes
18975else
18976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018977sed 's/^/| /' conftest.$ac_ext >&5
18978
John Criswell7a73b802003-06-30 21:59:07 +000018979ac_cv_lib_elf_elf_begin=no
18980fi
18981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18982LIBS=$ac_check_lib_save_LIBS
18983fi
18984echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18985echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18986if test $ac_cv_lib_elf_elf_begin = yes; then
18987 cat >>confdefs.h <<_ACEOF
18988#define HAVE_LIBELF 1
18989_ACEOF
18990
18991 LIBS="-lelf $LIBS"
18992
18993fi
18994
18995
18996echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18997echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18998if test "${ac_cv_search_dlopen+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19000else
19001 ac_func_search_save_LIBS=$LIBS
19002ac_cv_search_dlopen=no
19003cat >conftest.$ac_ext <<_ACEOF
19004#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019005/* confdefs.h. */
19006_ACEOF
19007cat confdefs.h >>conftest.$ac_ext
19008cat >>conftest.$ac_ext <<_ACEOF
19009/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019010
19011/* Override any gcc2 internal prototype to avoid an error. */
19012#ifdef __cplusplus
19013extern "C"
19014#endif
19015/* We use char because int might match the return type of a gcc2
19016 builtin and then its argument prototype would still apply. */
19017char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019018int
19019main ()
19020{
19021dlopen ();
19022 ;
19023 return 0;
19024}
19025_ACEOF
19026rm -f conftest.$ac_objext conftest$ac_exeext
19027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19028 (eval $ac_link) 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } &&
19032 { ac_try='test -s conftest$ac_exeext'
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_search_dlopen="none required"
19039else
19040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019041sed 's/^/| /' conftest.$ac_ext >&5
19042
John Criswell7a73b802003-06-30 21:59:07 +000019043fi
19044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19045if test "$ac_cv_search_dlopen" = no; then
19046 for ac_lib in dl; do
19047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19048 cat >conftest.$ac_ext <<_ACEOF
19049#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019050/* confdefs.h. */
19051_ACEOF
19052cat confdefs.h >>conftest.$ac_ext
19053cat >>conftest.$ac_ext <<_ACEOF
19054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019055
19056/* Override any gcc2 internal prototype to avoid an error. */
19057#ifdef __cplusplus
19058extern "C"
19059#endif
19060/* We use char because int might match the return type of a gcc2
19061 builtin and then its argument prototype would still apply. */
19062char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019063int
19064main ()
19065{
19066dlopen ();
19067 ;
19068 return 0;
19069}
19070_ACEOF
19071rm -f conftest.$ac_objext conftest$ac_exeext
19072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073 (eval $ac_link) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_search_dlopen="-l$ac_lib"
19084break
19085else
19086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019087sed 's/^/| /' conftest.$ac_ext >&5
19088
John Criswell7a73b802003-06-30 21:59:07 +000019089fi
19090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19091 done
19092fi
19093LIBS=$ac_func_search_save_LIBS
19094fi
19095echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19096echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19097if test "$ac_cv_search_dlopen" != no; then
19098 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19099
19100else
19101 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19102echo "$as_me: error: dlopen() required but not found" >&2;}
19103 { (exit 1); exit 1; }; }
19104fi
19105
19106
19107echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19108echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19109if test "${ac_cv_search_mallinfo+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111else
19112 ac_func_search_save_LIBS=$LIBS
19113ac_cv_search_mallinfo=no
19114cat >conftest.$ac_ext <<_ACEOF
19115#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019116/* confdefs.h. */
19117_ACEOF
19118cat confdefs.h >>conftest.$ac_ext
19119cat >>conftest.$ac_ext <<_ACEOF
19120/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019121
19122/* Override any gcc2 internal prototype to avoid an error. */
19123#ifdef __cplusplus
19124extern "C"
19125#endif
19126/* We use char because int might match the return type of a gcc2
19127 builtin and then its argument prototype would still apply. */
19128char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019129int
19130main ()
19131{
19132mallinfo ();
19133 ;
19134 return 0;
19135}
19136_ACEOF
19137rm -f conftest.$ac_objext conftest$ac_exeext
19138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_cv_search_mallinfo="none required"
19150else
19151 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019152sed 's/^/| /' conftest.$ac_ext >&5
19153
John Criswell7a73b802003-06-30 21:59:07 +000019154fi
19155rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19156if test "$ac_cv_search_mallinfo" = no; then
19157 for ac_lib in malloc; do
19158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19159 cat >conftest.$ac_ext <<_ACEOF
19160#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019161/* confdefs.h. */
19162_ACEOF
19163cat confdefs.h >>conftest.$ac_ext
19164cat >>conftest.$ac_ext <<_ACEOF
19165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019166
19167/* Override any gcc2 internal prototype to avoid an error. */
19168#ifdef __cplusplus
19169extern "C"
19170#endif
19171/* We use char because int might match the return type of a gcc2
19172 builtin and then its argument prototype would still apply. */
19173char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019174int
19175main ()
19176{
19177mallinfo ();
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext conftest$ac_exeext
19183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19184 (eval $ac_link) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -s conftest$ac_exeext'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_cv_search_mallinfo="-l$ac_lib"
19195break
19196else
19197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019198sed 's/^/| /' conftest.$ac_ext >&5
19199
John Criswell7a73b802003-06-30 21:59:07 +000019200fi
19201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19202 done
19203fi
19204LIBS=$ac_func_search_save_LIBS
19205fi
19206echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19207echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19208if test "$ac_cv_search_mallinfo" != no; then
19209 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19210 cat >>confdefs.h <<\_ACEOF
19211#define HAVE_MALLINFO 1
19212_ACEOF
19213
19214fi
19215
19216
19217
19218echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19219echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19220if test "${ac_cv_header_stdc+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19222else
19223 cat >conftest.$ac_ext <<_ACEOF
19224#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019225/* confdefs.h. */
19226_ACEOF
19227cat confdefs.h >>conftest.$ac_ext
19228cat >>conftest.$ac_ext <<_ACEOF
19229/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019230#include <stdlib.h>
19231#include <stdarg.h>
19232#include <string.h>
19233#include <float.h>
19234
John Criswell0c38eaf2003-09-10 15:17:25 +000019235int
19236main ()
19237{
19238
19239 ;
19240 return 0;
19241}
John Criswell7a73b802003-06-30 21:59:07 +000019242_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019243rm -f conftest.$ac_objext
19244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19245 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019246 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019248 (exit $ac_status); } &&
19249 { ac_try='test -s conftest.$ac_objext'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019255 ac_cv_header_stdc=yes
19256else
19257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019258sed 's/^/| /' conftest.$ac_ext >&5
19259
19260ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019261fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019262rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019263
19264if test $ac_cv_header_stdc = yes; then
19265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19266 cat >conftest.$ac_ext <<_ACEOF
19267#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019273#include <string.h>
19274
19275_ACEOF
19276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019277 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019278 :
19279else
19280 ac_cv_header_stdc=no
19281fi
19282rm -f conftest*
19283
19284fi
19285
19286if test $ac_cv_header_stdc = yes; then
19287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19288 cat >conftest.$ac_ext <<_ACEOF
19289#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019290/* confdefs.h. */
19291_ACEOF
19292cat confdefs.h >>conftest.$ac_ext
19293cat >>conftest.$ac_ext <<_ACEOF
19294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019295#include <stdlib.h>
19296
19297_ACEOF
19298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019299 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019300 :
19301else
19302 ac_cv_header_stdc=no
19303fi
19304rm -f conftest*
19305
19306fi
19307
19308if test $ac_cv_header_stdc = yes; then
19309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19310 if test "$cross_compiling" = yes; then
19311 :
19312else
19313 cat >conftest.$ac_ext <<_ACEOF
19314#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019315/* confdefs.h. */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019320#include <ctype.h>
19321#if ((' ' & 0x0FF) == 0x020)
19322# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19323# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19324#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019325# define ISLOWER(c) \
19326 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019327 || ('j' <= (c) && (c) <= 'r') \
19328 || ('s' <= (c) && (c) <= 'z'))
19329# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19330#endif
19331
19332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19333int
19334main ()
19335{
19336 int i;
19337 for (i = 0; i < 256; i++)
19338 if (XOR (islower (i), ISLOWER (i))
19339 || toupper (i) != TOUPPER (i))
19340 exit(2);
19341 exit (0);
19342}
19343_ACEOF
19344rm -f conftest$ac_exeext
19345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19346 (eval $ac_link) 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 :
19356else
19357 echo "$as_me: program exited with status $ac_status" >&5
19358echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019359sed 's/^/| /' conftest.$ac_ext >&5
19360
John Criswell7a73b802003-06-30 21:59:07 +000019361( exit $ac_status )
19362ac_cv_header_stdc=no
19363fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019364rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019365fi
19366fi
19367fi
19368echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19369echo "${ECHO_T}$ac_cv_header_stdc" >&6
19370if test $ac_cv_header_stdc = yes; then
19371
19372cat >>confdefs.h <<\_ACEOF
19373#define STDC_HEADERS 1
19374_ACEOF
19375
19376fi
19377
19378echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19379echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19380if test "${ac_cv_header_sys_wait_h+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19382else
19383 cat >conftest.$ac_ext <<_ACEOF
19384#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019385/* confdefs.h. */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019390#include <sys/types.h>
19391#include <sys/wait.h>
19392#ifndef WEXITSTATUS
19393# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19394#endif
19395#ifndef WIFEXITED
19396# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19397#endif
19398
John Criswell7a73b802003-06-30 21:59:07 +000019399int
19400main ()
19401{
19402 int s;
19403 wait (&s);
19404 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19405 ;
19406 return 0;
19407}
19408_ACEOF
19409rm -f conftest.$ac_objext
19410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19411 (eval $ac_compile) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -s conftest.$ac_objext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_cv_header_sys_wait_h=yes
19422else
19423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019424sed 's/^/| /' conftest.$ac_ext >&5
19425
John Criswell7a73b802003-06-30 21:59:07 +000019426ac_cv_header_sys_wait_h=no
19427fi
19428rm -f conftest.$ac_objext conftest.$ac_ext
19429fi
19430echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19431echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19432if test $ac_cv_header_sys_wait_h = yes; then
19433
19434cat >>confdefs.h <<\_ACEOF
19435#define HAVE_SYS_WAIT_H 1
19436_ACEOF
19437
19438fi
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19450do
19451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19452if eval "test \"\${$as_ac_Header+set}\" = set"; then
19453 echo "$as_me:$LINENO: checking for $ac_header" >&5
19454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19455if eval "test \"\${$as_ac_Header+set}\" = set"; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19457fi
19458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19460else
19461 # Is the header compilable?
19462echo "$as_me:$LINENO: checking $ac_header usability" >&5
19463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19464cat >conftest.$ac_ext <<_ACEOF
19465#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019466/* confdefs.h. */
19467_ACEOF
19468cat confdefs.h >>conftest.$ac_ext
19469cat >>conftest.$ac_ext <<_ACEOF
19470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019471$ac_includes_default
19472#include <$ac_header>
19473_ACEOF
19474rm -f conftest.$ac_objext
19475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476 (eval $ac_compile) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
19480 { ac_try='test -s conftest.$ac_objext'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486 ac_header_compiler=yes
19487else
19488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019489sed 's/^/| /' conftest.$ac_ext >&5
19490
John Criswell7a73b802003-06-30 21:59:07 +000019491ac_header_compiler=no
19492fi
19493rm -f conftest.$ac_objext conftest.$ac_ext
19494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19495echo "${ECHO_T}$ac_header_compiler" >&6
19496
19497# Is the header present?
19498echo "$as_me:$LINENO: checking $ac_header presence" >&5
19499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19500cat >conftest.$ac_ext <<_ACEOF
19501#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019502/* confdefs.h. */
19503_ACEOF
19504cat confdefs.h >>conftest.$ac_ext
19505cat >>conftest.$ac_ext <<_ACEOF
19506/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019507#include <$ac_header>
19508_ACEOF
19509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19511 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019512 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } >/dev/null; then
19517 if test -s conftest.err; then
19518 ac_cpp_err=$ac_c_preproc_warn_flag
19519 else
19520 ac_cpp_err=
19521 fi
19522else
19523 ac_cpp_err=yes
19524fi
19525if test -z "$ac_cpp_err"; then
19526 ac_header_preproc=yes
19527else
19528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019529sed 's/^/| /' conftest.$ac_ext >&5
19530
John Criswell7a73b802003-06-30 21:59:07 +000019531 ac_header_preproc=no
19532fi
19533rm -f conftest.err conftest.$ac_ext
19534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19535echo "${ECHO_T}$ac_header_preproc" >&6
19536
19537# So? What about this header?
19538case $ac_header_compiler:$ac_header_preproc in
19539 yes:no )
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19544 (
19545 cat <<\_ASBOX
19546## ------------------------------------ ##
19547## Report this to bug-autoconf@gnu.org. ##
19548## ------------------------------------ ##
19549_ASBOX
19550 ) |
19551 sed "s/^/$as_me: WARNING: /" >&2
19552 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019553 no:yes )
19554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19560 (
19561 cat <<\_ASBOX
19562## ------------------------------------ ##
19563## Report this to bug-autoconf@gnu.org. ##
19564## ------------------------------------ ##
19565_ASBOX
19566 ) |
19567 sed "s/^/$as_me: WARNING: /" >&2
19568 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019569esac
19570echo "$as_me:$LINENO: checking for $ac_header" >&5
19571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19572if eval "test \"\${$as_ac_Header+set}\" = set"; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19574else
19575 eval "$as_ac_Header=$ac_header_preproc"
19576fi
19577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19579
19580fi
19581if test `eval echo '${'$as_ac_Header'}'` = yes; then
19582 cat >>confdefs.h <<_ACEOF
19583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19584_ACEOF
19585
19586fi
19587
19588done
19589
19590
19591
19592
19593
19594
19595for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19596do
19597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19598if eval "test \"\${$as_ac_Header+set}\" = set"; then
19599 echo "$as_me:$LINENO: checking for $ac_header" >&5
19600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19601if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603fi
19604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19606else
19607 # Is the header compilable?
19608echo "$as_me:$LINENO: checking $ac_header usability" >&5
19609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19610cat >conftest.$ac_ext <<_ACEOF
19611#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019612/* confdefs.h. */
19613_ACEOF
19614cat confdefs.h >>conftest.$ac_ext
19615cat >>conftest.$ac_ext <<_ACEOF
19616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019617$ac_includes_default
19618#include <$ac_header>
19619_ACEOF
19620rm -f conftest.$ac_objext
19621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622 (eval $ac_compile) 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } &&
19626 { ac_try='test -s conftest.$ac_objext'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; }; then
19632 ac_header_compiler=yes
19633else
19634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019635sed 's/^/| /' conftest.$ac_ext >&5
19636
John Criswell7a73b802003-06-30 21:59:07 +000019637ac_header_compiler=no
19638fi
19639rm -f conftest.$ac_objext conftest.$ac_ext
19640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19641echo "${ECHO_T}$ac_header_compiler" >&6
19642
19643# Is the header present?
19644echo "$as_me:$LINENO: checking $ac_header presence" >&5
19645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19646cat >conftest.$ac_ext <<_ACEOF
19647#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019648/* confdefs.h. */
19649_ACEOF
19650cat confdefs.h >>conftest.$ac_ext
19651cat >>conftest.$ac_ext <<_ACEOF
19652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019653#include <$ac_header>
19654_ACEOF
19655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19657 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019658 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } >/dev/null; then
19663 if test -s conftest.err; then
19664 ac_cpp_err=$ac_c_preproc_warn_flag
19665 else
19666 ac_cpp_err=
19667 fi
19668else
19669 ac_cpp_err=yes
19670fi
19671if test -z "$ac_cpp_err"; then
19672 ac_header_preproc=yes
19673else
19674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019675sed 's/^/| /' conftest.$ac_ext >&5
19676
John Criswell7a73b802003-06-30 21:59:07 +000019677 ac_header_preproc=no
19678fi
19679rm -f conftest.err conftest.$ac_ext
19680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19681echo "${ECHO_T}$ac_header_preproc" >&6
19682
19683# So? What about this header?
19684case $ac_header_compiler:$ac_header_preproc in
19685 yes:no )
19686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19690 (
19691 cat <<\_ASBOX
19692## ------------------------------------ ##
19693## Report this to bug-autoconf@gnu.org. ##
19694## ------------------------------------ ##
19695_ASBOX
19696 ) |
19697 sed "s/^/$as_me: WARNING: /" >&2
19698 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019699 no:yes )
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19703echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19706 (
19707 cat <<\_ASBOX
19708## ------------------------------------ ##
19709## Report this to bug-autoconf@gnu.org. ##
19710## ------------------------------------ ##
19711_ASBOX
19712 ) |
19713 sed "s/^/$as_me: WARNING: /" >&2
19714 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019715esac
19716echo "$as_me:$LINENO: checking for $ac_header" >&5
19717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19718if eval "test \"\${$as_ac_Header+set}\" = set"; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720else
19721 eval "$as_ac_Header=$ac_header_preproc"
19722fi
19723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19725
19726fi
19727if test `eval echo '${'$as_ac_Header'}'` = yes; then
19728 cat >>confdefs.h <<_ACEOF
19729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19730_ACEOF
19731
19732fi
19733
19734done
19735
19736
19737
19738
19739for ac_header in dlfcn.h link.h
19740do
19741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19742if eval "test \"\${$as_ac_Header+set}\" = set"; then
19743 echo "$as_me:$LINENO: checking for $ac_header" >&5
19744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19745if eval "test \"\${$as_ac_Header+set}\" = set"; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19747fi
19748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19750else
19751 # Is the header compilable?
19752echo "$as_me:$LINENO: checking $ac_header usability" >&5
19753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19754cat >conftest.$ac_ext <<_ACEOF
19755#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019756/* confdefs.h. */
19757_ACEOF
19758cat confdefs.h >>conftest.$ac_ext
19759cat >>conftest.$ac_ext <<_ACEOF
19760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019761$ac_includes_default
19762#include <$ac_header>
19763_ACEOF
19764rm -f conftest.$ac_objext
19765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19766 (eval $ac_compile) 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -s conftest.$ac_objext'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; }; then
19776 ac_header_compiler=yes
19777else
19778 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019779sed 's/^/| /' conftest.$ac_ext >&5
19780
John Criswell7a73b802003-06-30 21:59:07 +000019781ac_header_compiler=no
19782fi
19783rm -f conftest.$ac_objext conftest.$ac_ext
19784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785echo "${ECHO_T}$ac_header_compiler" >&6
19786
19787# Is the header present?
19788echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19790cat >conftest.$ac_ext <<_ACEOF
19791#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019792/* confdefs.h. */
19793_ACEOF
19794cat confdefs.h >>conftest.$ac_ext
19795cat >>conftest.$ac_ext <<_ACEOF
19796/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019797#include <$ac_header>
19798_ACEOF
19799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19801 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019802 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019803 rm -f conftest.er1
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } >/dev/null; then
19807 if test -s conftest.err; then
19808 ac_cpp_err=$ac_c_preproc_warn_flag
19809 else
19810 ac_cpp_err=
19811 fi
19812else
19813 ac_cpp_err=yes
19814fi
19815if test -z "$ac_cpp_err"; then
19816 ac_header_preproc=yes
19817else
19818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019819sed 's/^/| /' conftest.$ac_ext >&5
19820
John Criswell7a73b802003-06-30 21:59:07 +000019821 ac_header_preproc=no
19822fi
19823rm -f conftest.err conftest.$ac_ext
19824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19825echo "${ECHO_T}$ac_header_preproc" >&6
19826
19827# So? What about this header?
19828case $ac_header_compiler:$ac_header_preproc in
19829 yes:no )
19830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19834 (
19835 cat <<\_ASBOX
19836## ------------------------------------ ##
19837## Report this to bug-autoconf@gnu.org. ##
19838## ------------------------------------ ##
19839_ASBOX
19840 ) |
19841 sed "s/^/$as_me: WARNING: /" >&2
19842 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019843 no:yes )
19844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19850 (
19851 cat <<\_ASBOX
19852## ------------------------------------ ##
19853## Report this to bug-autoconf@gnu.org. ##
19854## ------------------------------------ ##
19855_ASBOX
19856 ) |
19857 sed "s/^/$as_me: WARNING: /" >&2
19858 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019859esac
19860echo "$as_me:$LINENO: checking for $ac_header" >&5
19861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19862if eval "test \"\${$as_ac_Header+set}\" = set"; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864else
19865 eval "$as_ac_Header=$ac_header_preproc"
19866fi
19867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19869
19870fi
19871if test `eval echo '${'$as_ac_Header'}'` = yes; then
19872 cat >>confdefs.h <<_ACEOF
19873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19874_ACEOF
19875
19876fi
19877
19878done
19879
19880
19881
John Criswell7a73b802003-06-30 21:59:07 +000019882echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19883echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19884if test "${ac_cv_c_const+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886else
19887 cat >conftest.$ac_ext <<_ACEOF
19888#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019889/* confdefs.h. */
19890_ACEOF
19891cat confdefs.h >>conftest.$ac_ext
19892cat >>conftest.$ac_ext <<_ACEOF
19893/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019894
John Criswell7a73b802003-06-30 21:59:07 +000019895int
19896main ()
19897{
19898/* FIXME: Include the comments suggested by Paul. */
19899#ifndef __cplusplus
19900 /* Ultrix mips cc rejects this. */
19901 typedef int charset[2];
19902 const charset x;
19903 /* SunOS 4.1.1 cc rejects this. */
19904 char const *const *ccp;
19905 char **p;
19906 /* NEC SVR4.0.2 mips cc rejects this. */
19907 struct point {int x, y;};
19908 static struct point const zero = {0,0};
19909 /* AIX XL C 1.02.0.0 rejects this.
19910 It does not let you subtract one const X* pointer from another in
19911 an arm of an if-expression whose if-part is not a constant
19912 expression */
19913 const char *g = "string";
19914 ccp = &g + (g ? g-g : 0);
19915 /* HPUX 7.0 cc rejects these. */
19916 ++ccp;
19917 p = (char**) ccp;
19918 ccp = (char const *const *) p;
19919 { /* SCO 3.2v4 cc rejects this. */
19920 char *t;
19921 char const *s = 0 ? (char *) 0 : (char const *) 0;
19922
19923 *t++ = 0;
19924 }
19925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19926 int x[] = {25, 17};
19927 const int *foo = &x[0];
19928 ++foo;
19929 }
19930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19931 typedef const int *iptr;
19932 iptr p = 0;
19933 ++p;
19934 }
19935 { /* AIX XL C 1.02.0.0 rejects this saying
19936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19937 struct s { int j; const int *ap[3]; };
19938 struct s *b; b->j = 5;
19939 }
19940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19941 const int foo = 10;
19942 }
19943#endif
19944
19945 ;
19946 return 0;
19947}
19948_ACEOF
19949rm -f conftest.$ac_objext
19950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19951 (eval $ac_compile) 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -s conftest.$ac_objext'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; }; then
19961 ac_cv_c_const=yes
19962else
19963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019964sed 's/^/| /' conftest.$ac_ext >&5
19965
John Criswell7a73b802003-06-30 21:59:07 +000019966ac_cv_c_const=no
19967fi
19968rm -f conftest.$ac_objext conftest.$ac_ext
19969fi
19970echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19971echo "${ECHO_T}$ac_cv_c_const" >&6
19972if test $ac_cv_c_const = no; then
19973
19974cat >>confdefs.h <<\_ACEOF
19975#define const
19976_ACEOF
19977
19978fi
19979
19980echo "$as_me:$LINENO: checking for inline" >&5
19981echo $ECHO_N "checking for inline... $ECHO_C" >&6
19982if test "${ac_cv_c_inline+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984else
19985 ac_cv_c_inline=no
19986for ac_kw in inline __inline__ __inline; do
19987 cat >conftest.$ac_ext <<_ACEOF
19988#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019989/* confdefs.h. */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019994#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000019995typedef int foo_t;
19996static $ac_kw foo_t static_foo () {return 0; }
19997$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000019998#endif
19999
20000_ACEOF
20001rm -f conftest.$ac_objext
20002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003 (eval $ac_compile) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_c_inline=$ac_kw; break
20014else
20015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020016sed 's/^/| /' conftest.$ac_ext >&5
20017
John Criswell7a73b802003-06-30 21:59:07 +000020018fi
20019rm -f conftest.$ac_objext conftest.$ac_ext
20020done
20021
20022fi
20023echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20024echo "${ECHO_T}$ac_cv_c_inline" >&6
20025case $ac_cv_c_inline in
20026 inline | yes) ;;
20027 no)
20028cat >>confdefs.h <<\_ACEOF
20029#define inline
20030_ACEOF
20031 ;;
20032 *) cat >>confdefs.h <<_ACEOF
20033#define inline $ac_cv_c_inline
20034_ACEOF
20035 ;;
20036esac
20037
20038
20039echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20040echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20041if test "${ac_cv_c_bigendian+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 # See if sys/param.h defines the BYTE_ORDER macro.
20045cat >conftest.$ac_ext <<_ACEOF
20046#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020047/* confdefs.h. */
20048_ACEOF
20049cat confdefs.h >>conftest.$ac_ext
20050cat >>conftest.$ac_ext <<_ACEOF
20051/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020052#include <sys/types.h>
20053#include <sys/param.h>
20054
John Criswell7a73b802003-06-30 21:59:07 +000020055int
20056main ()
20057{
20058#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20059 bogus endian macros
20060#endif
20061
20062 ;
20063 return 0;
20064}
20065_ACEOF
20066rm -f conftest.$ac_objext
20067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -s conftest.$ac_objext'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 # It does; now see whether it defined to BIG_ENDIAN or not.
20079cat >conftest.$ac_ext <<_ACEOF
20080#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020081/* confdefs.h. */
20082_ACEOF
20083cat confdefs.h >>conftest.$ac_ext
20084cat >>conftest.$ac_ext <<_ACEOF
20085/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020086#include <sys/types.h>
20087#include <sys/param.h>
20088
John Criswell7a73b802003-06-30 21:59:07 +000020089int
20090main ()
20091{
20092#if BYTE_ORDER != BIG_ENDIAN
20093 not big endian
20094#endif
20095
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100rm -f conftest.$ac_objext
20101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102 (eval $ac_compile) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try='test -s conftest.$ac_objext'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 ac_cv_c_bigendian=yes
20113else
20114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020115sed 's/^/| /' conftest.$ac_ext >&5
20116
John Criswell7a73b802003-06-30 21:59:07 +000020117ac_cv_c_bigendian=no
20118fi
20119rm -f conftest.$ac_objext conftest.$ac_ext
20120else
20121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020122sed 's/^/| /' conftest.$ac_ext >&5
20123
John Criswell7a73b802003-06-30 21:59:07 +000020124# It does not; compile a test program.
20125if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020126 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020127 ac_cv_c_bigendian=unknown
20128 cat >conftest.$ac_ext <<_ACEOF
20129#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020130/* confdefs.h. */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020135short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20136short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20137void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20138short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20139short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20140void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020141int
20142main ()
20143{
20144 _ascii (); _ebcdic ();
20145 ;
20146 return 0;
20147}
20148_ACEOF
20149rm -f conftest.$ac_objext
20150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20151 (eval $ac_compile) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
20155 { ac_try='test -s conftest.$ac_objext'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020161 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020162 ac_cv_c_bigendian=yes
20163fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020164if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020165 if test "$ac_cv_c_bigendian" = unknown; then
20166 ac_cv_c_bigendian=no
20167 else
20168 # finding both strings is unlikely to happen, but who knows?
20169 ac_cv_c_bigendian=unknown
20170 fi
20171fi
20172else
20173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020174sed 's/^/| /' conftest.$ac_ext >&5
20175
John Criswell7a73b802003-06-30 21:59:07 +000020176fi
20177rm -f conftest.$ac_objext conftest.$ac_ext
20178else
20179 cat >conftest.$ac_ext <<_ACEOF
20180#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020181/* confdefs.h. */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020186int
20187main ()
20188{
20189 /* Are we little or big endian? From Harbison&Steele. */
20190 union
20191 {
20192 long l;
20193 char c[sizeof (long)];
20194 } u;
20195 u.l = 1;
20196 exit (u.c[sizeof (long) - 1] == 1);
20197}
20198_ACEOF
20199rm -f conftest$ac_exeext
20200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20201 (eval $ac_link) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20207 ac_status=$?
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_cv_c_bigendian=no
20211else
20212 echo "$as_me: program exited with status $ac_status" >&5
20213echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020214sed 's/^/| /' conftest.$ac_ext >&5
20215
John Criswell7a73b802003-06-30 21:59:07 +000020216( exit $ac_status )
20217ac_cv_c_bigendian=yes
20218fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020219rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020220fi
20221fi
20222rm -f conftest.$ac_objext conftest.$ac_ext
20223fi
20224echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20225echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20226case $ac_cv_c_bigendian in
20227 yes)
20228 cat >>confdefs.h <<\_ACEOF
20229#define ENDIAN_BIG 1
20230_ACEOF
20231 ;;
20232 no)
20233 cat >>confdefs.h <<\_ACEOF
20234#define ENDIAN_LITTLE 1
20235_ACEOF
20236 ;;
20237 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020238 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020239presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020240echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020241presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20242 { (exit 1); exit 1; }; } ;;
20243esac
20244
20245
20246echo "$as_me:$LINENO: checking for pid_t" >&5
20247echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20248if test "${ac_cv_type_pid_t+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20250else
20251 cat >conftest.$ac_ext <<_ACEOF
20252#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020253/* confdefs.h. */
20254_ACEOF
20255cat confdefs.h >>conftest.$ac_ext
20256cat >>conftest.$ac_ext <<_ACEOF
20257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020258$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020259int
20260main ()
20261{
20262if ((pid_t *) 0)
20263 return 0;
20264if (sizeof (pid_t))
20265 return 0;
20266 ;
20267 return 0;
20268}
20269_ACEOF
20270rm -f conftest.$ac_objext
20271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -s conftest.$ac_objext'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_type_pid_t=yes
20283else
20284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020285sed 's/^/| /' conftest.$ac_ext >&5
20286
John Criswell7a73b802003-06-30 21:59:07 +000020287ac_cv_type_pid_t=no
20288fi
20289rm -f conftest.$ac_objext conftest.$ac_ext
20290fi
20291echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20292echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20293if test $ac_cv_type_pid_t = yes; then
20294 :
20295else
20296
20297cat >>confdefs.h <<_ACEOF
20298#define pid_t int
20299_ACEOF
20300
20301fi
20302
20303echo "$as_me:$LINENO: checking for size_t" >&5
20304echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20305if test "${ac_cv_type_size_t+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20307else
20308 cat >conftest.$ac_ext <<_ACEOF
20309#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020310/* confdefs.h. */
20311_ACEOF
20312cat confdefs.h >>conftest.$ac_ext
20313cat >>conftest.$ac_ext <<_ACEOF
20314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020315$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020316int
20317main ()
20318{
20319if ((size_t *) 0)
20320 return 0;
20321if (sizeof (size_t))
20322 return 0;
20323 ;
20324 return 0;
20325}
20326_ACEOF
20327rm -f conftest.$ac_objext
20328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329 (eval $ac_compile) 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
20333 { ac_try='test -s conftest.$ac_objext'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_type_size_t=yes
20340else
20341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020342sed 's/^/| /' conftest.$ac_ext >&5
20343
John Criswell7a73b802003-06-30 21:59:07 +000020344ac_cv_type_size_t=no
20345fi
20346rm -f conftest.$ac_objext conftest.$ac_ext
20347fi
20348echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20349echo "${ECHO_T}$ac_cv_type_size_t" >&6
20350if test $ac_cv_type_size_t = yes; then
20351 :
20352else
20353
20354cat >>confdefs.h <<_ACEOF
20355#define size_t unsigned
20356_ACEOF
20357
20358fi
20359
20360echo "$as_me:$LINENO: checking for int64_t" >&5
20361echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20362if test "${ac_cv_type_int64_t+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364else
20365 cat >conftest.$ac_ext <<_ACEOF
20366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020367/* confdefs.h. */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020372$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020373int
20374main ()
20375{
20376if ((int64_t *) 0)
20377 return 0;
20378if (sizeof (int64_t))
20379 return 0;
20380 ;
20381 return 0;
20382}
20383_ACEOF
20384rm -f conftest.$ac_objext
20385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386 (eval $ac_compile) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } &&
20390 { ac_try='test -s conftest.$ac_objext'
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; }; then
20396 ac_cv_type_int64_t=yes
20397else
20398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020399sed 's/^/| /' conftest.$ac_ext >&5
20400
John Criswell7a73b802003-06-30 21:59:07 +000020401ac_cv_type_int64_t=no
20402fi
20403rm -f conftest.$ac_objext conftest.$ac_ext
20404fi
20405echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20406echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20407if test $ac_cv_type_int64_t = yes; then
20408
20409cat >>confdefs.h <<_ACEOF
20410#define HAVE_INT64_T 1
20411_ACEOF
20412
20413
20414else
20415 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20416echo "$as_me: error: Type int64_t required but not found" >&2;}
20417 { (exit 1); exit 1; }; }
20418fi
20419
20420echo "$as_me:$LINENO: checking for uint64_t" >&5
20421echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20422if test "${ac_cv_type_uint64_t+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 cat >conftest.$ac_ext <<_ACEOF
20426#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020427/* confdefs.h. */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020432$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020433int
20434main ()
20435{
20436if ((uint64_t *) 0)
20437 return 0;
20438if (sizeof (uint64_t))
20439 return 0;
20440 ;
20441 return 0;
20442}
20443_ACEOF
20444rm -f conftest.$ac_objext
20445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20446 (eval $ac_compile) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } &&
20450 { ac_try='test -s conftest.$ac_objext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_type_uint64_t=yes
20457else
20458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020459sed 's/^/| /' conftest.$ac_ext >&5
20460
John Criswell7a73b802003-06-30 21:59:07 +000020461ac_cv_type_uint64_t=no
20462fi
20463rm -f conftest.$ac_objext conftest.$ac_ext
20464fi
20465echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20466echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20467if test $ac_cv_type_uint64_t = yes; then
20468
20469cat >>confdefs.h <<_ACEOF
20470#define HAVE_UINT64_T 1
20471_ACEOF
20472
20473
20474else
20475 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20476echo "$as_me: error: Type uint64_t required but not found" >&2;}
20477 { (exit 1); exit 1; }; }
20478fi
20479
20480echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20481echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20482if test "${ac_cv_header_time+set}" = set; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20484else
20485 cat >conftest.$ac_ext <<_ACEOF
20486#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020487/* confdefs.h. */
20488_ACEOF
20489cat confdefs.h >>conftest.$ac_ext
20490cat >>conftest.$ac_ext <<_ACEOF
20491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020492#include <sys/types.h>
20493#include <sys/time.h>
20494#include <time.h>
20495
John Criswell7a73b802003-06-30 21:59:07 +000020496int
20497main ()
20498{
20499if ((struct tm *) 0)
20500return 0;
20501 ;
20502 return 0;
20503}
20504_ACEOF
20505rm -f conftest.$ac_objext
20506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20507 (eval $ac_compile) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } &&
20511 { ac_try='test -s conftest.$ac_objext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_header_time=yes
20518else
20519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020520sed 's/^/| /' conftest.$ac_ext >&5
20521
John Criswell7a73b802003-06-30 21:59:07 +000020522ac_cv_header_time=no
20523fi
20524rm -f conftest.$ac_objext conftest.$ac_ext
20525fi
20526echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20527echo "${ECHO_T}$ac_cv_header_time" >&6
20528if test $ac_cv_header_time = yes; then
20529
20530cat >>confdefs.h <<\_ACEOF
20531#define TIME_WITH_SYS_TIME 1
20532_ACEOF
20533
20534fi
20535
20536echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20537echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20538if test "${ac_cv_struct_tm+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540else
20541 cat >conftest.$ac_ext <<_ACEOF
20542#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020543/* confdefs.h. */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020548#include <sys/types.h>
20549#include <time.h>
20550
John Criswell7a73b802003-06-30 21:59:07 +000020551int
20552main ()
20553{
20554struct tm *tp; tp->tm_sec;
20555 ;
20556 return 0;
20557}
20558_ACEOF
20559rm -f conftest.$ac_objext
20560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561 (eval $ac_compile) 2>&5
20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
20565 { ac_try='test -s conftest.$ac_objext'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ac_cv_struct_tm=time.h
20572else
20573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020574sed 's/^/| /' conftest.$ac_ext >&5
20575
John Criswell7a73b802003-06-30 21:59:07 +000020576ac_cv_struct_tm=sys/time.h
20577fi
20578rm -f conftest.$ac_objext conftest.$ac_ext
20579fi
20580echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20581echo "${ECHO_T}$ac_cv_struct_tm" >&6
20582if test $ac_cv_struct_tm = sys/time.h; then
20583
20584cat >>confdefs.h <<\_ACEOF
20585#define TM_IN_SYS_TIME 1
20586_ACEOF
20587
20588fi
20589
20590
John Criswell7a73b802003-06-30 21:59:07 +000020591echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20592echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20593if test "${ac_cv_cxx_namespaces+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595else
20596
20597
20598 ac_ext=cc
20599ac_cpp='$CXXCPP $CPPFLAGS'
20600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20603
20604 cat >conftest.$ac_ext <<_ACEOF
20605#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020606/* confdefs.h. */
20607_ACEOF
20608cat confdefs.h >>conftest.$ac_ext
20609cat >>conftest.$ac_ext <<_ACEOF
20610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020611namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020612int
20613main ()
20614{
20615using namespace Outer::Inner; return i;
20616 ;
20617 return 0;
20618}
20619_ACEOF
20620rm -f conftest.$ac_objext
20621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20622 (eval $ac_compile) 2>&5
20623 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try='test -s conftest.$ac_objext'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 ac_cv_cxx_namespaces=yes
20633else
20634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020635sed 's/^/| /' conftest.$ac_ext >&5
20636
John Criswell7a73b802003-06-30 21:59:07 +000020637ac_cv_cxx_namespaces=no
20638fi
20639rm -f conftest.$ac_objext conftest.$ac_ext
20640 ac_ext=c
20641ac_cpp='$CPP $CPPFLAGS'
20642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644ac_compiler_gnu=$ac_cv_c_compiler_gnu
20645
20646
20647fi
20648echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20649echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20650if test "$ac_cv_cxx_namespaces" = yes; then
20651
20652cat >>confdefs.h <<\_ACEOF
20653#define HAVE_NAMESPACES
20654_ACEOF
20655
20656fi
20657
20658echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20659echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20660if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663
20664
20665
20666 ac_ext=cc
20667ac_cpp='$CXXCPP $CPPFLAGS'
20668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20671
20672 cat >conftest.$ac_ext <<_ACEOF
20673#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020674/* confdefs.h. */
20675_ACEOF
20676cat confdefs.h >>conftest.$ac_ext
20677cat >>conftest.$ac_ext <<_ACEOF
20678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020679#include <ext/hash_map>
20680#ifdef HAVE_NAMESPACES
20681using namespace std;
20682#endif
John Criswell7a73b802003-06-30 21:59:07 +000020683int
20684main ()
20685{
20686hash_map<int, int> t; return 0;
20687 ;
20688 return 0;
20689}
20690_ACEOF
20691rm -f conftest.$ac_objext
20692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20693 (eval $ac_compile) 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
20697 { ac_try='test -s conftest.$ac_objext'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }; then
20703 ac_cv_cxx_have_ext_hash_map=std
20704else
20705 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020706sed 's/^/| /' conftest.$ac_ext >&5
20707
John Criswell7a73b802003-06-30 21:59:07 +000020708ac_cv_cxx_have_ext_hash_map=no
20709fi
20710rm -f conftest.$ac_objext conftest.$ac_ext
20711 cat >conftest.$ac_ext <<_ACEOF
20712#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020713/* confdefs.h. */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020718#include <ext/hash_map>
20719#ifdef HAVE_NAMESPACES
20720using namespace __gnu_cxx;
20721#endif
John Criswell7a73b802003-06-30 21:59:07 +000020722int
20723main ()
20724{
20725hash_map<int, int> t; return 0;
20726 ;
20727 return 0;
20728}
20729_ACEOF
20730rm -f conftest.$ac_objext
20731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732 (eval $ac_compile) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
20736 { ac_try='test -s conftest.$ac_objext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_cxx_have_ext_hash_map=gnu
20743else
20744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020745sed 's/^/| /' conftest.$ac_ext >&5
20746
John Criswell7a73b802003-06-30 21:59:07 +000020747ac_cv_cxx_have_ext_hash_map=no
20748fi
20749rm -f conftest.$ac_objext conftest.$ac_ext
20750 ac_ext=c
20751ac_cpp='$CPP $CPPFLAGS'
20752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754ac_compiler_gnu=$ac_cv_c_compiler_gnu
20755
20756
20757fi
20758echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20759echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20760if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20761
20762cat >>confdefs.h <<\_ACEOF
20763#define HAVE_STD_EXT_HASH_MAP
20764_ACEOF
20765
20766fi
20767if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20768
20769cat >>confdefs.h <<\_ACEOF
20770#define HAVE_GNU_EXT_HASH_MAP
20771_ACEOF
20772
20773fi
20774
20775echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20776echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20777if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20779else
20780
20781
20782
20783 ac_ext=cc
20784ac_cpp='$CXXCPP $CPPFLAGS'
20785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788
20789 cat >conftest.$ac_ext <<_ACEOF
20790#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020791/* confdefs.h. */
20792_ACEOF
20793cat confdefs.h >>conftest.$ac_ext
20794cat >>conftest.$ac_ext <<_ACEOF
20795/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020796#include <ext/hash_set>
20797#ifdef HAVE_NAMESPACES
20798using namespace std;
20799#endif
John Criswell7a73b802003-06-30 21:59:07 +000020800int
20801main ()
20802{
20803hash_set<int> t; return 0;
20804 ;
20805 return 0;
20806}
20807_ACEOF
20808rm -f conftest.$ac_objext
20809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20810 (eval $ac_compile) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
20814 { ac_try='test -s conftest.$ac_objext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 ac_cv_cxx_have_ext_hash_set=std
20821else
20822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020823sed 's/^/| /' conftest.$ac_ext >&5
20824
John Criswell7a73b802003-06-30 21:59:07 +000020825ac_cv_cxx_have_ext_hash_set=no
20826fi
20827rm -f conftest.$ac_objext conftest.$ac_ext
20828 cat >conftest.$ac_ext <<_ACEOF
20829#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020830/* confdefs.h. */
20831_ACEOF
20832cat confdefs.h >>conftest.$ac_ext
20833cat >>conftest.$ac_ext <<_ACEOF
20834/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020835#include <ext/hash_set>
20836#ifdef HAVE_NAMESPACES
20837using namespace __gnu_cxx;
20838#endif
John Criswell7a73b802003-06-30 21:59:07 +000020839int
20840main ()
20841{
20842hash_set<int> t; return 0;
20843 ;
20844 return 0;
20845}
20846_ACEOF
20847rm -f conftest.$ac_objext
20848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849 (eval $ac_compile) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
20853 { ac_try='test -s conftest.$ac_objext'
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; }; then
20859 ac_cv_cxx_have_ext_hash_set=gnu
20860else
20861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020862sed 's/^/| /' conftest.$ac_ext >&5
20863
John Criswell7a73b802003-06-30 21:59:07 +000020864ac_cv_cxx_have_ext_hash_set=no
20865fi
20866rm -f conftest.$ac_objext conftest.$ac_ext
20867 ac_ext=c
20868ac_cpp='$CPP $CPPFLAGS'
20869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20871ac_compiler_gnu=$ac_cv_c_compiler_gnu
20872
20873
20874fi
20875echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20876echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20877if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20878
20879cat >>confdefs.h <<\_ACEOF
20880#define HAVE_STD_EXT_HASH_SET
20881_ACEOF
20882
20883fi
20884if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20885
20886cat >>confdefs.h <<\_ACEOF
20887#define HAVE_GNU_EXT_HASH_SET
20888_ACEOF
20889
20890fi
20891
20892echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20893echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20894if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20895 echo $ECHO_N "(cached) $ECHO_C" >&6
20896else
20897
20898
20899
20900 ac_ext=cc
20901ac_cpp='$CXXCPP $CPPFLAGS'
20902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20905
20906 cat >conftest.$ac_ext <<_ACEOF
20907#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020908/* confdefs.h. */
20909_ACEOF
20910cat confdefs.h >>conftest.$ac_ext
20911cat >>conftest.$ac_ext <<_ACEOF
20912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020913#include <ext/slist>
20914#ifdef HAVE_NAMESPACES
20915using namespace std;
20916#endif
John Criswell7a73b802003-06-30 21:59:07 +000020917int
20918main ()
20919{
20920slist<int> s; return 0;
20921 ;
20922 return 0;
20923}
20924_ACEOF
20925rm -f conftest.$ac_objext
20926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20927 (eval $ac_compile) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try='test -s conftest.$ac_objext'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 ac_cv_cxx_have_ext_slist=std
20938else
20939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020940sed 's/^/| /' conftest.$ac_ext >&5
20941
John Criswell7a73b802003-06-30 21:59:07 +000020942ac_cv_cxx_have_ext_slist=no
20943fi
20944rm -f conftest.$ac_objext conftest.$ac_ext
20945 cat >conftest.$ac_ext <<_ACEOF
20946#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020947/* confdefs.h. */
20948_ACEOF
20949cat confdefs.h >>conftest.$ac_ext
20950cat >>conftest.$ac_ext <<_ACEOF
20951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020952#include <ext/slist>
20953#ifdef HAVE_NAMESPACES
20954using namespace __gnu_cxx;
20955#endif
John Criswell7a73b802003-06-30 21:59:07 +000020956int
20957main ()
20958{
20959slist<int> s; return 0;
20960 ;
20961 return 0;
20962}
20963_ACEOF
20964rm -f conftest.$ac_objext
20965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20966 (eval $ac_compile) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } &&
20970 { ac_try='test -s conftest.$ac_objext'
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 ac_cv_cxx_have_ext_slist=gnu
20977else
20978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020979sed 's/^/| /' conftest.$ac_ext >&5
20980
John Criswell7a73b802003-06-30 21:59:07 +000020981ac_cv_cxx_have_ext_slist=no
20982fi
20983rm -f conftest.$ac_objext conftest.$ac_ext
20984
20985 ac_ext=c
20986ac_cpp='$CPP $CPPFLAGS'
20987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20989ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990
20991
20992fi
20993echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20994echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20995if test "$ac_cv_cxx_have_ext_slist" = std; then
20996
20997cat >>confdefs.h <<\_ACEOF
20998#define HAVE_EXT_SLIST std
20999_ACEOF
21000
21001fi
21002if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21003
21004cat >>confdefs.h <<\_ACEOF
21005#define HAVE_EXT_SLIST gnu
21006_ACEOF
21007
21008fi
21009
21010echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21011echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21012if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21014else
21015
21016
21017
21018 ac_ext=cc
21019ac_cpp='$CXXCPP $CPPFLAGS'
21020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21023
21024 cat >conftest.$ac_ext <<_ACEOF
21025#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021026/* confdefs.h. */
21027_ACEOF
21028cat confdefs.h >>conftest.$ac_ext
21029cat >>conftest.$ac_ext <<_ACEOF
21030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021031#include <iterator>
21032#ifdef HAVE_NAMESPACES
21033using namespace std;
21034#endif
John Criswell7a73b802003-06-30 21:59:07 +000021035int
21036main ()
21037{
21038iterator<int,int,int> t; return 0;
21039 ;
21040 return 0;
21041}
21042_ACEOF
21043rm -f conftest.$ac_objext
21044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21045 (eval $ac_compile) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } &&
21049 { ac_try='test -s conftest.$ac_objext'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21052 ac_status=$?
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; }; then
21055 ac_cv_cxx_have_std_iterator=yes
21056else
21057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021058sed 's/^/| /' conftest.$ac_ext >&5
21059
John Criswell7a73b802003-06-30 21:59:07 +000021060ac_cv_cxx_have_std_iterator=no
21061fi
21062rm -f conftest.$ac_objext conftest.$ac_ext
21063 ac_ext=c
21064ac_cpp='$CPP $CPPFLAGS'
21065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21067ac_compiler_gnu=$ac_cv_c_compiler_gnu
21068
21069
21070fi
21071echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21072echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21073if test "$ac_cv_cxx_have_std_iterator" = yes; then
21074
21075cat >>confdefs.h <<\_ACEOF
21076#define HAVE_STD_ITERATOR
21077_ACEOF
21078
21079fi
21080
21081echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21082echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21083if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085else
21086
21087
21088
21089 ac_ext=cc
21090ac_cpp='$CXXCPP $CPPFLAGS'
21091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21094
21095 cat >conftest.$ac_ext <<_ACEOF
21096#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021102#include <iterator>
21103#ifdef HAVE_NAMESPACES
21104using namespace std;
21105#endif
John Criswell7a73b802003-06-30 21:59:07 +000021106int
21107main ()
21108{
John Criswellc78022e2003-07-29 19:11:58 +000021109bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021110 ;
21111 return 0;
21112}
21113_ACEOF
21114rm -f conftest.$ac_objext
21115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116 (eval $ac_compile) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } &&
21120 { ac_try='test -s conftest.$ac_objext'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 ac_cv_cxx_have_bi_iterator=yes
21127else
21128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021129sed 's/^/| /' conftest.$ac_ext >&5
21130
John Criswell7a73b802003-06-30 21:59:07 +000021131ac_cv_cxx_have_bi_iterator=no
21132fi
21133rm -f conftest.$ac_objext conftest.$ac_ext
21134 ac_ext=c
21135ac_cpp='$CPP $CPPFLAGS'
21136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21138ac_compiler_gnu=$ac_cv_c_compiler_gnu
21139
21140
21141fi
21142echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21143echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21144if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21145
21146cat >>confdefs.h <<\_ACEOF
21147#define HAVE_BI_ITERATOR
21148_ACEOF
21149
21150fi
21151
21152echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21153echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21154if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156else
21157
21158
21159
21160 ac_ext=cc
21161ac_cpp='$CXXCPP $CPPFLAGS'
21162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21165
21166 cat >conftest.$ac_ext <<_ACEOF
21167#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021168/* confdefs.h. */
21169_ACEOF
21170cat confdefs.h >>conftest.$ac_ext
21171cat >>conftest.$ac_ext <<_ACEOF
21172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021173#include <iterator>
21174#ifdef HAVE_NAMESPACES
21175using namespace std;
21176#endif
John Criswell7a73b802003-06-30 21:59:07 +000021177int
21178main ()
21179{
John Criswellc78022e2003-07-29 19:11:58 +000021180forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021181 ;
21182 return 0;
21183}
21184_ACEOF
21185rm -f conftest.$ac_objext
21186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21187 (eval $ac_compile) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
21191 { ac_try='test -s conftest.$ac_objext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ac_cv_cxx_have_fwd_iterator=yes
21198else
21199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021200sed 's/^/| /' conftest.$ac_ext >&5
21201
John Criswell7a73b802003-06-30 21:59:07 +000021202ac_cv_cxx_have_fwd_iterator=no
21203fi
21204rm -f conftest.$ac_objext conftest.$ac_ext
21205 ac_ext=c
21206ac_cpp='$CPP $CPPFLAGS'
21207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210
21211
21212fi
21213echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21214echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21215if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21216
21217cat >>confdefs.h <<\_ACEOF
21218#define HAVE_FWD_ITERATOR
21219_ACEOF
21220
21221fi
21222
21223
21224# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21225# for constant arguments. Useless!
21226echo "$as_me:$LINENO: checking for working alloca.h" >&5
21227echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21228if test "${ac_cv_working_alloca_h+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21230else
21231 cat >conftest.$ac_ext <<_ACEOF
21232#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021238#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021239int
21240main ()
21241{
21242char *p = (char *) alloca (2 * sizeof (int));
21243 ;
21244 return 0;
21245}
21246_ACEOF
21247rm -f conftest.$ac_objext conftest$ac_exeext
21248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } &&
21253 { ac_try='test -s conftest$ac_exeext'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 ac_cv_working_alloca_h=yes
21260else
21261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021262sed 's/^/| /' conftest.$ac_ext >&5
21263
John Criswell7a73b802003-06-30 21:59:07 +000021264ac_cv_working_alloca_h=no
21265fi
21266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21267fi
21268echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21269echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21270if test $ac_cv_working_alloca_h = yes; then
21271
21272cat >>confdefs.h <<\_ACEOF
21273#define HAVE_ALLOCA_H 1
21274_ACEOF
21275
21276fi
21277
21278echo "$as_me:$LINENO: checking for alloca" >&5
21279echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21280if test "${ac_cv_func_alloca_works+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282else
21283 cat >conftest.$ac_ext <<_ACEOF
21284#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021285/* confdefs.h. */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021290#ifdef __GNUC__
21291# define alloca __builtin_alloca
21292#else
21293# ifdef _MSC_VER
21294# include <malloc.h>
21295# define alloca _alloca
21296# else
21297# if HAVE_ALLOCA_H
21298# include <alloca.h>
21299# else
21300# ifdef _AIX
21301 #pragma alloca
21302# else
21303# ifndef alloca /* predefined by HP cc +Olibcalls */
21304char *alloca ();
21305# endif
21306# endif
21307# endif
21308# endif
21309#endif
21310
John Criswell7a73b802003-06-30 21:59:07 +000021311int
21312main ()
21313{
21314char *p = (char *) alloca (1);
21315 ;
21316 return 0;
21317}
21318_ACEOF
21319rm -f conftest.$ac_objext conftest$ac_exeext
21320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21321 (eval $ac_link) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
21325 { ac_try='test -s conftest$ac_exeext'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; }; then
21331 ac_cv_func_alloca_works=yes
21332else
21333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021334sed 's/^/| /' conftest.$ac_ext >&5
21335
John Criswell7a73b802003-06-30 21:59:07 +000021336ac_cv_func_alloca_works=no
21337fi
21338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21339fi
21340echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21341echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21342
21343if test $ac_cv_func_alloca_works = yes; then
21344
21345cat >>confdefs.h <<\_ACEOF
21346#define HAVE_ALLOCA 1
21347_ACEOF
21348
21349else
21350 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21351# that cause trouble. Some versions do not even contain alloca or
21352# contain a buggy version. If you still want to use their alloca,
21353# use ar to extract alloca.o from them instead of compiling alloca.c.
21354
21355ALLOCA=alloca.$ac_objext
21356
21357cat >>confdefs.h <<\_ACEOF
21358#define C_ALLOCA 1
21359_ACEOF
21360
21361
21362echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21363echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21364if test "${ac_cv_os_cray+set}" = set; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21366else
21367 cat >conftest.$ac_ext <<_ACEOF
21368#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021369/* confdefs.h. */
21370_ACEOF
21371cat confdefs.h >>conftest.$ac_ext
21372cat >>conftest.$ac_ext <<_ACEOF
21373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021374#if defined(CRAY) && ! defined(CRAY2)
21375webecray
21376#else
21377wenotbecray
21378#endif
21379
21380_ACEOF
21381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021382 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021383 ac_cv_os_cray=yes
21384else
21385 ac_cv_os_cray=no
21386fi
21387rm -f conftest*
21388
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21391echo "${ECHO_T}$ac_cv_os_cray" >&6
21392if test $ac_cv_os_cray = yes; then
21393 for ac_func in _getb67 GETB67 getb67; do
21394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21395echo "$as_me:$LINENO: checking for $ac_func" >&5
21396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21397if eval "test \"\${$as_ac_var+set}\" = set"; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21399else
21400 cat >conftest.$ac_ext <<_ACEOF
21401#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021402/* confdefs.h. */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021407/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021408 which can conflict with char $ac_func (); below.
21409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410 <limits.h> exists even on freestanding compilers. */
21411#ifdef __STDC__
21412# include <limits.h>
21413#else
21414# include <assert.h>
21415#endif
John Criswell7a73b802003-06-30 21:59:07 +000021416/* Override any gcc2 internal prototype to avoid an error. */
21417#ifdef __cplusplus
21418extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021419{
John Criswell7a73b802003-06-30 21:59:07 +000021420#endif
21421/* We use char because int might match the return type of a gcc2
21422 builtin and then its argument prototype would still apply. */
21423char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021424/* The GNU C library defines this for functions which it implements
21425 to always fail with ENOSYS. Some functions are actually named
21426 something starting with __ and the normal name is an alias. */
21427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21428choke me
21429#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021430char (*f) () = $ac_func;
21431#endif
21432#ifdef __cplusplus
21433}
John Criswell7a73b802003-06-30 21:59:07 +000021434#endif
21435
John Criswell0c38eaf2003-09-10 15:17:25 +000021436int
21437main ()
21438{
21439return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021440 ;
21441 return 0;
21442}
21443_ACEOF
21444rm -f conftest.$ac_objext conftest$ac_exeext
21445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446 (eval $ac_link) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } &&
21450 { ac_try='test -s conftest$ac_exeext'
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 eval "$as_ac_var=yes"
21457else
21458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021459sed 's/^/| /' conftest.$ac_ext >&5
21460
John Criswell7a73b802003-06-30 21:59:07 +000021461eval "$as_ac_var=no"
21462fi
21463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21464fi
21465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21466echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21467if test `eval echo '${'$as_ac_var'}'` = yes; then
21468
21469cat >>confdefs.h <<_ACEOF
21470#define CRAY_STACKSEG_END $ac_func
21471_ACEOF
21472
21473 break
21474fi
21475
21476 done
21477fi
21478
21479echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21480echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21481if test "${ac_cv_c_stack_direction+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483else
21484 if test "$cross_compiling" = yes; then
21485 ac_cv_c_stack_direction=0
21486else
21487 cat >conftest.$ac_ext <<_ACEOF
21488#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021489/* confdefs.h. */
21490_ACEOF
21491cat confdefs.h >>conftest.$ac_ext
21492cat >>conftest.$ac_ext <<_ACEOF
21493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021494int
21495find_stack_direction ()
21496{
21497 static char *addr = 0;
21498 auto char dummy;
21499 if (addr == 0)
21500 {
21501 addr = &dummy;
21502 return find_stack_direction ();
21503 }
21504 else
21505 return (&dummy > addr) ? 1 : -1;
21506}
21507
21508int
21509main ()
21510{
21511 exit (find_stack_direction () < 0);
21512}
21513_ACEOF
21514rm -f conftest$ac_exeext
21515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21516 (eval $ac_link) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_cv_c_stack_direction=1
21526else
21527 echo "$as_me: program exited with status $ac_status" >&5
21528echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021529sed 's/^/| /' conftest.$ac_ext >&5
21530
John Criswell7a73b802003-06-30 21:59:07 +000021531( exit $ac_status )
21532ac_cv_c_stack_direction=-1
21533fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021534rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021535fi
21536fi
21537echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21538echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21539
21540cat >>confdefs.h <<_ACEOF
21541#define STACK_DIRECTION $ac_cv_c_stack_direction
21542_ACEOF
21543
21544
21545fi
21546
21547if test $ac_cv_c_compiler_gnu = yes; then
21548 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21549echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21550if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552else
21553 ac_pattern="Autoconf.*'x'"
21554 cat >conftest.$ac_ext <<_ACEOF
21555#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021556/* confdefs.h. */
21557_ACEOF
21558cat confdefs.h >>conftest.$ac_ext
21559cat >>conftest.$ac_ext <<_ACEOF
21560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021561#include <sgtty.h>
21562Autoconf TIOCGETP
21563_ACEOF
21564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021565 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021566 ac_cv_prog_gcc_traditional=yes
21567else
21568 ac_cv_prog_gcc_traditional=no
21569fi
21570rm -f conftest*
21571
21572
21573 if test $ac_cv_prog_gcc_traditional = no; then
21574 cat >conftest.$ac_ext <<_ACEOF
21575#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021576/* confdefs.h. */
21577_ACEOF
21578cat confdefs.h >>conftest.$ac_ext
21579cat >>conftest.$ac_ext <<_ACEOF
21580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021581#include <termio.h>
21582Autoconf TCGETA
21583_ACEOF
21584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021585 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021586 ac_cv_prog_gcc_traditional=yes
21587fi
21588rm -f conftest*
21589
21590 fi
21591fi
21592echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21593echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21594 if test $ac_cv_prog_gcc_traditional = yes; then
21595 CC="$CC -traditional"
21596 fi
21597fi
21598
21599echo "$as_me:$LINENO: checking for working memcmp" >&5
21600echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21601if test "${ac_cv_func_memcmp_working+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21603else
21604 if test "$cross_compiling" = yes; then
21605 ac_cv_func_memcmp_working=no
21606else
21607 cat >conftest.$ac_ext <<_ACEOF
21608#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021609/* confdefs.h. */
21610_ACEOF
21611cat confdefs.h >>conftest.$ac_ext
21612cat >>conftest.$ac_ext <<_ACEOF
21613/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021614
John Criswell7a73b802003-06-30 21:59:07 +000021615int
21616main ()
21617{
21618
21619 /* Some versions of memcmp are not 8-bit clean. */
21620 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21621 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21622 exit (1);
21623
21624 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21625 or more and with at least one buffer not starting on a 4-byte boundary.
21626 William Lewis provided this test program. */
21627 {
21628 char foo[21];
21629 char bar[21];
21630 int i;
21631 for (i = 0; i < 4; i++)
21632 {
21633 char *a = foo + i;
21634 char *b = bar + i;
21635 strcpy (a, "--------01111111");
21636 strcpy (b, "--------10000000");
21637 if (memcmp (a, b, 16) >= 0)
21638 exit (1);
21639 }
21640 exit (0);
21641 }
21642
21643 ;
21644 return 0;
21645}
21646_ACEOF
21647rm -f conftest$ac_exeext
21648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21649 (eval $ac_link) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_cv_func_memcmp_working=yes
21659else
21660 echo "$as_me: program exited with status $ac_status" >&5
21661echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021662sed 's/^/| /' conftest.$ac_ext >&5
21663
John Criswell7a73b802003-06-30 21:59:07 +000021664( exit $ac_status )
21665ac_cv_func_memcmp_working=no
21666fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021667rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021668fi
21669fi
21670echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21671echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21672test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21673
21674
21675
21676for ac_header in stdlib.h unistd.h
21677do
21678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21679if eval "test \"\${$as_ac_Header+set}\" = set"; then
21680 echo "$as_me:$LINENO: checking for $ac_header" >&5
21681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21682if eval "test \"\${$as_ac_Header+set}\" = set"; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21684fi
21685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21687else
21688 # Is the header compilable?
21689echo "$as_me:$LINENO: checking $ac_header usability" >&5
21690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21691cat >conftest.$ac_ext <<_ACEOF
21692#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021693/* confdefs.h. */
21694_ACEOF
21695cat confdefs.h >>conftest.$ac_ext
21696cat >>conftest.$ac_ext <<_ACEOF
21697/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021698$ac_includes_default
21699#include <$ac_header>
21700_ACEOF
21701rm -f conftest.$ac_objext
21702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } &&
21707 { ac_try='test -s conftest.$ac_objext'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 ac_header_compiler=yes
21714else
21715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021716sed 's/^/| /' conftest.$ac_ext >&5
21717
John Criswell7a73b802003-06-30 21:59:07 +000021718ac_header_compiler=no
21719fi
21720rm -f conftest.$ac_objext conftest.$ac_ext
21721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21722echo "${ECHO_T}$ac_header_compiler" >&6
21723
21724# Is the header present?
21725echo "$as_me:$LINENO: checking $ac_header presence" >&5
21726echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21727cat >conftest.$ac_ext <<_ACEOF
21728#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021729/* confdefs.h. */
21730_ACEOF
21731cat confdefs.h >>conftest.$ac_ext
21732cat >>conftest.$ac_ext <<_ACEOF
21733/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021734#include <$ac_header>
21735_ACEOF
21736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21738 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021739 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021740 rm -f conftest.er1
21741 cat conftest.err >&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } >/dev/null; then
21744 if test -s conftest.err; then
21745 ac_cpp_err=$ac_c_preproc_warn_flag
21746 else
21747 ac_cpp_err=
21748 fi
21749else
21750 ac_cpp_err=yes
21751fi
21752if test -z "$ac_cpp_err"; then
21753 ac_header_preproc=yes
21754else
21755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021756sed 's/^/| /' conftest.$ac_ext >&5
21757
John Criswell7a73b802003-06-30 21:59:07 +000021758 ac_header_preproc=no
21759fi
21760rm -f conftest.err conftest.$ac_ext
21761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21762echo "${ECHO_T}$ac_header_preproc" >&6
21763
21764# So? What about this header?
21765case $ac_header_compiler:$ac_header_preproc in
21766 yes:no )
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21768echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21771 (
21772 cat <<\_ASBOX
21773## ------------------------------------ ##
21774## Report this to bug-autoconf@gnu.org. ##
21775## ------------------------------------ ##
21776_ASBOX
21777 ) |
21778 sed "s/^/$as_me: WARNING: /" >&2
21779 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021780 no:yes )
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21784echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021786echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21787 (
21788 cat <<\_ASBOX
21789## ------------------------------------ ##
21790## Report this to bug-autoconf@gnu.org. ##
21791## ------------------------------------ ##
21792_ASBOX
21793 ) |
21794 sed "s/^/$as_me: WARNING: /" >&2
21795 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021796esac
21797echo "$as_me:$LINENO: checking for $ac_header" >&5
21798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21799if eval "test \"\${$as_ac_Header+set}\" = set"; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21801else
21802 eval "$as_ac_Header=$ac_header_preproc"
21803fi
21804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21806
21807fi
21808if test `eval echo '${'$as_ac_Header'}'` = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21811_ACEOF
21812
21813fi
21814
21815done
21816
21817
21818for ac_func in getpagesize
21819do
21820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21821echo "$as_me:$LINENO: checking for $ac_func" >&5
21822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21823if eval "test \"\${$as_ac_var+set}\" = set"; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825else
21826 cat >conftest.$ac_ext <<_ACEOF
21827#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021828/* confdefs.h. */
21829_ACEOF
21830cat confdefs.h >>conftest.$ac_ext
21831cat >>conftest.$ac_ext <<_ACEOF
21832/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021833/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021834 which can conflict with char $ac_func (); below.
21835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21836 <limits.h> exists even on freestanding compilers. */
21837#ifdef __STDC__
21838# include <limits.h>
21839#else
21840# include <assert.h>
21841#endif
John Criswell7a73b802003-06-30 21:59:07 +000021842/* Override any gcc2 internal prototype to avoid an error. */
21843#ifdef __cplusplus
21844extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021845{
John Criswell7a73b802003-06-30 21:59:07 +000021846#endif
21847/* We use char because int might match the return type of a gcc2
21848 builtin and then its argument prototype would still apply. */
21849char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021850/* The GNU C library defines this for functions which it implements
21851 to always fail with ENOSYS. Some functions are actually named
21852 something starting with __ and the normal name is an alias. */
21853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21854choke me
21855#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021856char (*f) () = $ac_func;
21857#endif
21858#ifdef __cplusplus
21859}
John Criswell7a73b802003-06-30 21:59:07 +000021860#endif
21861
John Criswell0c38eaf2003-09-10 15:17:25 +000021862int
21863main ()
21864{
21865return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021866 ;
21867 return 0;
21868}
21869_ACEOF
21870rm -f conftest.$ac_objext conftest$ac_exeext
21871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21872 (eval $ac_link) 2>&5
21873 ac_status=$?
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } &&
21876 { ac_try='test -s conftest$ac_exeext'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21879 ac_status=$?
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 eval "$as_ac_var=yes"
21883else
21884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021885sed 's/^/| /' conftest.$ac_ext >&5
21886
John Criswell7a73b802003-06-30 21:59:07 +000021887eval "$as_ac_var=no"
21888fi
21889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21890fi
21891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21893if test `eval echo '${'$as_ac_var'}'` = yes; then
21894 cat >>confdefs.h <<_ACEOF
21895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21896_ACEOF
21897
21898fi
21899done
21900
21901echo "$as_me:$LINENO: checking for working mmap" >&5
21902echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21903if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21905else
21906 if test "$cross_compiling" = yes; then
21907 ac_cv_func_mmap_fixed_mapped=no
21908else
21909 cat >conftest.$ac_ext <<_ACEOF
21910#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021911/* confdefs.h. */
21912_ACEOF
21913cat confdefs.h >>conftest.$ac_ext
21914cat >>conftest.$ac_ext <<_ACEOF
21915/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021916$ac_includes_default
21917/* malloc might have been renamed as rpl_malloc. */
21918#undef malloc
21919
21920/* Thanks to Mike Haertel and Jim Avera for this test.
21921 Here is a matrix of mmap possibilities:
21922 mmap private not fixed
21923 mmap private fixed at somewhere currently unmapped
21924 mmap private fixed at somewhere already mapped
21925 mmap shared not fixed
21926 mmap shared fixed at somewhere currently unmapped
21927 mmap shared fixed at somewhere already mapped
21928 For private mappings, we should verify that changes cannot be read()
21929 back from the file, nor mmap's back from the file at a different
21930 address. (There have been systems where private was not correctly
21931 implemented like the infamous i386 svr4.0, and systems where the
21932 VM page cache was not coherent with the file system buffer cache
21933 like early versions of FreeBSD and possibly contemporary NetBSD.)
21934 For shared mappings, we should conversely verify that changes get
21935 propagated back to all the places they're supposed to be.
21936
21937 Grep wants private fixed already mapped.
21938 The main things grep needs to know about mmap are:
21939 * does it exist and is it safe to write into the mmap'd area
21940 * how to use it (BSD variants) */
21941
21942#include <fcntl.h>
21943#include <sys/mman.h>
21944
21945#if !STDC_HEADERS && !HAVE_STDLIB_H
21946char *malloc ();
21947#endif
21948
21949/* This mess was copied from the GNU getpagesize.h. */
21950#if !HAVE_GETPAGESIZE
21951/* Assume that all systems that can run configure have sys/param.h. */
21952# if !HAVE_SYS_PARAM_H
21953# define HAVE_SYS_PARAM_H 1
21954# endif
21955
21956# ifdef _SC_PAGESIZE
21957# define getpagesize() sysconf(_SC_PAGESIZE)
21958# else /* no _SC_PAGESIZE */
21959# if HAVE_SYS_PARAM_H
21960# include <sys/param.h>
21961# ifdef EXEC_PAGESIZE
21962# define getpagesize() EXEC_PAGESIZE
21963# else /* no EXEC_PAGESIZE */
21964# ifdef NBPG
21965# define getpagesize() NBPG * CLSIZE
21966# ifndef CLSIZE
21967# define CLSIZE 1
21968# endif /* no CLSIZE */
21969# else /* no NBPG */
21970# ifdef NBPC
21971# define getpagesize() NBPC
21972# else /* no NBPC */
21973# ifdef PAGESIZE
21974# define getpagesize() PAGESIZE
21975# endif /* PAGESIZE */
21976# endif /* no NBPC */
21977# endif /* no NBPG */
21978# endif /* no EXEC_PAGESIZE */
21979# else /* no HAVE_SYS_PARAM_H */
21980# define getpagesize() 8192 /* punt totally */
21981# endif /* no HAVE_SYS_PARAM_H */
21982# endif /* no _SC_PAGESIZE */
21983
21984#endif /* no HAVE_GETPAGESIZE */
21985
21986int
21987main ()
21988{
21989 char *data, *data2, *data3;
21990 int i, pagesize;
21991 int fd;
21992
21993 pagesize = getpagesize ();
21994
21995 /* First, make a file with some known garbage in it. */
21996 data = (char *) malloc (pagesize);
21997 if (!data)
21998 exit (1);
21999 for (i = 0; i < pagesize; ++i)
22000 *(data + i) = rand ();
22001 umask (0);
22002 fd = creat ("conftest.mmap", 0600);
22003 if (fd < 0)
22004 exit (1);
22005 if (write (fd, data, pagesize) != pagesize)
22006 exit (1);
22007 close (fd);
22008
22009 /* Next, try to mmap the file at a fixed address which already has
22010 something else allocated at it. If we can, also make sure that
22011 we see the same garbage. */
22012 fd = open ("conftest.mmap", O_RDWR);
22013 if (fd < 0)
22014 exit (1);
22015 data2 = (char *) malloc (2 * pagesize);
22016 if (!data2)
22017 exit (1);
22018 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22019 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22020 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22021 exit (1);
22022 for (i = 0; i < pagesize; ++i)
22023 if (*(data + i) != *(data2 + i))
22024 exit (1);
22025
22026 /* Finally, make sure that changes to the mapped area do not
22027 percolate back to the file as seen by read(). (This is a bug on
22028 some variants of i386 svr4.0.) */
22029 for (i = 0; i < pagesize; ++i)
22030 *(data2 + i) = *(data2 + i) + 1;
22031 data3 = (char *) malloc (pagesize);
22032 if (!data3)
22033 exit (1);
22034 if (read (fd, data3, pagesize) != pagesize)
22035 exit (1);
22036 for (i = 0; i < pagesize; ++i)
22037 if (*(data + i) != *(data3 + i))
22038 exit (1);
22039 close (fd);
22040 exit (0);
22041}
22042_ACEOF
22043rm -f conftest$ac_exeext
22044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22045 (eval $ac_link) 2>&5
22046 ac_status=$?
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22054 ac_cv_func_mmap_fixed_mapped=yes
22055else
22056 echo "$as_me: program exited with status $ac_status" >&5
22057echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022058sed 's/^/| /' conftest.$ac_ext >&5
22059
John Criswell7a73b802003-06-30 21:59:07 +000022060( exit $ac_status )
22061ac_cv_func_mmap_fixed_mapped=no
22062fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022063rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022064fi
22065fi
22066echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22067echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22068if test $ac_cv_func_mmap_fixed_mapped = yes; then
22069
22070cat >>confdefs.h <<\_ACEOF
22071#define HAVE_MMAP 1
22072_ACEOF
22073
22074fi
22075rm -f conftest.mmap
22076
22077echo "$as_me:$LINENO: checking for mmap of files" >&5
22078echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22079if test "${ac_cv_func_mmap_file+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22081else
22082
22083
22084 ac_ext=c
22085ac_cpp='$CPP $CPPFLAGS'
22086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22088ac_compiler_gnu=$ac_cv_c_compiler_gnu
22089
22090 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22092See \`config.log' for more details." >&5
22093echo "$as_me: error: cannot run test program while cross compiling
22094See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022095 { (exit 1); exit 1; }; }
22096else
22097 cat >conftest.$ac_ext <<_ACEOF
22098#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022099/* confdefs.h. */
22100_ACEOF
22101cat confdefs.h >>conftest.$ac_ext
22102cat >>conftest.$ac_ext <<_ACEOF
22103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022104
22105#ifdef HAVE_SYS_MMAN_H
22106#include <sys/mman.h>
22107#endif
22108
22109#ifdef HAVE_SYS_TYPES_H
22110#include <sys/types.h>
22111#endif
22112
22113#ifdef HAVE_FCNTL_H
22114#include <fcntl.h>
22115#endif
22116
22117 int fd;
22118 int main () {
22119 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22120_ACEOF
22121rm -f conftest$ac_exeext
22122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22123 (eval $ac_link) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128 (eval $ac_try) 2>&5
22129 ac_status=$?
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
22132 ac_cv_func_mmap_file=yes
22133else
22134 echo "$as_me: program exited with status $ac_status" >&5
22135echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022136sed 's/^/| /' conftest.$ac_ext >&5
22137
John Criswell7a73b802003-06-30 21:59:07 +000022138( exit $ac_status )
22139ac_cv_func_mmap_file=no
22140fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022141rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022142fi
22143 ac_ext=c
22144ac_cpp='$CPP $CPPFLAGS'
22145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147ac_compiler_gnu=$ac_cv_c_compiler_gnu
22148
22149
22150fi
22151echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22152echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22153if test "$ac_cv_func_mmap_file" = yes; then
22154 cat >>confdefs.h <<\_ACEOF
22155#define HAVE_MMAP_FILE 1
22156_ACEOF
22157
22158 MMAP_FILE=yes
22159
22160fi
22161
22162if test ${ac_cv_func_mmap_file} = "no"
22163then
22164 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22165echo "$as_me: error: mmap() of files required but not found" >&2;}
22166 { (exit 1); exit 1; }; }
22167fi
22168echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22169echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22170if test "${ac_cv_header_mmap_anon+set}" = set; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22172else
22173
22174
22175 ac_ext=c
22176ac_cpp='$CPP $CPPFLAGS'
22177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22179ac_compiler_gnu=$ac_cv_c_compiler_gnu
22180
22181 cat >conftest.$ac_ext <<_ACEOF
22182#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022183/* confdefs.h. */
22184_ACEOF
22185cat confdefs.h >>conftest.$ac_ext
22186cat >>conftest.$ac_ext <<_ACEOF
22187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022188#include <sys/mman.h>
22189 #include <unistd.h>
22190 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022191int
22192main ()
22193{
22194mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22195 ;
22196 return 0;
22197}
22198_ACEOF
22199rm -f conftest.$ac_objext
22200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22201 (eval $ac_compile) 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } &&
22205 { ac_try='test -s conftest.$ac_objext'
22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22208 ac_status=$?
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; }; then
22211 ac_cv_header_mmap_anon=yes
22212else
22213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022214sed 's/^/| /' conftest.$ac_ext >&5
22215
John Criswell7a73b802003-06-30 21:59:07 +000022216ac_cv_header_mmap_anon=no
22217fi
22218rm -f conftest.$ac_objext conftest.$ac_ext
22219 ac_ext=c
22220ac_cpp='$CPP $CPPFLAGS'
22221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22223ac_compiler_gnu=$ac_cv_c_compiler_gnu
22224
22225
22226fi
22227echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22228echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22229if test "$ac_cv_header_mmap_anon" = yes; then
22230 cat >>confdefs.h <<\_ACEOF
22231#define HAVE_MMAP_ANONYMOUS 1
22232_ACEOF
22233
22234fi
22235
22236echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22237echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22238if test "${ac_cv_type_signal+set}" = set; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22240else
22241 cat >conftest.$ac_ext <<_ACEOF
22242#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022243/* confdefs.h. */
22244_ACEOF
22245cat confdefs.h >>conftest.$ac_ext
22246cat >>conftest.$ac_ext <<_ACEOF
22247/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022248#include <sys/types.h>
22249#include <signal.h>
22250#ifdef signal
22251# undef signal
22252#endif
22253#ifdef __cplusplus
22254extern "C" void (*signal (int, void (*)(int)))(int);
22255#else
22256void (*signal ()) ();
22257#endif
22258
John Criswell7a73b802003-06-30 21:59:07 +000022259int
22260main ()
22261{
22262int i;
22263 ;
22264 return 0;
22265}
22266_ACEOF
22267rm -f conftest.$ac_objext
22268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269 (eval $ac_compile) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } &&
22273 { ac_try='test -s conftest.$ac_objext'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_cv_type_signal=void
22280else
22281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022282sed 's/^/| /' conftest.$ac_ext >&5
22283
John Criswell7a73b802003-06-30 21:59:07 +000022284ac_cv_type_signal=int
22285fi
22286rm -f conftest.$ac_objext conftest.$ac_ext
22287fi
22288echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22289echo "${ECHO_T}$ac_cv_type_signal" >&6
22290
22291cat >>confdefs.h <<_ACEOF
22292#define RETSIGTYPE $ac_cv_type_signal
22293_ACEOF
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22306do
22307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22308echo "$as_me:$LINENO: checking for $ac_func" >&5
22309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22310if eval "test \"\${$as_ac_var+set}\" = set"; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312else
22313 cat >conftest.$ac_ext <<_ACEOF
22314#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022315/* confdefs.h. */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022320/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022321 which can conflict with char $ac_func (); below.
22322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22323 <limits.h> exists even on freestanding compilers. */
22324#ifdef __STDC__
22325# include <limits.h>
22326#else
22327# include <assert.h>
22328#endif
John Criswell7a73b802003-06-30 21:59:07 +000022329/* Override any gcc2 internal prototype to avoid an error. */
22330#ifdef __cplusplus
22331extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022332{
John Criswell7a73b802003-06-30 21:59:07 +000022333#endif
22334/* We use char because int might match the return type of a gcc2
22335 builtin and then its argument prototype would still apply. */
22336char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022337/* The GNU C library defines this for functions which it implements
22338 to always fail with ENOSYS. Some functions are actually named
22339 something starting with __ and the normal name is an alias. */
22340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22341choke me
22342#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022343char (*f) () = $ac_func;
22344#endif
22345#ifdef __cplusplus
22346}
John Criswell7a73b802003-06-30 21:59:07 +000022347#endif
22348
John Criswell0c38eaf2003-09-10 15:17:25 +000022349int
22350main ()
22351{
22352return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022353 ;
22354 return 0;
22355}
22356_ACEOF
22357rm -f conftest.$ac_objext conftest$ac_exeext
22358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22359 (eval $ac_link) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } &&
22363 { ac_try='test -s conftest$ac_exeext'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22366 ac_status=$?
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; }; then
22369 eval "$as_ac_var=yes"
22370else
22371 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022372sed 's/^/| /' conftest.$ac_ext >&5
22373
John Criswell7a73b802003-06-30 21:59:07 +000022374eval "$as_ac_var=no"
22375fi
22376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22377fi
22378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22380if test `eval echo '${'$as_ac_var'}'` = yes; then
22381 cat >>confdefs.h <<_ACEOF
22382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22383_ACEOF
22384
22385fi
22386done
22387
22388
22389
22390echo "$as_me:$LINENO: checking for mmap" >&5
22391echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22392if test "${ac_cv_func_mmap+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22394else
22395 cat >conftest.$ac_ext <<_ACEOF
22396#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022397/* confdefs.h. */
22398_ACEOF
22399cat confdefs.h >>conftest.$ac_ext
22400cat >>conftest.$ac_ext <<_ACEOF
22401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022402/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022403 which can conflict with char mmap (); below.
22404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22405 <limits.h> exists even on freestanding compilers. */
22406#ifdef __STDC__
22407# include <limits.h>
22408#else
22409# include <assert.h>
22410#endif
John Criswell7a73b802003-06-30 21:59:07 +000022411/* Override any gcc2 internal prototype to avoid an error. */
22412#ifdef __cplusplus
22413extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022414{
John Criswell7a73b802003-06-30 21:59:07 +000022415#endif
22416/* We use char because int might match the return type of a gcc2
22417 builtin and then its argument prototype would still apply. */
22418char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022419/* The GNU C library defines this for functions which it implements
22420 to always fail with ENOSYS. Some functions are actually named
22421 something starting with __ and the normal name is an alias. */
22422#if defined (__stub_mmap) || defined (__stub___mmap)
22423choke me
22424#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022425char (*f) () = mmap;
22426#endif
22427#ifdef __cplusplus
22428}
John Criswell7a73b802003-06-30 21:59:07 +000022429#endif
22430
John Criswell0c38eaf2003-09-10 15:17:25 +000022431int
22432main ()
22433{
22434return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022435 ;
22436 return 0;
22437}
22438_ACEOF
22439rm -f conftest.$ac_objext conftest$ac_exeext
22440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22441 (eval $ac_link) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } &&
22445 { ac_try='test -s conftest$ac_exeext'
22446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447 (eval $ac_try) 2>&5
22448 ac_status=$?
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); }; }; then
22451 ac_cv_func_mmap=yes
22452else
22453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022454sed 's/^/| /' conftest.$ac_ext >&5
22455
John Criswell7a73b802003-06-30 21:59:07 +000022456ac_cv_func_mmap=no
22457fi
22458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22459fi
22460echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22461echo "${ECHO_T}$ac_cv_func_mmap" >&6
22462if test $ac_cv_func_mmap = yes; then
22463 :
22464else
22465 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22466echo "$as_me: error: Function mmap() required but not found" >&2;}
22467 { (exit 1); exit 1; }; }
22468fi
22469
22470echo "$as_me:$LINENO: checking for mprotect" >&5
22471echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22472if test "${ac_cv_func_mprotect+set}" = set; then
22473 echo $ECHO_N "(cached) $ECHO_C" >&6
22474else
22475 cat >conftest.$ac_ext <<_ACEOF
22476#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022477/* confdefs.h. */
22478_ACEOF
22479cat confdefs.h >>conftest.$ac_ext
22480cat >>conftest.$ac_ext <<_ACEOF
22481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022482/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022483 which can conflict with char mprotect (); below.
22484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22485 <limits.h> exists even on freestanding compilers. */
22486#ifdef __STDC__
22487# include <limits.h>
22488#else
22489# include <assert.h>
22490#endif
John Criswell7a73b802003-06-30 21:59:07 +000022491/* Override any gcc2 internal prototype to avoid an error. */
22492#ifdef __cplusplus
22493extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022494{
John Criswell7a73b802003-06-30 21:59:07 +000022495#endif
22496/* We use char because int might match the return type of a gcc2
22497 builtin and then its argument prototype would still apply. */
22498char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022499/* The GNU C library defines this for functions which it implements
22500 to always fail with ENOSYS. Some functions are actually named
22501 something starting with __ and the normal name is an alias. */
22502#if defined (__stub_mprotect) || defined (__stub___mprotect)
22503choke me
22504#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022505char (*f) () = mprotect;
22506#endif
22507#ifdef __cplusplus
22508}
John Criswell7a73b802003-06-30 21:59:07 +000022509#endif
22510
John Criswell0c38eaf2003-09-10 15:17:25 +000022511int
22512main ()
22513{
22514return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022515 ;
22516 return 0;
22517}
22518_ACEOF
22519rm -f conftest.$ac_objext conftest$ac_exeext
22520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22521 (eval $ac_link) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
22525 { ac_try='test -s conftest$ac_exeext'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; }; then
22531 ac_cv_func_mprotect=yes
22532else
22533 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022534sed 's/^/| /' conftest.$ac_ext >&5
22535
John Criswell7a73b802003-06-30 21:59:07 +000022536ac_cv_func_mprotect=no
22537fi
22538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22539fi
22540echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22541echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22542if test $ac_cv_func_mprotect = yes; then
22543 :
22544else
22545 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22546echo "$as_me: error: Function mprotect() required but not found" >&2;}
22547 { (exit 1); exit 1; }; }
22548fi
22549
22550
John Criswellb13092b2003-07-22 21:00:24 +000022551
John Criswell7a73b802003-06-30 21:59:07 +000022552# Check whether --enable-purify or --disable-purify was given.
22553if test "${enable_purify+set}" = set; then
22554 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022555
22556else
John Criswellb13092b2003-07-22 21:00:24 +000022557 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022558fi;
John Criswellb13092b2003-07-22 21:00:24 +000022559if test ${enableval} = "no"
22560then
22561 ENABLE_PURIFY=
22562
22563else
22564 ENABLE_PURIFY=ENABLE_PURIFY=1
22565
22566fi
22567
John Criswell7a73b802003-06-30 21:59:07 +000022568# Check whether --enable-optimized or --disable-optimized was given.
22569if test "${enable_optimized+set}" = set; then
22570 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022571
22572else
John Criswellb13092b2003-07-22 21:00:24 +000022573 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022574fi;
John Criswellb13092b2003-07-22 21:00:24 +000022575if test ${enableval} = "no"
22576then
22577 ENABLE_OPTIMIZED=
22578
22579else
22580 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22581
22582fi
22583
John Criswell7a73b802003-06-30 21:59:07 +000022584# Check whether --enable-spec or --disable-spec was given.
22585if test "${enable_spec+set}" = set; then
22586 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022587
22588else
John Criswellb13092b2003-07-22 21:00:24 +000022589 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022590fi;
John Criswellb13092b2003-07-22 21:00:24 +000022591if test ${enableval} = "no"
22592then
22593 USE_SPEC=
22594
22595else
22596 USE_SPEC=USE_SPEC=1
22597
22598fi
22599
John Criswell7a73b802003-06-30 21:59:07 +000022600# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22601if test "${enable_precompiled_bytecode+set}" = set; then
22602 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022603
22604else
John Criswellb13092b2003-07-22 21:00:24 +000022605 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022606fi;
John Criswellb13092b2003-07-22 21:00:24 +000022607if test ${enableval} = "no"
22608then
22609 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022610
John Criswellb13092b2003-07-22 21:00:24 +000022611else
22612 UPB=USE_PRECOMPILED_BYTECODE=1
22613
22614fi
John Criswellf02dbf02003-07-22 20:07:49 +000022615
22616
22617# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22618if test "${enable_llc_diffs+set}" = set; then
22619 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022620
22621else
John Criswellb13092b2003-07-22 21:00:24 +000022622 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022623fi;
John Criswellb13092b2003-07-22 21:00:24 +000022624if test ${enableval} = "no"
22625then
22626 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022627
John Criswellb13092b2003-07-22 21:00:24 +000022628else
22629 DISABLE_LLC_DIFFS=
22630
22631fi
22632
22633# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022634if test "${enable_jit+set}" = set; then
22635 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022636
22637else
John Criswellc78022e2003-07-29 19:11:58 +000022638 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022639fi;
John Criswellb13092b2003-07-22 21:00:24 +000022640
22641if test ${enableval} = "no"
22642then
22643 JIT=
22644
22645else
John Criswellc78022e2003-07-29 19:11:58 +000022646 case $target in
22647 *i*86*)
22648 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022649
John Criswellc78022e2003-07-29 19:11:58 +000022650 ;;
22651 *sparc*)
22652 JIT=TARGET_HAS_JIT=1
22653
22654 ;;
22655 *)
22656 JIT=
22657
22658 ;;
22659 esac
John Criswellb13092b2003-07-22 21:00:24 +000022660fi
John Criswell7a73b802003-06-30 21:59:07 +000022661
22662
John Criswellc78022e2003-07-29 19:11:58 +000022663
John Criswell7a73b802003-06-30 21:59:07 +000022664# Check whether --with-spec or --without-spec was given.
22665if test "${with_spec+set}" = set; then
22666 withval="$with_spec"
22667 SPEC_ROOT=$withval
22668
22669else
22670 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22671
22672fi;
22673
John Criswellc78022e2003-07-29 19:11:58 +000022674
John Criswell7a73b802003-06-30 21:59:07 +000022675# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22676if test "${with_llvmgccdir+set}" = set; then
22677 withval="$with_llvmgccdir"
22678 LLVMGCCDIR=$withval
22679
22680fi;
22681
John Criswellc78022e2003-07-29 19:11:58 +000022682
John Criswell7a73b802003-06-30 21:59:07 +000022683# Check whether --with-bcrepos or --without-bcrepos was given.
22684if test "${with_bcrepos+set}" = set; then
22685 withval="$with_bcrepos"
22686 BCR=$withval
22687
22688else
22689 BCR=/home/vadve/lattner/LLVMPrograms
22690
22691fi;
22692
John Criswellc78022e2003-07-29 19:11:58 +000022693
John Criswell7a73b802003-06-30 21:59:07 +000022694# Check whether --with-papi or --without-papi was given.
22695if test "${with_papi+set}" = set; then
22696 withval="$with_papi"
22697 PAPIDIR=$withval
22698
22699else
John Criswellde00db22003-08-25 16:49:54 +000022700 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022701
22702fi;
22703
John Criswell7a73b802003-06-30 21:59:07 +000022704
22705# Check whether --with-purify or --without-purify was given.
22706if test "${with_purify+set}" = set; then
22707 withval="$with_purify"
22708 PURIFY=$withval
22709
22710fi;
22711
John Criswellde00db22003-08-25 16:49:54 +000022712
John Criswell0c38eaf2003-09-10 15:17:25 +000022713 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022714cat >confcache <<\_ACEOF
22715# This file is a shell script that caches the results of configure
22716# tests run on this system so they can be shared between configure
22717# scripts and configure runs, see configure's option --config-cache.
22718# It is not useful on other systems. If it contains results you don't
22719# want to keep, you may remove or edit it.
22720#
22721# config.status only pays attention to the cache file if you give it
22722# the --recheck option to rerun configure.
22723#
John Criswell0c38eaf2003-09-10 15:17:25 +000022724# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022725# loading this file, other *unset* `ac_cv_foo' will be assigned the
22726# following values.
22727
22728_ACEOF
22729
22730# The following way of writing the cache mishandles newlines in values,
22731# but we know of no workaround that is simple, portable, and efficient.
22732# So, don't put newlines in cache variables' values.
22733# Ultrix sh set writes to stderr and can't be redirected directly,
22734# and sets the high bit in the cache file unless we assign to the vars.
22735{
22736 (set) 2>&1 |
22737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22738 *ac_space=\ *)
22739 # `set' does not quote correctly, so add quotes (double-quote
22740 # substitution turns \\\\ into \\, and sed turns \\ into \).
22741 sed -n \
22742 "s/'/'\\\\''/g;
22743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22744 ;;
22745 *)
22746 # `set' quotes correctly as required by POSIX, so do not add quotes.
22747 sed -n \
22748 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22749 ;;
22750 esac;
22751} |
22752 sed '
22753 t clear
22754 : clear
22755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22756 t end
22757 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22758 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022759if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022760 if test -w $cache_file; then
22761 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22762 cat confcache >$cache_file
22763 else
22764 echo "not updating unwritable cache $cache_file"
22765 fi
22766fi
22767rm -f confcache
22768
22769test "x$prefix" = xNONE && prefix=$ac_default_prefix
22770# Let make expand exec_prefix.
22771test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22772
22773# VPATH may cause trouble with some makes, so we remove $(srcdir),
22774# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22775# trailing colons and then remove the whole line if VPATH becomes empty
22776# (actually we leave an empty line to preserve line numbers).
22777if test "x$srcdir" = x.; then
22778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22779s/:*\$(srcdir):*/:/;
22780s/:*\${srcdir}:*/:/;
22781s/:*@srcdir@:*/:/;
22782s/^\([^=]*=[ ]*\):*/\1/;
22783s/:*$//;
22784s/^[^=]*=[ ]*$//;
22785}'
22786fi
22787
22788DEFS=-DHAVE_CONFIG_H
22789
John Criswell0c38eaf2003-09-10 15:17:25 +000022790ac_libobjs=
22791ac_ltlibobjs=
22792for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22793 # 1. Remove the extension, and $U if already installed.
22794 ac_i=`echo "$ac_i" |
22795 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22796 # 2. Add them.
22797 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22798 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22799done
22800LIBOBJS=$ac_libobjs
22801
22802LTLIBOBJS=$ac_ltlibobjs
22803
22804
John Criswell7a73b802003-06-30 21:59:07 +000022805
22806: ${CONFIG_STATUS=./config.status}
22807ac_clean_files_save=$ac_clean_files
22808ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22809{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22810echo "$as_me: creating $CONFIG_STATUS" >&6;}
22811cat >$CONFIG_STATUS <<_ACEOF
22812#! $SHELL
22813# Generated by $as_me.
22814# Run this file to recreate the current configuration.
22815# Compiler output produced by configure, useful for debugging
22816# configure, is in config.log if it exists.
22817
22818debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022819ac_cs_recheck=false
22820ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022821SHELL=\${CONFIG_SHELL-$SHELL}
22822_ACEOF
22823
22824cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022825## --------------------- ##
22826## M4sh Initialization. ##
22827## --------------------- ##
22828
22829# Be Bourne compatible
22830if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22831 emulate sh
22832 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022833 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22834 # is contrary to our usage. Disable this feature.
22835 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022836elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22837 set -o posix
22838fi
22839
John Criswell7a73b802003-06-30 21:59:07 +000022840# Support unset when possible.
22841if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22842 as_unset=unset
22843else
22844 as_unset=false
22845fi
22846
John Criswell0c38eaf2003-09-10 15:17:25 +000022847
22848# Work around bugs in pre-3.0 UWIN ksh.
22849$as_unset ENV MAIL MAILPATH
22850PS1='$ '
22851PS2='> '
22852PS4='+ '
22853
22854# NLS nuisances.
22855for as_var in \
22856 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22857 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22858 LC_TELEPHONE LC_TIME
22859do
22860 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22861 eval $as_var=C; export $as_var
22862 else
22863 $as_unset $as_var
22864 fi
22865done
22866
22867# Required to use basename.
22868if expr a : '\(a\)' >/dev/null 2>&1; then
22869 as_expr=expr
22870else
22871 as_expr=false
22872fi
22873
22874if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22875 as_basename=basename
22876else
22877 as_basename=false
22878fi
John Criswell7a73b802003-06-30 21:59:07 +000022879
22880
22881# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022882as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022883$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22884 X"$0" : 'X\(//\)$' \| \
22885 X"$0" : 'X\(/\)$' \| \
22886 . : '\(.\)' 2>/dev/null ||
22887echo X/"$0" |
22888 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22889 /^X\/\(\/\/\)$/{ s//\1/; q; }
22890 /^X\/\(\/\).*/{ s//\1/; q; }
22891 s/.*/./; q'`
22892
John Criswell0c38eaf2003-09-10 15:17:25 +000022893
John Criswell7a73b802003-06-30 21:59:07 +000022894# PATH needs CR, and LINENO needs CR and PATH.
22895# Avoid depending upon Character Ranges.
22896as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22897as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22898as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22899as_cr_digits='0123456789'
22900as_cr_alnum=$as_cr_Letters$as_cr_digits
22901
22902# The user is always right.
22903if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022904 echo "#! /bin/sh" >conf$$.sh
22905 echo "exit 0" >>conf$$.sh
22906 chmod +x conf$$.sh
22907 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022908 PATH_SEPARATOR=';'
22909 else
22910 PATH_SEPARATOR=:
22911 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022912 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022913fi
22914
22915
22916 as_lineno_1=$LINENO
22917 as_lineno_2=$LINENO
22918 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22919 test "x$as_lineno_1" != "x$as_lineno_2" &&
22920 test "x$as_lineno_3" = "x$as_lineno_2" || {
22921 # Find who we are. Look in the path if we contain no path at all
22922 # relative or not.
22923 case $0 in
22924 *[\\/]* ) as_myself=$0 ;;
22925 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22926for as_dir in $PATH
22927do
22928 IFS=$as_save_IFS
22929 test -z "$as_dir" && as_dir=.
22930 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22931done
22932
22933 ;;
22934 esac
22935 # We did not find ourselves, most probably we were run as `sh COMMAND'
22936 # in which case we are not to be found in the path.
22937 if test "x$as_myself" = x; then
22938 as_myself=$0
22939 fi
22940 if test ! -f "$as_myself"; then
22941 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22942echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22943 { (exit 1); exit 1; }; }
22944 fi
22945 case $CONFIG_SHELL in
22946 '')
22947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22948for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22949do
22950 IFS=$as_save_IFS
22951 test -z "$as_dir" && as_dir=.
22952 for as_base in sh bash ksh sh5; do
22953 case $as_dir in
22954 /*)
22955 if ("$as_dir/$as_base" -c '
22956 as_lineno_1=$LINENO
22957 as_lineno_2=$LINENO
22958 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22959 test "x$as_lineno_1" != "x$as_lineno_2" &&
22960 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022961 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22962 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022963 CONFIG_SHELL=$as_dir/$as_base
22964 export CONFIG_SHELL
22965 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22966 fi;;
22967 esac
22968 done
22969done
22970;;
22971 esac
22972
22973 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22974 # uniformly replaced by the line number. The first 'sed' inserts a
22975 # line-number line before each line; the second 'sed' does the real
22976 # work. The second script uses 'N' to pair each line-number line
22977 # with the numbered line, and appends trailing '-' during
22978 # substitution so that $LINENO is not a special case at line end.
22979 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22980 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22981 sed '=' <$as_myself |
22982 sed '
22983 N
22984 s,$,-,
22985 : loop
22986 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22987 t loop
22988 s,-$,,
22989 s,^['$as_cr_digits']*\n,,
22990 ' >$as_me.lineno &&
22991 chmod +x $as_me.lineno ||
22992 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22993echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22994 { (exit 1); exit 1; }; }
22995
22996 # Don't try to exec as it changes $[0], causing all sort of problems
22997 # (the dirname of $[0] is not the place where we might find the
22998 # original and so on. Autoconf is especially sensible to this).
22999 . ./$as_me.lineno
23000 # Exit status is that of the last command.
23001 exit
23002}
23003
23004
23005case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23006 *c*,-n*) ECHO_N= ECHO_C='
23007' ECHO_T=' ' ;;
23008 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23009 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23010esac
23011
23012if expr a : '\(a\)' >/dev/null 2>&1; then
23013 as_expr=expr
23014else
23015 as_expr=false
23016fi
23017
23018rm -f conf$$ conf$$.exe conf$$.file
23019echo >conf$$.file
23020if ln -s conf$$.file conf$$ 2>/dev/null; then
23021 # We could just check for DJGPP; but this test a) works b) is more generic
23022 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23023 if test -f conf$$.exe; then
23024 # Don't use ln at all; we don't have any links
23025 as_ln_s='cp -p'
23026 else
23027 as_ln_s='ln -s'
23028 fi
23029elif ln conf$$.file conf$$ 2>/dev/null; then
23030 as_ln_s=ln
23031else
23032 as_ln_s='cp -p'
23033fi
23034rm -f conf$$ conf$$.exe conf$$.file
23035
John Criswell0c38eaf2003-09-10 15:17:25 +000023036if mkdir -p . 2>/dev/null; then
23037 as_mkdir_p=:
23038else
23039 as_mkdir_p=false
23040fi
23041
John Criswell7a73b802003-06-30 21:59:07 +000023042as_executable_p="test -f"
23043
23044# Sed expression to map a string onto a valid CPP name.
23045as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23046
23047# Sed expression to map a string onto a valid variable name.
23048as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23049
23050
23051# IFS
23052# We need space, tab and new line, in precisely that order.
23053as_nl='
23054'
23055IFS=" $as_nl"
23056
23057# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023058$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023059
23060exec 6>&1
23061
23062# Open the log real soon, to keep \$[0] and so on meaningful, and to
23063# report actual input values of CONFIG_FILES etc. instead of their
23064# values after options handling. Logging --version etc. is OK.
23065exec 5>>config.log
23066{
23067 echo
23068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23069## Running $as_me. ##
23070_ASBOX
23071} >&5
23072cat >&5 <<_CSEOF
23073
23074This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023075generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023076
23077 CONFIG_FILES = $CONFIG_FILES
23078 CONFIG_HEADERS = $CONFIG_HEADERS
23079 CONFIG_LINKS = $CONFIG_LINKS
23080 CONFIG_COMMANDS = $CONFIG_COMMANDS
23081 $ $0 $@
23082
23083_CSEOF
23084echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23085echo >&5
23086_ACEOF
23087
23088# Files that config.status was made for.
23089if test -n "$ac_config_files"; then
23090 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23091fi
23092
23093if test -n "$ac_config_headers"; then
23094 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23095fi
23096
23097if test -n "$ac_config_links"; then
23098 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23099fi
23100
23101if test -n "$ac_config_commands"; then
23102 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23103fi
23104
23105cat >>$CONFIG_STATUS <<\_ACEOF
23106
23107ac_cs_usage="\
23108\`$as_me' instantiates files from templates according to the
23109current configuration.
23110
23111Usage: $0 [OPTIONS] [FILE]...
23112
23113 -h, --help print this help, then exit
23114 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023115 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023116 -d, --debug don't remove temporary files
23117 --recheck update $as_me by reconfiguring in the same conditions
23118 --file=FILE[:TEMPLATE]
23119 instantiate the configuration file FILE
23120 --header=FILE[:TEMPLATE]
23121 instantiate the configuration header FILE
23122
23123Configuration files:
23124$config_files
23125
23126Configuration headers:
23127$config_headers
23128
John Criswellc764fbc2003-09-06 15:17:13 +000023129Configuration commands:
23130$config_commands
23131
John Criswell7a73b802003-06-30 21:59:07 +000023132Report bugs to <bug-autoconf@gnu.org>."
23133_ACEOF
23134
23135cat >>$CONFIG_STATUS <<_ACEOF
23136ac_cs_version="\\
23137[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023138configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023139 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23140
23141Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23142Free Software Foundation, Inc.
23143This config.status script is free software; the Free Software Foundation
23144gives unlimited permission to copy, distribute and modify it."
23145srcdir=$srcdir
23146INSTALL="$INSTALL"
23147_ACEOF
23148
23149cat >>$CONFIG_STATUS <<\_ACEOF
23150# If no file are specified by the user, then we need to provide default
23151# value. By we need to know if files were specified by the user.
23152ac_need_defaults=:
23153while test $# != 0
23154do
23155 case $1 in
23156 --*=*)
23157 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23158 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023159 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023160 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023161 -*)
23162 ac_option=$1
23163 ac_optarg=$2
23164 ac_shift=shift
23165 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023166 *) # This is not an option, so the user has probably given explicit
23167 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023168 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023169 ac_need_defaults=false;;
23170 esac
23171
John Criswell0c38eaf2003-09-10 15:17:25 +000023172 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023173 # Handling of the options.
23174_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023175cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23177 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023178 --version | --vers* | -V )
23179 echo "$ac_cs_version"; exit 0 ;;
23180 --he | --h)
23181 # Conflict between --help and --header
23182 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23183Try \`$0 --help' for more information." >&5
23184echo "$as_me: error: ambiguous option: $1
23185Try \`$0 --help' for more information." >&2;}
23186 { (exit 1); exit 1; }; };;
23187 --help | --hel | -h )
23188 echo "$ac_cs_usage"; exit 0 ;;
23189 --debug | --d* | -d )
23190 debug=: ;;
23191 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023192 $ac_shift
23193 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023194 ac_need_defaults=false;;
23195 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023196 $ac_shift
23197 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023198 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23200 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23201 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023202
23203 # This is an error.
23204 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23205Try \`$0 --help' for more information." >&5
23206echo "$as_me: error: unrecognized option: $1
23207Try \`$0 --help' for more information." >&2;}
23208 { (exit 1); exit 1; }; } ;;
23209
23210 *) ac_config_targets="$ac_config_targets $1" ;;
23211
23212 esac
23213 shift
23214done
23215
John Criswell0c38eaf2003-09-10 15:17:25 +000023216ac_configure_extra_args=
23217
23218if $ac_cs_silent; then
23219 exec 6>/dev/null
23220 ac_configure_extra_args="$ac_configure_extra_args --silent"
23221fi
23222
23223_ACEOF
23224cat >>$CONFIG_STATUS <<_ACEOF
23225if \$ac_cs_recheck; then
23226 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23227 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23228fi
23229
John Criswell7a73b802003-06-30 21:59:07 +000023230_ACEOF
23231
John Criswellc764fbc2003-09-06 15:17:13 +000023232cat >>$CONFIG_STATUS <<_ACEOF
23233#
23234# INIT-COMMANDS section.
23235#
John Criswell7a73b802003-06-30 21:59:07 +000023236
John Criswellc764fbc2003-09-06 15:17:13 +000023237${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23238${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23239${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23240${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23241${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23242${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23243${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23244${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23245${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23246${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23247${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23248${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23249${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23250${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23251${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23252${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23253${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023254${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23255${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23256${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23257${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23258${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23259${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23260${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23261${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23262${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23263${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23264${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23265${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23266${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23267${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23268${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23269${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23270${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23271${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23272${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23273${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23274${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23275${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23276${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23277${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23278${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23279${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23280${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23281${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23282${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23283${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23284${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23285${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23286${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23287${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23288${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23289${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23290${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23295${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23296${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23297${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23299${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23301${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23307${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23311${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23316${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23317${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23318${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23319${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23320${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
23321${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
23322${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
23323${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
23324${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
23325${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
23326${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
23327${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
23328${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
23329${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
23330${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
23331${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
23332${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
23333${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
23334${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
23335${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
23336${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
23337${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
23338${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Shootout/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Stanford/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23390${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23391${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23397${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23399
23400_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023401
23402
23403
23404cat >>$CONFIG_STATUS <<\_ACEOF
23405for ac_config_target in $ac_config_targets
23406do
23407 case "$ac_config_target" in
23408 # Handling of arguments.
23409 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023410 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23411 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23412 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23413 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23414 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23415 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23416 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23417 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23418 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23419 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23420 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23421 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23422 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23423 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23424 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23425 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23426 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023427 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23428 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23429 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23430 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23431 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23432 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23433 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23434 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23435 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23436 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23437 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23438 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23439 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23440 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23441 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23442 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23443 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23444 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23445 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23446 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23447 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23448 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23449 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23450 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23451 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23452 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23453 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23454 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23455 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23456 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23457 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23458 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23459 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23460 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23461 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23462 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23463 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23464 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23465 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23466 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23467 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23468 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23469 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23470 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23471 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23472 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23473 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23474 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23475 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23476 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23477 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23478 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23479 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23480 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23481 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23482 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23483 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23484 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23485 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23486 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23487 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23488 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23489 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23490 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23491 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23492 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23493 "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;;
23494 "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;;
23495 "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;;
23496 "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;;
23497 "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;;
23498 "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;;
23499 "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;;
23500 "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;;
23501 "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;;
23502 "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;;
23503 "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;;
23504 "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;;
23505 "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;;
23506 "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;;
23507 "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;;
23508 "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;;
23509 "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;;
23510 "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;;
23511 "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;;
23512 "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;;
23513 "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;;
23514 "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;;
23515 "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;;
23516 "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;;
23517 "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;;
23518 "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;;
23519 "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;;
23520 "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;;
23521 "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;;
23522 "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;;
23523 "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;;
23524 "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;;
23525 "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;;
23526 "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;;
23527 "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;;
23528 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23529 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23530 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23531 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23532 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023533 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23534 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23535 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23536 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23537 "test/Programs/SingleSource/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Shootout/Makefile" ;;
23538 "test/Programs/SingleSource/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Stanford/Makefile" ;;
23539 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23540 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23541 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23542 "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23543 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23544 "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23545 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23546 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23547 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23548 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23549 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23550 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23551 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23552 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23553 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23554 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23555 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23556 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23557 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23558 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23559 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23560 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23561 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23562 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23563 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23564 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23565 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23566 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23567 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23568 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23569 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23570 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23571 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023572 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23573 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23574echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23575 { (exit 1); exit 1; }; };;
23576 esac
23577done
23578
23579# If the user did not use the arguments to specify the items to instantiate,
23580# then the envvar interface is used. Set only those that are not.
23581# We use the long form for the default assignment because of an extremely
23582# bizarre bug on SunOS 4.1.3.
23583if $ac_need_defaults; then
23584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023587fi
23588
John Criswell0c38eaf2003-09-10 15:17:25 +000023589# Have a temporary directory for convenience. Make it in the build tree
23590# simply because there is no reason to put it here, and in addition,
23591# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023592# Create a temporary directory, and hook for its removal unless debugging.
23593$debug ||
23594{
23595 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23596 trap '{ (exit 1); exit 1; }' 1 2 13 15
23597}
23598
23599# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023600
John Criswell7a73b802003-06-30 21:59:07 +000023601{
John Criswell0c38eaf2003-09-10 15:17:25 +000023602 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023603 test -n "$tmp" && test -d "$tmp"
23604} ||
23605{
John Criswell0c38eaf2003-09-10 15:17:25 +000023606 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023607 (umask 077 && mkdir $tmp)
23608} ||
23609{
John Criswell0c38eaf2003-09-10 15:17:25 +000023610 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023611 { (exit 1); exit 1; }
23612}
23613
23614_ACEOF
23615
23616cat >>$CONFIG_STATUS <<_ACEOF
23617
23618#
23619# CONFIG_FILES section.
23620#
23621
23622# No need to generate the scripts if there are no CONFIG_FILES.
23623# This happens for instance when ./config.status config.h
23624if test -n "\$CONFIG_FILES"; then
23625 # Protect against being on the right side of a sed subst in config.status.
23626 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23627 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23628s,@SHELL@,$SHELL,;t t
23629s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23630s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23631s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23632s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23633s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23634s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23635s,@exec_prefix@,$exec_prefix,;t t
23636s,@prefix@,$prefix,;t t
23637s,@program_transform_name@,$program_transform_name,;t t
23638s,@bindir@,$bindir,;t t
23639s,@sbindir@,$sbindir,;t t
23640s,@libexecdir@,$libexecdir,;t t
23641s,@datadir@,$datadir,;t t
23642s,@sysconfdir@,$sysconfdir,;t t
23643s,@sharedstatedir@,$sharedstatedir,;t t
23644s,@localstatedir@,$localstatedir,;t t
23645s,@libdir@,$libdir,;t t
23646s,@includedir@,$includedir,;t t
23647s,@oldincludedir@,$oldincludedir,;t t
23648s,@infodir@,$infodir,;t t
23649s,@mandir@,$mandir,;t t
23650s,@build_alias@,$build_alias,;t t
23651s,@host_alias@,$host_alias,;t t
23652s,@target_alias@,$target_alias,;t t
23653s,@DEFS@,$DEFS,;t t
23654s,@ECHO_C@,$ECHO_C,;t t
23655s,@ECHO_N@,$ECHO_N,;t t
23656s,@ECHO_T@,$ECHO_T,;t t
23657s,@LIBS@,$LIBS,;t t
23658s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23659s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23660s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23661s,@build@,$build,;t t
23662s,@build_cpu@,$build_cpu,;t t
23663s,@build_vendor@,$build_vendor,;t t
23664s,@build_os@,$build_os,;t t
23665s,@host@,$host,;t t
23666s,@host_cpu@,$host_cpu,;t t
23667s,@host_vendor@,$host_vendor,;t t
23668s,@host_os@,$host_os,;t t
23669s,@target@,$target,;t t
23670s,@target_cpu@,$target_cpu,;t t
23671s,@target_vendor@,$target_vendor,;t t
23672s,@target_os@,$target_os,;t t
23673s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023674s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023675s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023676s,@CXX@,$CXX,;t t
23677s,@CXXFLAGS@,$CXXFLAGS,;t t
23678s,@LDFLAGS@,$LDFLAGS,;t t
23679s,@CPPFLAGS@,$CPPFLAGS,;t t
23680s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23681s,@EXEEXT@,$EXEEXT,;t t
23682s,@OBJEXT@,$OBJEXT,;t t
23683s,@CC@,$CC,;t t
23684s,@CFLAGS@,$CFLAGS,;t t
23685s,@ac_ct_CC@,$ac_ct_CC,;t t
23686s,@CPP@,$CPP,;t t
23687s,@ifGNUmake@,$ifGNUmake,;t t
23688s,@LEX@,$LEX,;t t
23689s,@LEXLIB@,$LEXLIB,;t t
23690s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23691s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023692s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023693s,@LN_S@,$LN_S,;t t
23694s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023695s,@AR@,$AR,;t t
23696s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023697s,@RANLIB@,$RANLIB,;t t
23698s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23699s,@STRIP@,$STRIP,;t t
23700s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023701s,@CXXCPP@,$CXXCPP,;t t
23702s,@F77@,$F77,;t t
23703s,@FFLAGS@,$FFLAGS,;t t
23704s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023705s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023706s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023707s,@SED@,$SED,;t t
23708s,@RM@,$RM,;t t
23709s,@MKDIR@,$MKDIR,;t t
23710s,@DATE@,$DATE,;t t
23711s,@MV@,$MV,;t t
23712s,@DOT@,$DOT,;t t
23713s,@ETAGS@,$ETAGS,;t t
23714s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023715s,@PYTHON@,$PYTHON,;t t
23716s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023717s,@ALLOCA@,$ALLOCA,;t t
23718s,@LIBOBJS@,$LIBOBJS,;t t
23719s,@MMAP_FILE@,$MMAP_FILE,;t t
23720s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023721s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23722s,@USE_SPEC@,$USE_SPEC,;t t
23723s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023724s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023725s,@JIT@,$JIT,;t t
23726s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23727s,@BCR@,$BCR,;t t
23728s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023729s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023730CEOF
23731
23732_ACEOF
23733
23734 cat >>$CONFIG_STATUS <<\_ACEOF
23735 # Split the substitutions into bite-sized pieces for seds with
23736 # small command number limits, like on Digital OSF/1 and HP-UX.
23737 ac_max_sed_lines=48
23738 ac_sed_frag=1 # Number of current file.
23739 ac_beg=1 # First line for current file.
23740 ac_end=$ac_max_sed_lines # Line after last line for current file.
23741 ac_more_lines=:
23742 ac_sed_cmds=
23743 while $ac_more_lines; do
23744 if test $ac_beg -gt 1; then
23745 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23746 else
23747 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23748 fi
23749 if test ! -s $tmp/subs.frag; then
23750 ac_more_lines=false
23751 else
23752 # The purpose of the label and of the branching condition is to
23753 # speed up the sed processing (if there are no `@' at all, there
23754 # is no need to browse any of the substitutions).
23755 # These are the two extra sed commands mentioned above.
23756 (echo ':t
23757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23758 if test -z "$ac_sed_cmds"; then
23759 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23760 else
23761 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23762 fi
23763 ac_sed_frag=`expr $ac_sed_frag + 1`
23764 ac_beg=$ac_end
23765 ac_end=`expr $ac_end + $ac_max_sed_lines`
23766 fi
23767 done
23768 if test -z "$ac_sed_cmds"; then
23769 ac_sed_cmds=cat
23770 fi
23771fi # test -n "$CONFIG_FILES"
23772
23773_ACEOF
23774cat >>$CONFIG_STATUS <<\_ACEOF
23775for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23777 case $ac_file in
23778 - | *:- | *:-:* ) # input from stdin
23779 cat >$tmp/stdin
23780 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23782 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23784 * ) ac_file_in=$ac_file.in ;;
23785 esac
23786
23787 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23788 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23789$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23790 X"$ac_file" : 'X\(//\)[^/]' \| \
23791 X"$ac_file" : 'X\(//\)$' \| \
23792 X"$ac_file" : 'X\(/\)' \| \
23793 . : '\(.\)' 2>/dev/null ||
23794echo X"$ac_file" |
23795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23797 /^X\(\/\/\)$/{ s//\1/; q; }
23798 /^X\(\/\).*/{ s//\1/; q; }
23799 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023800 { if $as_mkdir_p; then
23801 mkdir -p "$ac_dir"
23802 else
23803 as_dir="$ac_dir"
23804 as_dirs=
23805 while test ! -d "$as_dir"; do
23806 as_dirs="$as_dir $as_dirs"
23807 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23808$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23809 X"$as_dir" : 'X\(//\)[^/]' \| \
23810 X"$as_dir" : 'X\(//\)$' \| \
23811 X"$as_dir" : 'X\(/\)' \| \
23812 . : '\(.\)' 2>/dev/null ||
23813echo X"$as_dir" |
23814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23816 /^X\(\/\/\)$/{ s//\1/; q; }
23817 /^X\(\/\).*/{ s//\1/; q; }
23818 s/.*/./; q'`
23819 done
23820 test ! -n "$as_dirs" || mkdir $as_dirs
23821 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23822echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23823 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023824
23825 ac_builddir=.
23826
23827if test "$ac_dir" != .; then
23828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23829 # A "../" for each directory in $ac_dir_suffix.
23830 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23831else
23832 ac_dir_suffix= ac_top_builddir=
23833fi
23834
23835case $srcdir in
23836 .) # No --srcdir option. We are building in place.
23837 ac_srcdir=.
23838 if test -z "$ac_top_builddir"; then
23839 ac_top_srcdir=.
23840 else
23841 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23842 fi ;;
23843 [\\/]* | ?:[\\/]* ) # Absolute path.
23844 ac_srcdir=$srcdir$ac_dir_suffix;
23845 ac_top_srcdir=$srcdir ;;
23846 *) # Relative path.
23847 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23848 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23849esac
23850# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23851# absolute.
23852ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023853ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023854ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23855ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23856
23857
23858 case $INSTALL in
23859 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23860 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23861 esac
23862
23863 if test x"$ac_file" != x-; then
23864 { echo "$as_me:$LINENO: creating $ac_file" >&5
23865echo "$as_me: creating $ac_file" >&6;}
23866 rm -f "$ac_file"
23867 fi
23868 # Let's still pretend it is `configure' which instantiates (i.e., don't
23869 # use $as_me), people would be surprised to read:
23870 # /* config.h. Generated by config.status. */
23871 if test x"$ac_file" = x-; then
23872 configure_input=
23873 else
23874 configure_input="$ac_file. "
23875 fi
23876 configure_input=$configure_input"Generated from `echo $ac_file_in |
23877 sed 's,.*/,,'` by configure."
23878
23879 # First look for the input files in the build tree, otherwise in the
23880 # src tree.
23881 ac_file_inputs=`IFS=:
23882 for f in $ac_file_in; do
23883 case $f in
23884 -) echo $tmp/stdin ;;
23885 [\\/$]*)
23886 # Absolute (can't be DOS-style, as IFS=:)
23887 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23888echo "$as_me: error: cannot find input file: $f" >&2;}
23889 { (exit 1); exit 1; }; }
23890 echo $f;;
23891 *) # Relative
23892 if test -f "$f"; then
23893 # Build tree
23894 echo $f
23895 elif test -f "$srcdir/$f"; then
23896 # Source tree
23897 echo $srcdir/$f
23898 else
23899 # /dev/null tree
23900 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23901echo "$as_me: error: cannot find input file: $f" >&2;}
23902 { (exit 1); exit 1; }; }
23903 fi;;
23904 esac
23905 done` || { (exit 1); exit 1; }
23906_ACEOF
23907cat >>$CONFIG_STATUS <<_ACEOF
23908 sed "$ac_vpsub
23909$extrasub
23910_ACEOF
23911cat >>$CONFIG_STATUS <<\_ACEOF
23912:t
23913/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23914s,@configure_input@,$configure_input,;t t
23915s,@srcdir@,$ac_srcdir,;t t
23916s,@abs_srcdir@,$ac_abs_srcdir,;t t
23917s,@top_srcdir@,$ac_top_srcdir,;t t
23918s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23919s,@builddir@,$ac_builddir,;t t
23920s,@abs_builddir@,$ac_abs_builddir,;t t
23921s,@top_builddir@,$ac_top_builddir,;t t
23922s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23923s,@INSTALL@,$ac_INSTALL,;t t
23924" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23925 rm -f $tmp/stdin
23926 if test x"$ac_file" != x-; then
23927 mv $tmp/out $ac_file
23928 else
23929 cat $tmp/out
23930 rm -f $tmp/out
23931 fi
23932
23933done
23934_ACEOF
23935cat >>$CONFIG_STATUS <<\_ACEOF
23936
23937#
23938# CONFIG_HEADER section.
23939#
23940
23941# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23942# NAME is the cpp macro being defined and VALUE is the value it is being given.
23943#
23944# ac_d sets the value in "#define NAME VALUE" lines.
23945ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23946ac_dB='[ ].*$,\1#\2'
23947ac_dC=' '
23948ac_dD=',;t'
23949# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23950ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23951ac_uB='$,\1#\2define\3'
23952ac_uC=' '
23953ac_uD=',;t'
23954
23955for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23957 case $ac_file in
23958 - | *:- | *:-:* ) # input from stdin
23959 cat >$tmp/stdin
23960 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23962 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23964 * ) ac_file_in=$ac_file.in ;;
23965 esac
23966
23967 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23968echo "$as_me: creating $ac_file" >&6;}
23969
23970 # First look for the input files in the build tree, otherwise in the
23971 # src tree.
23972 ac_file_inputs=`IFS=:
23973 for f in $ac_file_in; do
23974 case $f in
23975 -) echo $tmp/stdin ;;
23976 [\\/$]*)
23977 # Absolute (can't be DOS-style, as IFS=:)
23978 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23979echo "$as_me: error: cannot find input file: $f" >&2;}
23980 { (exit 1); exit 1; }; }
23981 echo $f;;
23982 *) # Relative
23983 if test -f "$f"; then
23984 # Build tree
23985 echo $f
23986 elif test -f "$srcdir/$f"; then
23987 # Source tree
23988 echo $srcdir/$f
23989 else
23990 # /dev/null tree
23991 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23992echo "$as_me: error: cannot find input file: $f" >&2;}
23993 { (exit 1); exit 1; }; }
23994 fi;;
23995 esac
23996 done` || { (exit 1); exit 1; }
23997 # Remove the trailing spaces.
23998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23999
24000_ACEOF
24001
24002# Transform confdefs.h into two sed scripts, `conftest.defines' and
24003# `conftest.undefs', that substitutes the proper values into
24004# config.h.in to produce config.h. The first handles `#define'
24005# templates, and the second `#undef' templates.
24006# And first: Protect against being on the right side of a sed subst in
24007# config.status. Protect against being in an unquoted here document
24008# in config.status.
24009rm -f conftest.defines conftest.undefs
24010# Using a here document instead of a string reduces the quoting nightmare.
24011# Putting comments in sed scripts is not portable.
24012#
24013# `end' is used to avoid that the second main sed command (meant for
24014# 0-ary CPP macros) applies to n-ary macro definitions.
24015# See the Autoconf documentation for `clear'.
24016cat >confdef2sed.sed <<\_ACEOF
24017s/[\\&,]/\\&/g
24018s,[\\$`],\\&,g
24019t clear
24020: clear
24021s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24022t end
24023s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24024: end
24025_ACEOF
24026# If some macros were called several times there might be several times
24027# the same #defines, which is useless. Nevertheless, we may not want to
24028# sort them, since we want the *last* AC-DEFINE to be honored.
24029uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24030sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24031rm -f confdef2sed.sed
24032
24033# This sed command replaces #undef with comments. This is necessary, for
24034# example, in the case of _POSIX_SOURCE, which is predefined and required
24035# on some systems where configure will not decide to define it.
24036cat >>conftest.undefs <<\_ACEOF
24037s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24038_ACEOF
24039
24040# Break up conftest.defines because some shells have a limit on the size
24041# of here documents, and old seds have small limits too (100 cmds).
24042echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024043echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024044echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24045echo ' :' >>$CONFIG_STATUS
24046rm -f conftest.tail
24047while grep . conftest.defines >/dev/null
24048do
24049 # Write a limited-size here document to $tmp/defines.sed.
24050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24051 # Speed up: don't consider the non `#define' lines.
24052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24053 # Work around the forget-to-reset-the-flag bug.
24054 echo 't clr' >>$CONFIG_STATUS
24055 echo ': clr' >>$CONFIG_STATUS
24056 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24057 echo 'CEOF
24058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24059 rm -f $tmp/in
24060 mv $tmp/out $tmp/in
24061' >>$CONFIG_STATUS
24062 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24063 rm -f conftest.defines
24064 mv conftest.tail conftest.defines
24065done
24066rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024067echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024068echo >>$CONFIG_STATUS
24069
24070# Break up conftest.undefs because some shells have a limit on the size
24071# of here documents, and old seds have small limits too (100 cmds).
24072echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24073rm -f conftest.tail
24074while grep . conftest.undefs >/dev/null
24075do
24076 # Write a limited-size here document to $tmp/undefs.sed.
24077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24078 # Speed up: don't consider the non `#undef'
24079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24080 # Work around the forget-to-reset-the-flag bug.
24081 echo 't clr' >>$CONFIG_STATUS
24082 echo ': clr' >>$CONFIG_STATUS
24083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24084 echo 'CEOF
24085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24086 rm -f $tmp/in
24087 mv $tmp/out $tmp/in
24088' >>$CONFIG_STATUS
24089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24090 rm -f conftest.undefs
24091 mv conftest.tail conftest.undefs
24092done
24093rm -f conftest.undefs
24094
24095cat >>$CONFIG_STATUS <<\_ACEOF
24096 # Let's still pretend it is `configure' which instantiates (i.e., don't
24097 # use $as_me), people would be surprised to read:
24098 # /* config.h. Generated by config.status. */
24099 if test x"$ac_file" = x-; then
24100 echo "/* Generated by configure. */" >$tmp/config.h
24101 else
24102 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24103 fi
24104 cat $tmp/in >>$tmp/config.h
24105 rm -f $tmp/in
24106 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024107 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24109echo "$as_me: $ac_file is unchanged" >&6;}
24110 else
24111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24113 X"$ac_file" : 'X\(//\)[^/]' \| \
24114 X"$ac_file" : 'X\(//\)$' \| \
24115 X"$ac_file" : 'X\(/\)' \| \
24116 . : '\(.\)' 2>/dev/null ||
24117echo X"$ac_file" |
24118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24120 /^X\(\/\/\)$/{ s//\1/; q; }
24121 /^X\(\/\).*/{ s//\1/; q; }
24122 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024123 { if $as_mkdir_p; then
24124 mkdir -p "$ac_dir"
24125 else
24126 as_dir="$ac_dir"
24127 as_dirs=
24128 while test ! -d "$as_dir"; do
24129 as_dirs="$as_dir $as_dirs"
24130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24132 X"$as_dir" : 'X\(//\)[^/]' \| \
24133 X"$as_dir" : 'X\(//\)$' \| \
24134 X"$as_dir" : 'X\(/\)' \| \
24135 . : '\(.\)' 2>/dev/null ||
24136echo X"$as_dir" |
24137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24139 /^X\(\/\/\)$/{ s//\1/; q; }
24140 /^X\(\/\).*/{ s//\1/; q; }
24141 s/.*/./; q'`
24142 done
24143 test ! -n "$as_dirs" || mkdir $as_dirs
24144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24145echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24146 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024147
24148 rm -f $ac_file
24149 mv $tmp/config.h $ac_file
24150 fi
24151 else
24152 cat $tmp/config.h
24153 rm -f $tmp/config.h
24154 fi
24155done
24156_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024157cat >>$CONFIG_STATUS <<\_ACEOF
24158
24159#
24160# CONFIG_COMMANDS section.
24161#
24162for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24163 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24164 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24165 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24166$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24167 X"$ac_dest" : 'X\(//\)[^/]' \| \
24168 X"$ac_dest" : 'X\(//\)$' \| \
24169 X"$ac_dest" : 'X\(/\)' \| \
24170 . : '\(.\)' 2>/dev/null ||
24171echo X"$ac_dest" |
24172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24174 /^X\(\/\/\)$/{ s//\1/; q; }
24175 /^X\(\/\).*/{ s//\1/; q; }
24176 s/.*/./; q'`
24177 ac_builddir=.
24178
24179if test "$ac_dir" != .; then
24180 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24181 # A "../" for each directory in $ac_dir_suffix.
24182 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24183else
24184 ac_dir_suffix= ac_top_builddir=
24185fi
24186
24187case $srcdir in
24188 .) # No --srcdir option. We are building in place.
24189 ac_srcdir=.
24190 if test -z "$ac_top_builddir"; then
24191 ac_top_srcdir=.
24192 else
24193 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24194 fi ;;
24195 [\\/]* | ?:[\\/]* ) # Absolute path.
24196 ac_srcdir=$srcdir$ac_dir_suffix;
24197 ac_top_srcdir=$srcdir ;;
24198 *) # Relative path.
24199 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24200 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24201esac
24202# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24203# absolute.
24204ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024205ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024206ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24207ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24208
24209
24210 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24211echo "$as_me: executing $ac_dest commands" >&6;}
24212 case $ac_dest in
24213 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24214 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24215 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24216 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24217 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24218 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24219 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24220 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24221 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24222 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24223 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24224 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24225 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24226 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24227 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24228 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24229 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 +000024230 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24231 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24232 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24233 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24234 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24235 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24236 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24237 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24238 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24239 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24240 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24241 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24242 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24243 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24244 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24245 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24246 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24247 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24248 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24249 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24250 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24251 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24252 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24253 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24254 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24255 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24256 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24257 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24258 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24259 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24260 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24261 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24262 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24263 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24264 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24265 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24266 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24267 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24268 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24269 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24270 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24271 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24272 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24273 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24274 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24275 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24276 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24277 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24278 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 ;;
24279 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 ;;
24280 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 ;;
24281 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 ;;
24282 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 ;;
24283 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 ;;
24284 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 ;;
24285 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 ;;
24286 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 ;;
24287 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 ;;
24288 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 ;;
24289 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 ;;
24290 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 ;;
24291 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 ;;
24292 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 ;;
24293 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24294 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24295 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24296 test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
24297 test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
24298 test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
24299 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 ;;
24300 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 ;;
24301 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 ;;
24302 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 ;;
24303 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 ;;
24304 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 ;;
24305 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 ;;
24306 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 ;;
24307 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 ;;
24308 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 ;;
24309 test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
24310 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 ;;
24311 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 ;;
24312 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 ;;
24313 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 ;;
24314 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 ;;
24315 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 ;;
24316 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 ;;
24317 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 ;;
24318 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 ;;
24319 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 ;;
24320 test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
24321 test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
24322 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 ;;
24323 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 ;;
24324 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 ;;
24325 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 ;;
24326 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 ;;
24327 test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
24328 test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
24329 test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
24330 test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
24331 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24332 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24333 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24334 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 ;;
24335 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 +000024336 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24337 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24338 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24339 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24340 test/Programs/SingleSource/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Shootout/Makefile test/Programs/SingleSource/Shootout/Makefile ;;
24341 test/Programs/SingleSource/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Stanford/Makefile test/Programs/SingleSource/Stanford/Makefile ;;
24342 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24343 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24344 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24345 tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24346 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24347 tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24348 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24349 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24350 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24351 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24352 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24353 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24354 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24355 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24356 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24357 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24358 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24359 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24360 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24361 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24362 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24363 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24364 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24365 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24366 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24367 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24368 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24369 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24370 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24371 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24372 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24373 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24374 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24375 esac
24376done
24377_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024378
24379cat >>$CONFIG_STATUS <<\_ACEOF
24380
24381{ (exit 0); exit 0; }
24382_ACEOF
24383chmod +x $CONFIG_STATUS
24384ac_clean_files=$ac_clean_files_save
24385
24386
24387# configure is writing to config.log, and then calls config.status.
24388# config.status does its own redirection, appending to config.log.
24389# Unfortunately, on DOS this fails, as config.log is still kept open
24390# by configure, so config.status won't be able to write to it; its
24391# output is simply discarded. So we exec the FD to /dev/null,
24392# effectively closing config.log, so it can be properly (re)opened and
24393# appended to by config.status. When coming back to configure, we
24394# need to make the FD available again.
24395if test "$no_create" != yes; then
24396 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024397 ac_config_status_args=
24398 test "$silent" = yes &&
24399 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024400 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024402 exec 5>>config.log
24403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24404 # would make configure fail if this is the last instruction.
24405 $ac_cs_success || { (exit 1); exit 1; }
24406fi
24407