blob: d5cad80910c1400ec0b72f90d0a0c5601e08c501 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_unique_file=""Makefile.config.in""
John Criswell0c38eaf2003-09-10 15:17:25 +0000467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019 esac
1020 cat <<\_ACEOF
1021
1022Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001038 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --with-spec Location of SPEC benchmarks
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001052 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell0c38eaf2003-09-10 15:17:25 +00001512 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell0c38eaf2003-09-10 15:17:25 +00001514 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001515
1516
John Criswell0c38eaf2003-09-10 15:17:25 +00001517 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001518
1519
John Criswell0c38eaf2003-09-10 15:17:25 +00001520 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001521
1522
John Criswell0c38eaf2003-09-10 15:17:25 +00001523 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001524
1525
John Criswell0c38eaf2003-09-10 15:17:25 +00001526 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001527
1528
John Criswell0c38eaf2003-09-10 15:17:25 +00001529 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001530
1531
John Criswell0c38eaf2003-09-10 15:17:25 +00001532 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001533
1534
John Criswell0c38eaf2003-09-10 15:17:25 +00001535 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001536
1537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell613758d2003-09-11 18:03:50 +00001628 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1629
1630
1631 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell613758d2003-09-11 18:03:50 +00001646 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell613758d2003-09-11 18:03:50 +00001652 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell0c38eaf2003-09-10 15:17:25 +00001697 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswell0c38eaf2003-09-10 15:17:25 +00001706 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell613758d2003-09-11 18:03:50 +00001724 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell48e3cb92003-09-12 16:31:43 +00001781 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell48e3cb92003-09-12 16:31:43 +00001784 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell39e83892003-09-12 16:36:17 +00001787 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1788
1789
1790 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1791
1792
John Criswell48e3cb92003-09-12 16:31:43 +00001793 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell48e3cb92003-09-12 16:31:43 +00001796 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell48e3cb92003-09-12 16:31:43 +00001799 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell48e3cb92003-09-12 16:31:43 +00001802 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell48e3cb92003-09-12 16:31:43 +00001805 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswell48e3cb92003-09-12 16:31:43 +00001808 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswell48e3cb92003-09-12 16:31:43 +00001811 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell48e3cb92003-09-12 16:31:43 +00001814 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell48e3cb92003-09-12 16:31:43 +00001817 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell48e3cb92003-09-12 16:31:43 +00001820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell48e3cb92003-09-12 16:31:43 +00001823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell48e3cb92003-09-12 16:31:43 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell48e3cb92003-09-12 16:31:43 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell48e3cb92003-09-12 16:31:43 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell48e3cb92003-09-12 16:31:43 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell48e3cb92003-09-12 16:31:43 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswell48e3cb92003-09-12 16:31:43 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell48e3cb92003-09-12 16:31:43 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell48e3cb92003-09-12 16:31:43 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell48e3cb92003-09-12 16:31:43 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell48e3cb92003-09-12 16:31:43 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1857
1858
1859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1860
1861
1862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell39e83892003-09-12 16:36:17 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell48e3cb92003-09-12 16:31:43 +00001868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell48e3cb92003-09-12 16:31:43 +00001871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell48e3cb92003-09-12 16:31:43 +00001874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell48e3cb92003-09-12 16:31:43 +00001877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell48e3cb92003-09-12 16:31:43 +00001880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell48e3cb92003-09-12 16:31:43 +00001883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell48e3cb92003-09-12 16:31:43 +00001886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswell48e3cb92003-09-12 16:31:43 +00001889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswell0c38eaf2003-09-10 15:17:25 +00001892 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswell0c38eaf2003-09-10 15:17:25 +00001895 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell0c38eaf2003-09-10 15:17:25 +00001898 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell0c38eaf2003-09-10 15:17:25 +00001901 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell0c38eaf2003-09-10 15:17:25 +00001904 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell0c38eaf2003-09-10 15:17:25 +00001907 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell0c38eaf2003-09-10 15:17:25 +00001910 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell0c38eaf2003-09-10 15:17:25 +00001913 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswellffaaf3b2003-09-10 18:38:44 +00001916 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1917
1918
1919 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1920
1921
1922 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1923
1924
1925 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1926
1927
1928 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1929
1930
1931 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1932
1933
John Criswell0c38eaf2003-09-10 15:17:25 +00001934 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell0c38eaf2003-09-10 15:17:25 +00001937 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell0afe8252003-09-11 20:53:48 +00001940 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands tools/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/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswell0c38eaf2003-09-10 15:17:25 +00001949 ac_config_commands="$ac_config_commands tools/as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell0c38eaf2003-09-10 15:17:25 +00001952 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001953
1954
John Criswell0c38eaf2003-09-10 15:17:25 +00001955 ac_config_commands="$ac_config_commands tools/dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001956
1957
John Criswell0c38eaf2003-09-10 15:17:25 +00001958 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell0c38eaf2003-09-10 15:17:25 +00001961 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands tools/link/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0c38eaf2003-09-10 15:17:25 +00001970 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell0c38eaf2003-09-10 15:17:25 +00001973 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell0c38eaf2003-09-10 15:17:25 +00001976 ac_config_commands="$ac_config_commands tools/opt/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell0c38eaf2003-09-10 15:17:25 +00001979 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell0c38eaf2003-09-10 15:17:25 +00001982 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
Chris Lattnerebd70302003-09-13 03:29:53 +00001985 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswell0c38eaf2003-09-10 15:17:25 +00002009 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
John Criswell0c38eaf2003-09-10 15:17:25 +00002012 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002013
2014
John Criswell0c38eaf2003-09-10 15:17:25 +00002015 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002016
2017
John Criswell0c38eaf2003-09-10 15:17:25 +00002018 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002019
2020
John Criswell0c38eaf2003-09-10 15:17:25 +00002021 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002022
2023
John Criswell0c38eaf2003-09-10 15:17:25 +00002024 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002025
2026
John Criswell0c38eaf2003-09-10 15:17:25 +00002027 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002028
2029
John Criswell0c38eaf2003-09-10 15:17:25 +00002030 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002031
2032
John Criswell0c38eaf2003-09-10 15:17:25 +00002033 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002034
2035
John Criswell0c38eaf2003-09-10 15:17:25 +00002036 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell392aaa32003-07-22 19:18:09 +00002042
2043
John Criswell7a73b802003-06-30 21:59:07 +00002044# Find a good install program. We prefer a C program (faster),
2045# so one script is as good as another. But avoid the broken or
2046# incompatible versions:
2047# SysV /etc/install, /usr/sbin/install
2048# SunOS /usr/etc/install
2049# IRIX /sbin/install
2050# AIX /bin/install
2051# AmigaOS /C/install, which installs bootblocks on floppy discs
2052# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2053# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2054# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2055# ./install, which can be erroneously created by make from ./install.sh.
2056echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2057echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2058if test -z "$INSTALL"; then
2059if test "${ac_cv_path_install+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 # Account for people who put trailing slashes in PATH elements.
2068case $as_dir/ in
2069 ./ | .// | /cC/* | \
2070 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2071 /usr/ucb/* ) ;;
2072 *)
2073 # OSF1 and SCO ODT 3.0 have their own names for install.
2074 # Don't use installbsd from OSF since it installs stuff as root
2075 # by default.
2076 for ac_prog in ginstall scoinst install; do
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2079 if test $ac_prog = install &&
2080 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2081 # AIX install. It has an incompatible calling convention.
2082 :
2083 elif test $ac_prog = install &&
2084 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085 # program-specific install script used by HP pwplus--don't use.
2086 :
2087 else
2088 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2089 break 3
2090 fi
2091 fi
2092 done
2093 done
2094 ;;
2095esac
2096done
2097
2098
2099fi
2100 if test "${ac_cv_path_install+set}" = set; then
2101 INSTALL=$ac_cv_path_install
2102 else
2103 # As a last resort, use the slow shell script. We don't cache a
2104 # path for INSTALL within a source directory, because that will
2105 # break other packages using the cache if that directory is
2106 # removed, or if the path is relative.
2107 INSTALL=$ac_install_sh
2108 fi
2109fi
2110echo "$as_me:$LINENO: result: $INSTALL" >&5
2111echo "${ECHO_T}$INSTALL" >&6
2112
2113# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2114# It thinks the first close brace ends the variable substitution.
2115test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2116
2117test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2118
2119test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2120
2121
2122# Make sure we can run config.sub.
2123$ac_config_sub sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2125echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2126 { (exit 1); exit 1; }; }
2127
2128echo "$as_me:$LINENO: checking build system type" >&5
2129echo $ECHO_N "checking build system type... $ECHO_C" >&6
2130if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 ac_cv_build_alias=$build_alias
2134test -z "$ac_cv_build_alias" &&
2135 ac_cv_build_alias=`$ac_config_guess`
2136test -z "$ac_cv_build_alias" &&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2142echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2144
2145fi
2146echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147echo "${ECHO_T}$ac_cv_build" >&6
2148build=$ac_cv_build
2149build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2150build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2151build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2152
2153
2154echo "$as_me:$LINENO: checking host system type" >&5
2155echo $ECHO_N "checking host system type... $ECHO_C" >&6
2156if test "${ac_cv_host+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 ac_cv_host_alias=$host_alias
2160test -z "$ac_cv_host_alias" &&
2161 ac_cv_host_alias=$ac_cv_build_alias
2162ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2163 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2164echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2166
2167fi
2168echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2169echo "${ECHO_T}$ac_cv_host" >&6
2170host=$ac_cv_host
2171host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2172host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2173host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2174
2175
2176echo "$as_me:$LINENO: checking target system type" >&5
2177echo $ECHO_N "checking target system type... $ECHO_C" >&6
2178if test "${ac_cv_target+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 ac_cv_target_alias=$target_alias
2182test "x$ac_cv_target_alias" = "x" &&
2183 ac_cv_target_alias=$ac_cv_host_alias
2184ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2185 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2186echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2187 { (exit 1); exit 1; }; }
2188
2189fi
2190echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191echo "${ECHO_T}$ac_cv_target" >&6
2192target=$ac_cv_target
2193target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2194target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2195target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2196
2197
2198# The aliases save the names the user supplied, while $host etc.
2199# will get canonicalized.
2200test -n "$target_alias" &&
2201 test "$program_prefix$program_suffix$program_transform_name" = \
2202 NONENONEs,x,x, &&
2203 program_prefix=${target_alias}-
2204
2205case $build in
2206 *i*86*) OS=Linux
2207
John Criswellf02dbf02003-07-22 20:07:49 +00002208 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002209
2210 ;;
2211
2212 *sparc*) OS=SunOS
2213
2214 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2215
2216 ;;
2217
2218 *) OS=Unknown
2219
2220 ;;
2221esac
2222
2223case $target in
2224 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2225
2226 ;;
2227esac
2228
John Criswell76595452003-07-01 22:07:39 +00002229case $target in
2230 *i*86*) ARCH=x86
2231
2232 ;;
2233 *sparc*solaris*) ARCH=Sparc
2234
2235 ;;
2236esac
2237
John Criswell7a73b802003-06-30 21:59:07 +00002238
2239ac_ext=cc
2240ac_cpp='$CXXCPP $CPPFLAGS'
2241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2244if test -n "$ac_tool_prefix"; then
2245 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2246 do
2247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248set dummy $ac_tool_prefix$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_CXX+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 if test -n "$CXX"; then
2255 ac_cv_prog_CXX="$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_CXX="$ac_tool_prefix$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
2273CXX=$ac_cv_prog_CXX
2274if test -n "$CXX"; then
2275 echo "$as_me:$LINENO: result: $CXX" >&5
2276echo "${ECHO_T}$CXX" >&6
2277else
2278 echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6
2280fi
2281
2282 test -n "$CXX" && break
2283 done
2284fi
2285if test -z "$CXX"; then
2286 ac_ct_CXX=$CXX
2287 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2288do
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290set dummy $ac_prog; ac_word=$2
2291echo "$as_me:$LINENO: checking for $ac_word" >&5
2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296 if test -n "$ac_ct_CXX"; then
2297 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306 ac_cv_prog_ac_ct_CXX="$ac_prog"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2309 fi
2310done
2311done
2312
2313fi
2314fi
2315ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2316if test -n "$ac_ct_CXX"; then
2317 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2318echo "${ECHO_T}$ac_ct_CXX" >&6
2319else
2320 echo "$as_me:$LINENO: result: no" >&5
2321echo "${ECHO_T}no" >&6
2322fi
2323
2324 test -n "$ac_ct_CXX" && break
2325done
2326test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2327
2328 CXX=$ac_ct_CXX
2329fi
2330
2331
2332# Provide some information about the compiler.
2333echo "$as_me:$LINENO:" \
2334 "checking for C++ compiler version" >&5
2335ac_compiler=`set X $ac_compile; echo $2`
2336{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2337 (eval $ac_compiler --version </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2342 (eval $ac_compiler -v </dev/null >&5) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2347 (eval $ac_compiler -V </dev/null >&5) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351
2352cat >conftest.$ac_ext <<_ACEOF
2353#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002359
John Criswell7a73b802003-06-30 21:59:07 +00002360int
2361main ()
2362{
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002369ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002370# Try to create an executable without -o first, disregard a.out.
2371# It will help us diagnose broken compilers, and finding out an intuition
2372# of exeext.
2373echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2374echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2375ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2376if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2377 (eval $ac_link_default) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; then
2381 # Find the output, starting from the most likely. This scheme is
2382# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2383# resort.
2384
2385# Be careful to initialize this variable, since it used to be cached.
2386# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2387ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002388# b.out is created by i960 compilers.
2389for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2390do
2391 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002392 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2394 ;;
2395 conftest.$ac_ext )
2396 # This is the source file.
2397 ;;
2398 [ab].out )
2399 # We found the default executable, but exeext='' is most
2400 # certainly right.
2401 break;;
2402 *.* )
2403 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2404 # FIXME: I believe we export ac_cv_exeext for Libtool,
2405 # but it would be cool to find out if it's true. Does anybody
2406 # maintain Libtool? --akim.
2407 export ac_cv_exeext
2408 break;;
2409 * )
2410 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002411 esac
2412done
2413else
2414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2418See \`config.log' for more details." >&5
2419echo "$as_me: error: C++ compiler cannot create executables
2420See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002421 { (exit 77); exit 77; }; }
2422fi
2423
2424ac_exeext=$ac_cv_exeext
2425echo "$as_me:$LINENO: result: $ac_file" >&5
2426echo "${ECHO_T}$ac_file" >&6
2427
2428# Check the compiler produces executables we can run. If not, either
2429# the compiler is broken, or we cross compile.
2430echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2431echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2432# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2433# If not cross compiling, check that we can run a simple program.
2434if test "$cross_compiling" != yes; then
2435 if { ac_try='./$ac_file'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 cross_compiling=no
2442 else
2443 if test "$cross_compiling" = maybe; then
2444 cross_compiling=yes
2445 else
2446 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002447If you meant to cross compile, use \`--host'.
2448See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002449echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002450If you meant to cross compile, use \`--host'.
2451See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002452 { (exit 1); exit 1; }; }
2453 fi
2454 fi
2455fi
2456echo "$as_me:$LINENO: result: yes" >&5
2457echo "${ECHO_T}yes" >&6
2458
John Criswell0c38eaf2003-09-10 15:17:25 +00002459rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002460ac_clean_files=$ac_clean_files_save
2461# Check the compiler produces executables we can run. If not, either
2462# the compiler is broken, or we cross compile.
2463echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2464echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2465echo "$as_me:$LINENO: result: $cross_compiling" >&5
2466echo "${ECHO_T}$cross_compiling" >&6
2467
2468echo "$as_me:$LINENO: checking for suffix of executables" >&5
2469echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471 (eval $ac_link) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; then
2475 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2476# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2477# work properly (i.e., refer to `conftest.exe'), while it won't with
2478# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002479for ac_file in conftest.exe conftest conftest.*; do
2480 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002481 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002483 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2484 export ac_cv_exeext
2485 break;;
2486 * ) break;;
2487 esac
2488done
2489else
John Criswell0c38eaf2003-09-10 15:17:25 +00002490 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2491See \`config.log' for more details." >&5
2492echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2493See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002494 { (exit 1); exit 1; }; }
2495fi
2496
2497rm -f conftest$ac_cv_exeext
2498echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2499echo "${ECHO_T}$ac_cv_exeext" >&6
2500
2501rm -f conftest.$ac_ext
2502EXEEXT=$ac_cv_exeext
2503ac_exeext=$EXEEXT
2504echo "$as_me:$LINENO: checking for suffix of object files" >&5
2505echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2506if test "${ac_cv_objext+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 cat >conftest.$ac_ext <<_ACEOF
2510#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002511/* confdefs.h. */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002516
John Criswell7a73b802003-06-30 21:59:07 +00002517int
2518main ()
2519{
2520
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525rm -f conftest.o conftest.obj
2526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2532 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002534 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2535 break;;
2536 esac
2537done
2538else
2539 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002540sed 's/^/| /' conftest.$ac_ext >&5
2541
2542{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2543See \`config.log' for more details." >&5
2544echo "$as_me: error: cannot compute suffix of object files: cannot compile
2545See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002546 { (exit 1); exit 1; }; }
2547fi
2548
2549rm -f conftest.$ac_cv_objext conftest.$ac_ext
2550fi
2551echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2552echo "${ECHO_T}$ac_cv_objext" >&6
2553OBJEXT=$ac_cv_objext
2554ac_objext=$OBJEXT
2555echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2556echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2557if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559else
2560 cat >conftest.$ac_ext <<_ACEOF
2561#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002562/* confdefs.h. */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002567
John Criswell7a73b802003-06-30 21:59:07 +00002568int
2569main ()
2570{
2571#ifndef __GNUC__
2572 choke me
2573#endif
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext
2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_compiler_gnu=yes
2592else
2593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002594sed 's/^/| /' conftest.$ac_ext >&5
2595
John Criswell7a73b802003-06-30 21:59:07 +00002596ac_compiler_gnu=no
2597fi
2598rm -f conftest.$ac_objext conftest.$ac_ext
2599ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600
2601fi
2602echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604GXX=`test $ac_compiler_gnu = yes && echo yes`
2605ac_test_CXXFLAGS=${CXXFLAGS+set}
2606ac_save_CXXFLAGS=$CXXFLAGS
2607CXXFLAGS="-g"
2608echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610if test "${ac_cv_prog_cxx_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 cat >conftest.$ac_ext <<_ACEOF
2614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002615/* confdefs.h. */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002620
John Criswell7a73b802003-06-30 21:59:07 +00002621int
2622main ()
2623{
2624
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 ac_cv_prog_cxx_g=yes
2642else
2643 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002644sed 's/^/| /' conftest.$ac_ext >&5
2645
John Criswell7a73b802003-06-30 21:59:07 +00002646ac_cv_prog_cxx_g=no
2647fi
2648rm -f conftest.$ac_objext conftest.$ac_ext
2649fi
2650echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2651echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2652if test "$ac_test_CXXFLAGS" = set; then
2653 CXXFLAGS=$ac_save_CXXFLAGS
2654elif test $ac_cv_prog_cxx_g = yes; then
2655 if test "$GXX" = yes; then
2656 CXXFLAGS="-g -O2"
2657 else
2658 CXXFLAGS="-g"
2659 fi
2660else
2661 if test "$GXX" = yes; then
2662 CXXFLAGS="-O2"
2663 else
2664 CXXFLAGS=
2665 fi
2666fi
2667for ac_declaration in \
2668 ''\
2669 '#include <stdlib.h>' \
2670 'extern "C" void std::exit (int) throw (); using std::exit;' \
2671 'extern "C" void std::exit (int); using std::exit;' \
2672 'extern "C" void exit (int) throw ();' \
2673 'extern "C" void exit (int);' \
2674 'void exit (int);'
2675do
2676 cat >conftest.$ac_ext <<_ACEOF
2677#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002678/* confdefs.h. */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002683#include <stdlib.h>
2684$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002685int
2686main ()
2687{
2688exit (42);
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.$ac_objext
2694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -s conftest.$ac_objext'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2705 :
2706else
2707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002708sed 's/^/| /' conftest.$ac_ext >&5
2709
John Criswell7a73b802003-06-30 21:59:07 +00002710continue
2711fi
2712rm -f conftest.$ac_objext conftest.$ac_ext
2713 cat >conftest.$ac_ext <<_ACEOF
2714#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002720$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002721int
2722main ()
2723{
2724exit (42);
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 break
2742else
2743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002744sed 's/^/| /' conftest.$ac_ext >&5
2745
John Criswell7a73b802003-06-30 21:59:07 +00002746fi
2747rm -f conftest.$ac_objext conftest.$ac_ext
2748done
2749rm -f conftest*
2750if test -n "$ac_declaration"; then
2751 echo '#ifdef __cplusplus' >>confdefs.h
2752 echo $ac_declaration >>confdefs.h
2753 echo '#endif' >>confdefs.h
2754fi
2755
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762ac_ext=c
2763ac_cpp='$CPP $CPPFLAGS'
2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767if test -n "$ac_tool_prefix"; then
2768 for ac_prog in gcc
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771set dummy $ac_tool_prefix$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_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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
2796CC=$ac_cv_prog_CC
2797if test -n "$CC"; then
2798 echo "$as_me:$LINENO: result: $CC" >&5
2799echo "${ECHO_T}$CC" >&6
2800else
2801 echo "$as_me:$LINENO: result: no" >&5
2802echo "${ECHO_T}no" >&6
2803fi
2804
2805 test -n "$CC" && break
2806 done
2807fi
2808if test -z "$CC"; then
2809 ac_ct_CC=$CC
2810 for ac_prog in gcc
2811do
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813set dummy $ac_prog; ac_word=$2
2814echo "$as_me:$LINENO: checking for $ac_word" >&5
2815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835
2836fi
2837fi
2838ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841echo "${ECHO_T}$ac_ct_CC" >&6
2842else
2843 echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6
2845fi
2846
2847 test -n "$ac_ct_CC" && break
2848done
2849
2850 CC=$ac_ct_CC
2851fi
2852
2853
John Criswell0c38eaf2003-09-10 15:17:25 +00002854test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2855See \`config.log' for more details." >&5
2856echo "$as_me: error: no acceptable C compiler found in \$PATH
2857See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002858 { (exit 1); exit 1; }; }
2859
2860# Provide some information about the compiler.
2861echo "$as_me:$LINENO:" \
2862 "checking for C compiler version" >&5
2863ac_compiler=`set X $ac_compile; echo $2`
2864{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2865 (eval $ac_compiler --version </dev/null >&5) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2869{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2870 (eval $ac_compiler -v </dev/null >&5) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2875 (eval $ac_compiler -V </dev/null >&5) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2879
2880echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2881echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2882if test "${ac_cv_c_compiler_gnu+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885 cat >conftest.$ac_ext <<_ACEOF
2886#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002892
John Criswell7a73b802003-06-30 21:59:07 +00002893int
2894main ()
2895{
2896#ifndef __GNUC__
2897 choke me
2898#endif
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext
2905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 ac_compiler_gnu=yes
2917else
2918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002919sed 's/^/| /' conftest.$ac_ext >&5
2920
John Criswell7a73b802003-06-30 21:59:07 +00002921ac_compiler_gnu=no
2922fi
2923rm -f conftest.$ac_objext conftest.$ac_ext
2924ac_cv_c_compiler_gnu=$ac_compiler_gnu
2925
2926fi
2927echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2928echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2929GCC=`test $ac_compiler_gnu = yes && echo yes`
2930ac_test_CFLAGS=${CFLAGS+set}
2931ac_save_CFLAGS=$CFLAGS
2932CFLAGS="-g"
2933echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2934echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2935if test "${ac_cv_prog_cc_g+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938 cat >conftest.$ac_ext <<_ACEOF
2939#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002940/* confdefs.h. */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002945
John Criswell7a73b802003-06-30 21:59:07 +00002946int
2947main ()
2948{
2949
2950 ;
2951 return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext
2955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956 (eval $ac_compile) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 (eval $ac_try) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2966 ac_cv_prog_cc_g=yes
2967else
2968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002969sed 's/^/| /' conftest.$ac_ext >&5
2970
John Criswell7a73b802003-06-30 21:59:07 +00002971ac_cv_prog_cc_g=no
2972fi
2973rm -f conftest.$ac_objext conftest.$ac_ext
2974fi
2975echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2976echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2977if test "$ac_test_CFLAGS" = set; then
2978 CFLAGS=$ac_save_CFLAGS
2979elif test $ac_cv_prog_cc_g = yes; then
2980 if test "$GCC" = yes; then
2981 CFLAGS="-g -O2"
2982 else
2983 CFLAGS="-g"
2984 fi
2985else
2986 if test "$GCC" = yes; then
2987 CFLAGS="-O2"
2988 else
2989 CFLAGS=
2990 fi
2991fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002992echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2993echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2994if test "${ac_cv_prog_cc_stdc+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 ac_cv_prog_cc_stdc=no
2998ac_save_CC=$CC
2999cat >conftest.$ac_ext <<_ACEOF
3000#line $LINENO "configure"
3001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
3006#include <stdarg.h>
3007#include <stdio.h>
3008#include <sys/types.h>
3009#include <sys/stat.h>
3010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011struct buf { int x; };
3012FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013static char *e (p, i)
3014 char **p;
3015 int i;
3016{
3017 return p[i];
3018}
3019static char *f (char * (*g) (char **, int), char **p, ...)
3020{
3021 char *s;
3022 va_list v;
3023 va_start (v,p);
3024 s = g (p, va_arg (v,int));
3025 va_end (v);
3026 return s;
3027}
3028int test (int i, double x);
3029struct s1 {int (*f) (int a);};
3030struct s2 {int (*f) (double a);};
3031int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3032int argc;
3033char **argv;
3034int
3035main ()
3036{
3037return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042# Don't try gcc -ansi; that turns off useful extensions and
3043# breaks some systems' header files.
3044# AIX -qlanglvl=ansi
3045# Ultrix and OSF/1 -std1
3046# HP-UX 10.20 and later -Ae
3047# HP-UX older versions -Aa -D_HPUX_SOURCE
3048# SVR4 -Xc -D__EXTENSIONS__
3049for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050do
3051 CC="$ac_save_CC $ac_arg"
3052 rm -f conftest.$ac_objext
3053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_cc_stdc=$ac_arg
3065break
3066else
3067 echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070fi
3071rm -f conftest.$ac_objext
3072done
3073rm -f conftest.$ac_ext conftest.$ac_objext
3074CC=$ac_save_CC
3075
3076fi
3077
3078case "x$ac_cv_prog_cc_stdc" in
3079 x|xno)
3080 echo "$as_me:$LINENO: result: none needed" >&5
3081echo "${ECHO_T}none needed" >&6 ;;
3082 *)
3083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3084echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3085 CC="$CC $ac_cv_prog_cc_stdc" ;;
3086esac
3087
John Criswell7a73b802003-06-30 21:59:07 +00003088# Some people use a C++ compiler to compile C. Since we use `exit',
3089# in C++ we need to declare it. In case someone uses the same compiler
3090# for both compiling C and C++ we need to have the C++ compiler decide
3091# the declaration of exit, since it's the most demanding environment.
3092cat >conftest.$ac_ext <<_ACEOF
3093#ifndef __cplusplus
3094 choke me
3095#endif
3096_ACEOF
3097rm -f conftest.$ac_objext
3098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 for ac_declaration in \
3110 ''\
3111 '#include <stdlib.h>' \
3112 'extern "C" void std::exit (int) throw (); using std::exit;' \
3113 'extern "C" void std::exit (int); using std::exit;' \
3114 'extern "C" void exit (int) throw ();' \
3115 'extern "C" void exit (int);' \
3116 'void exit (int);'
3117do
3118 cat >conftest.$ac_ext <<_ACEOF
3119#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003125#include <stdlib.h>
3126$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003127int
3128main ()
3129{
3130exit (42);
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 (eval $ac_try) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 :
3148else
3149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003150sed 's/^/| /' conftest.$ac_ext >&5
3151
John Criswell7a73b802003-06-30 21:59:07 +00003152continue
3153fi
3154rm -f conftest.$ac_objext conftest.$ac_ext
3155 cat >conftest.$ac_ext <<_ACEOF
3156#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003162$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003163int
3164main ()
3165{
3166exit (42);
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 break
3184else
3185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003186sed 's/^/| /' conftest.$ac_ext >&5
3187
John Criswell7a73b802003-06-30 21:59:07 +00003188fi
3189rm -f conftest.$ac_objext conftest.$ac_ext
3190done
3191rm -f conftest*
3192if test -n "$ac_declaration"; then
3193 echo '#ifdef __cplusplus' >>confdefs.h
3194 echo $ac_declaration >>confdefs.h
3195 echo '#endif' >>confdefs.h
3196fi
3197
3198else
3199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003200sed 's/^/| /' conftest.$ac_ext >&5
3201
John Criswell7a73b802003-06-30 21:59:07 +00003202fi
3203rm -f conftest.$ac_objext conftest.$ac_ext
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3217# On Suns, sometimes $CPP names a directory.
3218if test -n "$CPP" && test -d "$CPP"; then
3219 CPP=
3220fi
3221if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 do
3228 ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3238#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244#ifdef __STDC__
3245# include <limits.h>
3246#else
3247# include <assert.h>
3248#endif
John Criswell7a73b802003-06-30 21:59:07 +00003249 Syntax error
3250_ACEOF
3251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003254 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 else
3262 ac_cpp_err=
3263 fi
3264else
3265 ac_cpp_err=yes
3266fi
3267if test -z "$ac_cpp_err"; then
3268 :
3269else
3270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003271sed 's/^/| /' conftest.$ac_ext >&5
3272
John Criswell7a73b802003-06-30 21:59:07 +00003273 # Broken: fails on valid input.
3274continue
3275fi
3276rm -f conftest.err conftest.$ac_ext
3277
3278 # OK, works on sane cases. Now check whether non-existent headers
3279 # can be detected and how.
3280 cat >conftest.$ac_ext <<_ACEOF
3281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003287#include <ac_nonexistent.h>
3288_ACEOF
3289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003292 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_c_preproc_warn_flag
3299 else
3300 ac_cpp_err=
3301 fi
3302else
3303 ac_cpp_err=yes
3304fi
3305if test -z "$ac_cpp_err"; then
3306 # Broken: success on invalid input.
3307continue
3308else
3309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003310sed 's/^/| /' conftest.$ac_ext >&5
3311
John Criswell7a73b802003-06-30 21:59:07 +00003312 # Passes both tests.
3313ac_preproc_ok=:
3314break
3315fi
3316rm -f conftest.err conftest.$ac_ext
3317
3318done
3319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320rm -f conftest.err conftest.$ac_ext
3321if $ac_preproc_ok; then
3322 break
3323fi
3324
3325 done
3326 ac_cv_prog_CPP=$CPP
3327
3328fi
3329 CPP=$ac_cv_prog_CPP
3330else
3331 ac_cv_prog_CPP=$CPP
3332fi
3333echo "$as_me:$LINENO: result: $CPP" >&5
3334echo "${ECHO_T}$CPP" >&6
3335ac_preproc_ok=false
3336for ac_c_preproc_warn_flag in '' yes
3337do
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat >conftest.$ac_ext <<_ACEOF
3345#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h. */
3351#ifdef __STDC__
3352# include <limits.h>
3353#else
3354# include <assert.h>
3355#endif
John Criswell7a73b802003-06-30 21:59:07 +00003356 Syntax error
3357_ACEOF
3358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003361 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 else
3369 ac_cpp_err=
3370 fi
3371else
3372 ac_cpp_err=yes
3373fi
3374if test -z "$ac_cpp_err"; then
3375 :
3376else
3377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003378sed 's/^/| /' conftest.$ac_ext >&5
3379
John Criswell7a73b802003-06-30 21:59:07 +00003380 # Broken: fails on valid input.
3381continue
3382fi
3383rm -f conftest.err conftest.$ac_ext
3384
3385 # OK, works on sane cases. Now check whether non-existent headers
3386 # can be detected and how.
3387 cat >conftest.$ac_ext <<_ACEOF
3388#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003394#include <ac_nonexistent.h>
3395_ACEOF
3396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003399 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3406 else
3407 ac_cpp_err=
3408 fi
3409else
3410 ac_cpp_err=yes
3411fi
3412if test -z "$ac_cpp_err"; then
3413 # Broken: success on invalid input.
3414continue
3415else
3416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003417sed 's/^/| /' conftest.$ac_ext >&5
3418
John Criswell7a73b802003-06-30 21:59:07 +00003419 # Passes both tests.
3420ac_preproc_ok=:
3421break
3422fi
3423rm -f conftest.err conftest.$ac_ext
3424
3425done
3426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427rm -f conftest.err conftest.$ac_ext
3428if $ac_preproc_ok; then
3429 :
3430else
John Criswell0c38eaf2003-09-10 15:17:25 +00003431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432See \`config.log' for more details." >&5
3433echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003435 { (exit 1); exit 1; }; }
3436fi
3437
3438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445if test "$GCC" != "yes"
3446then
3447 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3448echo "$as_me: error: gcc required but not found" >&2;}
3449 { (exit 1); exit 1; }; }
3450fi
3451
3452if test "$GXX" != "yes"
3453then
3454 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3455echo "$as_me: error: g++ required but not found" >&2;}
3456 { (exit 1); exit 1; }; }
3457fi
3458
John Criswellde00db22003-08-25 16:49:54 +00003459gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3460if test "$gccmajor" -lt "3"
3461then
3462 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3463echo "$as_me: error: gcc 3.x required" >&2;}
3464 { (exit 1); exit 1; }; }
3465fi
3466
John Criswell7a73b802003-06-30 21:59:07 +00003467 echo "$as_me:$LINENO: checking for GNU make" >&5
3468echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3469if test "${_cv_gnu_make_command+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472 _cv_gnu_make_command='' ;
3473 for a in "$MAKE" make gmake gnumake ; do
3474 if test -z "$a" ; then continue ; fi ;
3475 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3476 _cv_gnu_make_command=$a ;
3477 break;
3478 fi
3479 done ;
3480
3481fi
3482echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3483echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3484 if test "x$_cv_gnu_make_command" != "x" ; then
3485 ifGNUmake='' ;
3486 else
3487 ifGNUmake='#' ;
3488 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3489echo "${ECHO_T}\"Not found\"" >&6;
3490 fi
3491
3492
3493if test -z "$_cv_gnu_make_command"
3494then
3495 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3496echo "$as_me: error: GNU Make required but not found" >&2;}
3497 { (exit 1); exit 1; }; }
3498fi
3499
3500
3501echo "$as_me:$LINENO: checking " >&5
3502echo $ECHO_N "checking ... $ECHO_C" >&6
3503if test "${ac_cv_has_flex+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 for ac_prog in flex lex
3507do
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509set dummy $ac_prog; ac_word=$2
3510echo "$as_me:$LINENO: checking for $ac_word" >&5
3511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512if test "${ac_cv_prog_LEX+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 if test -n "$LEX"; then
3516 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_LEX="$ac_prog"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529done
3530done
3531
3532fi
3533fi
3534LEX=$ac_cv_prog_LEX
3535if test -n "$LEX"; then
3536 echo "$as_me:$LINENO: result: $LEX" >&5
3537echo "${ECHO_T}$LEX" >&6
3538else
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541fi
3542
3543 test -n "$LEX" && break
3544done
3545test -n "$LEX" || LEX=":"
3546
3547if test -z "$LEXLIB"
3548then
3549 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3550echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3551if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554 ac_check_lib_save_LIBS=$LIBS
3555LIBS="-lfl $LIBS"
3556cat >conftest.$ac_ext <<_ACEOF
3557#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003563
3564/* Override any gcc2 internal prototype to avoid an error. */
3565#ifdef __cplusplus
3566extern "C"
3567#endif
3568/* We use char because int might match the return type of a gcc2
3569 builtin and then its argument prototype would still apply. */
3570char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003571int
3572main ()
3573{
3574yywrap ();
3575 ;
3576 return 0;
3577}
3578_ACEOF
3579rm -f conftest.$ac_objext conftest$ac_exeext
3580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3581 (eval $ac_link) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -s conftest$ac_exeext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 ac_cv_lib_fl_yywrap=yes
3592else
3593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003594sed 's/^/| /' conftest.$ac_ext >&5
3595
John Criswell7a73b802003-06-30 21:59:07 +00003596ac_cv_lib_fl_yywrap=no
3597fi
3598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3599LIBS=$ac_check_lib_save_LIBS
3600fi
3601echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3602echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3603if test $ac_cv_lib_fl_yywrap = yes; then
3604 LEXLIB="-lfl"
3605else
3606 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3607echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3608if test "${ac_cv_lib_l_yywrap+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
3611 ac_check_lib_save_LIBS=$LIBS
3612LIBS="-ll $LIBS"
3613cat >conftest.$ac_ext <<_ACEOF
3614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003615/* confdefs.h. */
3616_ACEOF
3617cat confdefs.h >>conftest.$ac_ext
3618cat >>conftest.$ac_ext <<_ACEOF
3619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003620
3621/* Override any gcc2 internal prototype to avoid an error. */
3622#ifdef __cplusplus
3623extern "C"
3624#endif
3625/* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3627char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003628int
3629main ()
3630{
3631yywrap ();
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636rm -f conftest.$ac_objext conftest$ac_exeext
3637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3638 (eval $ac_link) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try='test -s conftest$ac_exeext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_cv_lib_l_yywrap=yes
3649else
3650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003651sed 's/^/| /' conftest.$ac_ext >&5
3652
John Criswell7a73b802003-06-30 21:59:07 +00003653ac_cv_lib_l_yywrap=no
3654fi
3655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3656LIBS=$ac_check_lib_save_LIBS
3657fi
3658echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3659echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3660if test $ac_cv_lib_l_yywrap = yes; then
3661 LEXLIB="-ll"
3662fi
3663
3664fi
3665
3666fi
3667
3668if test "x$LEX" != "x:"; then
3669 echo "$as_me:$LINENO: checking lex output file root" >&5
3670echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3671if test "${ac_cv_prog_lex_root+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 # The minimal lex program is just a single line: %%. But some broken lexes
3675# (Solaris, I think it was) want two %% lines, so accommodate them.
3676cat >conftest.l <<_ACEOF
3677%%
3678%%
3679_ACEOF
3680{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3681 (eval $LEX conftest.l) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }
3685if test -f lex.yy.c; then
3686 ac_cv_prog_lex_root=lex.yy
3687elif test -f lexyy.c; then
3688 ac_cv_prog_lex_root=lexyy
3689else
3690 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3691echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3692 { (exit 1); exit 1; }; }
3693fi
3694fi
3695echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3696echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3697rm -f conftest.l
3698LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3699
3700echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3701echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3702if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 # POSIX says lex can declare yytext either as a pointer or an array; the
3706# default is implementation-dependent. Figure out which it is, since
3707# not all implementations provide the %pointer and %array declarations.
3708ac_cv_prog_lex_yytext_pointer=no
3709echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3710ac_save_LIBS=$LIBS
3711LIBS="$LIBS $LEXLIB"
3712cat >conftest.$ac_ext <<_ACEOF
3713`cat $LEX_OUTPUT_ROOT.c`
3714_ACEOF
3715rm -f conftest.$ac_objext conftest$ac_exeext
3716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3717 (eval $ac_link) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -s conftest$ac_exeext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_cv_prog_lex_yytext_pointer=yes
3728else
3729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003730sed 's/^/| /' conftest.$ac_ext >&5
3731
John Criswell7a73b802003-06-30 21:59:07 +00003732fi
3733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3734LIBS=$ac_save_LIBS
3735rm -f "${LEX_OUTPUT_ROOT}.c"
3736
3737fi
3738echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3739echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3740if test $ac_cv_prog_lex_yytext_pointer = yes; then
3741
3742cat >>confdefs.h <<\_ACEOF
3743#define YYTEXT_POINTER 1
3744_ACEOF
3745
3746fi
3747
3748fi
3749
3750fi
3751echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3752echo "${ECHO_T}$ac_cv_has_flex" >&6
3753if test "$LEX" != "flex"; then
3754 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3755echo "$as_me: error: flex not found but required" >&2;}
3756 { (exit 1); exit 1; }; }
3757fi
3758
3759echo "$as_me:$LINENO: checking " >&5
3760echo $ECHO_N "checking ... $ECHO_C" >&6
3761if test "${ac_cv_has_bison+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 for ac_prog in 'bison -y' byacc
3765do
3766 # Extract the first word of "$ac_prog", so it can be a program name with args.
3767set dummy $ac_prog; ac_word=$2
3768echo "$as_me:$LINENO: checking for $ac_word" >&5
3769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770if test "${ac_cv_prog_YACC+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773 if test -n "$YACC"; then
3774 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3775else
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_YACC="$ac_prog"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787done
3788done
3789
3790fi
3791fi
3792YACC=$ac_cv_prog_YACC
3793if test -n "$YACC"; then
3794 echo "$as_me:$LINENO: result: $YACC" >&5
3795echo "${ECHO_T}$YACC" >&6
3796else
3797 echo "$as_me:$LINENO: result: no" >&5
3798echo "${ECHO_T}no" >&6
3799fi
3800
3801 test -n "$YACC" && break
3802done
3803test -n "$YACC" || YACC="yacc"
3804
3805
3806fi
3807echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3808echo "${ECHO_T}$ac_cv_has_bison" >&6
3809if test "$YACC" != "bison -y"; then
3810 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3811echo "$as_me: error: bison not found but required" >&2;}
3812 { (exit 1); exit 1; }; }
3813else
3814 YACC=bison
3815
3816fi
3817
3818
3819# Check whether --enable-shared or --disable-shared was given.
3820if test "${enable_shared+set}" = set; then
3821 enableval="$enable_shared"
3822 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003823 case $enableval in
3824 yes) enable_shared=yes ;;
3825 no) enable_shared=no ;;
3826 *)
3827 enable_shared=no
3828 # Look at the argument we got. We use all the common list separators.
3829 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3830 for pkg in $enableval; do
3831 IFS="$lt_save_ifs"
3832 if test "X$pkg" = "X$p"; then
3833 enable_shared=yes
3834 fi
3835 done
3836 IFS="$lt_save_ifs"
3837 ;;
3838 esac
John Criswell7a73b802003-06-30 21:59:07 +00003839else
3840 enable_shared=yes
3841fi;
John Criswell47fdd832003-07-14 16:52:07 +00003842
John Criswell7a73b802003-06-30 21:59:07 +00003843# Check whether --enable-static or --disable-static was given.
3844if test "${enable_static+set}" = set; then
3845 enableval="$enable_static"
3846 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003847 case $enableval in
3848 yes) enable_static=yes ;;
3849 no) enable_static=no ;;
3850 *)
3851 enable_static=no
3852 # Look at the argument we got. We use all the common list separators.
3853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3854 for pkg in $enableval; do
3855 IFS="$lt_save_ifs"
3856 if test "X$pkg" = "X$p"; then
3857 enable_static=yes
3858 fi
3859 done
3860 IFS="$lt_save_ifs"
3861 ;;
3862 esac
John Criswell7a73b802003-06-30 21:59:07 +00003863else
3864 enable_static=yes
3865fi;
John Criswell47fdd832003-07-14 16:52:07 +00003866
John Criswell7a73b802003-06-30 21:59:07 +00003867# Check whether --enable-fast-install or --disable-fast-install was given.
3868if test "${enable_fast_install+set}" = set; then
3869 enableval="$enable_fast_install"
3870 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003871 case $enableval in
3872 yes) enable_fast_install=yes ;;
3873 no) enable_fast_install=no ;;
3874 *)
3875 enable_fast_install=no
3876 # Look at the argument we got. We use all the common list separators.
3877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3878 for pkg in $enableval; do
3879 IFS="$lt_save_ifs"
3880 if test "X$pkg" = "X$p"; then
3881 enable_fast_install=yes
3882 fi
3883 done
3884 IFS="$lt_save_ifs"
3885 ;;
3886 esac
John Criswell7a73b802003-06-30 21:59:07 +00003887else
3888 enable_fast_install=yes
3889fi;
John Criswell47fdd832003-07-14 16:52:07 +00003890
3891echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3892echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3893if test "${lt_cv_path_SED+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896 # Loop through the user's path and test for sed and gsed.
3897# Then use that list of sed's as ones to test for truncation.
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for lt_ac_prog in sed gsed; do
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3906 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3907 fi
3908 done
3909 done
3910done
3911lt_ac_max=0
3912lt_ac_count=0
3913# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3914# along with /bin/sed that truncates output.
3915for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3916 test ! -f $lt_ac_sed && break
3917 cat /dev/null > conftest.in
3918 lt_ac_count=0
3919 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3920 # Check for GNU sed and select it if it is found.
3921 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3922 lt_cv_path_SED=$lt_ac_sed
3923 break
3924 fi
3925 while true; do
3926 cat conftest.in conftest.in >conftest.tmp
3927 mv conftest.tmp conftest.in
3928 cp conftest.in conftest.nl
3929 echo >>conftest.nl
3930 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3931 cmp -s conftest.out conftest.nl || break
3932 # 10000 chars as input seems more than enough
3933 test $lt_ac_count -gt 10 && break
3934 lt_ac_count=`expr $lt_ac_count + 1`
3935 if test $lt_ac_count -gt $lt_ac_max; then
3936 lt_ac_max=$lt_ac_count
3937 lt_cv_path_SED=$lt_ac_sed
3938 fi
3939 done
3940done
3941SED=$lt_cv_path_SED
3942
John Criswell7a73b802003-06-30 21:59:07 +00003943fi
3944
John Criswell47fdd832003-07-14 16:52:07 +00003945echo "$as_me:$LINENO: result: $SED" >&5
3946echo "${ECHO_T}$SED" >&6
3947
3948echo "$as_me:$LINENO: checking for egrep" >&5
3949echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3950if test "${ac_cv_prog_egrep+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
3953 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3954 then ac_cv_prog_egrep='grep -E'
3955 else ac_cv_prog_egrep='egrep'
3956 fi
3957fi
3958echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3959echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3960 EGREP=$ac_cv_prog_egrep
3961
3962
John Criswell7a73b802003-06-30 21:59:07 +00003963
3964# Check whether --with-gnu-ld or --without-gnu-ld was given.
3965if test "${with_gnu_ld+set}" = set; then
3966 withval="$with_gnu_ld"
3967 test "$withval" = no || with_gnu_ld=yes
3968else
3969 with_gnu_ld=no
3970fi;
3971ac_prog=ld
3972if test "$GCC" = yes; then
3973 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003974 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3975echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003976 case $host in
3977 *-*-mingw*)
3978 # gcc leaves a trailing carriage return which upsets mingw
3979 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3980 *)
3981 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3982 esac
3983 case $ac_prog in
3984 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003985 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003986 re_direlt='/[^/][^/]*/\.\./'
3987 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003988 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003989 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003990 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003991 done
3992 test -z "$LD" && LD="$ac_prog"
3993 ;;
3994 "")
3995 # If it fails, then pretend we aren't using GCC.
3996 ac_prog=ld
3997 ;;
3998 *)
3999 # If it is relative, then search for the first ld in PATH.
4000 with_gnu_ld=unknown
4001 ;;
4002 esac
4003elif test "$with_gnu_ld" = yes; then
4004 echo "$as_me:$LINENO: checking for GNU ld" >&5
4005echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4006else
4007 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4008echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4009fi
4010if test "${lt_cv_path_LD+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004015 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004016 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004017 test -z "$ac_dir" && ac_dir=.
4018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4019 lt_cv_path_LD="$ac_dir/$ac_prog"
4020 # Check to see if the program is GNU ld. I'd rather use --version,
4021 # but apparently some GNU ld's only accept -v.
4022 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4024 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004025 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004026 ;;
4027 *)
John Criswell7a73b802003-06-30 21:59:07 +00004028 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004029 ;;
4030 esac
John Criswell7a73b802003-06-30 21:59:07 +00004031 fi
4032 done
John Criswell47fdd832003-07-14 16:52:07 +00004033 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004034else
4035 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4036fi
4037fi
4038
4039LD="$lt_cv_path_LD"
4040if test -n "$LD"; then
4041 echo "$as_me:$LINENO: result: $LD" >&5
4042echo "${ECHO_T}$LD" >&6
4043else
4044 echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6
4046fi
4047test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4048echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4049 { (exit 1); exit 1; }; }
4050echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4051echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4052if test "${lt_cv_prog_gnu_ld+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004056case `"$LD" -v 2>&1 </dev/null` in
4057*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004058 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004059 ;;
4060*)
John Criswell7a73b802003-06-30 21:59:07 +00004061 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004062 ;;
4063esac
John Criswell7a73b802003-06-30 21:59:07 +00004064fi
4065echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4066echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4067with_gnu_ld=$lt_cv_prog_gnu_ld
4068
4069
4070echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4071echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4072if test "${lt_cv_ld_reload_flag+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074else
4075 lt_cv_ld_reload_flag='-r'
4076fi
4077echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4078echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4079reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004080case $reload_flag in
4081"" | " "*) ;;
4082*) reload_flag=" $reload_flag" ;;
4083esac
4084reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004085
4086echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4087echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4088if test "${lt_cv_path_NM+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 if test -n "$NM"; then
4092 # Let the user override the test.
4093 lt_cv_path_NM="$NM"
4094else
John Criswell47fdd832003-07-14 16:52:07 +00004095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004096 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004097 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004098 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004099 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4100 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004101 # Check to see if the nm accepts a BSD-compat flag.
4102 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4103 # nm: unknown option "B" ignored
4104 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004105 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4106 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004107 lt_cv_path_NM="$tmp_nm -B"
4108 break
John Criswell47fdd832003-07-14 16:52:07 +00004109 ;;
4110 *)
4111 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4112 */dev/null*)
4113 lt_cv_path_NM="$tmp_nm -p"
4114 break
4115 ;;
4116 *)
4117 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4118 continue # so that we can try to find one that supports BSD flags
4119 ;;
4120 esac
4121 esac
John Criswell7a73b802003-06-30 21:59:07 +00004122 fi
4123 done
John Criswell47fdd832003-07-14 16:52:07 +00004124 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004125 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4126fi
4127fi
John Criswell47fdd832003-07-14 16:52:07 +00004128echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4129echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004130NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004131
4132echo "$as_me:$LINENO: checking whether ln -s works" >&5
4133echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4134LN_S=$as_ln_s
4135if test "$LN_S" = "ln -s"; then
4136 echo "$as_me:$LINENO: result: yes" >&5
4137echo "${ECHO_T}yes" >&6
4138else
4139 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4140echo "${ECHO_T}no, using $LN_S" >&6
4141fi
4142
John Criswell47fdd832003-07-14 16:52:07 +00004143echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4144echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004145if test "${lt_cv_deplibs_check_method+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147else
4148 lt_cv_file_magic_cmd='$MAGIC_CMD'
4149lt_cv_file_magic_test_file=
4150lt_cv_deplibs_check_method='unknown'
4151# Need to set the preceding variable on all platforms that support
4152# interlibrary dependencies.
4153# 'none' -- dependencies not supported.
4154# `unknown' -- same as none, but documents that we really don't know.
4155# 'pass_all' -- all dependencies passed with no checks.
4156# 'test_compile' -- check by making test program.
4157# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004158# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004159# If you have `file' or equivalent on your system and you're not sure
4160# whether `pass_all' will *always* work, you probably want this one.
4161
4162case $host_os in
4163aix4* | aix5*)
4164 lt_cv_deplibs_check_method=pass_all
4165 ;;
4166
4167beos*)
4168 lt_cv_deplibs_check_method=pass_all
4169 ;;
4170
4171bsdi4*)
4172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4173 lt_cv_file_magic_cmd='/usr/bin/file -L'
4174 lt_cv_file_magic_test_file=/shlib/libc.so
4175 ;;
4176
4177cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004178 # win32_libid is a shell function defined in ltmain.sh
4179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4180 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004181 ;;
4182
4183darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004184 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004185 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4186 lt_cv_file_magic_cmd='/usr/bin/file -L'
4187 case "$host_os" in
4188 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004189 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004190 ;;
4191 *) # Darwin 1.3 on
4192 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4193 ;;
4194 esac
John Criswell47fdd832003-07-14 16:52:07 +00004195 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004196 ;;
4197
4198freebsd*)
4199 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4200 case $host_cpu in
4201 i*86 )
4202 # Not sure whether the presence of OpenBSD here was a mistake.
4203 # Let's accept both of them until this is cleared up.
4204 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4205 lt_cv_file_magic_cmd=/usr/bin/file
4206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4207 ;;
4208 esac
4209 else
4210 lt_cv_deplibs_check_method=pass_all
4211 fi
4212 ;;
4213
4214gnu*)
4215 lt_cv_deplibs_check_method=pass_all
4216 ;;
4217
John Criswell47fdd832003-07-14 16:52:07 +00004218hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004219 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004220 case "$host_cpu" in
4221 ia64*)
4222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4223 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4224 ;;
4225 hppa*64*)
4226 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]'
4227 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4228 ;;
4229 *)
4230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4231 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4232 ;;
4233 esac
John Criswell7a73b802003-06-30 21:59:07 +00004234 ;;
4235
John Criswell47fdd832003-07-14 16:52:07 +00004236irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004237 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004238 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004239 # this will be overridden with pass_all, but let us keep it just in case
4240 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4241 ;;
4242 *)
4243 case $LD in
4244 *-32|*"-32 ") libmagic=32-bit;;
4245 *-n32|*"-n32 ") libmagic=N32;;
4246 *-64|*"-64 ") libmagic=64-bit;;
4247 *) libmagic=never-match;;
4248 esac
4249 # this will be overridden with pass_all, but let us keep it just in case
4250 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4251 ;;
4252 esac
4253 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4254 lt_cv_deplibs_check_method=pass_all
4255 ;;
4256
4257# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004258linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004259 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004260 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004261 lt_cv_deplibs_check_method=pass_all ;;
4262 *)
4263 # glibc up to 2.1.1 does not perform some relocations on ARM
4264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4265 esac
4266 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4267 ;;
4268
4269netbsd*)
4270 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004272 else
John Criswell47fdd832003-07-14 16:52:07 +00004273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004274 fi
4275 ;;
4276
4277newos6*)
4278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4279 lt_cv_file_magic_cmd=/usr/bin/file
4280 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4281 ;;
4282
John Criswell47fdd832003-07-14 16:52:07 +00004283nto-qnx)
4284 lt_cv_deplibs_check_method=unknown
4285 ;;
4286
John Criswell7a73b802003-06-30 21:59:07 +00004287openbsd*)
4288 lt_cv_file_magic_cmd=/usr/bin/file
4289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4292 else
4293 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4294 fi
4295 ;;
4296
4297osf3* | osf4* | osf5*)
4298 # this will be overridden with pass_all, but let us keep it just in case
4299 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4300 lt_cv_file_magic_test_file=/shlib/libc.so
4301 lt_cv_deplibs_check_method=pass_all
4302 ;;
4303
4304sco3.2v5*)
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308solaris*)
4309 lt_cv_deplibs_check_method=pass_all
4310 lt_cv_file_magic_test_file=/lib/libc.so
4311 ;;
4312
John Criswell7a73b802003-06-30 21:59:07 +00004313sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4314 case $host_vendor in
4315 motorola)
4316 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]'
4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4318 ;;
4319 ncr)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322 sequent)
4323 lt_cv_file_magic_cmd='/bin/file'
4324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4325 ;;
4326 sni)
4327 lt_cv_file_magic_cmd='/bin/file'
4328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4329 lt_cv_file_magic_test_file=/lib/libc.so
4330 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004331 siemens)
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004334 esac
4335 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004336
4337sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4338 lt_cv_deplibs_check_method=pass_all
4339 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004340esac
4341
4342fi
4343echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4344echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4345file_magic_cmd=$lt_cv_file_magic_cmd
4346deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004347test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004348
4349
4350
4351
John Criswell47fdd832003-07-14 16:52:07 +00004352# If no C compiler was specified, use CC.
4353LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004354
John Criswell47fdd832003-07-14 16:52:07 +00004355# Allow CC to be a program name with arguments.
4356compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004357
John Criswell47fdd832003-07-14 16:52:07 +00004358# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4359if test "${enable_libtool_lock+set}" = set; then
4360 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004361
John Criswell47fdd832003-07-14 16:52:07 +00004362fi;
4363test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004364
John Criswell47fdd832003-07-14 16:52:07 +00004365# Some flags need to be propagated to the compiler or linker for good
4366# libtool support.
4367case $host in
4368ia64-*-hpux*)
4369 # Find out which ABI we are using.
4370 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004376 case `/usr/bin/file conftest.$ac_objext` in
4377 *ELF-32*)
4378 HPUX_IA64_MODE="32"
4379 ;;
4380 *ELF-64*)
4381 HPUX_IA64_MODE="64"
4382 ;;
4383 esac
4384 fi
4385 rm -rf conftest*
4386 ;;
4387*-*-irix6*)
4388 # Find out which ABI we are using.
John Criswell48e3cb92003-09-12 16:31:43 +00004389 echo '#line 4386 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004394 (exit $ac_status); }; then
4395 if test "$lt_cv_prog_gnu_ld" = yes; then
4396 case `/usr/bin/file conftest.$ac_objext` in
4397 *32-bit*)
4398 LD="${LD-ld} -melf32bsmip"
4399 ;;
4400 *N32*)
4401 LD="${LD-ld} -melf32bmipn32"
4402 ;;
4403 *64-bit*)
4404 LD="${LD-ld} -melf64bmip"
4405 ;;
4406 esac
4407 else
4408 case `/usr/bin/file conftest.$ac_objext` in
4409 *32-bit*)
4410 LD="${LD-ld} -32"
4411 ;;
4412 *N32*)
4413 LD="${LD-ld} -n32"
4414 ;;
4415 *64-bit*)
4416 LD="${LD-ld} -64"
4417 ;;
4418 esac
4419 fi
4420 fi
4421 rm -rf conftest*
4422 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004423
John Criswell47fdd832003-07-14 16:52:07 +00004424x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4425 # Find out which ABI we are using.
4426 echo 'int i;' > conftest.$ac_ext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; then
4432 case "`/usr/bin/file conftest.o`" in
4433 *32-bit*)
4434 case $host in
4435 x86_64-*linux*)
4436 LD="${LD-ld} -m elf_i386"
4437 ;;
4438 ppc64-*linux*)
4439 LD="${LD-ld} -m elf32ppclinux"
4440 ;;
4441 s390x-*linux*)
4442 LD="${LD-ld} -m elf_s390"
4443 ;;
4444 sparc64-*linux*)
4445 LD="${LD-ld} -m elf32_sparc"
4446 ;;
4447 esac
4448 ;;
4449 *64-bit*)
4450 case $host in
4451 x86_64-*linux*)
4452 LD="${LD-ld} -m elf_x86_64"
4453 ;;
4454 ppc*-*linux*|powerpc*-*linux*)
4455 LD="${LD-ld} -m elf64ppc"
4456 ;;
4457 s390*-*linux*)
4458 LD="${LD-ld} -m elf64_s390"
4459 ;;
4460 sparc*-*linux*)
4461 LD="${LD-ld} -m elf64_sparc"
4462 ;;
4463 esac
4464 ;;
4465 esac
4466 fi
4467 rm -rf conftest*
4468 ;;
4469
4470*-*-sco3.2v5*)
4471 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4472 SAVE_CFLAGS="$CFLAGS"
4473 CFLAGS="$CFLAGS -belf"
4474 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4475echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4476if test "${lt_cv_cc_needs_belf+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
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
4485 cat >conftest.$ac_ext <<_ACEOF
4486#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004487/* confdefs.h. */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004492
John Criswell47fdd832003-07-14 16:52:07 +00004493int
4494main ()
John Criswell7a73b802003-06-30 21:59:07 +00004495{
John Criswell7a73b802003-06-30 21:59:07 +00004496
John Criswell47fdd832003-07-14 16:52:07 +00004497 ;
4498 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004499}
John Criswell47fdd832003-07-14 16:52:07 +00004500_ACEOF
4501rm -f conftest.$ac_objext conftest$ac_exeext
4502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004503 (eval $ac_link) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004506 (exit $ac_status); } &&
4507 { ac_try='test -s conftest$ac_exeext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004514else
John Criswell47fdd832003-07-14 16:52:07 +00004515 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004516sed 's/^/| /' conftest.$ac_ext >&5
4517
John Criswell47fdd832003-07-14 16:52:07 +00004518lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004519fi
John Criswell47fdd832003-07-14 16:52:07 +00004520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4521 ac_ext=c
4522ac_cpp='$CPP $CPPFLAGS'
4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
John Criswell7a73b802003-06-30 21:59:07 +00004527fi
John Criswell47fdd832003-07-14 16:52:07 +00004528echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4529echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4530 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4531 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4532 CFLAGS="$SAVE_CFLAGS"
4533 fi
4534 ;;
4535
4536esac
4537
4538need_locks="$enable_libtool_lock"
4539
John Criswell7a73b802003-06-30 21:59:07 +00004540
4541
4542echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4543echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4544if test "${ac_cv_header_stdc+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 cat >conftest.$ac_ext <<_ACEOF
4548#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004549/* confdefs.h. */
4550_ACEOF
4551cat confdefs.h >>conftest.$ac_ext
4552cat >>conftest.$ac_ext <<_ACEOF
4553/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004554#include <stdlib.h>
4555#include <stdarg.h>
4556#include <string.h>
4557#include <float.h>
4558
John Criswell0c38eaf2003-09-10 15:17:25 +00004559int
4560main ()
4561{
4562
4563 ;
4564 return 0;
4565}
John Criswell7a73b802003-06-30 21:59:07 +00004566_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004567rm -f conftest.$ac_objext
4568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004570 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004572 (exit $ac_status); } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004579 ac_cv_header_stdc=yes
4580else
4581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004585fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004586rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004587
4588if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat >conftest.$ac_ext <<_ACEOF
4591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004597#include <string.h>
4598
4599_ACEOF
4600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004601 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004602 :
4603else
4604 ac_cv_header_stdc=no
4605fi
4606rm -f conftest*
4607
4608fi
4609
4610if test $ac_cv_header_stdc = yes; then
4611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4612 cat >conftest.$ac_ext <<_ACEOF
4613#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004614/* confdefs.h. */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004619#include <stdlib.h>
4620
4621_ACEOF
4622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004623 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004624 :
4625else
4626 ac_cv_header_stdc=no
4627fi
4628rm -f conftest*
4629
4630fi
4631
4632if test $ac_cv_header_stdc = yes; then
4633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4634 if test "$cross_compiling" = yes; then
4635 :
4636else
4637 cat >conftest.$ac_ext <<_ACEOF
4638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004639/* confdefs.h. */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004644#include <ctype.h>
4645#if ((' ' & 0x0FF) == 0x020)
4646# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4647# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4648#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004649# define ISLOWER(c) \
4650 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004651 || ('j' <= (c) && (c) <= 'r') \
4652 || ('s' <= (c) && (c) <= 'z'))
4653# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4654#endif
4655
4656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4657int
4658main ()
4659{
4660 int i;
4661 for (i = 0; i < 256; i++)
4662 if (XOR (islower (i), ISLOWER (i))
4663 || toupper (i) != TOUPPER (i))
4664 exit(2);
4665 exit (0);
4666}
4667_ACEOF
4668rm -f conftest$ac_exeext
4669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4670 (eval $ac_link) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 :
4680else
4681 echo "$as_me: program exited with status $ac_status" >&5
4682echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004683sed 's/^/| /' conftest.$ac_ext >&5
4684
John Criswell7a73b802003-06-30 21:59:07 +00004685( exit $ac_status )
4686ac_cv_header_stdc=no
4687fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004688rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004689fi
4690fi
4691fi
4692echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4693echo "${ECHO_T}$ac_cv_header_stdc" >&6
4694if test $ac_cv_header_stdc = yes; then
4695
4696cat >>confdefs.h <<\_ACEOF
4697#define STDC_HEADERS 1
4698_ACEOF
4699
4700fi
4701
4702# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4713 inttypes.h stdint.h unistd.h
4714do
4715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4716echo "$as_me:$LINENO: checking for $ac_header" >&5
4717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721 cat >conftest.$ac_ext <<_ACEOF
4722#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004723/* confdefs.h. */
4724_ACEOF
4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004728$ac_includes_default
4729
4730#include <$ac_header>
4731_ACEOF
4732rm -f conftest.$ac_objext
4733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 eval "$as_ac_Header=yes"
4745else
4746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004747sed 's/^/| /' conftest.$ac_ext >&5
4748
John Criswell7a73b802003-06-30 21:59:07 +00004749eval "$as_ac_Header=no"
4750fi
4751rm -f conftest.$ac_objext conftest.$ac_ext
4752fi
4753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4755if test `eval echo '${'$as_ac_Header'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758_ACEOF
4759
4760fi
4761
4762done
4763
4764
4765
4766for ac_header in dlfcn.h
4767do
4768as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4769if eval "test \"\${$as_ac_Header+set}\" = set"; then
4770 echo "$as_me:$LINENO: checking for $ac_header" >&5
4771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4772if eval "test \"\${$as_ac_Header+set}\" = set"; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774fi
4775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4777else
4778 # Is the header compilable?
4779echo "$as_me:$LINENO: checking $ac_header usability" >&5
4780echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4781cat >conftest.$ac_ext <<_ACEOF
4782#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004783/* confdefs.h. */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004788$ac_includes_default
4789#include <$ac_header>
4790_ACEOF
4791rm -f conftest.$ac_objext
4792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_header_compiler=yes
4804else
4805 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004806sed 's/^/| /' conftest.$ac_ext >&5
4807
John Criswell7a73b802003-06-30 21:59:07 +00004808ac_header_compiler=no
4809fi
4810rm -f conftest.$ac_objext conftest.$ac_ext
4811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4812echo "${ECHO_T}$ac_header_compiler" >&6
4813
4814# Is the header present?
4815echo "$as_me:$LINENO: checking $ac_header presence" >&5
4816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4817cat >conftest.$ac_ext <<_ACEOF
4818#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004819/* confdefs.h. */
4820_ACEOF
4821cat confdefs.h >>conftest.$ac_ext
4822cat >>conftest.$ac_ext <<_ACEOF
4823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004824#include <$ac_header>
4825_ACEOF
4826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4828 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004829 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } >/dev/null; then
4834 if test -s conftest.err; then
4835 ac_cpp_err=$ac_c_preproc_warn_flag
4836 else
4837 ac_cpp_err=
4838 fi
4839else
4840 ac_cpp_err=yes
4841fi
4842if test -z "$ac_cpp_err"; then
4843 ac_header_preproc=yes
4844else
4845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004846sed 's/^/| /' conftest.$ac_ext >&5
4847
John Criswell7a73b802003-06-30 21:59:07 +00004848 ac_header_preproc=no
4849fi
4850rm -f conftest.err conftest.$ac_ext
4851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4852echo "${ECHO_T}$ac_header_preproc" >&6
4853
4854# So? What about this header?
4855case $ac_header_compiler:$ac_header_preproc in
4856 yes:no )
4857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4861 (
4862 cat <<\_ASBOX
4863## ------------------------------------ ##
4864## Report this to bug-autoconf@gnu.org. ##
4865## ------------------------------------ ##
4866_ASBOX
4867 ) |
4868 sed "s/^/$as_me: WARNING: /" >&2
4869 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004870 no:yes )
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4877 (
4878 cat <<\_ASBOX
4879## ------------------------------------ ##
4880## Report this to bug-autoconf@gnu.org. ##
4881## ------------------------------------ ##
4882_ASBOX
4883 ) |
4884 sed "s/^/$as_me: WARNING: /" >&2
4885 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004886esac
4887echo "$as_me:$LINENO: checking for $ac_header" >&5
4888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4889if eval "test \"\${$as_ac_Header+set}\" = set"; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892 eval "$as_ac_Header=$ac_header_preproc"
4893fi
4894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4896
4897fi
4898if test `eval echo '${'$as_ac_Header'}'` = yes; then
4899 cat >>confdefs.h <<_ACEOF
4900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4901_ACEOF
4902
4903fi
4904
4905done
4906
John Criswell47fdd832003-07-14 16:52:07 +00004907ac_ext=cc
4908ac_cpp='$CXXCPP $CPPFLAGS'
4909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4912echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4913echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4914if test -z "$CXXCPP"; then
4915 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
John Criswell47fdd832003-07-14 16:52:07 +00004918 # Double quotes because CXXCPP needs to be expanded
4919 for CXXCPP in "$CXX -E" "/lib/cpp"
4920 do
4921 ac_preproc_ok=false
4922for ac_cxx_preproc_warn_flag in '' yes
4923do
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat >conftest.$ac_ext <<_ACEOF
4931#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004932/* confdefs.h. */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
4936/* end confdefs.h. */
4937#ifdef __STDC__
4938# include <limits.h>
4939#else
4940# include <assert.h>
4941#endif
John Criswell47fdd832003-07-14 16:52:07 +00004942 Syntax error
4943_ACEOF
4944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4946 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004947 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev/null; then
4952 if test -s conftest.err; then
4953 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004954 else
John Criswell47fdd832003-07-14 16:52:07 +00004955 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004956 fi
John Criswell47fdd832003-07-14 16:52:07 +00004957else
4958 ac_cpp_err=yes
4959fi
4960if test -z "$ac_cpp_err"; then
4961 :
4962else
4963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004964sed 's/^/| /' conftest.$ac_ext >&5
4965
John Criswell47fdd832003-07-14 16:52:07 +00004966 # Broken: fails on valid input.
4967continue
4968fi
4969rm -f conftest.err conftest.$ac_ext
4970
4971 # OK, works on sane cases. Now check whether non-existent headers
4972 # can be detected and how.
4973 cat >conftest.$ac_ext <<_ACEOF
4974#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004980#include <ac_nonexistent.h>
4981_ACEOF
4982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004985 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } >/dev/null; then
4990 if test -s conftest.err; then
4991 ac_cpp_err=$ac_cxx_preproc_warn_flag
4992 else
4993 ac_cpp_err=
4994 fi
4995else
4996 ac_cpp_err=yes
4997fi
4998if test -z "$ac_cpp_err"; then
4999 # Broken: success on invalid input.
5000continue
5001else
5002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005003sed 's/^/| /' conftest.$ac_ext >&5
5004
John Criswell47fdd832003-07-14 16:52:07 +00005005 # Passes both tests.
5006ac_preproc_ok=:
5007break
5008fi
5009rm -f conftest.err conftest.$ac_ext
5010
5011done
5012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013rm -f conftest.err conftest.$ac_ext
5014if $ac_preproc_ok; then
5015 break
John Criswell7a73b802003-06-30 21:59:07 +00005016fi
5017
John Criswell47fdd832003-07-14 16:52:07 +00005018 done
5019 ac_cv_prog_CXXCPP=$CXXCPP
5020
5021fi
5022 CXXCPP=$ac_cv_prog_CXXCPP
5023else
5024 ac_cv_prog_CXXCPP=$CXXCPP
5025fi
5026echo "$as_me:$LINENO: result: $CXXCPP" >&5
5027echo "${ECHO_T}$CXXCPP" >&6
5028ac_preproc_ok=false
5029for ac_cxx_preproc_warn_flag in '' yes
5030do
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat >conftest.$ac_ext <<_ACEOF
5038#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#ifdef __STDC__
5045# include <limits.h>
5046#else
5047# include <assert.h>
5048#endif
John Criswell47fdd832003-07-14 16:52:07 +00005049 Syntax error
5050_ACEOF
5051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005054 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev/null; then
5059 if test -s conftest.err; then
5060 ac_cpp_err=$ac_cxx_preproc_warn_flag
5061 else
5062 ac_cpp_err=
5063 fi
5064else
5065 ac_cpp_err=yes
5066fi
5067if test -z "$ac_cpp_err"; then
5068 :
5069else
5070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005071sed 's/^/| /' conftest.$ac_ext >&5
5072
John Criswell47fdd832003-07-14 16:52:07 +00005073 # Broken: fails on valid input.
5074continue
5075fi
5076rm -f conftest.err conftest.$ac_ext
5077
5078 # OK, works on sane cases. Now check whether non-existent headers
5079 # can be detected and how.
5080 cat >conftest.$ac_ext <<_ACEOF
5081#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005082/* confdefs.h. */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005087#include <ac_nonexistent.h>
5088_ACEOF
5089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005092 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null; then
5097 if test -s conftest.err; then
5098 ac_cpp_err=$ac_cxx_preproc_warn_flag
5099 else
5100 ac_cpp_err=
5101 fi
5102else
5103 ac_cpp_err=yes
5104fi
5105if test -z "$ac_cpp_err"; then
5106 # Broken: success on invalid input.
5107continue
5108else
5109 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005110sed 's/^/| /' conftest.$ac_ext >&5
5111
John Criswell47fdd832003-07-14 16:52:07 +00005112 # Passes both tests.
5113ac_preproc_ok=:
5114break
5115fi
5116rm -f conftest.err conftest.$ac_ext
5117
5118done
5119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120rm -f conftest.err conftest.$ac_ext
5121if $ac_preproc_ok; then
5122 :
5123else
John Criswell0c38eaf2003-09-10 15:17:25 +00005124 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5125See \`config.log' for more details." >&5
5126echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5127See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005128 { (exit 1); exit 1; }; }
5129fi
5130
5131ac_ext=cc
5132ac_cpp='$CXXCPP $CPPFLAGS'
5133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5136
5137
5138ac_ext=f
5139ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5140ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5142if test -n "$ac_tool_prefix"; then
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 +00005144 do
5145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5146set dummy $ac_tool_prefix$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_F77+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152 if test -n "$F77"; then
5153 ac_cv_prog_F77="$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_F77="$ac_tool_prefix$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
5171F77=$ac_cv_prog_F77
5172if test -n "$F77"; then
5173 echo "$as_me:$LINENO: result: $F77" >&5
5174echo "${ECHO_T}$F77" >&6
5175else
5176 echo "$as_me:$LINENO: result: no" >&5
5177echo "${ECHO_T}no" >&6
5178fi
5179
5180 test -n "$F77" && break
5181 done
5182fi
5183if test -z "$F77"; then
5184 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005185 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 +00005186do
5187 # Extract the first word of "$ac_prog", so it can be a program name with args.
5188set dummy $ac_prog; ac_word=$2
5189echo "$as_me:$LINENO: checking for $ac_word" >&5
5190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 if test -n "$ac_ct_F77"; then
5195 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_F77="$ac_prog"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209done
5210
5211fi
5212fi
5213ac_ct_F77=$ac_cv_prog_ac_ct_F77
5214if test -n "$ac_ct_F77"; then
5215 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5216echo "${ECHO_T}$ac_ct_F77" >&6
5217else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220fi
5221
5222 test -n "$ac_ct_F77" && break
5223done
5224
5225 F77=$ac_ct_F77
5226fi
5227
5228
5229# Provide some information about the compiler.
John Criswell48e3cb92003-09-12 16:31:43 +00005230echo "$as_me:5227:" \
John Criswell47fdd832003-07-14 16:52:07 +00005231 "checking for Fortran 77 compiler version" >&5
5232ac_compiler=`set X $ac_compile; echo $2`
5233{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5234 (eval $ac_compiler --version </dev/null >&5) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }
5238{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5239 (eval $ac_compiler -v </dev/null >&5) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }
5243{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5244 (eval $ac_compiler -V </dev/null >&5) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }
5248
5249# If we don't use `.F' as extension, the preprocessor is not run on the
5250# input file.
5251ac_save_ext=$ac_ext
5252ac_ext=F
5253echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5254echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5255if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 cat >conftest.$ac_ext <<_ACEOF
5259 program main
5260#ifndef __GNUC__
5261 choke me
5262#endif
5263
5264 end
5265_ACEOF
5266rm -f conftest.$ac_objext
5267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 ac_compiler_gnu=yes
5279else
5280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005281sed 's/^/| /' conftest.$ac_ext >&5
5282
John Criswell47fdd832003-07-14 16:52:07 +00005283ac_compiler_gnu=no
5284fi
5285rm -f conftest.$ac_objext conftest.$ac_ext
5286ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5287
5288fi
5289echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5290echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5291ac_ext=$ac_save_ext
5292G77=`test $ac_compiler_gnu = yes && echo yes`
5293ac_test_FFLAGS=${FFLAGS+set}
5294ac_save_FFLAGS=$FFLAGS
5295FFLAGS=
5296echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5297echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5298if test "${ac_cv_prog_f77_g+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 FFLAGS=-g
5302cat >conftest.$ac_ext <<_ACEOF
5303 program main
5304
5305 end
5306_ACEOF
5307rm -f conftest.$ac_objext
5308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_cv_prog_f77_g=yes
5320else
5321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005322sed 's/^/| /' conftest.$ac_ext >&5
5323
John Criswell47fdd832003-07-14 16:52:07 +00005324ac_cv_prog_f77_g=no
5325fi
5326rm -f conftest.$ac_objext conftest.$ac_ext
5327
5328fi
5329echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5330echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5331if test "$ac_test_FFLAGS" = set; then
5332 FFLAGS=$ac_save_FFLAGS
5333elif test $ac_cv_prog_f77_g = yes; then
5334 if test "$G77" = yes; then
5335 FFLAGS="-g -O2"
5336 else
5337 FFLAGS="-g"
5338 fi
5339else
5340 if test "$G77" = yes; then
5341 FFLAGS="-O2"
5342 else
5343 FFLAGS=
5344 fi
5345fi
5346ac_ext=c
5347ac_cpp='$CPP $CPPFLAGS'
5348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350ac_compiler_gnu=$ac_cv_c_compiler_gnu
5351
5352
5353
5354# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5355
5356# find the maximum length of command line arguments
5357echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5358echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5359if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362 i=0
5363 testring="ABCD"
5364
5365 case $build_os in
5366 msdosdjgpp*)
5367 # On DJGPP, this test can blow up pretty badly due to problems in libc
5368 # (any single argument exceeding 2000 bytes causes a buffer overrun
5369 # during glob expansion). Even if it were fixed, the result of this
5370 # check would be larger than it should be.
5371 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5372 ;;
5373
5374 gnu*)
5375 # Under GNU Hurd, this test is not required because there is
5376 # no limit to the length of command line arguments.
5377 # Libtool will interpret -1 as no limit whatsoever
5378 lt_cv_sys_max_cmd_len=-1;
5379 ;;
5380
5381 cygwin* | mingw*)
5382 # On Win9x/ME, this test blows up -- it succeeds, but takes
5383 # about 5 minutes as the teststring grows exponentially.
5384 # Worse, since 9x/ME are not pre-emptively multitasking,
5385 # you end up with a "frozen" computer, even though with patience
5386 # the test eventually succeeds (with a max line length of 256k).
5387 # Instead, let's just punt: use the minimum linelength reported by
5388 # all of the supported platforms: 8192 (on NT/2K/XP).
5389 lt_cv_sys_max_cmd_len=8192;
5390 ;;
5391
5392 *)
5393 # If test is not a shell built-in, we'll probably end up computing a
5394 # maximum length that is only half of the actual maximum length, but
5395 # we can't tell.
5396 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5397 = "XX$testring") >/dev/null 2>&1 &&
5398 new_result=`expr "X$testring" : ".*" 2>&1` &&
5399 lt_cv_sys_max_cmd_len=$new_result &&
5400 test $i != 17 # 1/2 MB should be enough
5401 do
5402 i=`expr $i + 1`
5403 testring=$testring$testring
5404 done
5405 testring=
5406 # Add a significant safety factor because C++ compilers can tack on massive
5407 # amounts of additional arguments before passing them to the linker.
5408 # It appears as though 1/2 is a usable value.
5409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5410 ;;
5411 esac
5412
5413fi
5414
5415if test -n $lt_cv_sys_max_cmd_len ; then
5416 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5417echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5418else
5419 echo "$as_me:$LINENO: result: none" >&5
5420echo "${ECHO_T}none" >&6
5421fi
5422
5423
5424
5425
5426# Check for command to grab the raw symbol name followed by C symbol from nm.
5427echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5428echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5429if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432
5433# These are sane defaults that work on at least a few old systems.
5434# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5435
5436# Character class describing NM global symbol codes.
5437symcode='[BCDEGRST]'
5438
5439# Regexp to match symbols that can be accessed directly from C.
5440sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5441
5442# Transform the above into a raw symbol and a C symbol.
5443symxfrm='\1 \2\3 \3'
5444
5445# Transform an extracted symbol line into a proper C declaration
5446lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5447
5448# Transform an extracted symbol line into symbol name and symbol address
5449lt_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'"
5450
5451# Define system-specific variables.
5452case $host_os in
5453aix*)
5454 symcode='[BCDT]'
5455 ;;
5456cygwin* | mingw* | pw32*)
5457 symcode='[ABCDGISTW]'
5458 ;;
5459hpux*) # Its linker distinguishes data from code symbols
5460 if test "$host_cpu" = ia64; then
5461 symcode='[ABCDEGRST]'
5462 fi
5463 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464 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'"
5465 ;;
5466irix* | nonstopux*)
5467 symcode='[BCDEGRST]'
5468 ;;
5469osf*)
5470 symcode='[BCDEGQRST]'
5471 ;;
5472solaris* | sysv5*)
5473 symcode='[BDT]'
5474 ;;
5475sysv4)
5476 symcode='[DFNSTU]'
5477 ;;
5478esac
5479
5480# Handle CRLF in mingw tool chain
5481opt_cr=
5482case $build_os in
5483mingw*)
5484 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5485 ;;
5486esac
5487
5488# If we're using GNU nm, then use its standard symbol codes.
5489case `$NM -V 2>&1` in
5490*GNU* | *'with BFD'*)
5491 symcode='[ABCDGISTW]' ;;
5492esac
5493
5494# Try without a prefix undercore, then with it.
5495for ac_symprfx in "" "_"; do
5496
5497 # Write the raw and C identifiers.
5498 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5499
5500 # Check to see that the pipe works correctly.
5501 pipe_works=no
5502
5503 rm -f conftest*
5504 cat > conftest.$ac_ext <<EOF
5505#ifdef __cplusplus
5506extern "C" {
5507#endif
5508char nm_test_var;
5509void nm_test_func(){}
5510#ifdef __cplusplus
5511}
5512#endif
5513int main(){nm_test_var='a';nm_test_func();return(0);}
5514EOF
5515
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; then
5521 # Now try to grab the symbols.
5522 nlist=conftest.nm
5523 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5524 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && test -s "$nlist"; then
5528 # Try sorting and uniquifying the output.
5529 if sort "$nlist" | uniq > "$nlist"T; then
5530 mv -f "$nlist"T "$nlist"
5531 else
5532 rm -f "$nlist"T
5533 fi
5534
5535 # Make sure that we snagged all the symbols we need.
5536 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5537 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5538 cat <<EOF > conftest.$ac_ext
5539#ifdef __cplusplus
5540extern "C" {
5541#endif
5542
5543EOF
5544 # Now generate the symbol file.
5545 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5546
5547 cat <<EOF >> conftest.$ac_ext
5548#if defined (__STDC__) && __STDC__
5549# define lt_ptr_t void *
5550#else
5551# define lt_ptr_t char *
5552# define const
5553#endif
5554
5555/* The mapping between symbol names and symbols. */
5556const struct {
5557 const char *name;
5558 lt_ptr_t address;
5559}
5560lt_preloaded_symbols[] =
5561{
5562EOF
5563 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5564 cat <<\EOF >> conftest.$ac_ext
5565 {0, (lt_ptr_t) 0}
5566};
5567
5568#ifdef __cplusplus
5569}
5570#endif
5571EOF
5572 # Now try linking the two files.
5573 mv conftest.$ac_objext conftstm.$ac_objext
5574 lt_save_LIBS="$LIBS"
5575 lt_save_CFLAGS="$CFLAGS"
5576 LIBS="conftstm.$ac_objext"
5577 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5583 pipe_works=yes
5584 fi
5585 LIBS="$lt_save_LIBS"
5586 CFLAGS="$lt_save_CFLAGS"
5587 else
5588 echo "cannot find nm_test_func in $nlist" >&5
5589 fi
5590 else
5591 echo "cannot find nm_test_var in $nlist" >&5
5592 fi
5593 else
5594 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5595 fi
5596 else
5597 echo "$progname: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5599 fi
5600 rm -f conftest* conftst*
5601
5602 # Do not use the global_symbol_pipe unless it works.
5603 if test "$pipe_works" = yes; then
5604 break
5605 else
5606 lt_cv_sys_global_symbol_pipe=
5607 fi
5608done
5609
5610fi
5611
5612if test -z "$lt_cv_sys_global_symbol_pipe"; then
5613 lt_cv_sys_global_symbol_to_cdecl=
5614fi
5615if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5616 echo "$as_me:$LINENO: result: failed" >&5
5617echo "${ECHO_T}failed" >&6
5618else
5619 echo "$as_me:$LINENO: result: ok" >&5
5620echo "${ECHO_T}ok" >&6
5621fi
5622
5623echo "$as_me:$LINENO: checking for objdir" >&5
5624echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5625if test "${lt_cv_objdir+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627else
5628 rm -f .libs 2>/dev/null
5629mkdir .libs 2>/dev/null
5630if test -d .libs; then
5631 lt_cv_objdir=.libs
5632else
5633 # MS-DOS does not allow filenames that begin with a dot.
5634 lt_cv_objdir=_libs
5635fi
5636rmdir .libs 2>/dev/null
5637fi
5638echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5639echo "${ECHO_T}$lt_cv_objdir" >&6
5640objdir=$lt_cv_objdir
5641
5642
5643
5644
5645
5646case $host_os in
5647aix3*)
5648 # AIX sometimes has problems with the GCC collect2 program. For some
5649 # reason, if we set the COLLECT_NAMES environment variable, the problems
5650 # vanish in a puff of smoke.
5651 if test "X${COLLECT_NAMES+set}" != Xset; then
5652 COLLECT_NAMES=
5653 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005654 fi
5655 ;;
5656esac
5657
John Criswell47fdd832003-07-14 16:52:07 +00005658# Sed substitution that helps us do robust quoting. It backslashifies
5659# metacharacters that are still active within double-quoted strings.
5660Xsed='sed -e s/^X//'
5661sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5662
5663# Same as above, but do not quote variable references.
5664double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5665
5666# Sed substitution to delay expansion of an escaped shell variable in a
5667# double_quote_subst'ed string.
5668delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5669
5670# Sed substitution to avoid accidental globbing in evaled expressions
5671no_glob_subst='s/\*/\\\*/g'
5672
5673# Constants:
5674rm="rm -f"
5675
5676# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005677default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005678can_build_shared=yes
5679
5680# All known linkers require a `.a' archive for static linking (except M$VC,
5681# which needs '.lib').
5682libext=a
5683ltmain="$ac_aux_dir/ltmain.sh"
5684ofile="$default_ofile"
5685with_gnu_ld="$lt_cv_prog_gnu_ld"
5686
5687if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5689set dummy ${ac_tool_prefix}ar; ac_word=$2
5690echo "$as_me:$LINENO: checking for $ac_word" >&5
5691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5692if test "${ac_cv_prog_AR+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695 if test -n "$AR"; then
5696 ac_cv_prog_AR="$AR" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_prog_AR="${ac_tool_prefix}ar"
5706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709done
5710done
5711
5712fi
5713fi
5714AR=$ac_cv_prog_AR
5715if test -n "$AR"; then
5716 echo "$as_me:$LINENO: result: $AR" >&5
5717echo "${ECHO_T}$AR" >&6
5718else
5719 echo "$as_me:$LINENO: result: no" >&5
5720echo "${ECHO_T}no" >&6
5721fi
5722
5723fi
5724if test -z "$ac_cv_prog_AR"; then
5725 ac_ct_AR=$AR
5726 # Extract the first word of "ar", so it can be a program name with args.
5727set dummy ar; 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_ac_ct_AR+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732else
5733 if test -n "$ac_ct_AR"; then
5734 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
5744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747done
5748done
5749
5750 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5751fi
5752fi
5753ac_ct_AR=$ac_cv_prog_ac_ct_AR
5754if test -n "$ac_ct_AR"; then
5755 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5756echo "${ECHO_T}$ac_ct_AR" >&6
5757else
5758 echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6
5760fi
5761
5762 AR=$ac_ct_AR
5763else
5764 AR="$ac_cv_prog_AR"
5765fi
5766
John Criswell7a73b802003-06-30 21:59:07 +00005767if test -n "$ac_tool_prefix"; then
5768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5769set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5770echo "$as_me:$LINENO: checking for $ac_word" >&5
5771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772if test "${ac_cv_prog_RANLIB+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
5775 if test -n "$RANLIB"; then
5776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5777else
5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789done
5790done
5791
5792fi
5793fi
5794RANLIB=$ac_cv_prog_RANLIB
5795if test -n "$RANLIB"; then
5796 echo "$as_me:$LINENO: result: $RANLIB" >&5
5797echo "${ECHO_T}$RANLIB" >&6
5798else
5799 echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6
5801fi
5802
5803fi
5804if test -z "$ac_cv_prog_RANLIB"; then
5805 ac_ct_RANLIB=$RANLIB
5806 # Extract the first word of "ranlib", so it can be a program name with args.
5807set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813 if test -n "$ac_ct_RANLIB"; then
5814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827done
5828done
5829
5830 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5831fi
5832fi
5833ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5834if test -n "$ac_ct_RANLIB"; then
5835 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5836echo "${ECHO_T}$ac_ct_RANLIB" >&6
5837else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840fi
5841
5842 RANLIB=$ac_ct_RANLIB
5843else
5844 RANLIB="$ac_cv_prog_RANLIB"
5845fi
5846
5847if test -n "$ac_tool_prefix"; then
5848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5849set dummy ${ac_tool_prefix}strip; ac_word=$2
5850echo "$as_me:$LINENO: checking for $ac_word" >&5
5851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852if test "${ac_cv_prog_STRIP+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855 if test -n "$STRIP"; then
5856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869done
5870done
5871
5872fi
5873fi
5874STRIP=$ac_cv_prog_STRIP
5875if test -n "$STRIP"; then
5876 echo "$as_me:$LINENO: result: $STRIP" >&5
5877echo "${ECHO_T}$STRIP" >&6
5878else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881fi
5882
5883fi
5884if test -z "$ac_cv_prog_STRIP"; then
5885 ac_ct_STRIP=$STRIP
5886 # Extract the first word of "strip", so it can be a program name with args.
5887set dummy strip; ac_word=$2
5888echo "$as_me:$LINENO: checking for $ac_word" >&5
5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893 if test -n "$ac_ct_STRIP"; then
5894 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_STRIP="strip"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908done
5909
5910 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5911fi
5912fi
5913ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5914if test -n "$ac_ct_STRIP"; then
5915 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5916echo "${ECHO_T}$ac_ct_STRIP" >&6
5917else
5918 echo "$as_me:$LINENO: result: no" >&5
5919echo "${ECHO_T}no" >&6
5920fi
5921
5922 STRIP=$ac_ct_STRIP
5923else
5924 STRIP="$ac_cv_prog_STRIP"
5925fi
5926
5927
John Criswell7a73b802003-06-30 21:59:07 +00005928old_CC="$CC"
5929old_CFLAGS="$CFLAGS"
5930
5931# Set sane defaults for various variables
5932test -z "$AR" && AR=ar
5933test -z "$AR_FLAGS" && AR_FLAGS=cru
5934test -z "$AS" && AS=as
5935test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005936test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005937test -z "$DLLTOOL" && DLLTOOL=dlltool
5938test -z "$LD" && LD=ld
5939test -z "$LN_S" && LN_S="ln -s"
5940test -z "$MAGIC_CMD" && MAGIC_CMD=file
5941test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005942test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005943test -z "$OBJDUMP" && OBJDUMP=objdump
5944test -z "$RANLIB" && RANLIB=:
5945test -z "$STRIP" && STRIP=:
5946test -z "$ac_objext" && ac_objext=o
5947
John Criswell7a73b802003-06-30 21:59:07 +00005948# Determine commands to create old-style static archives.
5949old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5950old_postinstall_cmds='chmod 644 $oldlib'
5951old_postuninstall_cmds=
5952
5953if test -n "$RANLIB"; then
5954 case $host_os in
5955 openbsd*)
5956 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5957 ;;
5958 *)
5959 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5960 ;;
5961 esac
5962 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5963fi
5964
John Criswell47fdd832003-07-14 16:52:07 +00005965# Only perform the check for file, if the check method requires it
5966case $deplibs_check_method in
5967file_magic*)
5968 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5969 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5970echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5971if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005973else
John Criswell47fdd832003-07-14 16:52:07 +00005974 case $MAGIC_CMD in
5975[\\/*] | ?:[\\/]*)
5976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5977 ;;
5978*)
5979 lt_save_MAGIC_CMD="$MAGIC_CMD"
5980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5982 for ac_dir in $ac_dummy; do
5983 IFS="$lt_save_ifs"
5984 test -z "$ac_dir" && ac_dir=.
5985 if test -f $ac_dir/${ac_tool_prefix}file; then
5986 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5987 if test -n "$file_magic_test_file"; then
5988 case $deplibs_check_method in
5989 "file_magic "*)
5990 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5993 $EGREP "$file_magic_regex" > /dev/null; then
5994 :
5995 else
5996 cat <<EOF 1>&2
5997
5998*** Warning: the command libtool uses to detect shared libraries,
5999*** $file_magic_cmd, produces output that libtool cannot recognize.
6000*** The result is that libtool may fail to recognize shared libraries
6001*** as such. This will affect the creation of libtool libraries that
6002*** depend on shared libraries, but programs linked with such libtool
6003*** libraries will work regardless of this problem. Nevertheless, you
6004*** may want to report the problem to your system manager and/or to
6005*** bug-libtool@gnu.org
6006
6007EOF
6008 fi ;;
6009 esac
6010 fi
6011 break
6012 fi
6013 done
6014 IFS="$lt_save_ifs"
6015 MAGIC_CMD="$lt_save_MAGIC_CMD"
6016 ;;
6017esac
John Criswell7a73b802003-06-30 21:59:07 +00006018fi
John Criswell7a73b802003-06-30 21:59:07 +00006019
John Criswell47fdd832003-07-14 16:52:07 +00006020MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6021if test -n "$MAGIC_CMD"; then
6022 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6023echo "${ECHO_T}$MAGIC_CMD" >&6
6024else
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
6027fi
John Criswell7a73b802003-06-30 21:59:07 +00006028
John Criswell47fdd832003-07-14 16:52:07 +00006029if test -z "$lt_cv_path_MAGIC_CMD"; then
6030 if test -n "$ac_tool_prefix"; then
6031 echo "$as_me:$LINENO: checking for file" >&5
6032echo $ECHO_N "checking for file... $ECHO_C" >&6
6033if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 case $MAGIC_CMD in
6037[\\/*] | ?:[\\/]*)
6038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6039 ;;
6040*)
6041 lt_save_MAGIC_CMD="$MAGIC_CMD"
6042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6044 for ac_dir in $ac_dummy; do
6045 IFS="$lt_save_ifs"
6046 test -z "$ac_dir" && ac_dir=.
6047 if test -f $ac_dir/file; then
6048 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6049 if test -n "$file_magic_test_file"; then
6050 case $deplibs_check_method in
6051 "file_magic "*)
6052 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6055 $EGREP "$file_magic_regex" > /dev/null; then
6056 :
6057 else
6058 cat <<EOF 1>&2
6059
6060*** Warning: the command libtool uses to detect shared libraries,
6061*** $file_magic_cmd, produces output that libtool cannot recognize.
6062*** The result is that libtool may fail to recognize shared libraries
6063*** as such. This will affect the creation of libtool libraries that
6064*** depend on shared libraries, but programs linked with such libtool
6065*** libraries will work regardless of this problem. Nevertheless, you
6066*** may want to report the problem to your system manager and/or to
6067*** bug-libtool@gnu.org
6068
6069EOF
6070 fi ;;
6071 esac
6072 fi
6073 break
6074 fi
6075 done
6076 IFS="$lt_save_ifs"
6077 MAGIC_CMD="$lt_save_MAGIC_CMD"
6078 ;;
6079esac
6080fi
6081
6082MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6083if test -n "$MAGIC_CMD"; then
6084 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6085echo "${ECHO_T}$MAGIC_CMD" >&6
6086else
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
6089fi
6090
6091 else
6092 MAGIC_CMD=:
6093 fi
6094fi
6095
6096 fi
6097 ;;
6098esac
6099
6100enable_dlopen=no
6101enable_win32_dll=no
6102
6103# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6104if test "${enable_libtool_lock+set}" = set; then
6105 enableval="$enable_libtool_lock"
6106
6107fi;
6108test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6109
John Criswell7a73b802003-06-30 21:59:07 +00006110
6111# Check whether --with-pic or --without-pic was given.
6112if test "${with_pic+set}" = set; then
6113 withval="$with_pic"
6114 pic_mode="$withval"
6115else
6116 pic_mode=default
6117fi;
6118test -z "$pic_mode" && pic_mode=default
6119
John Criswell47fdd832003-07-14 16:52:07 +00006120# Use C for the default configuration in the libtool script
6121tagname=
6122lt_save_CC="$CC"
6123ac_ext=c
6124ac_cpp='$CPP $CPPFLAGS'
6125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128
6129
6130# Source file extension for C test sources.
6131ac_ext=c
6132
6133# Object file extension for compiled C test sources.
6134objext=o
6135objext=$objext
6136
6137# Code to be used in simple compile tests
6138lt_simple_compile_test_code="int some_variable = 0;\n"
6139
6140# Code to be used in simple link tests
6141lt_simple_link_test_code='int main(){return(0);}\n'
6142
6143
6144# If no C compiler was specified, use CC.
6145LTCC=${LTCC-"$CC"}
6146
6147# Allow CC to be a program name with arguments.
6148compiler=$CC
6149
6150
6151#
6152# Check for any special shared library compilation flags.
6153#
6154lt_prog_cc_shlib=
6155if test "$GCC" = no; then
6156 case $host_os in
6157 sco3.2v5*)
6158 lt_prog_cc_shlib='-belf'
6159 ;;
6160 esac
6161fi
6162if test -n "$lt_prog_cc_shlib"; then
6163 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6164echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6165 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6166 else
6167 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6168echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6169 lt_cv_prog_cc_can_build_shared=no
6170 fi
6171fi
6172
6173
6174#
6175# Check to make sure the static flag actually works.
6176#
6177echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6178echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6179if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
John Criswell47fdd832003-07-14 16:52:07 +00006182 lt_prog_compiler_static_works=no
6183 save_LDFLAGS="$LDFLAGS"
6184 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6185 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6187 # The compiler can only warn and ignore the option if not recognized
6188 # So say no if there are warnings
6189 if test -s conftest.err; then
6190 # Append any errors to the config.log.
6191 cat conftest.err 1>&5
6192 else
6193 lt_prog_compiler_static_works=yes
6194 fi
6195 fi
6196 $rm conftest*
6197 LDFLAGS="$save_LDFLAGS"
6198
6199fi
6200echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6201echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6202
6203if test x"$lt_prog_compiler_static_works" = xyes; then
6204 :
6205else
6206 lt_prog_compiler_static=
6207fi
6208
6209
6210
6211## CAVEAT EMPTOR:
6212## There is no encapsulation within the following macros, do not change
6213## the running order or otherwise move them around unless you know exactly
6214## what you are doing...
6215
6216lt_prog_compiler_no_builtin_flag=
6217
6218if test "$GCC" = yes; then
6219 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6220
6221 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6222echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6223if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226 lt_cv_prog_compiler_rtti_exceptions=no
6227 ac_outfile=conftest.$ac_objext
6228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6229 lt_compiler_flag="-fno-rtti -fno-exceptions"
6230 # Insert the option either (1) after the last *FLAGS variable, or
6231 # (2) before a word containing "conftest.", or (3) at the end.
6232 # Note that $ac_compile itself does not contain backslashes and begins
6233 # with a dollar sign (not a hyphen), so the echo should work correctly.
6234 # The option is referenced via a variable to avoid confusing sed.
6235 lt_compile=`echo "$ac_compile" | $SED \
6236 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6238 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +00006239 (eval echo "\"\$as_me:6236: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006240 (eval "$lt_compile" 2>conftest.err)
6241 ac_status=$?
6242 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +00006243 echo "$as_me:6240: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006244 if (exit $ac_status) && test -s "$ac_outfile"; then
6245 # The compiler can only warn and ignore the option if not recognized
6246 # So say no if there are warnings
6247 if test ! -s conftest.err; then
6248 lt_cv_prog_compiler_rtti_exceptions=yes
6249 fi
6250 fi
6251 $rm conftest*
6252
6253fi
6254echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6255echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6256
6257if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6258 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6259else
6260 :
6261fi
6262
6263fi
6264
6265lt_prog_compiler_wl=
6266lt_prog_compiler_pic=
6267lt_prog_compiler_static=
6268
6269echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6270echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006271
6272 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006273 lt_prog_compiler_wl='-Wl,'
6274 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006275
6276 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006277 aix*)
6278 # All AIX code is PIC.
6279 if test "$host_cpu" = ia64; then
6280 # AIX 5 now supports IA64 processor
6281 lt_prog_compiler_static='-Bstatic'
6282 fi
John Criswell7a73b802003-06-30 21:59:07 +00006283 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006284
John Criswell7a73b802003-06-30 21:59:07 +00006285 amigaos*)
6286 # FIXME: we need at least 68020 code to build shared libraries, but
6287 # adding the `-m68020' flag to GCC prevents building anything better,
6288 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006289 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006290 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006291
6292 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006293 # PIC is the default for these OSes.
6294 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006295
6296 mingw* | pw32* | os2*)
6297 # This hack is so that the source file can tell whether it is being
6298 # built for inclusion in a dll (and should export symbols for example).
6299 lt_prog_compiler_pic='-DDLL_EXPORT'
6300 ;;
6301
John Criswell7a73b802003-06-30 21:59:07 +00006302 darwin* | rhapsody*)
6303 # PIC is the default on this platform
6304 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006305 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006306 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006307
6308 msdosdjgpp*)
6309 # Just because we use GCC doesn't mean we suddenly get shared libraries
6310 # on systems that don't support them.
6311 lt_prog_compiler_can_build_shared=no
6312 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006313 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006314
John Criswell7a73b802003-06-30 21:59:07 +00006315 sysv4*MP*)
6316 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006317 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006318 fi
6319 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006320
6321 hpux*)
6322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6323 # not for PA HP-UX.
6324 case "$host_cpu" in
6325 hppa*64*|ia64*)
6326 # +Z the default
6327 ;;
6328 *)
6329 lt_prog_compiler_pic='-fPIC'
6330 ;;
6331 esac
6332 ;;
6333
John Criswell7a73b802003-06-30 21:59:07 +00006334 *)
John Criswell47fdd832003-07-14 16:52:07 +00006335 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006336 ;;
6337 esac
6338 else
John Criswell47fdd832003-07-14 16:52:07 +00006339 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006340 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006341 aix*)
6342 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006343 if test "$host_cpu" = ia64; then
6344 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006345 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006346 else
John Criswell47fdd832003-07-14 16:52:07 +00006347 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006348 fi
6349 ;;
6350
John Criswell47fdd832003-07-14 16:52:07 +00006351 mingw* | pw32* | os2*)
6352 # This hack is so that the source file can tell whether it is being
6353 # built for inclusion in a dll (and should export symbols for example).
6354 lt_prog_compiler_pic='-DDLL_EXPORT'
6355 ;;
6356
John Criswell7a73b802003-06-30 21:59:07 +00006357 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006358 lt_prog_compiler_wl='-Wl,'
6359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6360 # not for PA HP-UX.
6361 case "$host_cpu" in
6362 hppa*64*|ia64*)
6363 # +Z the default
6364 ;;
6365 *)
6366 lt_prog_compiler_pic='+Z'
6367 ;;
6368 esac
6369 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6370 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006371 ;;
6372
John Criswell47fdd832003-07-14 16:52:07 +00006373 irix5* | irix6* | nonstopux*)
6374 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006375 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006376 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006377 ;;
6378
6379 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006380 lt_prog_compiler_pic='-KPIC'
6381 lt_prog_compiler_static='-Bstatic'
6382 ;;
6383
6384 linux*)
6385 case $CC in
6386 icc|ecc)
6387 lt_prog_compiler_wl='-Wl,'
6388 lt_prog_compiler_pic='-KPIC'
6389 lt_prog_compiler_static='-static'
6390 ;;
6391 ccc)
6392 lt_prog_compiler_wl='-Wl,'
6393 # All Alpha code is PIC.
6394 lt_prog_compiler_static='-non_shared'
6395 ;;
6396 esac
John Criswell7a73b802003-06-30 21:59:07 +00006397 ;;
6398
6399 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006400 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006401 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006402 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006403 ;;
6404
6405 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006406 lt_prog_compiler_pic='-Kpic'
6407 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006408 ;;
6409
6410 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006411 lt_prog_compiler_wl='-Wl,'
6412 lt_prog_compiler_pic='-KPIC'
6413 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006414 ;;
6415
6416 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006417 lt_prog_compiler_wl='-Qoption ld '
6418 lt_prog_compiler_pic='-PIC'
6419 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006420 ;;
6421
6422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006423 lt_prog_compiler_wl='-Wl,'
6424 lt_prog_compiler_pic='-KPIC'
6425 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006426 ;;
6427
6428 sysv4*MP*)
6429 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006430 lt_prog_compiler_pic='-Kconform_pic'
6431 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006432 fi
6433 ;;
6434
John Criswell47fdd832003-07-14 16:52:07 +00006435 uts4*)
6436 lt_prog_compiler_pic='-pic'
6437 lt_prog_compiler_static='-Bstatic'
6438 ;;
6439
John Criswell7a73b802003-06-30 21:59:07 +00006440 *)
John Criswell47fdd832003-07-14 16:52:07 +00006441 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006442 ;;
6443 esac
6444 fi
6445
John Criswell47fdd832003-07-14 16:52:07 +00006446echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6447echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006448
John Criswell47fdd832003-07-14 16:52:07 +00006449#
6450# Check to make sure the PIC flag actually works.
6451#
6452if test -n "$lt_prog_compiler_pic"; then
6453 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6454echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6455if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457else
John Criswell47fdd832003-07-14 16:52:07 +00006458 lt_prog_compiler_pic_works=no
6459 ac_outfile=conftest.$ac_objext
6460 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6461 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6462 # Insert the option either (1) after the last *FLAGS variable, or
6463 # (2) before a word containing "conftest.", or (3) at the end.
6464 # Note that $ac_compile itself does not contain backslashes and begins
6465 # with a dollar sign (not a hyphen), so the echo should work correctly.
6466 # The option is referenced via a variable to avoid confusing sed.
6467 lt_compile=`echo "$ac_compile" | $SED \
6468 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6470 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +00006471 (eval echo "\"\$as_me:6468: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006472 (eval "$lt_compile" 2>conftest.err)
6473 ac_status=$?
6474 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +00006475 echo "$as_me:6472: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006476 if (exit $ac_status) && test -s "$ac_outfile"; then
6477 # The compiler can only warn and ignore the option if not recognized
6478 # So say no if there are warnings
6479 if test ! -s conftest.err; then
6480 lt_prog_compiler_pic_works=yes
6481 fi
6482 fi
6483 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006484
John Criswell47fdd832003-07-14 16:52:07 +00006485fi
6486echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6487echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006488
John Criswell47fdd832003-07-14 16:52:07 +00006489if test x"$lt_prog_compiler_pic_works" = xyes; then
6490 case $lt_prog_compiler_pic in
6491 "" | " "*) ;;
6492 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6493 esac
John Criswell7a73b802003-06-30 21:59:07 +00006494else
John Criswell47fdd832003-07-14 16:52:07 +00006495 lt_prog_compiler_pic=
6496 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006497fi
6498
John Criswell7a73b802003-06-30 21:59:07 +00006499fi
John Criswell47fdd832003-07-14 16:52:07 +00006500case "$host_os" in
6501 # For platforms which do not support PIC, -DPIC is meaningless:
6502 *djgpp*)
6503 lt_prog_compiler_pic=
6504 ;;
6505 *)
6506 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6507 ;;
6508esac
John Criswell7a73b802003-06-30 21:59:07 +00006509
John Criswell7a73b802003-06-30 21:59:07 +00006510echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6511echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006512if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
John Criswell47fdd832003-07-14 16:52:07 +00006515 lt_cv_prog_compiler_c_o=no
6516 $rm -r conftest 2>/dev/null
6517 mkdir conftest
6518 cd conftest
6519 mkdir out
6520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006521
John Criswell47fdd832003-07-14 16:52:07 +00006522 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6523 # that will create temporary files in the current directory regardless of
6524 # the output directory. Thus, making CWD read-only will cause this test
6525 # to fail, enabling locking or at least warning the user not to do parallel
6526 # builds.
6527 chmod -w .
6528
6529 lt_compiler_flag="-o out/conftest2.$ac_objext"
6530 # Insert the option either (1) after the last *FLAGS variable, or
6531 # (2) before a word containing "conftest.", or (3) at the end.
6532 # Note that $ac_compile itself does not contain backslashes and begins
6533 # with a dollar sign (not a hyphen), so the echo should work correctly.
6534 lt_compile=`echo "$ac_compile" | $SED \
6535 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6537 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +00006538 (eval echo "\"\$as_me:6535: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006539 (eval "$lt_compile" 2>out/conftest.err)
6540 ac_status=$?
6541 cat out/conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +00006542 echo "$as_me:6539: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6544 then
6545 # The compiler can only warn and ignore the option if not recognized
6546 # So say no if there are warnings
6547 if test ! -s out/conftest.err; then
6548 lt_cv_prog_compiler_c_o=yes
6549 fi
6550 fi
6551 chmod u+w .
6552 $rm conftest* out/*
6553 rmdir out
6554 cd ..
6555 rmdir conftest
6556 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006557
6558fi
John Criswell47fdd832003-07-14 16:52:07 +00006559echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6560echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006561
John Criswell7a73b802003-06-30 21:59:07 +00006562
John Criswell7a73b802003-06-30 21:59:07 +00006563hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006564if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006565 # do not overwrite the value of need_locks provided by the user
6566 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6567echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6568 hard_links=yes
6569 $rm conftest*
6570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6571 touch conftest.a
6572 ln conftest.a conftest.b 2>&5 || hard_links=no
6573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6574 echo "$as_me:$LINENO: result: $hard_links" >&5
6575echo "${ECHO_T}$hard_links" >&6
6576 if test "$hard_links" = no; then
6577 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6578echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6579 need_locks=warn
6580 fi
6581else
6582 need_locks=no
6583fi
John Criswell7a73b802003-06-30 21:59:07 +00006584
John Criswell47fdd832003-07-14 16:52:07 +00006585echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6586echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6587
6588 runpath_var=
6589 allow_undefined_flag=
6590 enable_shared_with_static_runtimes=no
6591 archive_cmds=
6592 archive_expsym_cmds=
6593 old_archive_From_new_cmds=
6594 old_archive_from_expsyms_cmds=
6595 export_dynamic_flag_spec=
6596 whole_archive_flag_spec=
6597 thread_safe_flag_spec=
6598 hardcode_libdir_flag_spec=
6599 hardcode_libdir_flag_spec_ld=
6600 hardcode_libdir_separator=
6601 hardcode_direct=no
6602 hardcode_minus_L=no
6603 hardcode_shlibpath_var=unsupported
6604 link_all_deplibs=unknown
6605 hardcode_automatic=no
6606 module_cmds=
6607 module_expsym_cmds=
6608 always_export_symbols=no
6609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6610 # include_expsyms should be a list of space-separated symbols to be *always*
6611 # included in the symbol list
6612 include_expsyms=
6613 # exclude_expsyms can be an extended regexp of symbols to exclude
6614 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6615 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6616 # as well as any symbol that contains `d'.
6617 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6618 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6619 # platforms (ab)use it in PIC code, but their linkers get confused if
6620 # the symbol is explicitly referenced. Since portable code cannot
6621 # rely on this symbol name, it's probably fine to never include it in
6622 # preloaded symbol tables.
6623 extract_expsyms_cmds=
6624
6625 case $host_os in
6626 cygwin* | mingw* | pw32*)
6627 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6628 # When not using gcc, we currently assume that we are using
6629 # Microsoft Visual C++.
6630 if test "$GCC" != yes; then
6631 with_gnu_ld=no
6632 fi
6633 ;;
6634 openbsd*)
6635 with_gnu_ld=no
6636 ;;
6637 esac
6638
6639 ld_shlibs=yes
6640 if test "$with_gnu_ld" = yes; then
6641 # If archive_cmds runs LD, not CC, wlarc should be empty
6642 wlarc='${wl}'
6643
6644 # See if GNU ld supports shared libraries.
6645 case $host_os in
6646 aix3* | aix4* | aix5*)
6647 # On AIX/PPC, the GNU linker is very broken
6648 if test "$host_cpu" != ia64; then
6649 ld_shlibs=no
6650 cat <<EOF 1>&2
6651
6652*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6653*** to be unable to reliably create shared libraries on AIX.
6654*** Therefore, libtool is disabling shared libraries support. If you
6655*** really care for shared libraries, you may want to modify your PATH
6656*** so that a non-GNU linker is found, and then restart.
6657
6658EOF
6659 fi
6660 ;;
6661
6662 amigaos*)
6663 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)'
6664 hardcode_libdir_flag_spec='-L$libdir'
6665 hardcode_minus_L=yes
6666
6667 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6668 # that the semantics of dynamic libraries on AmigaOS, at least up
6669 # to version 4, is to share data among multiple programs linked
6670 # with the same dynamic library. Since this doesn't match the
6671 # behavior of shared libraries on other platforms, we can't use
6672 # them.
6673 ld_shlibs=no
6674 ;;
6675
6676 beos*)
6677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6678 allow_undefined_flag=unsupported
6679 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6680 # support --undefined. This deserves some investigation. FIXME
6681 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682 else
6683 ld_shlibs=no
6684 fi
6685 ;;
6686
6687 cygwin* | mingw* | pw32*)
6688 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6689 # as there is no search path for DLLs.
6690 hardcode_libdir_flag_spec='-L$libdir'
6691 allow_undefined_flag=unsupported
6692 always_export_symbols=no
6693 enable_shared_with_static_runtimes=yes
6694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6695
6696 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6698 # If the export-symbols file already is a .def file (1st line
6699 # is EXPORTS), use it as is; otherwise, prepend...
6700 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6701 cp $export_symbols $output_objdir/$soname.def;
6702 else
6703 echo EXPORTS > $output_objdir/$soname.def;
6704 cat $export_symbols >> $output_objdir/$soname.def;
6705 fi~
6706 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6707 else
6708 ld_shlibs=no
6709 fi
6710 ;;
6711
6712 netbsd*)
6713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6714 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6715 wlarc=
6716 else
6717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6719 fi
6720 ;;
6721
6722 solaris* | sysv5*)
6723 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6724 ld_shlibs=no
6725 cat <<EOF 1>&2
6726
6727*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6728*** create shared libraries on Solaris systems. Therefore, libtool
6729*** is disabling shared libraries support. We urge you to upgrade GNU
6730*** binutils to release 2.9.1 or newer. Another option is to modify
6731*** your PATH or compiler configuration so that the native linker is
6732*** used, and then restart.
6733
6734EOF
6735 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6738 else
6739 ld_shlibs=no
6740 fi
6741 ;;
6742
6743 sunos4*)
6744 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6745 wlarc=
6746 hardcode_direct=yes
6747 hardcode_shlibpath_var=no
6748 ;;
6749
6750 *)
6751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6754 else
6755 ld_shlibs=no
6756 fi
6757 ;;
6758 esac
6759
6760 if test "$ld_shlibs" = yes; then
6761 runpath_var=LD_RUN_PATH
6762 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6763 export_dynamic_flag_spec='${wl}--export-dynamic'
6764 # ancient GNU ld didn't support --whole-archive et. al.
6765 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6766 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6767 else
6768 whole_archive_flag_spec=
6769 fi
6770 fi
6771 else
6772 # PORTME fill in a description of your system's linker (not GNU ld)
6773 case $host_os in
6774 aix3*)
6775 allow_undefined_flag=unsupported
6776 always_export_symbols=yes
6777 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'
6778 # Note: this linker hardcodes the directories in LIBPATH if there
6779 # are no directories specified by -L.
6780 hardcode_minus_L=yes
6781 if test "$GCC" = yes && test -z "$link_static_flag"; then
6782 # Neither direct hardcoding nor static linking is supported with a
6783 # broken collect2.
6784 hardcode_direct=unsupported
6785 fi
6786 ;;
6787
6788 aix4* | aix5*)
6789 if test "$host_cpu" = ia64; then
6790 # On IA64, the linker does run time linking by default, so we don't
6791 # have to do anything special.
6792 aix_use_runtimelinking=no
6793 exp_sym_flag='-Bexport'
6794 no_entry_flag=""
6795 else
6796 # If we're using GNU nm, then we don't want the "-C" option.
6797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6798 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6799 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'
6800 else
6801 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'
6802 fi
6803 aix_use_runtimelinking=no
6804
6805 # Test if we are trying to use run time linking or normal
6806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6807 # need to do runtime linking.
6808 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6809 for ld_flag in $LDFLAGS; do
6810 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6811 aix_use_runtimelinking=yes
6812 break
6813 fi
6814 done
6815 esac
6816
6817 exp_sym_flag='-bexport'
6818 no_entry_flag='-bnoentry'
6819 fi
6820
6821 # When large executables or shared objects are built, AIX ld can
6822 # have problems creating the table of contents. If linking a library
6823 # or program results in "error TOC overflow" add -mminimal-toc to
6824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6826
6827 archive_cmds=''
6828 hardcode_direct=yes
6829 hardcode_libdir_separator=':'
6830 link_all_deplibs=yes
6831
6832 if test "$GCC" = yes; then
6833 case $host_os in aix4.012|aix4.012.*)
6834 # We only want to do this on AIX 4.2 and lower, the check
6835 # below for broken collect2 doesn't work under 4.3+
6836 collect2name=`${CC} -print-prog-name=collect2`
6837 if test -f "$collect2name" && \
6838 strings "$collect2name" | grep resolve_lib_name >/dev/null
6839 then
6840 # We have reworked collect2
6841 hardcode_direct=yes
6842 else
6843 # We have old collect2
6844 hardcode_direct=unsupported
6845 # It fails to find uninstalled libraries when the uninstalled
6846 # path is not listed in the libpath. Setting hardcode_minus_L
6847 # to unsupported forces relinking
6848 hardcode_minus_L=yes
6849 hardcode_libdir_flag_spec='-L$libdir'
6850 hardcode_libdir_separator=
6851 fi
6852 esac
6853 shared_flag='-shared'
6854 else
6855 # not using gcc
6856 if test "$host_cpu" = ia64; then
6857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6858 # chokes on -Wl,-G. The following line is correct:
6859 shared_flag='-G'
6860 else
6861 if test "$aix_use_runtimelinking" = yes; then
6862 shared_flag='${wl}-G'
6863 else
6864 shared_flag='${wl}-bM:SRE'
6865 fi
6866 fi
6867 fi
6868
6869 # It seems that -bexpall does not export symbols beginning with
6870 # underscore (_), so it is better to generate a list of symbols to export.
6871 always_export_symbols=yes
6872 if test "$aix_use_runtimelinking" = yes; then
6873 # Warning - without using the other runtime loading flags (-brtl),
6874 # -berok will link without error, but may produce a broken library.
6875 allow_undefined_flag='-berok'
6876 # Determine the default libpath from the value encoded in an empty executable.
6877 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006878#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006879/* confdefs.h. */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006884
John Criswell7a73b802003-06-30 21:59:07 +00006885int
6886main ()
6887{
John Criswell47fdd832003-07-14 16:52:07 +00006888
John Criswell7a73b802003-06-30 21:59:07 +00006889 ;
6890 return 0;
6891}
6892_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006893rm -f conftest.$ac_objext conftest$ac_exeext
6894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006899 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006905
John Criswell47fdd832003-07-14 16:52:07 +00006906aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6907}'`
6908# Check for a 64-bit object if we didn't find anything.
6909if 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; }
6910}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006911else
6912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006913sed 's/^/| /' conftest.$ac_ext >&5
6914
John Criswell7a73b802003-06-30 21:59:07 +00006915fi
John Criswell47fdd832003-07-14 16:52:07 +00006916rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006918
John Criswell47fdd832003-07-14 16:52:07 +00006919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6920 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"
6921 else
6922 if test "$host_cpu" = ia64; then
6923 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6924 allow_undefined_flag="-z nodefs"
6925 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"
6926 else
6927 # Determine the default libpath from the value encoded in an empty executable.
6928 cat >conftest.$ac_ext <<_ACEOF
6929#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006930/* confdefs.h. */
6931_ACEOF
6932cat confdefs.h >>conftest.$ac_ext
6933cat >>conftest.$ac_ext <<_ACEOF
6934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006935
John Criswell47fdd832003-07-14 16:52:07 +00006936int
6937main ()
6938{
John Criswell7a73b802003-06-30 21:59:07 +00006939
John Criswell47fdd832003-07-14 16:52:07 +00006940 ;
6941 return 0;
6942}
6943_ACEOF
6944rm -f conftest.$ac_objext conftest$ac_exeext
6945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6946 (eval $ac_link) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -s conftest$ac_exeext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006956
John Criswell47fdd832003-07-14 16:52:07 +00006957aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6958}'`
6959# Check for a 64-bit object if we didn't find anything.
6960if 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; }
6961}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006962else
John Criswell47fdd832003-07-14 16:52:07 +00006963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006964sed 's/^/| /' conftest.$ac_ext >&5
6965
John Criswell47fdd832003-07-14 16:52:07 +00006966fi
6967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6968if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006969
John Criswell47fdd832003-07-14 16:52:07 +00006970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6971 # Warning - without using the other run time loading flags,
6972 # -berok will link without error, but may produce a broken library.
6973 no_undefined_flag=' ${wl}-bernotok'
6974 allow_undefined_flag=' ${wl}-berok'
6975 # -bexpall does not export symbols beginning with underscore (_)
6976 always_export_symbols=yes
6977 # Exported symbols can be pulled into shared objects from archives
6978 whole_archive_flag_spec=' '
6979 archive_cmds_need_lc=yes
6980 # This is similar to how AIX traditionally builds it's shared libraries.
6981 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 +00006982 fi
6983 fi
John Criswell7a73b802003-06-30 21:59:07 +00006984 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006985
6986 amigaos*)
6987 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)'
6988 hardcode_libdir_flag_spec='-L$libdir'
6989 hardcode_minus_L=yes
6990 # see comment about different semantics on the GNU ld section
6991 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006992 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006993
John Criswell47fdd832003-07-14 16:52:07 +00006994 bsdi4*)
6995 export_dynamic_flag_spec=-rdynamic
6996 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006997
John Criswell47fdd832003-07-14 16:52:07 +00006998 cygwin* | mingw* | pw32*)
6999 # When not using gcc, we currently assume that we are using
7000 # Microsoft Visual C++.
7001 # hardcode_libdir_flag_spec is actually meaningless, as there is
7002 # no search path for DLLs.
7003 hardcode_libdir_flag_spec=' '
7004 allow_undefined_flag=unsupported
7005 # Tell ltmain to make .lib files, not .a files.
7006 libext=lib
7007 # Tell ltmain to make .dll files, not .so files.
7008 shrext=".dll"
7009 # FIXME: Setting linknames here is a bad hack.
7010 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7011 # The linker will automatically build a .lib file if we build a DLL.
7012 old_archive_From_new_cmds='true'
7013 # FIXME: Should let the user specify the lib program.
7014 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7015 fix_srcfile_path='`cygpath -w "$srcfile"`'
7016 enable_shared_with_static_runtimes=yes
7017 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007018
John Criswell47fdd832003-07-14 16:52:07 +00007019 darwin* | rhapsody*)
7020 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7021 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007022 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007023 rhapsody* | darwin1.[012])
7024 allow_undefined_flag='-undefined suppress'
7025 ;;
7026 *) # Darwin 1.3 on
7027 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007028 ;;
7029 esac
John Criswell47fdd832003-07-14 16:52:07 +00007030 # FIXME: Relying on posixy $() will cause problems for
7031 # cross-compilation, but unfortunately the echo tests do not
7032 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7033 # `"' quotes if we put them in here... so don't!
7034 lt_int_apple_cc_single_mod=no
7035 output_verbose_link_cmd='echo'
7036 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7037 lt_int_apple_cc_single_mod=yes
7038 fi
7039 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7040 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7041 else
7042 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'
7043 fi
7044 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7045 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7046 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7047 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}'
7048 else
7049 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}'
7050 fi
7051 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}'
7052 hardcode_direct=no
7053 hardcode_automatic=yes
7054 hardcode_shlibpath_var=unsupported
7055 whole_archive_flag_spec='-all_load $convenience'
7056 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007057 fi
John Criswell47fdd832003-07-14 16:52:07 +00007058 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007059
John Criswell47fdd832003-07-14 16:52:07 +00007060 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007062 hardcode_libdir_flag_spec='-L$libdir'
7063 hardcode_shlibpath_var=no
7064 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007065
John Criswell47fdd832003-07-14 16:52:07 +00007066 freebsd1*)
7067 ld_shlibs=no
7068 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007069
John Criswell47fdd832003-07-14 16:52:07 +00007070 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7071 # support. Future versions do this automatically, but an explicit c++rt0.o
7072 # does not break anything, and helps significantly (at the cost of a little
7073 # extra space).
7074 freebsd2.2*)
7075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7076 hardcode_libdir_flag_spec='-R$libdir'
7077 hardcode_direct=yes
7078 hardcode_shlibpath_var=no
7079 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007080
John Criswell47fdd832003-07-14 16:52:07 +00007081 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7082 freebsd2*)
7083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7084 hardcode_direct=yes
7085 hardcode_minus_L=yes
7086 hardcode_shlibpath_var=no
7087 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007088
John Criswell47fdd832003-07-14 16:52:07 +00007089 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7090 freebsd*)
7091 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7092 hardcode_libdir_flag_spec='-R$libdir'
7093 hardcode_direct=yes
7094 hardcode_shlibpath_var=no
7095 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007096
John Criswell47fdd832003-07-14 16:52:07 +00007097 hpux9*)
7098 if test "$GCC" = yes; then
7099 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'
7100 else
7101 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'
7102 fi
7103 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7104 hardcode_libdir_separator=:
7105 hardcode_direct=yes
7106
7107 # hardcode_minus_L: Not really in the search PATH,
7108 # but as the default location of the library.
7109 hardcode_minus_L=yes
7110 export_dynamic_flag_spec='${wl}-E'
7111 ;;
7112
7113 hpux10* | hpux11*)
7114 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7115 case "$host_cpu" in
7116 hppa*64*|ia64*)
7117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7118 ;;
7119 *)
7120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7121 ;;
7122 esac
7123 else
7124 case "$host_cpu" in
7125 hppa*64*|ia64*)
7126 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7127 ;;
7128 *)
7129 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7130 ;;
7131 esac
7132 fi
7133 if test "$with_gnu_ld" = no; then
7134 case "$host_cpu" in
7135 hppa*64*)
7136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7137 hardcode_libdir_flag_spec_ld='+b $libdir'
7138 hardcode_libdir_separator=:
7139 hardcode_direct=no
7140 hardcode_shlibpath_var=no
7141 ;;
7142 ia64*)
7143 hardcode_libdir_flag_spec='-L$libdir'
7144 hardcode_direct=no
7145 hardcode_shlibpath_var=no
7146
7147 # hardcode_minus_L: Not really in the search PATH,
7148 # but as the default location of the library.
7149 hardcode_minus_L=yes
7150 ;;
7151 *)
7152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7153 hardcode_libdir_separator=:
7154 hardcode_direct=yes
7155 export_dynamic_flag_spec='${wl}-E'
7156
7157 # hardcode_minus_L: Not really in the search PATH,
7158 # but as the default location of the library.
7159 hardcode_minus_L=yes
7160 ;;
7161 esac
7162 fi
7163 ;;
7164
7165 irix5* | irix6* | nonstopux*)
7166 if test "$GCC" = yes; then
7167 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'
7168 else
7169 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'
7170 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7171 fi
7172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7173 hardcode_libdir_separator=:
7174 link_all_deplibs=yes
7175 ;;
7176
7177 netbsd*)
7178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7180 else
7181 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7182 fi
7183 hardcode_libdir_flag_spec='-R$libdir'
7184 hardcode_direct=yes
7185 hardcode_shlibpath_var=no
7186 ;;
7187
7188 newsos6)
7189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7190 hardcode_direct=yes
7191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7192 hardcode_libdir_separator=:
7193 hardcode_shlibpath_var=no
7194 ;;
7195
7196 openbsd*)
7197 hardcode_direct=yes
7198 hardcode_shlibpath_var=no
7199 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7202 export_dynamic_flag_spec='${wl}-E'
7203 else
7204 case $host_os in
7205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7207 hardcode_libdir_flag_spec='-R$libdir'
7208 ;;
7209 *)
7210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7212 ;;
7213 esac
7214 fi
7215 ;;
7216
7217 os2*)
7218 hardcode_libdir_flag_spec='-L$libdir'
7219 hardcode_minus_L=yes
7220 allow_undefined_flag=unsupported
7221 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'
7222 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7223 ;;
7224
7225 osf3*)
7226 if test "$GCC" = yes; then
7227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7228 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7229 else
7230 allow_undefined_flag=' -expect_unresolved \*'
7231 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'
7232 fi
7233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7234 hardcode_libdir_separator=:
7235 ;;
7236
7237 osf4* | osf5*) # as osf3* with the addition of -msym flag
7238 if test "$GCC" = yes; then
7239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7240 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'
7241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7242 else
7243 allow_undefined_flag=' -expect_unresolved \*'
7244 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'
7245 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7246 $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'
7247
7248 # Both c and cxx compiler support -rpath directly
7249 hardcode_libdir_flag_spec='-rpath $libdir'
7250 fi
7251 hardcode_libdir_separator=:
7252 ;;
7253
7254 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7256 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007257 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007258 runpath_var=LD_RUN_PATH
7259 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007260 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007261
John Criswell47fdd832003-07-14 16:52:07 +00007262 solaris*)
7263 no_undefined_flag=' -z text'
7264 if test "$GCC" = yes; then
7265 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7266 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7267 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7268 else
7269 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7270 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7271 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7272 fi
7273 hardcode_libdir_flag_spec='-R$libdir'
7274 hardcode_shlibpath_var=no
7275 case $host_os in
7276 solaris2.[0-5] | solaris2.[0-5].*) ;;
7277 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7278 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7279 esac
7280 link_all_deplibs=yes
7281 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007282
John Criswell47fdd832003-07-14 16:52:07 +00007283 sunos4*)
7284 if test "x$host_vendor" = xsequent; then
7285 # Use $CC to link under sequent, because it throws in some extra .o
7286 # files that make .init and .fini sections work.
7287 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7288 else
7289 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7290 fi
7291 hardcode_libdir_flag_spec='-L$libdir'
7292 hardcode_direct=yes
7293 hardcode_minus_L=yes
7294 hardcode_shlibpath_var=no
7295 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007296
John Criswell47fdd832003-07-14 16:52:07 +00007297 sysv4)
7298 case $host_vendor in
7299 sni)
7300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7301 hardcode_direct=yes # is this really true???
7302 ;;
7303 siemens)
7304 ## LD is ld it makes a PLAMLIB
7305 ## CC just makes a GrossModule.
7306 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7307 reload_cmds='$CC -r -o $output$reload_objs'
7308 hardcode_direct=no
7309 ;;
7310 motorola)
7311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7312 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7313 ;;
7314 esac
7315 runpath_var='LD_RUN_PATH'
7316 hardcode_shlibpath_var=no
7317 ;;
7318
7319 sysv4.3*)
7320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321 hardcode_shlibpath_var=no
7322 export_dynamic_flag_spec='-Bexport'
7323 ;;
7324
7325 sysv4*MP*)
7326 if test -d /usr/nec; then
7327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328 hardcode_shlibpath_var=no
7329 runpath_var=LD_RUN_PATH
7330 hardcode_runpath_var=yes
7331 ld_shlibs=yes
7332 fi
7333 ;;
7334
7335 sysv4.2uw2*)
7336 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7337 hardcode_direct=yes
7338 hardcode_minus_L=no
7339 hardcode_shlibpath_var=no
7340 hardcode_runpath_var=yes
7341 runpath_var=LD_RUN_PATH
7342 ;;
7343
7344 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7345 no_undefined_flag='${wl}-z ${wl}text'
7346 if test "$GCC" = yes; then
7347 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7348 else
7349 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7350 fi
7351 runpath_var='LD_RUN_PATH'
7352 hardcode_shlibpath_var=no
7353 ;;
7354
7355 sysv5*)
7356 no_undefined_flag=' -z text'
7357 # $CC -shared without GNU ld will not create a library from C++
7358 # object files and a static libstdc++, better avoid it by now
7359 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7362 hardcode_libdir_flag_spec=
7363 hardcode_shlibpath_var=no
7364 runpath_var='LD_RUN_PATH'
7365 ;;
7366
7367 uts4*)
7368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369 hardcode_libdir_flag_spec='-L$libdir'
7370 hardcode_shlibpath_var=no
7371 ;;
7372
7373 *)
7374 ld_shlibs=no
7375 ;;
7376 esac
7377 fi
7378
John Criswell7a73b802003-06-30 21:59:07 +00007379echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7380echo "${ECHO_T}$ld_shlibs" >&6
7381test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007382
John Criswell47fdd832003-07-14 16:52:07 +00007383variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7384if test "$GCC" = yes; then
7385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7386fi
7387
7388#
7389# Do we need to explicitly link libc?
7390#
7391case "x$archive_cmds_need_lc" in
7392x|xyes)
7393 # Assume -lc should be added
7394 archive_cmds_need_lc=yes
7395
7396 if test "$enable_shared" = yes && test "$GCC" = yes; then
7397 case $archive_cmds in
7398 *'~'*)
7399 # FIXME: we may have to deal with multi-command sequences.
7400 ;;
7401 '$CC '*)
7402 # Test whether the compiler implicitly links with -lc since on some
7403 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7404 # to ld, don't add -lc before -lgcc.
7405 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7406echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7407 $rm conftest*
7408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7409
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } 2>conftest.err; then
7415 soname=conftest
7416 lib=conftest
7417 libobjs=conftest.$ac_objext
7418 deplibs=
7419 wl=$lt_prog_compiler_wl
7420 compiler_flags=-v
7421 linker_flags=-v
7422 verstring=
7423 output_objdir=.
7424 libname=conftest
7425 lt_save_allow_undefined_flag=$allow_undefined_flag
7426 allow_undefined_flag=
7427 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7428 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }
7432 then
7433 archive_cmds_need_lc=no
7434 else
7435 archive_cmds_need_lc=yes
7436 fi
7437 allow_undefined_flag=$lt_save_allow_undefined_flag
7438 else
7439 cat conftest.err 1>&5
7440 fi
7441 $rm conftest*
7442 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7443echo "${ECHO_T}$archive_cmds_need_lc" >&6
7444 ;;
7445 esac
7446 fi
7447 ;;
7448esac
7449
John Criswell7a73b802003-06-30 21:59:07 +00007450echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7451echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7452hardcode_action=
7453if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007454 test -n "$runpath_var " || \
7455 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007456
7457 # We can hardcode non-existant directories.
7458 if test "$hardcode_direct" != no &&
7459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7460 # have to relink, otherwise we might link with an installed library
7461 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007463 test "$hardcode_minus_L" != no; then
7464 # Linking always hardcodes the temporary library directory.
7465 hardcode_action=relink
7466 else
7467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7468 hardcode_action=immediate
7469 fi
7470else
7471 # We cannot hardcode anything, or else we can only hardcode existing
7472 # directories.
7473 hardcode_action=unsupported
7474fi
7475echo "$as_me:$LINENO: result: $hardcode_action" >&5
7476echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007477
John Criswell47fdd832003-07-14 16:52:07 +00007478if test "$hardcode_action" = relink; then
7479 # Fast installation is not supported
7480 enable_fast_install=no
7481elif test "$shlibpath_overrides_runpath" = yes ||
7482 test "$enable_shared" = no; then
7483 # Fast installation is not necessary
7484 enable_fast_install=needless
7485fi
7486
John Criswell7a73b802003-06-30 21:59:07 +00007487striplib=
7488old_striplib=
7489echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7490echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7491if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7492 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7493 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7494 echo "$as_me:$LINENO: result: yes" >&5
7495echo "${ECHO_T}yes" >&6
7496else
John Criswell47fdd832003-07-14 16:52:07 +00007497# FIXME - insert some real tests, host_os isn't really good enough
7498 case $host_os in
7499 darwin*)
7500 if test -n "$STRIP" ; then
7501 striplib="$STRIP -x"
7502 echo "$as_me:$LINENO: result: yes" >&5
7503echo "${ECHO_T}yes" >&6
7504 else
John Criswell7a73b802003-06-30 21:59:07 +00007505 echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
7507fi
John Criswell47fdd832003-07-14 16:52:07 +00007508 ;;
7509 *)
7510 echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
7512 ;;
7513 esac
7514fi
John Criswell7a73b802003-06-30 21:59:07 +00007515
John Criswell7a73b802003-06-30 21:59:07 +00007516echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7517echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7518library_names_spec=
7519libname_spec='lib$name'
7520soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007521shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007522postinstall_cmds=
7523postuninstall_cmds=
7524finish_cmds=
7525finish_eval=
7526shlibpath_var=
7527shlibpath_overrides_runpath=unknown
7528version_type=none
7529dynamic_linker="$host_os ld.so"
7530sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007531if test "$GCC" = yes; then
7532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7533 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7534 # if the path contains ";" then we assume it to be the separator
7535 # otherwise default to the standard path separator (i.e. ":") - it is
7536 # assumed that no part of a normal pathname contains ";" but that should
7537 # okay in the real world where ";" in dirpaths is itself problematic.
7538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7539 else
7540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7541 fi
7542else
7543 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7544fi
7545need_lib_prefix=unknown
7546hardcode_into_libs=no
7547
7548# when you set need_version to no, make sure it does not cause -set_version
7549# flags to be left without arguments
7550need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007551
7552case $host_os in
7553aix3*)
7554 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007556 shlibpath_var=LIBPATH
7557
John Criswell47fdd832003-07-14 16:52:07 +00007558 # AIX 3 has no versioning support, so we append a major version to the name.
7559 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007560 ;;
7561
7562aix4* | aix5*)
7563 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007564 need_lib_prefix=no
7565 need_version=no
7566 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007567 if test "$host_cpu" = ia64; then
7568 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007570 shlibpath_var=LD_LIBRARY_PATH
7571 else
7572 # With GCC up to 2.95.x, collect2 would create an import file
7573 # for dependence libraries. The import file would start with
7574 # the line `#! .'. This would cause the generated library to
7575 # depend on `.', always an invalid library. This was fixed in
7576 # development snapshots of GCC prior to 3.0.
7577 case $host_os in
7578 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7580 echo ' yes '
7581 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7582 :
7583 else
7584 can_build_shared=no
7585 fi
7586 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007587 esac
John Criswell47fdd832003-07-14 16:52:07 +00007588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7589 # soname into executable. Probably we can add versioning support to
7590 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007591 if test "$aix_use_runtimelinking" = yes; then
7592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7593 # instead of lib<name>.a to let people know that these are not
7594 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007596 else
7597 # We preserve .a as extension for shared libraries through AIX4.2
7598 # and later when we are not doing run time linking.
7599 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007600 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007601 fi
7602 shlibpath_var=LIBPATH
7603 fi
7604 ;;
7605
7606amigaos*)
7607 library_names_spec='$libname.ixlibrary $libname.a'
7608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7609 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'
7610 ;;
7611
7612beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007613 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007614 dynamic_linker="$host_os ld.so"
7615 shlibpath_var=LIBRARY_PATH
7616 ;;
7617
7618bsdi4*)
7619 version_type=linux
7620 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7622 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7624 shlibpath_var=LD_LIBRARY_PATH
7625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007627 # the default ld.so.conf also contains /usr/contrib/lib and
7628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7629 # libtool to hard-code these into programs
7630 ;;
7631
7632cygwin* | mingw* | pw32*)
7633 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007634 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007635 need_version=no
7636 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007637
John Criswell7a73b802003-06-30 21:59:07 +00007638 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007639 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007640 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7642 postinstall_cmds='base_file=`basename \${file}`~
7643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007644 dldir=$destdir/`dirname \$dlpath`~
7645 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007646 $install_prog $dir/$dlname \$dldir/$dlname'
7647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007648 dlpath=$dir/\$dldll~
7649 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007650 shlibpath_overrides_runpath=yes
7651
7652 case $host_os in
7653 cygwin*)
7654 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7655 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7656 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7657 ;;
7658 mingw*)
7659 # MinGW DLLs use traditional 'lib' prefix
7660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7661 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7662 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7663 # It is most probably a Windows format PATH printed by
7664 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7665 # path with ; separators, and with drive letters. We can handle the
7666 # drive letters (cygwin fileutils understands them), so leave them,
7667 # especially as we might pass files found there to a mingw objdump,
7668 # which wouldn't understand a cygwinified path. Ahh.
7669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7670 else
7671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7672 fi
7673 ;;
7674 pw32*)
7675 # pw32 DLLs use 'pw' prefix rather than 'lib'
7676 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7677 ;;
7678 esac
John Criswell7a73b802003-06-30 21:59:07 +00007679 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007680
John Criswell7a73b802003-06-30 21:59:07 +00007681 *)
John Criswell47fdd832003-07-14 16:52:07 +00007682 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007683 ;;
7684 esac
7685 dynamic_linker='Win32 ld.exe'
7686 # FIXME: first we should search . and the directory the executable is in
7687 shlibpath_var=PATH
7688 ;;
7689
7690darwin* | rhapsody*)
7691 dynamic_linker="$host_os dyld"
7692 version_type=darwin
7693 need_lib_prefix=no
7694 need_version=no
7695 # FIXME: Relying on posixy $() will cause problems for
7696 # cross-compilation, but unfortunately the echo tests do not
7697 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007698 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7699 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007700 shlibpath_overrides_runpath=yes
7701 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007702 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7703 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7704 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7705 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"`
7706 fi
7707 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7708 ;;
7709
7710dgux*)
7711 version_type=linux
7712 need_lib_prefix=no
7713 need_version=no
7714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7715 soname_spec='${libname}${release}${shared_ext}$major'
7716 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007717 ;;
7718
7719freebsd1*)
7720 dynamic_linker=no
7721 ;;
7722
7723freebsd*)
7724 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7725 version_type=freebsd-$objformat
7726 case $version_type in
7727 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007729 need_version=no
7730 need_lib_prefix=no
7731 ;;
7732 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007734 need_version=yes
7735 ;;
7736 esac
7737 shlibpath_var=LD_LIBRARY_PATH
7738 case $host_os in
7739 freebsd2*)
7740 shlibpath_overrides_runpath=yes
7741 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007742 freebsd3.01* | freebsdelf3.01*)
7743 shlibpath_overrides_runpath=yes
7744 hardcode_into_libs=yes
7745 ;;
7746 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007747 shlibpath_overrides_runpath=no
7748 hardcode_into_libs=yes
7749 ;;
7750 esac
7751 ;;
7752
7753gnu*)
7754 version_type=linux
7755 need_lib_prefix=no
7756 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7758 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007759 shlibpath_var=LD_LIBRARY_PATH
7760 hardcode_into_libs=yes
7761 ;;
7762
7763hpux9* | hpux10* | hpux11*)
7764 # Give a soname corresponding to the major version so that dld.sl refuses to
7765 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007766 version_type=sunos
7767 need_lib_prefix=no
7768 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007769 case "$host_cpu" in
7770 ia64*)
7771 shrext='.so'
7772 hardcode_into_libs=yes
7773 dynamic_linker="$host_os dld.so"
7774 shlibpath_var=LD_LIBRARY_PATH
7775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7777 soname_spec='${libname}${release}${shared_ext}$major'
7778 if test "X$HPUX_IA64_MODE" = X32; then
7779 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7780 else
7781 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7782 fi
7783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7784 ;;
7785 hppa*64*)
7786 shrext='.sl'
7787 hardcode_into_libs=yes
7788 dynamic_linker="$host_os dld.sl"
7789 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7792 soname_spec='${libname}${release}${shared_ext}$major'
7793 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7795 ;;
7796 *)
7797 shrext='.sl'
7798 dynamic_linker="$host_os dld.sl"
7799 shlibpath_var=SHLIB_PATH
7800 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7802 soname_spec='${libname}${release}${shared_ext}$major'
7803 ;;
7804 esac
John Criswell7a73b802003-06-30 21:59:07 +00007805 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7806 postinstall_cmds='chmod 555 $lib'
7807 ;;
7808
John Criswell47fdd832003-07-14 16:52:07 +00007809irix5* | irix6* | nonstopux*)
7810 case $host_os in
7811 nonstopux*) version_type=nonstopux ;;
7812 *)
7813 if test "$lt_cv_prog_gnu_ld" = yes; then
7814 version_type=linux
7815 else
7816 version_type=irix
7817 fi ;;
7818 esac
John Criswell7a73b802003-06-30 21:59:07 +00007819 need_lib_prefix=no
7820 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007821 soname_spec='${libname}${release}${shared_ext}$major'
7822 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 +00007823 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007824 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007825 libsuff= shlibsuff=
7826 ;;
7827 *)
7828 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7830 libsuff= shlibsuff= libmagic=32-bit;;
7831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7832 libsuff=32 shlibsuff=N32 libmagic=N32;;
7833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7834 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007835 *) libsuff= shlibsuff= libmagic=never-match;;
7836 esac
7837 ;;
7838 esac
7839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7840 shlibpath_overrides_runpath=no
7841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007843 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007844 ;;
7845
7846# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007847linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007848 dynamic_linker=no
7849 ;;
7850
7851# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007852linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007853 version_type=linux
7854 need_lib_prefix=no
7855 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7859 shlibpath_var=LD_LIBRARY_PATH
7860 shlibpath_overrides_runpath=no
7861 # This implies no fast_install, which is unacceptable.
7862 # Some rework will be needed to allow for fast_install
7863 # before this can be enabled.
7864 hardcode_into_libs=yes
7865
7866 # We used to test for /lib/ld.so.1 and disable shared libraries on
7867 # powerpc, because MkLinux only supported shared libraries with the
7868 # GNU dynamic linker. Since this was broken with cross compilers,
7869 # most powerpc-linux boxes support dynamic linking these days and
7870 # people can always --disable-shared, the test was removed, and we
7871 # assume the GNU/Linux dynamic linker is in use.
7872 dynamic_linker='GNU/Linux ld.so'
7873 ;;
7874
7875netbsd*)
7876 version_type=sunos
7877 need_lib_prefix=no
7878 need_version=no
7879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7882 dynamic_linker='NetBSD (a.out) ld.so'
7883 else
John Criswell47fdd832003-07-14 16:52:07 +00007884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7885 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007886 dynamic_linker='NetBSD ld.elf_so'
7887 fi
7888 shlibpath_var=LD_LIBRARY_PATH
7889 shlibpath_overrides_runpath=yes
7890 hardcode_into_libs=yes
7891 ;;
7892
7893newsos6)
7894 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 shlibpath_var=LD_LIBRARY_PATH
7897 shlibpath_overrides_runpath=yes
7898 ;;
7899
7900nto-qnx)
7901 version_type=linux
7902 need_lib_prefix=no
7903 need_version=no
7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007906 shlibpath_var=LD_LIBRARY_PATH
7907 shlibpath_overrides_runpath=yes
7908 ;;
7909
7910openbsd*)
7911 version_type=sunos
7912 need_lib_prefix=no
7913 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7916 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007917 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 +00007918 case $host_os in
7919 openbsd2.[89] | openbsd2.[89].*)
7920 shlibpath_overrides_runpath=no
7921 ;;
7922 *)
7923 shlibpath_overrides_runpath=yes
7924 ;;
7925 esac
John Criswell7a73b802003-06-30 21:59:07 +00007926 else
7927 shlibpath_overrides_runpath=yes
7928 fi
John Criswell7a73b802003-06-30 21:59:07 +00007929 ;;
7930
7931os2*)
7932 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007933 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007934 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007935 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007936 dynamic_linker='OS/2 ld.exe'
7937 shlibpath_var=LIBPATH
7938 ;;
7939
7940osf3* | osf4* | osf5*)
7941 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007942 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007943 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007944 soname_spec='${libname}${release}${shared_ext}$major'
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007946 shlibpath_var=LD_LIBRARY_PATH
7947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7949 ;;
7950
7951sco3.2v5*)
7952 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007953 soname_spec='${libname}${release}${shared_ext}$major'
7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007955 shlibpath_var=LD_LIBRARY_PATH
7956 ;;
7957
7958solaris*)
7959 version_type=linux
7960 need_lib_prefix=no
7961 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7963 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007964 shlibpath_var=LD_LIBRARY_PATH
7965 shlibpath_overrides_runpath=yes
7966 hardcode_into_libs=yes
7967 # ldd complains unless libraries are executable
7968 postinstall_cmds='chmod +x $lib'
7969 ;;
7970
7971sunos4*)
7972 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7975 shlibpath_var=LD_LIBRARY_PATH
7976 shlibpath_overrides_runpath=yes
7977 if test "$with_gnu_ld" = yes; then
7978 need_lib_prefix=no
7979 fi
7980 need_version=yes
7981 ;;
7982
7983sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7984 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7986 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007987 shlibpath_var=LD_LIBRARY_PATH
7988 case $host_vendor in
7989 sni)
7990 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007991 need_lib_prefix=no
7992 export_dynamic_flag_spec='${wl}-Blargedynsym'
7993 runpath_var=LD_RUN_PATH
7994 ;;
7995 siemens)
7996 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007997 ;;
7998 motorola)
7999 need_lib_prefix=no
8000 need_version=no
8001 shlibpath_overrides_runpath=no
8002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8003 ;;
8004 esac
8005 ;;
8006
John Criswell7a73b802003-06-30 21:59:07 +00008007sysv4*MP*)
8008 if test -d /usr/nec ;then
8009 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8011 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008012 shlibpath_var=LD_LIBRARY_PATH
8013 fi
8014 ;;
8015
John Criswell47fdd832003-07-14 16:52:07 +00008016uts4*)
8017 version_type=linux
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019 soname_spec='${libname}${release}${shared_ext}$major'
8020 shlibpath_var=LD_LIBRARY_PATH
8021 ;;
8022
John Criswell7a73b802003-06-30 21:59:07 +00008023*)
8024 dynamic_linker=no
8025 ;;
8026esac
8027echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8028echo "${ECHO_T}$dynamic_linker" >&6
8029test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008030
8031if test "x$enable_dlopen" != xyes; then
8032 enable_dlopen=unknown
8033 enable_dlopen_self=unknown
8034 enable_dlopen_self_static=unknown
8035else
8036 lt_cv_dlopen=no
8037 lt_cv_dlopen_libs=
8038
8039 case $host_os in
8040 beos*)
8041 lt_cv_dlopen="load_add_on"
8042 lt_cv_dlopen_libs=
8043 lt_cv_dlopen_self=yes
8044 ;;
8045
John Criswell47fdd832003-07-14 16:52:07 +00008046 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008047 lt_cv_dlopen="LoadLibrary"
8048 lt_cv_dlopen_libs=
8049 ;;
8050
John Criswell47fdd832003-07-14 16:52:07 +00008051 cygwin*)
8052 lt_cv_dlopen="dlopen"
8053 lt_cv_dlopen_libs=
8054 ;;
8055
8056 darwin*)
8057 # if libdl is installed we need to link against it
8058 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8059echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8060if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063 ac_check_lib_save_LIBS=$LIBS
8064LIBS="-ldl $LIBS"
8065cat >conftest.$ac_ext <<_ACEOF
8066#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008067/* confdefs.h. */
8068_ACEOF
8069cat confdefs.h >>conftest.$ac_ext
8070cat >>conftest.$ac_ext <<_ACEOF
8071/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008072
8073/* Override any gcc2 internal prototype to avoid an error. */
8074#ifdef __cplusplus
8075extern "C"
8076#endif
8077/* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8079char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008080int
8081main ()
8082{
8083dlopen ();
8084 ;
8085 return 0;
8086}
8087_ACEOF
8088rm -f conftest.$ac_objext conftest$ac_exeext
8089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_lib_dl_dlopen=yes
8101else
8102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008103sed 's/^/| /' conftest.$ac_ext >&5
8104
John Criswell47fdd832003-07-14 16:52:07 +00008105ac_cv_lib_dl_dlopen=no
8106fi
8107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8108LIBS=$ac_check_lib_save_LIBS
8109fi
8110echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8111echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8112if test $ac_cv_lib_dl_dlopen = yes; then
8113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8114else
8115
8116 lt_cv_dlopen="dyld"
8117 lt_cv_dlopen_libs=
8118 lt_cv_dlopen_self=yes
8119
8120fi
8121
8122 ;;
8123
John Criswell7a73b802003-06-30 21:59:07 +00008124 *)
8125 echo "$as_me:$LINENO: checking for shl_load" >&5
8126echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8127if test "${ac_cv_func_shl_load+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130 cat >conftest.$ac_ext <<_ACEOF
8131#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008132/* confdefs.h. */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008137/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008138 which can conflict with char shl_load (); below.
8139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8140 <limits.h> exists even on freestanding compilers. */
8141#ifdef __STDC__
8142# include <limits.h>
8143#else
8144# include <assert.h>
8145#endif
John Criswell7a73b802003-06-30 21:59:07 +00008146/* Override any gcc2 internal prototype to avoid an error. */
8147#ifdef __cplusplus
8148extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008149{
John Criswell7a73b802003-06-30 21:59:07 +00008150#endif
8151/* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8153char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008154/* The GNU C library defines this for functions which it implements
8155 to always fail with ENOSYS. Some functions are actually named
8156 something starting with __ and the normal name is an alias. */
8157#if defined (__stub_shl_load) || defined (__stub___shl_load)
8158choke me
8159#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008160char (*f) () = shl_load;
8161#endif
8162#ifdef __cplusplus
8163}
John Criswell7a73b802003-06-30 21:59:07 +00008164#endif
8165
John Criswell0c38eaf2003-09-10 15:17:25 +00008166int
8167main ()
8168{
8169return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008170 ;
8171 return 0;
8172}
8173_ACEOF
8174rm -f conftest.$ac_objext conftest$ac_exeext
8175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_func_shl_load=yes
8187else
8188 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008189sed 's/^/| /' conftest.$ac_ext >&5
8190
John Criswell7a73b802003-06-30 21:59:07 +00008191ac_cv_func_shl_load=no
8192fi
8193rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8194fi
8195echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8196echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8197if test $ac_cv_func_shl_load = yes; then
8198 lt_cv_dlopen="shl_load"
8199else
8200 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8201echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8202if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204else
8205 ac_check_lib_save_LIBS=$LIBS
8206LIBS="-ldld $LIBS"
8207cat >conftest.$ac_ext <<_ACEOF
8208#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008209/* confdefs.h. */
8210_ACEOF
8211cat confdefs.h >>conftest.$ac_ext
8212cat >>conftest.$ac_ext <<_ACEOF
8213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008214
8215/* Override any gcc2 internal prototype to avoid an error. */
8216#ifdef __cplusplus
8217extern "C"
8218#endif
8219/* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8221char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008222int
8223main ()
8224{
8225shl_load ();
8226 ;
8227 return 0;
8228}
8229_ACEOF
8230rm -f conftest.$ac_objext conftest$ac_exeext
8231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232 (eval $ac_link) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -s conftest$ac_exeext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 ac_cv_lib_dld_shl_load=yes
8243else
8244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008245sed 's/^/| /' conftest.$ac_ext >&5
8246
John Criswell7a73b802003-06-30 21:59:07 +00008247ac_cv_lib_dld_shl_load=no
8248fi
8249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8250LIBS=$ac_check_lib_save_LIBS
8251fi
8252echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8253echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8254if test $ac_cv_lib_dld_shl_load = yes; then
8255 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8256else
8257 echo "$as_me:$LINENO: checking for dlopen" >&5
8258echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8259if test "${ac_cv_func_dlopen+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261else
8262 cat >conftest.$ac_ext <<_ACEOF
8263#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008264/* confdefs.h. */
8265_ACEOF
8266cat confdefs.h >>conftest.$ac_ext
8267cat >>conftest.$ac_ext <<_ACEOF
8268/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008269/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008270 which can conflict with char dlopen (); below.
8271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8272 <limits.h> exists even on freestanding compilers. */
8273#ifdef __STDC__
8274# include <limits.h>
8275#else
8276# include <assert.h>
8277#endif
John Criswell7a73b802003-06-30 21:59:07 +00008278/* Override any gcc2 internal prototype to avoid an error. */
8279#ifdef __cplusplus
8280extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008281{
John Criswell7a73b802003-06-30 21:59:07 +00008282#endif
8283/* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8285char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008286/* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
8289#if defined (__stub_dlopen) || defined (__stub___dlopen)
8290choke me
8291#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008292char (*f) () = dlopen;
8293#endif
8294#ifdef __cplusplus
8295}
John Criswell7a73b802003-06-30 21:59:07 +00008296#endif
8297
John Criswell0c38eaf2003-09-10 15:17:25 +00008298int
8299main ()
8300{
8301return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008302 ;
8303 return 0;
8304}
8305_ACEOF
8306rm -f conftest.$ac_objext conftest$ac_exeext
8307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308 (eval $ac_link) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_func_dlopen=yes
8319else
8320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008321sed 's/^/| /' conftest.$ac_ext >&5
8322
John Criswell7a73b802003-06-30 21:59:07 +00008323ac_cv_func_dlopen=no
8324fi
8325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8326fi
8327echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8328echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8329if test $ac_cv_func_dlopen = yes; then
8330 lt_cv_dlopen="dlopen"
8331else
8332 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8333echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8334if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336else
8337 ac_check_lib_save_LIBS=$LIBS
8338LIBS="-ldl $LIBS"
8339cat >conftest.$ac_ext <<_ACEOF
8340#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008341/* confdefs.h. */
8342_ACEOF
8343cat confdefs.h >>conftest.$ac_ext
8344cat >>conftest.$ac_ext <<_ACEOF
8345/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008346
8347/* Override any gcc2 internal prototype to avoid an error. */
8348#ifdef __cplusplus
8349extern "C"
8350#endif
8351/* We use char because int might match the return type of a gcc2
8352 builtin and then its argument prototype would still apply. */
8353char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008354int
8355main ()
8356{
8357dlopen ();
8358 ;
8359 return 0;
8360}
8361_ACEOF
8362rm -f conftest.$ac_objext conftest$ac_exeext
8363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364 (eval $ac_link) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -s conftest$ac_exeext'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_cv_lib_dl_dlopen=yes
8375else
8376 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008377sed 's/^/| /' conftest.$ac_ext >&5
8378
John Criswell7a73b802003-06-30 21:59:07 +00008379ac_cv_lib_dl_dlopen=no
8380fi
8381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8382LIBS=$ac_check_lib_save_LIBS
8383fi
8384echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8385echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8386if test $ac_cv_lib_dl_dlopen = yes; then
8387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8388else
8389 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8390echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8391if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393else
8394 ac_check_lib_save_LIBS=$LIBS
8395LIBS="-lsvld $LIBS"
8396cat >conftest.$ac_ext <<_ACEOF
8397#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008398/* confdefs.h. */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008403
8404/* Override any gcc2 internal prototype to avoid an error. */
8405#ifdef __cplusplus
8406extern "C"
8407#endif
8408/* We use char because int might match the return type of a gcc2
8409 builtin and then its argument prototype would still apply. */
8410char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008411int
8412main ()
8413{
8414dlopen ();
8415 ;
8416 return 0;
8417}
8418_ACEOF
8419rm -f conftest.$ac_objext conftest$ac_exeext
8420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421 (eval $ac_link) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -s conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_cv_lib_svld_dlopen=yes
8432else
8433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008434sed 's/^/| /' conftest.$ac_ext >&5
8435
John Criswell7a73b802003-06-30 21:59:07 +00008436ac_cv_lib_svld_dlopen=no
8437fi
8438rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8439LIBS=$ac_check_lib_save_LIBS
8440fi
8441echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8442echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8443if test $ac_cv_lib_svld_dlopen = yes; then
8444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8445else
8446 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8447echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8448if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450else
8451 ac_check_lib_save_LIBS=$LIBS
8452LIBS="-ldld $LIBS"
8453cat >conftest.$ac_ext <<_ACEOF
8454#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008455/* confdefs.h. */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008460
8461/* Override any gcc2 internal prototype to avoid an error. */
8462#ifdef __cplusplus
8463extern "C"
8464#endif
8465/* We use char because int might match the return type of a gcc2
8466 builtin and then its argument prototype would still apply. */
8467char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008468int
8469main ()
8470{
8471dld_link ();
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476rm -f conftest.$ac_objext conftest$ac_exeext
8477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_lib_dld_dld_link=yes
8489else
8490 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008491sed 's/^/| /' conftest.$ac_ext >&5
8492
John Criswell7a73b802003-06-30 21:59:07 +00008493ac_cv_lib_dld_dld_link=no
8494fi
8495rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8496LIBS=$ac_check_lib_save_LIBS
8497fi
8498echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8499echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8500if test $ac_cv_lib_dld_dld_link = yes; then
8501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8502fi
8503
8504
8505fi
8506
8507
8508fi
8509
8510
8511fi
8512
8513
8514fi
8515
8516
8517fi
8518
8519 ;;
8520 esac
8521
8522 if test "x$lt_cv_dlopen" != xno; then
8523 enable_dlopen=yes
8524 else
8525 enable_dlopen=no
8526 fi
8527
8528 case $lt_cv_dlopen in
8529 dlopen)
8530 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008532
8533 save_LDFLAGS="$LDFLAGS"
8534 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8535
8536 save_LIBS="$LIBS"
8537 LIBS="$lt_cv_dlopen_libs $LIBS"
8538
8539 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8540echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8541if test "${lt_cv_dlopen_self+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544 if test "$cross_compiling" = yes; then :
8545 lt_cv_dlopen_self=cross
8546else
John Criswell47fdd832003-07-14 16:52:07 +00008547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008548 lt_status=$lt_dlunknown
8549 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +00008550#line 8547 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008551#include "confdefs.h"
8552
8553#if HAVE_DLFCN_H
8554#include <dlfcn.h>
8555#endif
8556
8557#include <stdio.h>
8558
8559#ifdef RTLD_GLOBAL
8560# define LT_DLGLOBAL RTLD_GLOBAL
8561#else
8562# ifdef DL_GLOBAL
8563# define LT_DLGLOBAL DL_GLOBAL
8564# else
8565# define LT_DLGLOBAL 0
8566# endif
8567#endif
8568
8569/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8570 find out it does not work in some platform. */
8571#ifndef LT_DLLAZY_OR_NOW
8572# ifdef RTLD_LAZY
8573# define LT_DLLAZY_OR_NOW RTLD_LAZY
8574# else
8575# ifdef DL_LAZY
8576# define LT_DLLAZY_OR_NOW DL_LAZY
8577# else
8578# ifdef RTLD_NOW
8579# define LT_DLLAZY_OR_NOW RTLD_NOW
8580# else
8581# ifdef DL_NOW
8582# define LT_DLLAZY_OR_NOW DL_NOW
8583# else
8584# define LT_DLLAZY_OR_NOW 0
8585# endif
8586# endif
8587# endif
8588# endif
8589#endif
8590
8591#ifdef __cplusplus
8592extern "C" void exit (int);
8593#endif
8594
8595void fnord() { int i=42;}
8596int main ()
8597{
8598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8599 int status = $lt_dlunknown;
8600
8601 if (self)
8602 {
8603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8605 /* dlclose (self); */
8606 }
8607
8608 exit (status);
8609}
8610EOF
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8616 (./conftest; exit; ) 2>/dev/null
8617 lt_status=$?
8618 case x$lt_status in
8619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8621 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8622 esac
8623 else :
8624 # compilation failed
8625 lt_cv_dlopen_self=no
8626 fi
8627fi
8628rm -fr conftest*
8629
8630
8631fi
8632echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8633echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8634
8635 if test "x$lt_cv_dlopen_self" = xyes; then
8636 LDFLAGS="$LDFLAGS $link_static_flag"
8637 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8638echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8639if test "${lt_cv_dlopen_self_static+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641else
8642 if test "$cross_compiling" = yes; then :
8643 lt_cv_dlopen_self_static=cross
8644else
John Criswell47fdd832003-07-14 16:52:07 +00008645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008646 lt_status=$lt_dlunknown
8647 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +00008648#line 8645 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008649#include "confdefs.h"
8650
8651#if HAVE_DLFCN_H
8652#include <dlfcn.h>
8653#endif
8654
8655#include <stdio.h>
8656
8657#ifdef RTLD_GLOBAL
8658# define LT_DLGLOBAL RTLD_GLOBAL
8659#else
8660# ifdef DL_GLOBAL
8661# define LT_DLGLOBAL DL_GLOBAL
8662# else
8663# define LT_DLGLOBAL 0
8664# endif
8665#endif
8666
8667/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8668 find out it does not work in some platform. */
8669#ifndef LT_DLLAZY_OR_NOW
8670# ifdef RTLD_LAZY
8671# define LT_DLLAZY_OR_NOW RTLD_LAZY
8672# else
8673# ifdef DL_LAZY
8674# define LT_DLLAZY_OR_NOW DL_LAZY
8675# else
8676# ifdef RTLD_NOW
8677# define LT_DLLAZY_OR_NOW RTLD_NOW
8678# else
8679# ifdef DL_NOW
8680# define LT_DLLAZY_OR_NOW DL_NOW
8681# else
8682# define LT_DLLAZY_OR_NOW 0
8683# endif
8684# endif
8685# endif
8686# endif
8687#endif
8688
8689#ifdef __cplusplus
8690extern "C" void exit (int);
8691#endif
8692
8693void fnord() { int i=42;}
8694int main ()
8695{
8696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8697 int status = $lt_dlunknown;
8698
8699 if (self)
8700 {
8701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8703 /* dlclose (self); */
8704 }
8705
8706 exit (status);
8707}
8708EOF
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8714 (./conftest; exit; ) 2>/dev/null
8715 lt_status=$?
8716 case x$lt_status in
8717 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8718 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8719 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8720 esac
8721 else :
8722 # compilation failed
8723 lt_cv_dlopen_self_static=no
8724 fi
8725fi
8726rm -fr conftest*
8727
8728
8729fi
8730echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8731echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8732 fi
8733
8734 CPPFLAGS="$save_CPPFLAGS"
8735 LDFLAGS="$save_LDFLAGS"
8736 LIBS="$save_LIBS"
8737 ;;
8738 esac
8739
8740 case $lt_cv_dlopen_self in
8741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8742 *) enable_dlopen_self=unknown ;;
8743 esac
8744
8745 case $lt_cv_dlopen_self_static in
8746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8747 *) enable_dlopen_self_static=unknown ;;
8748 esac
8749fi
8750
8751
John Criswell47fdd832003-07-14 16:52:07 +00008752# Report which librarie types wil actually be built
8753echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8754echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8755echo "$as_me:$LINENO: result: $can_build_shared" >&5
8756echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008757
John Criswell47fdd832003-07-14 16:52:07 +00008758echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8759echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8760test "$can_build_shared" = "no" && enable_shared=no
8761
8762# On AIX, shared libraries and static libraries use the same namespace, and
8763# are all built from PIC.
8764case "$host_os" in
8765aix3*)
8766 test "$enable_shared" = yes && enable_static=no
8767 if test -n "$RANLIB"; then
8768 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8769 postinstall_cmds='$RANLIB $lib'
8770 fi
8771 ;;
8772
8773aix4*)
8774 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8775 test "$enable_shared" = yes && enable_static=no
8776 fi
8777 ;;
8778 darwin* | rhapsody*)
8779 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8780 archive_cmds_need_lc=no
8781 case "$host_os" in
8782 rhapsody* | darwin1.[012])
8783 allow_undefined_flag='-undefined suppress'
8784 ;;
8785 *) # Darwin 1.3 on
8786 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8787 ;;
8788 esac
8789 # FIXME: Relying on posixy $() will cause problems for
8790 # cross-compilation, but unfortunately the echo tests do not
8791 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8792 # `"' quotes if we put them in here... so don't!
8793 output_verbose_link_cmd='echo'
8794 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8795 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8796 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8797 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}'
8798 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}'
8799 hardcode_direct=no
8800 hardcode_automatic=yes
8801 hardcode_shlibpath_var=unsupported
8802 whole_archive_flag_spec='-all_load $convenience'
8803 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008804 fi
John Criswell7a73b802003-06-30 21:59:07 +00008805 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008806esac
8807echo "$as_me:$LINENO: result: $enable_shared" >&5
8808echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008809
John Criswell47fdd832003-07-14 16:52:07 +00008810echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8811echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8812# Make sure either enable_shared or enable_static is yes.
8813test "$enable_shared" = yes || enable_static=yes
8814echo "$as_me:$LINENO: result: $enable_static" >&5
8815echo "${ECHO_T}$enable_static" >&6
8816
8817# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008818# libtool distribution, otherwise you forgot to ship ltmain.sh
8819# with your package, and you will get complaints that there are
8820# no rules to generate ltmain.sh.
8821if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008822 # See if we are running on zsh, and set the options which allow our commands through
8823 # without removal of \ escapes.
8824 if test -n "${ZSH_VERSION+set}" ; then
8825 setopt NO_GLOB_SUBST
8826 fi
John Criswell7a73b802003-06-30 21:59:07 +00008827 # Now quote all the things that may contain metacharacters while being
8828 # careful not to overquote the AC_SUBSTed values. We take copies of the
8829 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008830 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8833 deplibs_check_method reload_flag reload_cmds need_locks \
8834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8835 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008837 old_postinstall_cmds old_postuninstall_cmds \
8838 compiler \
8839 CC \
8840 LD \
8841 lt_prog_compiler_wl \
8842 lt_prog_compiler_pic \
8843 lt_prog_compiler_static \
8844 lt_prog_compiler_no_builtin_flag \
8845 export_dynamic_flag_spec \
8846 thread_safe_flag_spec \
8847 whole_archive_flag_spec \
8848 enable_shared_with_static_runtimes \
8849 old_archive_cmds \
8850 old_archive_from_new_cmds \
8851 predep_objects \
8852 postdep_objects \
8853 predeps \
8854 postdeps \
8855 compiler_lib_search_path \
8856 archive_cmds \
8857 archive_expsym_cmds \
8858 postinstall_cmds \
8859 postuninstall_cmds \
8860 old_archive_from_expsyms_cmds \
8861 allow_undefined_flag \
8862 no_undefined_flag \
8863 export_symbols_cmds \
8864 hardcode_libdir_flag_spec \
8865 hardcode_libdir_flag_spec_ld \
8866 hardcode_libdir_separator \
8867 hardcode_automatic \
8868 module_cmds \
8869 module_expsym_cmds \
8870 lt_cv_prog_compiler_c_o \
8871 exclude_expsyms \
8872 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008873
8874 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008875 old_archive_cmds | \
8876 old_archive_from_new_cmds | \
8877 archive_cmds | \
8878 archive_expsym_cmds | \
8879 module_cmds | \
8880 module_expsym_cmds | \
8881 old_archive_from_expsyms_cmds | \
8882 export_symbols_cmds | \
8883 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008884 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008885 old_postinstall_cmds | old_postuninstall_cmds | \
8886 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008887 # Double-quote double-evaled strings.
8888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8889 ;;
8890 *)
8891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8892 ;;
8893 esac
8894 done
8895
John Criswell47fdd832003-07-14 16:52:07 +00008896 case $lt_echo in
8897 *'\$0 --fallback-echo"')
8898 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8899 ;;
8900 esac
8901
8902cfgfile="${ofile}T"
8903 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8904 $rm -f "$cfgfile"
8905 { echo "$as_me:$LINENO: creating $ofile" >&5
8906echo "$as_me: creating $ofile" >&6;}
8907
8908 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008909#! $SHELL
8910
John Criswell47fdd832003-07-14 16:52:07 +00008911# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008912# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8913# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8914#
John Criswell47fdd832003-07-14 16:52:07 +00008915# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8916# Free Software Foundation, Inc.
8917#
8918# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008919# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8920#
8921# This program is free software; you can redistribute it and/or modify
8922# it under the terms of the GNU General Public License as published by
8923# the Free Software Foundation; either version 2 of the License, or
8924# (at your option) any later version.
8925#
8926# This program is distributed in the hope that it will be useful, but
8927# WITHOUT ANY WARRANTY; without even the implied warranty of
8928# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8929# General Public License for more details.
8930#
8931# You should have received a copy of the GNU General Public License
8932# along with this program; if not, write to the Free Software
8933# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8934#
8935# As a special exception to the GNU General Public License, if you
8936# distribute this file as part of a program that contains a
8937# configuration script generated by Autoconf, you may include it under
8938# the same distribution terms that you use for the rest of that program.
8939
John Criswell47fdd832003-07-14 16:52:07 +00008940# A sed program that does not truncate output.
8941SED=$lt_SED
8942
John Criswell7a73b802003-06-30 21:59:07 +00008943# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008944Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008945
8946# The HP-UX ksh and POSIX shell print the target directory to stdout
8947# if CDPATH is set.
8948if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8949
John Criswell47fdd832003-07-14 16:52:07 +00008950# The names of the tagged configurations supported by this script.
8951available_tags=
8952
John Criswell7a73b802003-06-30 21:59:07 +00008953# ### BEGIN LIBTOOL CONFIG
8954
8955# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8956
8957# Shell to use when invoking shell scripts.
8958SHELL=$lt_SHELL
8959
8960# Whether or not to build shared libraries.
8961build_libtool_libs=$enable_shared
8962
8963# Whether or not to build static libraries.
8964build_old_libs=$enable_static
8965
8966# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008967build_libtool_need_lc=$archive_cmds_need_lc
8968
8969# Whether or not to disallow shared libs when runtime libs are static
8970allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008971
8972# Whether or not to optimize for fast installation.
8973fast_install=$enable_fast_install
8974
8975# The host system.
8976host_alias=$host_alias
8977host=$host
8978
8979# An echo program that does not interpret backslashes.
8980echo=$lt_echo
8981
8982# The archiver.
8983AR=$lt_AR
8984AR_FLAGS=$lt_AR_FLAGS
8985
John Criswell47fdd832003-07-14 16:52:07 +00008986# A C compiler.
8987LTCC=$lt_LTCC
8988
8989# A language-specific compiler.
8990CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008991
8992# Is the compiler the GNU C compiler?
8993with_gcc=$GCC
8994
John Criswell47fdd832003-07-14 16:52:07 +00008995# An ERE matcher.
8996EGREP=$lt_EGREP
8997
John Criswell7a73b802003-06-30 21:59:07 +00008998# The linker used to build libraries.
8999LD=$lt_LD
9000
9001# Whether we need hard or soft links.
9002LN_S=$lt_LN_S
9003
9004# A BSD-compatible nm program.
9005NM=$lt_NM
9006
9007# A symbol stripping program
9008STRIP=$STRIP
9009
9010# Used to examine libraries when file_magic_cmd begins "file"
9011MAGIC_CMD=$MAGIC_CMD
9012
9013# Used on cygwin: DLL creation program.
9014DLLTOOL="$DLLTOOL"
9015
9016# Used on cygwin: object dumper.
9017OBJDUMP="$OBJDUMP"
9018
9019# Used on cygwin: assembler.
9020AS="$AS"
9021
9022# The name of the directory that contains temporary libtool files.
9023objdir=$objdir
9024
9025# How to create reloadable object files.
9026reload_flag=$lt_reload_flag
9027reload_cmds=$lt_reload_cmds
9028
9029# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009030wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009031
9032# Object file suffix (normally "o").
9033objext="$ac_objext"
9034
9035# Old archive suffix (normally "a").
9036libext="$libext"
9037
John Criswell47fdd832003-07-14 16:52:07 +00009038# Shared library suffix (normally ".so").
9039shrext='$shrext'
9040
John Criswell7a73b802003-06-30 21:59:07 +00009041# Executable file suffix (normally "").
9042exeext="$exeext"
9043
9044# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009045pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009046pic_mode=$pic_mode
9047
John Criswell47fdd832003-07-14 16:52:07 +00009048# What is the maximum length of a command?
9049max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009050
John Criswell47fdd832003-07-14 16:52:07 +00009051# Does compiler simultaneously support -c and -o options?
9052compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009053
9054# Must we lock files when doing compilation ?
9055need_locks=$lt_need_locks
9056
9057# Do we need the lib prefix for modules?
9058need_lib_prefix=$need_lib_prefix
9059
9060# Do we need a version for libraries?
9061need_version=$need_version
9062
9063# Whether dlopen is supported.
9064dlopen_support=$enable_dlopen
9065
9066# Whether dlopen of programs is supported.
9067dlopen_self=$enable_dlopen_self
9068
9069# Whether dlopen of statically linked programs is supported.
9070dlopen_self_static=$enable_dlopen_self_static
9071
9072# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009073link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009074
9075# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009077
9078# Compiler flag to allow reflexive dlopens.
9079export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9080
9081# Compiler flag to generate shared objects directly from archives.
9082whole_archive_flag_spec=$lt_whole_archive_flag_spec
9083
9084# Compiler flag to generate thread-safe objects.
9085thread_safe_flag_spec=$lt_thread_safe_flag_spec
9086
9087# Library versioning type.
9088version_type=$version_type
9089
9090# Format of library name prefix.
9091libname_spec=$lt_libname_spec
9092
9093# List of archive names. First name is the real one, the rest are links.
9094# The last name is the one that the linker finds with -lNAME.
9095library_names_spec=$lt_library_names_spec
9096
9097# The coded name of the library, if different from the real name.
9098soname_spec=$lt_soname_spec
9099
9100# Commands used to build and install an old-style archive.
9101RANLIB=$lt_RANLIB
9102old_archive_cmds=$lt_old_archive_cmds
9103old_postinstall_cmds=$lt_old_postinstall_cmds
9104old_postuninstall_cmds=$lt_old_postuninstall_cmds
9105
9106# Create an old-style archive from a shared archive.
9107old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9108
9109# Create a temporary old-style archive to link instead of a shared archive.
9110old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9111
9112# Commands used to build and install a shared archive.
9113archive_cmds=$lt_archive_cmds
9114archive_expsym_cmds=$lt_archive_expsym_cmds
9115postinstall_cmds=$lt_postinstall_cmds
9116postuninstall_cmds=$lt_postuninstall_cmds
9117
John Criswell47fdd832003-07-14 16:52:07 +00009118# Commands used to build a loadable module (assumed same as above if empty)
9119module_cmds=$lt_module_cmds
9120module_expsym_cmds=$lt_module_expsym_cmds
9121
John Criswell7a73b802003-06-30 21:59:07 +00009122# Commands to strip libraries.
9123old_striplib=$lt_old_striplib
9124striplib=$lt_striplib
9125
John Criswell47fdd832003-07-14 16:52:07 +00009126# Dependencies to place before the objects being linked to create a
9127# shared library.
9128predep_objects=$lt_predep_objects
9129
9130# Dependencies to place after the objects being linked to create a
9131# shared library.
9132postdep_objects=$lt_postdep_objects
9133
9134# Dependencies to place before the objects being linked to create a
9135# shared library.
9136predeps=$lt_predeps
9137
9138# Dependencies to place after the objects being linked to create a
9139# shared library.
9140postdeps=$lt_postdeps
9141
9142# The library search path used internally by the compiler when linking
9143# a shared library.
9144compiler_lib_search_path=$lt_compiler_lib_search_path
9145
John Criswell7a73b802003-06-30 21:59:07 +00009146# Method to check whether dependent libraries are shared objects.
9147deplibs_check_method=$lt_deplibs_check_method
9148
9149# Command to use when deplibs_check_method == file_magic.
9150file_magic_cmd=$lt_file_magic_cmd
9151
9152# Flag that allows shared libraries with undefined symbols to be built.
9153allow_undefined_flag=$lt_allow_undefined_flag
9154
9155# Flag that forces no undefined symbols.
9156no_undefined_flag=$lt_no_undefined_flag
9157
9158# Commands used to finish a libtool library installation in a directory.
9159finish_cmds=$lt_finish_cmds
9160
9161# Same as above, but a single script fragment to be evaled but not shown.
9162finish_eval=$lt_finish_eval
9163
9164# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009165global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009166
9167# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009168global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009169
9170# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009171global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009172
9173# This is the shared library runtime path variable.
9174runpath_var=$runpath_var
9175
9176# This is the shared library path variable.
9177shlibpath_var=$shlibpath_var
9178
9179# Is shlibpath searched before the hard-coded library search path?
9180shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9181
9182# How to hardcode a shared library path into an executable.
9183hardcode_action=$hardcode_action
9184
9185# Whether we should hardcode library paths into libraries.
9186hardcode_into_libs=$hardcode_into_libs
9187
9188# Flag to hardcode \$libdir into a binary during linking.
9189# This must work even if \$libdir does not exist.
9190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9191
John Criswell47fdd832003-07-14 16:52:07 +00009192# If ld is used when linking, flag to hardcode \$libdir into
9193# a binary during linking. This must work even if \$libdir does
9194# not exist.
9195hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9196
John Criswell7a73b802003-06-30 21:59:07 +00009197# Whether we need a single -rpath flag with a separated argument.
9198hardcode_libdir_separator=$lt_hardcode_libdir_separator
9199
John Criswell47fdd832003-07-14 16:52:07 +00009200# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009201# resulting binary.
9202hardcode_direct=$hardcode_direct
9203
9204# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9205# resulting binary.
9206hardcode_minus_L=$hardcode_minus_L
9207
9208# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9209# the resulting binary.
9210hardcode_shlibpath_var=$hardcode_shlibpath_var
9211
John Criswell47fdd832003-07-14 16:52:07 +00009212# Set to yes if building a shared library automatically hardcodes DIR into the library
9213# and all subsequent libraries and executables linked against it.
9214hardcode_automatic=$hardcode_automatic
9215
John Criswell7a73b802003-06-30 21:59:07 +00009216# Variables whose values should be saved in libtool wrapper scripts and
9217# restored at relink time.
9218variables_saved_for_relink="$variables_saved_for_relink"
9219
9220# Whether libtool must link a program against all its dependency libraries.
9221link_all_deplibs=$link_all_deplibs
9222
9223# Compile-time system search path for libraries
9224sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9225
9226# Run-time system search path for libraries
9227sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9228
9229# Fix the shell variable \$srcfile for the compiler.
9230fix_srcfile_path="$fix_srcfile_path"
9231
9232# Set to yes if exported symbols are required.
9233always_export_symbols=$always_export_symbols
9234
9235# The commands to list exported symbols.
9236export_symbols_cmds=$lt_export_symbols_cmds
9237
9238# The commands to extract the exported symbol list from a shared archive.
9239extract_expsyms_cmds=$lt_extract_expsyms_cmds
9240
9241# Symbols that should not be listed in the preloaded symbols.
9242exclude_expsyms=$lt_exclude_expsyms
9243
9244# Symbols that must always be exported.
9245include_expsyms=$lt_include_expsyms
9246
9247# ### END LIBTOOL CONFIG
9248
9249__EOF__
9250
John Criswell47fdd832003-07-14 16:52:07 +00009251
John Criswell7a73b802003-06-30 21:59:07 +00009252 case $host_os in
9253 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009254 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009255
9256# AIX sometimes has problems with the GCC collect2 program. For some
9257# reason, if we set the COLLECT_NAMES environment variable, the problems
9258# vanish in a puff of smoke.
9259if test "X${COLLECT_NAMES+set}" != Xset; then
9260 COLLECT_NAMES=
9261 export COLLECT_NAMES
9262fi
9263EOF
9264 ;;
9265 esac
9266
John Criswell7a73b802003-06-30 21:59:07 +00009267 # We use sed instead of cat because bash on DJGPP gets confused if
9268 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9269 # text mode, it properly converts lines to CR/LF. This bash problem
9270 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009271 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009272
John Criswell47fdd832003-07-14 16:52:07 +00009273 mv -f "$cfgfile" "$ofile" || \
9274 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009275 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009276
9277else
9278 # If there is no Makefile yet, we rely on a make rule to execute
9279 # `config.status --recheck' to rerun these tests and create the
9280 # libtool script then.
9281 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009282fi
John Criswell7a73b802003-06-30 21:59:07 +00009283
9284
John Criswell47fdd832003-07-14 16:52:07 +00009285ac_ext=c
9286ac_cpp='$CPP $CPPFLAGS'
9287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9289ac_compiler_gnu=$ac_cv_c_compiler_gnu
9290
9291CC="$lt_save_CC"
9292
9293
9294# Check whether --with-tags or --without-tags was given.
9295if test "${with_tags+set}" = set; then
9296 withval="$with_tags"
9297 tagnames="$withval"
9298fi;
9299
9300if test -f "$ltmain" && test -n "$tagnames"; then
9301 if test ! -f "${ofile}"; then
9302 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9303echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9304 fi
9305
9306 if test -z "$LTCC"; then
9307 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9308 if test -z "$LTCC"; then
9309 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9310echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9311 else
9312 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9313echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9314 fi
9315 fi
9316
9317 # Extract list of available tagged configurations in $ofile.
9318 # Note that this assumes the entire list is on one line.
9319 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9320
9321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9322 for tagname in $tagnames; do
9323 IFS="$lt_save_ifs"
9324 # Check whether tagname contains only valid characters
9325 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9326 "") ;;
9327 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9328echo "$as_me: error: invalid tag name: $tagname" >&2;}
9329 { (exit 1); exit 1; }; }
9330 ;;
9331 esac
9332
9333 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9334 then
9335 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9336echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9337 { (exit 1); exit 1; }; }
9338 fi
9339
9340 # Update the list of available tags.
9341 if test -n "$tagname"; then
9342 echo appending configuration tag \"$tagname\" to $ofile
9343
9344 case $tagname in
9345 CXX)
9346 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9347 ac_ext=cc
9348ac_cpp='$CXXCPP $CPPFLAGS'
9349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9352
9353
9354
9355
9356archive_cmds_need_lc_CXX=no
9357allow_undefined_flag_CXX=
9358always_export_symbols_CXX=no
9359archive_expsym_cmds_CXX=
9360export_dynamic_flag_spec_CXX=
9361hardcode_direct_CXX=no
9362hardcode_libdir_flag_spec_CXX=
9363hardcode_libdir_flag_spec_ld_CXX=
9364hardcode_libdir_separator_CXX=
9365hardcode_minus_L_CXX=no
9366hardcode_automatic_CXX=no
9367module_cmds_CXX=
9368module_expsym_cmds_CXX=
9369link_all_deplibs_CXX=unknown
9370old_archive_cmds_CXX=$old_archive_cmds
9371no_undefined_flag_CXX=
9372whole_archive_flag_spec_CXX=
9373enable_shared_with_static_runtimes_CXX=no
9374
9375# Dependencies to place before and after the object being linked:
9376predep_objects_CXX=
9377postdep_objects_CXX=
9378predeps_CXX=
9379postdeps_CXX=
9380compiler_lib_search_path_CXX=
9381
9382# Source file extension for C++ test sources.
9383ac_ext=cc
9384
9385# Object file extension for compiled C++ test sources.
9386objext=o
9387objext_CXX=$objext
9388
9389# Code to be used in simple compile tests
9390lt_simple_compile_test_code="int some_variable = 0;\n"
9391
9392# Code to be used in simple link tests
9393lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9394
9395# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9396
9397# If no C compiler was specified, use CC.
9398LTCC=${LTCC-"$CC"}
9399
9400# Allow CC to be a program name with arguments.
9401compiler=$CC
9402
9403
9404# Allow CC to be a program name with arguments.
9405lt_save_CC=$CC
9406lt_save_LD=$LD
9407lt_save_GCC=$GCC
9408GCC=$GXX
9409lt_save_with_gnu_ld=$with_gnu_ld
9410lt_save_path_LD=$lt_cv_path_LD
9411if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9412 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9413else
9414 unset lt_cv_prog_gnu_ld
9415fi
9416if test -n "${lt_cv_path_LDCXX+set}"; then
9417 lt_cv_path_LD=$lt_cv_path_LDCXX
9418else
9419 unset lt_cv_path_LD
9420fi
9421test -z "${LDCXX+set}" || LD=$LDCXX
9422CC=${CXX-"c++"}
9423compiler=$CC
9424compiler_CXX=$CC
9425cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9426
9427# We don't want -fno-exception wen compiling C++ code, so set the
9428# no_builtin_flag separately
9429if test "$GXX" = yes; then
9430 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9431else
9432 lt_prog_compiler_no_builtin_flag_CXX=
9433fi
9434
9435if test "$GXX" = yes; then
9436 # Set up default GNU C++ configuration
9437
9438
9439# Check whether --with-gnu-ld or --without-gnu-ld was given.
9440if test "${with_gnu_ld+set}" = set; then
9441 withval="$with_gnu_ld"
9442 test "$withval" = no || with_gnu_ld=yes
9443else
9444 with_gnu_ld=no
9445fi;
9446ac_prog=ld
9447if test "$GCC" = yes; then
9448 # Check if gcc -print-prog-name=ld gives a path.
9449 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9450echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9451 case $host in
9452 *-*-mingw*)
9453 # gcc leaves a trailing carriage return which upsets mingw
9454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9455 *)
9456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9457 esac
9458 case $ac_prog in
9459 # Accept absolute paths.
9460 [\\/]* | ?:[\\/]*)
9461 re_direlt='/[^/][^/]*/\.\./'
9462 # Canonicalize the path of ld
9463 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9465 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9466 done
9467 test -z "$LD" && LD="$ac_prog"
9468 ;;
9469 "")
9470 # If it fails, then pretend we aren't using GCC.
9471 ac_prog=ld
9472 ;;
9473 *)
9474 # If it is relative, then search for the first ld in PATH.
9475 with_gnu_ld=unknown
9476 ;;
9477 esac
9478elif test "$with_gnu_ld" = yes; then
9479 echo "$as_me:$LINENO: checking for GNU ld" >&5
9480echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9481else
9482 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9483echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9484fi
9485if test "${lt_cv_path_LD+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488 if test -z "$LD"; then
9489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9490 for ac_dir in $PATH; do
9491 IFS="$lt_save_ifs"
9492 test -z "$ac_dir" && ac_dir=.
9493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9494 lt_cv_path_LD="$ac_dir/$ac_prog"
9495 # Check to see if the program is GNU ld. I'd rather use --version,
9496 # but apparently some GNU ld's only accept -v.
9497 # Break only if it was the GNU/non-GNU ld that we prefer.
9498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9499 *GNU* | *'with BFD'*)
9500 test "$with_gnu_ld" != no && break
9501 ;;
9502 *)
9503 test "$with_gnu_ld" != yes && break
9504 ;;
9505 esac
9506 fi
9507 done
9508 IFS="$lt_save_ifs"
9509else
9510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9511fi
9512fi
9513
9514LD="$lt_cv_path_LD"
9515if test -n "$LD"; then
9516 echo "$as_me:$LINENO: result: $LD" >&5
9517echo "${ECHO_T}$LD" >&6
9518else
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
9521fi
9522test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9523echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9524 { (exit 1); exit 1; }; }
9525echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9526echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9527if test "${lt_cv_prog_gnu_ld+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9531case `"$LD" -v 2>&1 </dev/null` in
9532*GNU* | *'with BFD'*)
9533 lt_cv_prog_gnu_ld=yes
9534 ;;
9535*)
9536 lt_cv_prog_gnu_ld=no
9537 ;;
9538esac
9539fi
9540echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9541echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9542with_gnu_ld=$lt_cv_prog_gnu_ld
9543
9544
9545
9546 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9547 # archiving commands below assume that GNU ld is being used.
9548 if test "$with_gnu_ld" = yes; then
9549 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 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'
9551
9552 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9554
9555 # If archive_cmds runs LD, not CC, wlarc should be empty
9556 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9557 # investigate it a little bit more. (MM)
9558 wlarc='${wl}'
9559
9560 # ancient GNU ld didn't support --whole-archive et. al.
9561 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9562 grep 'no-whole-archive' > /dev/null; then
9563 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9564 else
9565 whole_archive_flag_spec_CXX=
9566 fi
9567 else
9568 with_gnu_ld=no
9569 wlarc=
9570
9571 # A generic and very simple default shared library creation
9572 # command for GNU C++ for the case where it uses the native
9573 # linker, instead of GNU ld. If possible, this setting should
9574 # overridden to take advantage of the native linker features on
9575 # the platform it is being used on.
9576 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9577 fi
9578
9579 # Commands to make compiler produce verbose output that lists
9580 # what "hidden" libraries, object files and flags are used when
9581 # linking a shared library.
9582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9583
9584else
9585 GXX=no
9586 with_gnu_ld=no
9587 wlarc=
9588fi
9589
9590# PORTME: fill in a description of your system's C++ link characteristics
9591echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9592echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9593ld_shlibs_CXX=yes
9594case $host_os in
9595 aix3*)
9596 # FIXME: insert proper C++ library support
9597 ld_shlibs_CXX=no
9598 ;;
9599 aix4* | aix5*)
9600 if test "$host_cpu" = ia64; then
9601 # On IA64, the linker does run time linking by default, so we don't
9602 # have to do anything special.
9603 aix_use_runtimelinking=no
9604 exp_sym_flag='-Bexport'
9605 no_entry_flag=""
9606 else
9607 aix_use_runtimelinking=no
9608
9609 # Test if we are trying to use run time linking or normal
9610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9611 # need to do runtime linking.
9612 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9613 for ld_flag in $LDFLAGS; do
9614 case $ld_flag in
9615 *-brtl*)
9616 aix_use_runtimelinking=yes
9617 break
9618 ;;
9619 esac
9620 done
9621 esac
9622
9623 exp_sym_flag='-bexport'
9624 no_entry_flag='-bnoentry'
9625 fi
9626
9627 # When large executables or shared objects are built, AIX ld can
9628 # have problems creating the table of contents. If linking a library
9629 # or program results in "error TOC overflow" add -mminimal-toc to
9630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9632
9633 archive_cmds_CXX=''
9634 hardcode_direct_CXX=yes
9635 hardcode_libdir_separator_CXX=':'
9636 link_all_deplibs_CXX=yes
9637
9638 if test "$GXX" = yes; then
9639 case $host_os in aix4.012|aix4.012.*)
9640 # We only want to do this on AIX 4.2 and lower, the check
9641 # below for broken collect2 doesn't work under 4.3+
9642 collect2name=`${CC} -print-prog-name=collect2`
9643 if test -f "$collect2name" && \
9644 strings "$collect2name" | grep resolve_lib_name >/dev/null
9645 then
9646 # We have reworked collect2
9647 hardcode_direct_CXX=yes
9648 else
9649 # We have old collect2
9650 hardcode_direct_CXX=unsupported
9651 # It fails to find uninstalled libraries when the uninstalled
9652 # path is not listed in the libpath. Setting hardcode_minus_L
9653 # to unsupported forces relinking
9654 hardcode_minus_L_CXX=yes
9655 hardcode_libdir_flag_spec_CXX='-L$libdir'
9656 hardcode_libdir_separator_CXX=
9657 fi
9658 esac
9659 shared_flag='-shared'
9660 else
9661 # not using gcc
9662 if test "$host_cpu" = ia64; then
9663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9664 # chokes on -Wl,-G. The following line is correct:
9665 shared_flag='-G'
9666 else
9667 if test "$aix_use_runtimelinking" = yes; then
9668 shared_flag='${wl}-G'
9669 else
9670 shared_flag='${wl}-bM:SRE'
9671 fi
9672 fi
9673 fi
9674
9675 # It seems that -bexpall does not export symbols beginning with
9676 # underscore (_), so it is better to generate a list of symbols to export.
9677 always_export_symbols_CXX=yes
9678 if test "$aix_use_runtimelinking" = yes; then
9679 # Warning - without using the other runtime loading flags (-brtl),
9680 # -berok will link without error, but may produce a broken library.
9681 allow_undefined_flag_CXX='-berok'
9682 # Determine the default libpath from the value encoded in an empty executable.
9683 cat >conftest.$ac_ext <<_ACEOF
9684#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009690
John Criswell47fdd832003-07-14 16:52:07 +00009691int
9692main ()
9693{
9694
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701 (eval $ac_link) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -s conftest$ac_exeext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711
9712aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9713}'`
9714# Check for a 64-bit object if we didn't find anything.
9715if 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; }
9716}'`; fi
9717else
9718 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009719sed 's/^/| /' conftest.$ac_ext >&5
9720
John Criswell47fdd832003-07-14 16:52:07 +00009721fi
9722rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9723if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9724
9725 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9726
9727 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"
9728 else
9729 if test "$host_cpu" = ia64; then
9730 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9731 allow_undefined_flag_CXX="-z nodefs"
9732 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"
9733 else
9734 # Determine the default libpath from the value encoded in an empty executable.
9735 cat >conftest.$ac_ext <<_ACEOF
9736#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009737/* confdefs.h. */
9738_ACEOF
9739cat confdefs.h >>conftest.$ac_ext
9740cat >>conftest.$ac_ext <<_ACEOF
9741/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009742
John Criswell47fdd832003-07-14 16:52:07 +00009743int
9744main ()
9745{
9746
9747 ;
9748 return 0;
9749}
9750_ACEOF
9751rm -f conftest.$ac_objext conftest$ac_exeext
9752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763
9764aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9765}'`
9766# Check for a 64-bit object if we didn't find anything.
9767if 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; }
9768}'`; fi
9769else
9770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009771sed 's/^/| /' conftest.$ac_ext >&5
9772
John Criswell47fdd832003-07-14 16:52:07 +00009773fi
9774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9776
9777 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9778 # Warning - without using the other run time loading flags,
9779 # -berok will link without error, but may produce a broken library.
9780 no_undefined_flag_CXX=' ${wl}-bernotok'
9781 allow_undefined_flag_CXX=' ${wl}-berok'
9782 # -bexpall does not export symbols beginning with underscore (_)
9783 always_export_symbols_CXX=yes
9784 # Exported symbols can be pulled into shared objects from archives
9785 whole_archive_flag_spec_CXX=' '
9786 archive_cmds_need_lc_CXX=yes
9787 # This is similar to how AIX traditionally builds it's shared libraries.
9788 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'
9789 fi
9790 fi
9791 ;;
9792 chorus*)
9793 case $cc_basename in
9794 *)
9795 # FIXME: insert proper C++ library support
9796 ld_shlibs_CXX=no
9797 ;;
9798 esac
9799 ;;
9800
9801 cygwin* | mingw* | pw32*)
9802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9803 # as there is no search path for DLLs.
9804 hardcode_libdir_flag_spec_CXX='-L$libdir'
9805 allow_undefined_flag_CXX=unsupported
9806 always_export_symbols_CXX=no
9807 enable_shared_with_static_runtimes_CXX=yes
9808
9809 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9810 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'
9811 # If the export-symbols file already is a .def file (1st line
9812 # is EXPORTS), use it as is; otherwise, prepend...
9813 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9814 cp $export_symbols $output_objdir/$soname.def;
9815 else
9816 echo EXPORTS > $output_objdir/$soname.def;
9817 cat $export_symbols >> $output_objdir/$soname.def;
9818 fi~
9819 $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'
9820 else
9821 ld_shlibs_CXX=no
9822 fi
9823 ;;
9824
9825 darwin* | rhapsody*)
9826 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9827 archive_cmds_need_lc_CXX=no
9828 case "$host_os" in
9829 rhapsody* | darwin1.[012])
9830 allow_undefined_flag_CXX='-undefined suppress'
9831 ;;
9832 *) # Darwin 1.3 on
9833 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9834 ;;
9835 esac
9836 lt_int_apple_cc_single_mod=no
9837 output_verbose_link_cmd='echo'
9838 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9839 lt_int_apple_cc_single_mod=yes
9840 fi
9841 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9842 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9843 else
9844 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'
9845 fi
9846 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9847
9848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9849 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9850 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}'
9851 else
9852 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}'
9853 fi
9854 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}'
9855 hardcode_direct_CXX=no
9856 hardcode_automatic_CXX=yes
9857 hardcode_shlibpath_var_CXX=unsupported
9858 whole_archive_flag_spec_CXX='-all_load $convenience'
9859 link_all_deplibs_CXX=yes
9860 fi
9861 ;;
9862
9863 dgux*)
9864 case $cc_basename in
9865 ec++)
9866 # FIXME: insert proper C++ library support
9867 ld_shlibs_CXX=no
9868 ;;
9869 ghcx)
9870 # Green Hills C++ Compiler
9871 # FIXME: insert proper C++ library support
9872 ld_shlibs_CXX=no
9873 ;;
9874 *)
9875 # FIXME: insert proper C++ library support
9876 ld_shlibs_CXX=no
9877 ;;
9878 esac
9879 ;;
9880 freebsd12*)
9881 # C++ shared libraries reported to be fairly broken before switch to ELF
9882 ld_shlibs_CXX=no
9883 ;;
9884 freebsd-elf*)
9885 archive_cmds_need_lc_CXX=no
9886 ;;
9887 freebsd*)
9888 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9889 # conventions
9890 ld_shlibs_CXX=yes
9891 ;;
9892 gnu*)
9893 ;;
9894 hpux9*)
9895 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9896 hardcode_libdir_separator_CXX=:
9897 export_dynamic_flag_spec_CXX='${wl}-E'
9898 hardcode_direct_CXX=yes
9899 hardcode_minus_L_CXX=yes # Not in the search PATH,
9900 # but as the default
9901 # location of the library.
9902
9903 case $cc_basename in
9904 CC)
9905 # FIXME: insert proper C++ library support
9906 ld_shlibs_CXX=no
9907 ;;
9908 aCC)
9909 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'
9910 # Commands to make compiler produce verbose output that lists
9911 # what "hidden" libraries, object files and flags are used when
9912 # linking a shared library.
9913 #
9914 # There doesn't appear to be a way to prevent this compiler from
9915 # explicitly linking system object files so we need to strip them
9916 # from the output so that they don't get included in the library
9917 # dependencies.
9918 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'
9919 ;;
9920 *)
9921 if test "$GXX" = yes; then
9922 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'
9923 else
9924 # FIXME: insert proper C++ library support
9925 ld_shlibs_CXX=no
9926 fi
9927 ;;
9928 esac
9929 ;;
9930 hpux10*|hpux11*)
9931 if test $with_gnu_ld = no; then
9932 case "$host_cpu" in
9933 hppa*64*)
9934 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9935 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9936 hardcode_libdir_separator_CXX=:
9937 ;;
9938 ia64*)
9939 hardcode_libdir_flag_spec_CXX='-L$libdir'
9940 ;;
9941 *)
9942 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9943 hardcode_libdir_separator_CXX=:
9944 export_dynamic_flag_spec_CXX='${wl}-E'
9945 ;;
9946 esac
9947 fi
9948 case "$host_cpu" in
9949 hppa*64*)
9950 hardcode_direct_CXX=no
9951 hardcode_shlibpath_var_CXX=no
9952 ;;
9953 ia64*)
9954 hardcode_direct_CXX=no
9955 hardcode_shlibpath_var_CXX=no
9956 hardcode_minus_L_CXX=yes # Not in the search PATH,
9957 # but as the default
9958 # location of the library.
9959 ;;
9960 *)
9961 hardcode_direct_CXX=yes
9962 hardcode_minus_L_CXX=yes # Not in the search PATH,
9963 # but as the default
9964 # location of the library.
9965 ;;
9966 esac
9967
9968 case $cc_basename in
9969 CC)
9970 # FIXME: insert proper C++ library support
9971 ld_shlibs_CXX=no
9972 ;;
9973 aCC)
9974 case "$host_cpu" in
9975 hppa*64*|ia64*)
9976 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9977 ;;
9978 *)
9979 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9980 ;;
9981 esac
9982 # Commands to make compiler produce verbose output that lists
9983 # what "hidden" libraries, object files and flags are used when
9984 # linking a shared library.
9985 #
9986 # There doesn't appear to be a way to prevent this compiler from
9987 # explicitly linking system object files so we need to strip them
9988 # from the output so that they don't get included in the library
9989 # dependencies.
9990 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'
9991 ;;
9992 *)
9993 if test "$GXX" = yes; then
9994 if test $with_gnu_ld = no; then
9995 case "$host_cpu" in
9996 ia64*|hppa*64*)
9997 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9998 ;;
9999 *)
10000 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'
10001 ;;
10002 esac
10003 fi
10004 else
10005 # FIXME: insert proper C++ library support
10006 ld_shlibs_CXX=no
10007 fi
10008 ;;
10009 esac
10010 ;;
10011 irix5* | irix6*)
10012 case $cc_basename in
10013 CC)
10014 # SGI C++
10015 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'
10016
10017 # Archives containing C++ object files must be created using
10018 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10019 # necessary to make sure instantiated templates are included
10020 # in the archive.
10021 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10022 ;;
10023 *)
10024 if test "$GXX" = yes; then
10025 if test "$with_gnu_ld" = no; then
10026 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'
10027 else
10028 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'
10029 fi
10030 fi
10031 link_all_deplibs_CXX=yes
10032 ;;
10033 esac
10034 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10035 hardcode_libdir_separator_CXX=:
10036 ;;
10037 linux*)
10038 case $cc_basename in
10039 KCC)
10040 # Kuck and Associates, Inc. (KAI) C++ Compiler
10041
10042 # KCC will only create a shared library if the output file
10043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10044 # to its proper name (with version) after linking.
10045 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'
10046 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'
10047 # Commands to make compiler produce verbose output that lists
10048 # what "hidden" libraries, object files and flags are used when
10049 # linking a shared library.
10050 #
10051 # There doesn't appear to be a way to prevent this compiler from
10052 # explicitly linking system object files so we need to strip them
10053 # from the output so that they don't get included in the library
10054 # dependencies.
10055 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'
10056
10057 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10058 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10059
10060 # Archives containing C++ object files must be created using
10061 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10062 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10063 ;;
10064 icpc)
10065 # Intel C++
10066 with_gnu_ld=yes
10067 archive_cmds_need_lc_CXX=no
10068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069 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'
10070 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10071 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10072 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10073 ;;
10074 cxx)
10075 # Compaq C++
10076 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10077 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'
10078
10079 runpath_var=LD_RUN_PATH
10080 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10081 hardcode_libdir_separator_CXX=:
10082
10083 # Commands to make compiler produce verbose output that lists
10084 # what "hidden" libraries, object files and flags are used when
10085 # linking a shared library.
10086 #
10087 # There doesn't appear to be a way to prevent this compiler from
10088 # explicitly linking system object files so we need to strip them
10089 # from the output so that they don't get included in the library
10090 # dependencies.
10091 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'
10092 ;;
10093 esac
10094 ;;
10095 lynxos*)
10096 # FIXME: insert proper C++ library support
10097 ld_shlibs_CXX=no
10098 ;;
10099 m88k*)
10100 # FIXME: insert proper C++ library support
10101 ld_shlibs_CXX=no
10102 ;;
10103 mvs*)
10104 case $cc_basename in
10105 cxx)
10106 # FIXME: insert proper C++ library support
10107 ld_shlibs_CXX=no
10108 ;;
10109 *)
10110 # FIXME: insert proper C++ library support
10111 ld_shlibs_CXX=no
10112 ;;
10113 esac
10114 ;;
10115 netbsd*)
10116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10117 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10118 wlarc=
10119 hardcode_libdir_flag_spec_CXX='-R$libdir'
10120 hardcode_direct_CXX=yes
10121 hardcode_shlibpath_var_CXX=no
10122 fi
10123 # Workaround some broken pre-1.5 toolchains
10124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10125 ;;
10126 osf3*)
10127 case $cc_basename in
10128 KCC)
10129 # Kuck and Associates, Inc. (KAI) C++ Compiler
10130
10131 # KCC will only create a shared library if the output file
10132 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10133 # to its proper name (with version) after linking.
10134 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'
10135
10136 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10137 hardcode_libdir_separator_CXX=:
10138
10139 # Archives containing C++ object files must be created using
10140 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10141 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10142
10143 ;;
10144 RCC)
10145 # Rational C++ 2.4.1
10146 # FIXME: insert proper C++ library support
10147 ld_shlibs_CXX=no
10148 ;;
10149 cxx)
10150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10151 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'
10152
10153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10154 hardcode_libdir_separator_CXX=:
10155
10156 # Commands to make compiler produce verbose output that lists
10157 # what "hidden" libraries, object files and flags are used when
10158 # linking a shared library.
10159 #
10160 # There doesn't appear to be a way to prevent this compiler from
10161 # explicitly linking system object files so we need to strip them
10162 # from the output so that they don't get included in the library
10163 # dependencies.
10164 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'
10165 ;;
10166 *)
10167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10168 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10169 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'
10170
10171 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10172 hardcode_libdir_separator_CXX=:
10173
10174 # Commands to make compiler produce verbose output that lists
10175 # what "hidden" libraries, object files and flags are used when
10176 # linking a shared library.
10177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10178
10179 else
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10182 fi
10183 ;;
10184 esac
10185 ;;
10186 osf4* | osf5*)
10187 case $cc_basename in
10188 KCC)
10189 # Kuck and Associates, Inc. (KAI) C++ Compiler
10190
10191 # KCC will only create a shared library if the output file
10192 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10193 # to its proper name (with version) after linking.
10194 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'
10195
10196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10197 hardcode_libdir_separator_CXX=:
10198
10199 # Archives containing C++ object files must be created using
10200 # the KAI C++ compiler.
10201 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10202 ;;
10203 RCC)
10204 # Rational C++ 2.4.1
10205 # FIXME: insert proper C++ library support
10206 ld_shlibs_CXX=no
10207 ;;
10208 cxx)
10209 allow_undefined_flag_CXX=' -expect_unresolved \*'
10210 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'
10211 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10212 echo "-hidden">> $lib.exp~
10213 $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~
10214 $rm $lib.exp'
10215
10216 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10217 hardcode_libdir_separator_CXX=:
10218
10219 # Commands to make compiler produce verbose output that lists
10220 # what "hidden" libraries, object files and flags are used when
10221 # linking a shared library.
10222 #
10223 # There doesn't appear to be a way to prevent this compiler from
10224 # explicitly linking system object files so we need to strip them
10225 # from the output so that they don't get included in the library
10226 # dependencies.
10227 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'
10228 ;;
10229 *)
10230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10231 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10232 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'
10233
10234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10235 hardcode_libdir_separator_CXX=:
10236
10237 # Commands to make compiler produce verbose output that lists
10238 # what "hidden" libraries, object files and flags are used when
10239 # linking a shared library.
10240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10241
10242 else
10243 # FIXME: insert proper C++ library support
10244 ld_shlibs_CXX=no
10245 fi
10246 ;;
10247 esac
10248 ;;
10249 psos*)
10250 # FIXME: insert proper C++ library support
10251 ld_shlibs_CXX=no
10252 ;;
10253 sco*)
10254 archive_cmds_need_lc_CXX=no
10255 case $cc_basename in
10256 CC)
10257 # FIXME: insert proper C++ library support
10258 ld_shlibs_CXX=no
10259 ;;
10260 *)
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10263 ;;
10264 esac
10265 ;;
10266 sunos4*)
10267 case $cc_basename in
10268 CC)
10269 # Sun C++ 4.x
10270 # FIXME: insert proper C++ library support
10271 ld_shlibs_CXX=no
10272 ;;
10273 lcc)
10274 # Lucid
10275 # FIXME: insert proper C++ library support
10276 ld_shlibs_CXX=no
10277 ;;
10278 *)
10279 # FIXME: insert proper C++ library support
10280 ld_shlibs_CXX=no
10281 ;;
10282 esac
10283 ;;
10284 solaris*)
10285 case $cc_basename in
10286 CC)
10287 # Sun C++ 4.2, 5.x and Centerline C++
10288 no_undefined_flag_CXX=' -zdefs'
10289 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10290 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10291 $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'
10292
10293 hardcode_libdir_flag_spec_CXX='-R$libdir'
10294 hardcode_shlibpath_var_CXX=no
10295 case $host_os in
10296 solaris2.0-5 | solaris2.0-5.*) ;;
10297 *)
10298 # The C++ compiler is used as linker so we must use $wl
10299 # flag to pass the commands to the underlying system
10300 # linker.
10301 # Supported since Solaris 2.6 (maybe 2.5.1?)
10302 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10303 ;;
10304 esac
10305 link_all_deplibs_CXX=yes
10306
10307 # Commands to make compiler produce verbose output that lists
10308 # what "hidden" libraries, object files and flags are used when
10309 # linking a shared library.
10310 #
10311 # There doesn't appear to be a way to prevent this compiler from
10312 # explicitly linking system object files so we need to strip them
10313 # from the output so that they don't get included in the library
10314 # dependencies.
10315 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'
10316
10317 # Archives containing C++ object files must be created using
10318 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10319 # necessary to make sure instantiated templates are included
10320 # in the archive.
10321 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10322 ;;
10323 gcx)
10324 # Green Hills C++ Compiler
10325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10326
10327 # The C++ compiler must be used to create the archive.
10328 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10329 ;;
10330 *)
10331 # GNU C++ compiler with Solaris linker
10332 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10333 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10334 if $CC --version | grep -v '^2\.7' > /dev/null; then
10335 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10336 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10337 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10338
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10342 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10343 else
10344 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10345 # platform.
10346 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10347 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10348 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10349
10350 # Commands to make compiler produce verbose output that lists
10351 # what "hidden" libraries, object files and flags are used when
10352 # linking a shared library.
10353 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10354 fi
10355
10356 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10357 fi
10358 ;;
10359 esac
10360 ;;
10361 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10362 archive_cmds_need_lc_CXX=no
10363 ;;
10364 tandem*)
10365 case $cc_basename in
10366 NCC)
10367 # NonStop-UX NCC 3.20
10368 # FIXME: insert proper C++ library support
10369 ld_shlibs_CXX=no
10370 ;;
10371 *)
10372 # FIXME: insert proper C++ library support
10373 ld_shlibs_CXX=no
10374 ;;
10375 esac
10376 ;;
10377 vxworks*)
10378 # FIXME: insert proper C++ library support
10379 ld_shlibs_CXX=no
10380 ;;
10381 *)
10382 # FIXME: insert proper C++ library support
10383 ld_shlibs_CXX=no
10384 ;;
10385esac
10386echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10387echo "${ECHO_T}$ld_shlibs_CXX" >&6
10388test "$ld_shlibs_CXX" = no && can_build_shared=no
10389
10390GCC_CXX="$GXX"
10391LD_CXX="$LD"
10392
10393## CAVEAT EMPTOR:
10394## There is no encapsulation within the following macros, do not change
10395## the running order or otherwise move them around unless you know exactly
10396## what you are doing...
10397
10398cat > conftest.$ac_ext <<EOF
10399class Foo
10400{
10401public:
10402 Foo (void) { a = 0; }
10403private:
10404 int a;
10405};
10406EOF
10407
10408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; then
10413 # Parse the compiler output and extract the necessary
10414 # objects, libraries and library flags.
10415
10416 # Sentinel used to keep track of whether or not we are before
10417 # the conftest object file.
10418 pre_test_object_deps_done=no
10419
10420 # The `*' in the case matches for architectures that use `case' in
10421 # $output_verbose_cmd can trigger glob expansion during the loop
10422 # eval without this substitution.
10423 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10424
10425 for p in `eval $output_verbose_link_cmd`; do
10426 case $p in
10427
10428 -L* | -R* | -l*)
10429 # Some compilers place space between "-{L,R}" and the path.
10430 # Remove the space.
10431 if test $p = "-L" \
10432 || test $p = "-R"; then
10433 prev=$p
10434 continue
10435 else
10436 prev=
10437 fi
10438
10439 if test "$pre_test_object_deps_done" = no; then
10440 case $p in
10441 -L* | -R*)
10442 # Internal compiler library paths should come after those
10443 # provided the user. The postdeps already come after the
10444 # user supplied libs so there is no need to process them.
10445 if test -z "$compiler_lib_search_path_CXX"; then
10446 compiler_lib_search_path_CXX="${prev}${p}"
10447 else
10448 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10449 fi
10450 ;;
10451 # The "-l" case would never come before the object being
10452 # linked, so don't bother handling this case.
10453 esac
10454 else
10455 if test -z "$postdeps_CXX"; then
10456 postdeps_CXX="${prev}${p}"
10457 else
10458 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10459 fi
10460 fi
10461 ;;
10462
10463 *.$objext)
10464 # This assumes that the test object file only shows up
10465 # once in the compiler output.
10466 if test "$p" = "conftest.$objext"; then
10467 pre_test_object_deps_done=yes
10468 continue
10469 fi
10470
10471 if test "$pre_test_object_deps_done" = no; then
10472 if test -z "$predep_objects_CXX"; then
10473 predep_objects_CXX="$p"
10474 else
10475 predep_objects_CXX="$predep_objects_CXX $p"
10476 fi
10477 else
10478 if test -z "$postdep_objects_CXX"; then
10479 postdep_objects_CXX="$p"
10480 else
10481 postdep_objects_CXX="$postdep_objects_CXX $p"
10482 fi
10483 fi
10484 ;;
10485
10486 *) ;; # Ignore the rest.
10487
10488 esac
10489 done
10490
10491 # Clean up.
10492 rm -f a.out a.exe
10493else
10494 echo "libtool.m4: error: problem compiling CXX test program"
10495fi
10496
10497$rm -f confest.$objext
10498
10499case " $postdeps_CXX " in
10500*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10501esac
10502
10503lt_prog_compiler_wl_CXX=
10504lt_prog_compiler_pic_CXX=
10505lt_prog_compiler_static_CXX=
10506
10507echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10508echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10509
10510 # C++ specific cases for pic, static, wl, etc.
10511 if test "$GXX" = yes; then
10512 lt_prog_compiler_wl_CXX='-Wl,'
10513 lt_prog_compiler_static_CXX='-static'
10514
10515 case $host_os in
10516 aix*)
10517 # All AIX code is PIC.
10518 if test "$host_cpu" = ia64; then
10519 # AIX 5 now supports IA64 processor
10520 lt_prog_compiler_static_CXX='-Bstatic'
10521 fi
10522 ;;
10523 amigaos*)
10524 # FIXME: we need at least 68020 code to build shared libraries, but
10525 # adding the `-m68020' flag to GCC prevents building anything better,
10526 # like `-m68040'.
10527 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10528 ;;
10529 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10530 # PIC is the default for these OSes.
10531 ;;
10532 mingw* | os2* | pw32*)
10533 # This hack is so that the source file can tell whether it is being
10534 # built for inclusion in a dll (and should export symbols for example).
10535 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10536 ;;
10537 darwin* | rhapsody*)
10538 # PIC is the default on this platform
10539 # Common symbols not allowed in MH_DYLIB files
10540 lt_prog_compiler_pic_CXX='-fno-common'
10541 ;;
10542 *djgpp*)
10543 # DJGPP does not support shared libraries at all
10544 lt_prog_compiler_pic_CXX=
10545 ;;
10546 sysv4*MP*)
10547 if test -d /usr/nec; then
10548 lt_prog_compiler_pic_CXX=-Kconform_pic
10549 fi
10550 ;;
10551 hpux*)
10552 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10553 # not for PA HP-UX.
10554 case "$host_cpu" in
10555 hppa*64*|ia64*)
10556 ;;
10557 *)
10558 lt_prog_compiler_pic_CXX='-fPIC'
10559 ;;
10560 esac
10561 ;;
10562 *)
10563 lt_prog_compiler_pic_CXX='-fPIC'
10564 ;;
10565 esac
10566 else
10567 case $host_os in
10568 aix4* | aix5*)
10569 # All AIX code is PIC.
10570 if test "$host_cpu" = ia64; then
10571 # AIX 5 now supports IA64 processor
10572 lt_prog_compiler_static_CXX='-Bstatic'
10573 else
10574 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10575 fi
10576 ;;
10577 chorus*)
10578 case $cc_basename in
10579 cxch68)
10580 # Green Hills C++ Compiler
10581 # _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"
10582 ;;
10583 esac
10584 ;;
10585 dgux*)
10586 case $cc_basename in
10587 ec++)
10588 lt_prog_compiler_pic_CXX='-KPIC'
10589 ;;
10590 ghcx)
10591 # Green Hills C++ Compiler
10592 lt_prog_compiler_pic_CXX='-pic'
10593 ;;
10594 *)
10595 ;;
10596 esac
10597 ;;
10598 freebsd*)
10599 # FreeBSD uses GNU C++
10600 ;;
10601 hpux9* | hpux10* | hpux11*)
10602 case $cc_basename in
10603 CC)
10604 lt_prog_compiler_wl_CXX='-Wl,'
10605 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10606 if test "$host_cpu" != ia64; then
10607 lt_prog_compiler_pic_CXX='+Z'
10608 fi
10609 ;;
10610 aCC)
10611 lt_prog_compiler_wl_CXX='-Wl,'
10612 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10613 case "$host_cpu" in
10614 hppa*64*|ia64*)
10615 # +Z the default
10616 ;;
10617 *)
10618 lt_prog_compiler_pic_CXX='+Z'
10619 ;;
10620 esac
10621 ;;
10622 *)
10623 ;;
10624 esac
10625 ;;
10626 irix5* | irix6* | nonstopux*)
10627 case $cc_basename in
10628 CC)
10629 lt_prog_compiler_wl_CXX='-Wl,'
10630 lt_prog_compiler_static_CXX='-non_shared'
10631 # CC pic flag -KPIC is the default.
10632 ;;
10633 *)
10634 ;;
10635 esac
10636 ;;
10637 linux*)
10638 case $cc_basename in
10639 KCC)
10640 # KAI C++ Compiler
10641 lt_prog_compiler_wl_CXX='--backend -Wl,'
10642 lt_prog_compiler_pic_CXX='-fPIC'
10643 ;;
10644 icpc)
10645 # Intel C++
10646 lt_prog_compiler_wl_CXX='-Wl,'
10647 lt_prog_compiler_pic_CXX='-KPIC'
10648 lt_prog_compiler_static_CXX='-static'
10649 ;;
10650 cxx)
10651 # Compaq C++
10652 # Make sure the PIC flag is empty. It appears that all Alpha
10653 # Linux and Compaq Tru64 Unix objects are PIC.
10654 lt_prog_compiler_pic_CXX=
10655 lt_prog_compiler_static_CXX='-non_shared'
10656 ;;
10657 *)
10658 ;;
10659 esac
10660 ;;
10661 lynxos*)
10662 ;;
10663 m88k*)
10664 ;;
10665 mvs*)
10666 case $cc_basename in
10667 cxx)
10668 lt_prog_compiler_pic_CXX='-W c,exportall'
10669 ;;
10670 *)
10671 ;;
10672 esac
10673 ;;
10674 netbsd*)
10675 ;;
10676 osf3* | osf4* | osf5*)
10677 case $cc_basename in
10678 KCC)
10679 lt_prog_compiler_wl_CXX='--backend -Wl,'
10680 ;;
10681 RCC)
10682 # Rational C++ 2.4.1
10683 lt_prog_compiler_pic_CXX='-pic'
10684 ;;
10685 cxx)
10686 # Digital/Compaq C++
10687 lt_prog_compiler_wl_CXX='-Wl,'
10688 # Make sure the PIC flag is empty. It appears that all Alpha
10689 # Linux and Compaq Tru64 Unix objects are PIC.
10690 lt_prog_compiler_pic_CXX=
10691 lt_prog_compiler_static_CXX='-non_shared'
10692 ;;
10693 *)
10694 ;;
10695 esac
10696 ;;
10697 psos*)
10698 ;;
10699 sco*)
10700 case $cc_basename in
10701 CC)
10702 lt_prog_compiler_pic_CXX='-fPIC'
10703 ;;
10704 *)
10705 ;;
10706 esac
10707 ;;
10708 solaris*)
10709 case $cc_basename in
10710 CC)
10711 # Sun C++ 4.2, 5.x and Centerline C++
10712 lt_prog_compiler_pic_CXX='-KPIC'
10713 lt_prog_compiler_static_CXX='-Bstatic'
10714 lt_prog_compiler_wl_CXX='-Qoption ld '
10715 ;;
10716 gcx)
10717 # Green Hills C++ Compiler
10718 lt_prog_compiler_pic_CXX='-PIC'
10719 ;;
10720 *)
10721 ;;
10722 esac
10723 ;;
10724 sunos4*)
10725 case $cc_basename in
10726 CC)
10727 # Sun C++ 4.x
10728 lt_prog_compiler_pic_CXX='-pic'
10729 lt_prog_compiler_static_CXX='-Bstatic'
10730 ;;
10731 lcc)
10732 # Lucid
10733 lt_prog_compiler_pic_CXX='-pic'
10734 ;;
10735 *)
10736 ;;
10737 esac
10738 ;;
10739 tandem*)
10740 case $cc_basename in
10741 NCC)
10742 # NonStop-UX NCC 3.20
10743 lt_prog_compiler_pic_CXX='-KPIC'
10744 ;;
10745 *)
10746 ;;
10747 esac
10748 ;;
10749 unixware*)
10750 ;;
10751 vxworks*)
10752 ;;
10753 *)
10754 lt_prog_compiler_can_build_shared_CXX=no
10755 ;;
10756 esac
10757 fi
10758
10759echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10760echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10761
10762#
10763# Check to make sure the PIC flag actually works.
10764#
10765if test -n "$lt_prog_compiler_pic_CXX"; then
10766 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10767echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10768if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770else
10771 lt_prog_compiler_pic_works_CXX=no
10772 ac_outfile=conftest.$ac_objext
10773 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10774 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10775 # Insert the option either (1) after the last *FLAGS variable, or
10776 # (2) before a word containing "conftest.", or (3) at the end.
10777 # Note that $ac_compile itself does not contain backslashes and begins
10778 # with a dollar sign (not a hyphen), so the echo should work correctly.
10779 # The option is referenced via a variable to avoid confusing sed.
10780 lt_compile=`echo "$ac_compile" | $SED \
10781 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10783 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000010784 (eval echo "\"\$as_me:10781: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010785 (eval "$lt_compile" 2>conftest.err)
10786 ac_status=$?
10787 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000010788 echo "$as_me:10785: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010789 if (exit $ac_status) && test -s "$ac_outfile"; then
10790 # The compiler can only warn and ignore the option if not recognized
10791 # So say no if there are warnings
10792 if test ! -s conftest.err; then
10793 lt_prog_compiler_pic_works_CXX=yes
10794 fi
10795 fi
10796 $rm conftest*
10797
10798fi
10799echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10800echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10801
10802if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10803 case $lt_prog_compiler_pic_CXX in
10804 "" | " "*) ;;
10805 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10806 esac
10807else
10808 lt_prog_compiler_pic_CXX=
10809 lt_prog_compiler_can_build_shared_CXX=no
10810fi
10811
10812fi
10813case "$host_os" in
10814 # For platforms which do not support PIC, -DPIC is meaningless:
10815 *djgpp*)
10816 lt_prog_compiler_pic_CXX=
10817 ;;
10818 *)
10819 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10820 ;;
10821esac
10822
10823echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10824echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10825if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 lt_cv_prog_compiler_c_o_CXX=no
10829 $rm -r conftest 2>/dev/null
10830 mkdir conftest
10831 cd conftest
10832 mkdir out
10833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10834
10835 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10836 # that will create temporary files in the current directory regardless of
10837 # the output directory. Thus, making CWD read-only will cause this test
10838 # to fail, enabling locking or at least warning the user not to do parallel
10839 # builds.
10840 chmod -w .
10841
10842 lt_compiler_flag="-o out/conftest2.$ac_objext"
10843 # Insert the option either (1) after the last *FLAGS variable, or
10844 # (2) before a word containing "conftest.", or (3) at the end.
10845 # Note that $ac_compile itself does not contain backslashes and begins
10846 # with a dollar sign (not a hyphen), so the echo should work correctly.
10847 lt_compile=`echo "$ac_compile" | $SED \
10848 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10850 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000010851 (eval echo "\"\$as_me:10848: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010852 (eval "$lt_compile" 2>out/conftest.err)
10853 ac_status=$?
10854 cat out/conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000010855 echo "$as_me:10852: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10857 then
10858 # The compiler can only warn and ignore the option if not recognized
10859 # So say no if there are warnings
10860 if test ! -s out/conftest.err; then
10861 lt_cv_prog_compiler_c_o_CXX=yes
10862 fi
10863 fi
10864 chmod u+w .
10865 $rm conftest* out/*
10866 rmdir out
10867 cd ..
10868 rmdir conftest
10869 $rm conftest*
10870
10871fi
10872echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10873echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10874
10875
10876hard_links="nottested"
10877if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10878 # do not overwrite the value of need_locks provided by the user
10879 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10880echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10881 hard_links=yes
10882 $rm conftest*
10883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10884 touch conftest.a
10885 ln conftest.a conftest.b 2>&5 || hard_links=no
10886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10887 echo "$as_me:$LINENO: result: $hard_links" >&5
10888echo "${ECHO_T}$hard_links" >&6
10889 if test "$hard_links" = no; then
10890 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10891echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10892 need_locks=warn
10893 fi
10894else
10895 need_locks=no
10896fi
10897
10898echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10899echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10900
10901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10902 case $host_os in
10903 aix4* | aix5*)
10904 # If we're using GNU nm, then we don't want the "-C" option.
10905 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10906 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10907 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'
10908 else
10909 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'
10910 fi
10911 ;;
10912 pw32*)
10913 export_symbols_cmds_CXX="$ltdll_cmds"
10914 ;;
10915 cygwin* | mingw*)
10916 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10917 ;;
10918 *)
10919 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10920 ;;
10921 esac
10922
10923echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10924echo "${ECHO_T}$ld_shlibs_CXX" >&6
10925test "$ld_shlibs_CXX" = no && can_build_shared=no
10926
10927variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10928if test "$GCC" = yes; then
10929 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10930fi
10931
10932#
10933# Do we need to explicitly link libc?
10934#
10935case "x$archive_cmds_need_lc_CXX" in
10936x|xyes)
10937 # Assume -lc should be added
10938 archive_cmds_need_lc_CXX=yes
10939
10940 if test "$enable_shared" = yes && test "$GCC" = yes; then
10941 case $archive_cmds_CXX in
10942 *'~'*)
10943 # FIXME: we may have to deal with multi-command sequences.
10944 ;;
10945 '$CC '*)
10946 # Test whether the compiler implicitly links with -lc since on some
10947 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10948 # to ld, don't add -lc before -lgcc.
10949 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10950echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10951 $rm conftest*
10952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10953
10954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10955 (eval $ac_compile) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } 2>conftest.err; then
10959 soname=conftest
10960 lib=conftest
10961 libobjs=conftest.$ac_objext
10962 deplibs=
10963 wl=$lt_prog_compiler_wl_CXX
10964 compiler_flags=-v
10965 linker_flags=-v
10966 verstring=
10967 output_objdir=.
10968 libname=conftest
10969 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10970 allow_undefined_flag_CXX=
10971 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10972 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }
10976 then
10977 archive_cmds_need_lc_CXX=no
10978 else
10979 archive_cmds_need_lc_CXX=yes
10980 fi
10981 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10982 else
10983 cat conftest.err 1>&5
10984 fi
10985 $rm conftest*
10986 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10987echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10988 ;;
10989 esac
10990 fi
10991 ;;
10992esac
10993
10994echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10995echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10996hardcode_action_CXX=
10997if test -n "$hardcode_libdir_flag_spec_CXX" || \
10998 test -n "$runpath_var CXX" || \
10999 test "X$hardcode_automatic_CXX"="Xyes" ; then
11000
11001 # We can hardcode non-existant directories.
11002 if test "$hardcode_direct_CXX" != no &&
11003 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11004 # have to relink, otherwise we might link with an installed library
11005 # when we should be linking with a yet-to-be-installed one
11006 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11007 test "$hardcode_minus_L_CXX" != no; then
11008 # Linking always hardcodes the temporary library directory.
11009 hardcode_action_CXX=relink
11010 else
11011 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11012 hardcode_action_CXX=immediate
11013 fi
11014else
11015 # We cannot hardcode anything, or else we can only hardcode existing
11016 # directories.
11017 hardcode_action_CXX=unsupported
11018fi
11019echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11020echo "${ECHO_T}$hardcode_action_CXX" >&6
11021
11022if test "$hardcode_action_CXX" = relink; then
11023 # Fast installation is not supported
11024 enable_fast_install=no
11025elif test "$shlibpath_overrides_runpath" = yes ||
11026 test "$enable_shared" = no; then
11027 # Fast installation is not necessary
11028 enable_fast_install=needless
11029fi
11030
11031striplib=
11032old_striplib=
11033echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11034echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11035if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11036 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11037 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11038 echo "$as_me:$LINENO: result: yes" >&5
11039echo "${ECHO_T}yes" >&6
11040else
11041# FIXME - insert some real tests, host_os isn't really good enough
11042 case $host_os in
11043 darwin*)
11044 if test -n "$STRIP" ; then
11045 striplib="$STRIP -x"
11046 echo "$as_me:$LINENO: result: yes" >&5
11047echo "${ECHO_T}yes" >&6
11048 else
11049 echo "$as_me:$LINENO: result: no" >&5
11050echo "${ECHO_T}no" >&6
11051fi
11052 ;;
11053 *)
11054 echo "$as_me:$LINENO: result: no" >&5
11055echo "${ECHO_T}no" >&6
11056 ;;
11057 esac
11058fi
11059
11060echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11061echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11062library_names_spec=
11063libname_spec='lib$name'
11064soname_spec=
11065shrext=".so"
11066postinstall_cmds=
11067postuninstall_cmds=
11068finish_cmds=
11069finish_eval=
11070shlibpath_var=
11071shlibpath_overrides_runpath=unknown
11072version_type=none
11073dynamic_linker="$host_os ld.so"
11074sys_lib_dlsearch_path_spec="/lib /usr/lib"
11075if test "$GCC" = yes; then
11076 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11077 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11078 # if the path contains ";" then we assume it to be the separator
11079 # otherwise default to the standard path separator (i.e. ":") - it is
11080 # assumed that no part of a normal pathname contains ";" but that should
11081 # okay in the real world where ";" in dirpaths is itself problematic.
11082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11083 else
11084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11085 fi
11086else
11087 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11088fi
11089need_lib_prefix=unknown
11090hardcode_into_libs=no
11091
11092# when you set need_version to no, make sure it does not cause -set_version
11093# flags to be left without arguments
11094need_version=unknown
11095
11096case $host_os in
11097aix3*)
11098 version_type=linux
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11100 shlibpath_var=LIBPATH
11101
11102 # AIX 3 has no versioning support, so we append a major version to the name.
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 ;;
11105
11106aix4* | aix5*)
11107 version_type=linux
11108 need_lib_prefix=no
11109 need_version=no
11110 hardcode_into_libs=yes
11111 if test "$host_cpu" = ia64; then
11112 # AIX 5 supports IA64
11113 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 else
11116 # With GCC up to 2.95.x, collect2 would create an import file
11117 # for dependence libraries. The import file would start with
11118 # the line `#! .'. This would cause the generated library to
11119 # depend on `.', always an invalid library. This was fixed in
11120 # development snapshots of GCC prior to 3.0.
11121 case $host_os in
11122 aix4 | aix4.[01] | aix4.[01].*)
11123 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11124 echo ' yes '
11125 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11126 :
11127 else
11128 can_build_shared=no
11129 fi
11130 ;;
11131 esac
11132 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11133 # soname into executable. Probably we can add versioning support to
11134 # collect2, so additional links can be useful in future.
11135 if test "$aix_use_runtimelinking" = yes; then
11136 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11137 # instead of lib<name>.a to let people know that these are not
11138 # typical AIX shared libraries.
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 else
11141 # We preserve .a as extension for shared libraries through AIX4.2
11142 # and later when we are not doing run time linking.
11143 library_names_spec='${libname}${release}.a $libname.a'
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 fi
11146 shlibpath_var=LIBPATH
11147 fi
11148 ;;
11149
11150amigaos*)
11151 library_names_spec='$libname.ixlibrary $libname.a'
11152 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11153 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'
11154 ;;
11155
11156beos*)
11157 library_names_spec='${libname}${shared_ext}'
11158 dynamic_linker="$host_os ld.so"
11159 shlibpath_var=LIBRARY_PATH
11160 ;;
11161
11162bsdi4*)
11163 version_type=linux
11164 need_version=no
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11170 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11171 # the default ld.so.conf also contains /usr/contrib/lib and
11172 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11173 # libtool to hard-code these into programs
11174 ;;
11175
11176cygwin* | mingw* | pw32*)
11177 version_type=windows
11178 shrext=".dll"
11179 need_version=no
11180 need_lib_prefix=no
11181
11182 case $GCC,$host_os in
11183 yes,cygwin* | yes,mingw* | yes,pw32*)
11184 library_names_spec='$libname.dll.a'
11185 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11186 postinstall_cmds='base_file=`basename \${file}`~
11187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11188 dldir=$destdir/`dirname \$dlpath`~
11189 test -d \$dldir || mkdir -p \$dldir~
11190 $install_prog $dir/$dlname \$dldir/$dlname'
11191 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11192 dlpath=$dir/\$dldll~
11193 $rm \$dlpath'
11194 shlibpath_overrides_runpath=yes
11195
11196 case $host_os in
11197 cygwin*)
11198 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11199 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11200 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11201 ;;
11202 mingw*)
11203 # MinGW DLLs use traditional 'lib' prefix
11204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11205 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11206 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11207 # It is most probably a Windows format PATH printed by
11208 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11209 # path with ; separators, and with drive letters. We can handle the
11210 # drive letters (cygwin fileutils understands them), so leave them,
11211 # especially as we might pass files found there to a mingw objdump,
11212 # which wouldn't understand a cygwinified path. Ahh.
11213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11214 else
11215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11216 fi
11217 ;;
11218 pw32*)
11219 # pw32 DLLs use 'pw' prefix rather than 'lib'
11220 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11221 ;;
11222 esac
11223 ;;
11224
11225 *)
11226 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11227 ;;
11228 esac
11229 dynamic_linker='Win32 ld.exe'
11230 # FIXME: first we should search . and the directory the executable is in
11231 shlibpath_var=PATH
11232 ;;
11233
11234darwin* | rhapsody*)
11235 dynamic_linker="$host_os dyld"
11236 version_type=darwin
11237 need_lib_prefix=no
11238 need_version=no
11239 # FIXME: Relying on posixy $() will cause problems for
11240 # cross-compilation, but unfortunately the echo tests do not
11241 # yet detect zsh echo's removal of \ escapes.
11242 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11243 soname_spec='${libname}${release}${major}$shared_ext'
11244 shlibpath_overrides_runpath=yes
11245 shlibpath_var=DYLD_LIBRARY_PATH
11246 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11247 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11248 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11249 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"`
11250 fi
11251 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11252 ;;
11253
11254dgux*)
11255 version_type=linux
11256 need_lib_prefix=no
11257 need_version=no
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 ;;
11262
11263freebsd1*)
11264 dynamic_linker=no
11265 ;;
11266
11267freebsd*)
11268 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11269 version_type=freebsd-$objformat
11270 case $version_type in
11271 freebsd-elf*)
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11273 need_version=no
11274 need_lib_prefix=no
11275 ;;
11276 freebsd-*)
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11278 need_version=yes
11279 ;;
11280 esac
11281 shlibpath_var=LD_LIBRARY_PATH
11282 case $host_os in
11283 freebsd2*)
11284 shlibpath_overrides_runpath=yes
11285 ;;
11286 freebsd3.01* | freebsdelf3.01*)
11287 shlibpath_overrides_runpath=yes
11288 hardcode_into_libs=yes
11289 ;;
11290 *) # from 3.2 on
11291 shlibpath_overrides_runpath=no
11292 hardcode_into_libs=yes
11293 ;;
11294 esac
11295 ;;
11296
11297gnu*)
11298 version_type=linux
11299 need_lib_prefix=no
11300 need_version=no
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 hardcode_into_libs=yes
11305 ;;
11306
11307hpux9* | hpux10* | hpux11*)
11308 # Give a soname corresponding to the major version so that dld.sl refuses to
11309 # link against other versions.
11310 version_type=sunos
11311 need_lib_prefix=no
11312 need_version=no
11313 case "$host_cpu" in
11314 ia64*)
11315 shrext='.so'
11316 hardcode_into_libs=yes
11317 dynamic_linker="$host_os dld.so"
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 if test "X$HPUX_IA64_MODE" = X32; then
11323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11324 else
11325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11326 fi
11327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11328 ;;
11329 hppa*64*)
11330 shrext='.sl'
11331 hardcode_into_libs=yes
11332 dynamic_linker="$host_os dld.sl"
11333 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11339 ;;
11340 *)
11341 shrext='.sl'
11342 dynamic_linker="$host_os dld.sl"
11343 shlibpath_var=SHLIB_PATH
11344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 ;;
11348 esac
11349 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11350 postinstall_cmds='chmod 555 $lib'
11351 ;;
11352
11353irix5* | irix6* | nonstopux*)
11354 case $host_os in
11355 nonstopux*) version_type=nonstopux ;;
11356 *)
11357 if test "$lt_cv_prog_gnu_ld" = yes; then
11358 version_type=linux
11359 else
11360 version_type=irix
11361 fi ;;
11362 esac
11363 need_lib_prefix=no
11364 need_version=no
11365 soname_spec='${libname}${release}${shared_ext}$major'
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11367 case $host_os in
11368 irix5* | nonstopux*)
11369 libsuff= shlibsuff=
11370 ;;
11371 *)
11372 case $LD in # libtool.m4 will add one of these switches to LD
11373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11374 libsuff= shlibsuff= libmagic=32-bit;;
11375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11376 libsuff=32 shlibsuff=N32 libmagic=N32;;
11377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11379 *) libsuff= shlibsuff= libmagic=never-match;;
11380 esac
11381 ;;
11382 esac
11383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11384 shlibpath_overrides_runpath=no
11385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11387 hardcode_into_libs=yes
11388 ;;
11389
11390# No shared lib support for Linux oldld, aout, or coff.
11391linux*oldld* | linux*aout* | linux*coff*)
11392 dynamic_linker=no
11393 ;;
11394
11395# This must be Linux ELF.
11396linux*)
11397 version_type=linux
11398 need_lib_prefix=no
11399 need_version=no
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11401 soname_spec='${libname}${release}${shared_ext}$major'
11402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11403 shlibpath_var=LD_LIBRARY_PATH
11404 shlibpath_overrides_runpath=no
11405 # This implies no fast_install, which is unacceptable.
11406 # Some rework will be needed to allow for fast_install
11407 # before this can be enabled.
11408 hardcode_into_libs=yes
11409
11410 # We used to test for /lib/ld.so.1 and disable shared libraries on
11411 # powerpc, because MkLinux only supported shared libraries with the
11412 # GNU dynamic linker. Since this was broken with cross compilers,
11413 # most powerpc-linux boxes support dynamic linking these days and
11414 # people can always --disable-shared, the test was removed, and we
11415 # assume the GNU/Linux dynamic linker is in use.
11416 dynamic_linker='GNU/Linux ld.so'
11417 ;;
11418
11419netbsd*)
11420 version_type=sunos
11421 need_lib_prefix=no
11422 need_version=no
11423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11426 dynamic_linker='NetBSD (a.out) ld.so'
11427 else
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 dynamic_linker='NetBSD ld.elf_so'
11431 fi
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 hardcode_into_libs=yes
11435 ;;
11436
11437newsos6)
11438 version_type=linux
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=yes
11442 ;;
11443
11444nto-qnx)
11445 version_type=linux
11446 need_lib_prefix=no
11447 need_version=no
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 ;;
11453
11454openbsd*)
11455 version_type=sunos
11456 need_lib_prefix=no
11457 need_version=no
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11462 case $host_os in
11463 openbsd2.[89] | openbsd2.[89].*)
11464 shlibpath_overrides_runpath=no
11465 ;;
11466 *)
11467 shlibpath_overrides_runpath=yes
11468 ;;
11469 esac
11470 else
11471 shlibpath_overrides_runpath=yes
11472 fi
11473 ;;
11474
11475os2*)
11476 libname_spec='$name'
11477 shrext=".dll"
11478 need_lib_prefix=no
11479 library_names_spec='$libname${shared_ext} $libname.a'
11480 dynamic_linker='OS/2 ld.exe'
11481 shlibpath_var=LIBPATH
11482 ;;
11483
11484osf3* | osf4* | osf5*)
11485 version_type=osf
11486 need_lib_prefix=no
11487 need_version=no
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11492 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11493 ;;
11494
11495sco3.2v5*)
11496 version_type=osf
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 ;;
11501
11502solaris*)
11503 version_type=linux
11504 need_lib_prefix=no
11505 need_version=no
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 hardcode_into_libs=yes
11511 # ldd complains unless libraries are executable
11512 postinstall_cmds='chmod +x $lib'
11513 ;;
11514
11515sunos4*)
11516 version_type=sunos
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11518 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=yes
11521 if test "$with_gnu_ld" = yes; then
11522 need_lib_prefix=no
11523 fi
11524 need_version=yes
11525 ;;
11526
11527sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11528 version_type=linux
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 case $host_vendor in
11533 sni)
11534 shlibpath_overrides_runpath=no
11535 need_lib_prefix=no
11536 export_dynamic_flag_spec='${wl}-Blargedynsym'
11537 runpath_var=LD_RUN_PATH
11538 ;;
11539 siemens)
11540 need_lib_prefix=no
11541 ;;
11542 motorola)
11543 need_lib_prefix=no
11544 need_version=no
11545 shlibpath_overrides_runpath=no
11546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11547 ;;
11548 esac
11549 ;;
11550
11551sysv4*MP*)
11552 if test -d /usr/nec ;then
11553 version_type=linux
11554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11555 soname_spec='$libname${shared_ext}.$major'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 fi
11558 ;;
11559
11560uts4*)
11561 version_type=linux
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 ;;
11566
11567*)
11568 dynamic_linker=no
11569 ;;
11570esac
11571echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11572echo "${ECHO_T}$dynamic_linker" >&6
11573test "$dynamic_linker" = no && can_build_shared=no
11574
11575if test "x$enable_dlopen" != xyes; then
11576 enable_dlopen=unknown
11577 enable_dlopen_self=unknown
11578 enable_dlopen_self_static=unknown
11579else
11580 lt_cv_dlopen=no
11581 lt_cv_dlopen_libs=
11582
11583 case $host_os in
11584 beos*)
11585 lt_cv_dlopen="load_add_on"
11586 lt_cv_dlopen_libs=
11587 lt_cv_dlopen_self=yes
11588 ;;
11589
11590 mingw* | pw32*)
11591 lt_cv_dlopen="LoadLibrary"
11592 lt_cv_dlopen_libs=
11593 ;;
11594
11595 cygwin*)
11596 lt_cv_dlopen="dlopen"
11597 lt_cv_dlopen_libs=
11598 ;;
11599
11600 darwin*)
11601 # if libdl is installed we need to link against it
11602 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11603echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11604if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606else
11607 ac_check_lib_save_LIBS=$LIBS
11608LIBS="-ldl $LIBS"
11609cat >conftest.$ac_ext <<_ACEOF
11610#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011616
11617/* Override any gcc2 internal prototype to avoid an error. */
11618#ifdef __cplusplus
11619extern "C"
11620#endif
11621/* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11623char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011624int
11625main ()
11626{
11627dlopen ();
11628 ;
11629 return 0;
11630}
11631_ACEOF
11632rm -f conftest.$ac_objext conftest$ac_exeext
11633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11634 (eval $ac_link) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_cv_lib_dl_dlopen=yes
11645else
11646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011647sed 's/^/| /' conftest.$ac_ext >&5
11648
John Criswell47fdd832003-07-14 16:52:07 +000011649ac_cv_lib_dl_dlopen=no
11650fi
11651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11652LIBS=$ac_check_lib_save_LIBS
11653fi
11654echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11655echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11656if test $ac_cv_lib_dl_dlopen = yes; then
11657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11658else
11659
11660 lt_cv_dlopen="dyld"
11661 lt_cv_dlopen_libs=
11662 lt_cv_dlopen_self=yes
11663
11664fi
11665
11666 ;;
11667
11668 *)
11669 echo "$as_me:$LINENO: checking for shl_load" >&5
11670echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11671if test "${ac_cv_func_shl_load+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673else
11674 cat >conftest.$ac_ext <<_ACEOF
11675#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011676/* confdefs.h. */
11677_ACEOF
11678cat confdefs.h >>conftest.$ac_ext
11679cat >>conftest.$ac_ext <<_ACEOF
11680/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011681/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011682 which can conflict with char shl_load (); below.
11683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684 <limits.h> exists even on freestanding compilers. */
11685#ifdef __STDC__
11686# include <limits.h>
11687#else
11688# include <assert.h>
11689#endif
John Criswell47fdd832003-07-14 16:52:07 +000011690/* Override any gcc2 internal prototype to avoid an error. */
11691#ifdef __cplusplus
11692extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011693{
John Criswell47fdd832003-07-14 16:52:07 +000011694#endif
11695/* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11697char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011698/* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701#if defined (__stub_shl_load) || defined (__stub___shl_load)
11702choke me
11703#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011704char (*f) () = shl_load;
11705#endif
11706#ifdef __cplusplus
11707}
John Criswell47fdd832003-07-14 16:52:07 +000011708#endif
11709
John Criswell0c38eaf2003-09-10 15:17:25 +000011710int
11711main ()
11712{
11713return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011714 ;
11715 return 0;
11716}
11717_ACEOF
11718rm -f conftest.$ac_objext conftest$ac_exeext
11719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -s conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 ac_cv_func_shl_load=yes
11731else
11732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011733sed 's/^/| /' conftest.$ac_ext >&5
11734
John Criswell47fdd832003-07-14 16:52:07 +000011735ac_cv_func_shl_load=no
11736fi
11737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11738fi
11739echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11740echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11741if test $ac_cv_func_shl_load = yes; then
11742 lt_cv_dlopen="shl_load"
11743else
11744 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11745echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11746if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748else
11749 ac_check_lib_save_LIBS=$LIBS
11750LIBS="-ldld $LIBS"
11751cat >conftest.$ac_ext <<_ACEOF
11752#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011758
11759/* Override any gcc2 internal prototype to avoid an error. */
11760#ifdef __cplusplus
11761extern "C"
11762#endif
11763/* We use char because int might match the return type of a gcc2
11764 builtin and then its argument prototype would still apply. */
11765char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011766int
11767main ()
11768{
11769shl_load ();
11770 ;
11771 return 0;
11772}
11773_ACEOF
11774rm -f conftest.$ac_objext conftest$ac_exeext
11775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 ac_cv_lib_dld_shl_load=yes
11787else
11788 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011789sed 's/^/| /' conftest.$ac_ext >&5
11790
John Criswell47fdd832003-07-14 16:52:07 +000011791ac_cv_lib_dld_shl_load=no
11792fi
11793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11794LIBS=$ac_check_lib_save_LIBS
11795fi
11796echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11797echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11798if test $ac_cv_lib_dld_shl_load = yes; then
11799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11800else
11801 echo "$as_me:$LINENO: checking for dlopen" >&5
11802echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11803if test "${ac_cv_func_dlopen+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11805else
11806 cat >conftest.$ac_ext <<_ACEOF
11807#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011808/* confdefs.h. */
11809_ACEOF
11810cat confdefs.h >>conftest.$ac_ext
11811cat >>conftest.$ac_ext <<_ACEOF
11812/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011813/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011814 which can conflict with char dlopen (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11817#ifdef __STDC__
11818# include <limits.h>
11819#else
11820# include <assert.h>
11821#endif
John Criswell47fdd832003-07-14 16:52:07 +000011822/* Override any gcc2 internal prototype to avoid an error. */
11823#ifdef __cplusplus
11824extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011825{
John Criswell47fdd832003-07-14 16:52:07 +000011826#endif
11827/* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011830/* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833#if defined (__stub_dlopen) || defined (__stub___dlopen)
11834choke me
11835#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011836char (*f) () = dlopen;
11837#endif
11838#ifdef __cplusplus
11839}
John Criswell47fdd832003-07-14 16:52:07 +000011840#endif
11841
John Criswell0c38eaf2003-09-10 15:17:25 +000011842int
11843main ()
11844{
11845return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011846 ;
11847 return 0;
11848}
11849_ACEOF
11850rm -f conftest.$ac_objext conftest$ac_exeext
11851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 ac_cv_func_dlopen=yes
11863else
11864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011865sed 's/^/| /' conftest.$ac_ext >&5
11866
John Criswell47fdd832003-07-14 16:52:07 +000011867ac_cv_func_dlopen=no
11868fi
11869rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11870fi
11871echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11872echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11873if test $ac_cv_func_dlopen = yes; then
11874 lt_cv_dlopen="dlopen"
11875else
11876 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 ac_check_lib_save_LIBS=$LIBS
11882LIBS="-ldl $LIBS"
11883cat >conftest.$ac_ext <<_ACEOF
11884#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011890
11891/* Override any gcc2 internal prototype to avoid an error. */
11892#ifdef __cplusplus
11893extern "C"
11894#endif
11895/* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11897char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011898int
11899main ()
11900{
11901dlopen ();
11902 ;
11903 return 0;
11904}
11905_ACEOF
11906rm -f conftest.$ac_objext conftest$ac_exeext
11907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_lib_dl_dlopen=yes
11919else
11920 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011921sed 's/^/| /' conftest.$ac_ext >&5
11922
John Criswell47fdd832003-07-14 16:52:07 +000011923ac_cv_lib_dl_dlopen=no
11924fi
11925rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11926LIBS=$ac_check_lib_save_LIBS
11927fi
11928echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11929echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11930if test $ac_cv_lib_dl_dlopen = yes; then
11931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11932else
11933 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11934echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11935if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 ac_check_lib_save_LIBS=$LIBS
11939LIBS="-lsvld $LIBS"
11940cat >conftest.$ac_ext <<_ACEOF
11941#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011942/* confdefs.h. */
11943_ACEOF
11944cat confdefs.h >>conftest.$ac_ext
11945cat >>conftest.$ac_ext <<_ACEOF
11946/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011947
11948/* Override any gcc2 internal prototype to avoid an error. */
11949#ifdef __cplusplus
11950extern "C"
11951#endif
11952/* We use char because int might match the return type of a gcc2
11953 builtin and then its argument prototype would still apply. */
11954char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011955int
11956main ()
11957{
11958dlopen ();
11959 ;
11960 return 0;
11961}
11962_ACEOF
11963rm -f conftest.$ac_objext conftest$ac_exeext
11964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965 (eval $ac_link) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_lib_svld_dlopen=yes
11976else
11977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011978sed 's/^/| /' conftest.$ac_ext >&5
11979
John Criswell47fdd832003-07-14 16:52:07 +000011980ac_cv_lib_svld_dlopen=no
11981fi
11982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11983LIBS=$ac_check_lib_save_LIBS
11984fi
11985echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11986echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11987if test $ac_cv_lib_svld_dlopen = yes; then
11988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11989else
11990 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11991echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11992if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994else
11995 ac_check_lib_save_LIBS=$LIBS
11996LIBS="-ldld $LIBS"
11997cat >conftest.$ac_ext <<_ACEOF
11998#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011999/* confdefs.h. */
12000_ACEOF
12001cat confdefs.h >>conftest.$ac_ext
12002cat >>conftest.$ac_ext <<_ACEOF
12003/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012004
12005/* Override any gcc2 internal prototype to avoid an error. */
12006#ifdef __cplusplus
12007extern "C"
12008#endif
12009/* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12011char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012012int
12013main ()
12014{
12015dld_link ();
12016 ;
12017 return 0;
12018}
12019_ACEOF
12020rm -f conftest.$ac_objext conftest$ac_exeext
12021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022 (eval $ac_link) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -s conftest$ac_exeext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_cv_lib_dld_dld_link=yes
12033else
12034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012035sed 's/^/| /' conftest.$ac_ext >&5
12036
John Criswell47fdd832003-07-14 16:52:07 +000012037ac_cv_lib_dld_dld_link=no
12038fi
12039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12040LIBS=$ac_check_lib_save_LIBS
12041fi
12042echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12043echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12044if test $ac_cv_lib_dld_dld_link = yes; then
12045 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12046fi
12047
12048
12049fi
12050
12051
12052fi
12053
12054
12055fi
12056
12057
12058fi
12059
12060
12061fi
12062
12063 ;;
12064 esac
12065
12066 if test "x$lt_cv_dlopen" != xno; then
12067 enable_dlopen=yes
12068 else
12069 enable_dlopen=no
12070 fi
12071
12072 case $lt_cv_dlopen in
12073 dlopen)
12074 save_CPPFLAGS="$CPPFLAGS"
12075 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12076
12077 save_LDFLAGS="$LDFLAGS"
12078 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12079
12080 save_LIBS="$LIBS"
12081 LIBS="$lt_cv_dlopen_libs $LIBS"
12082
12083 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12084echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12085if test "${lt_cv_dlopen_self+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088 if test "$cross_compiling" = yes; then :
12089 lt_cv_dlopen_self=cross
12090else
12091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12092 lt_status=$lt_dlunknown
12093 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +000012094#line 12091 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012095#include "confdefs.h"
12096
12097#if HAVE_DLFCN_H
12098#include <dlfcn.h>
12099#endif
12100
12101#include <stdio.h>
12102
12103#ifdef RTLD_GLOBAL
12104# define LT_DLGLOBAL RTLD_GLOBAL
12105#else
12106# ifdef DL_GLOBAL
12107# define LT_DLGLOBAL DL_GLOBAL
12108# else
12109# define LT_DLGLOBAL 0
12110# endif
12111#endif
12112
12113/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12114 find out it does not work in some platform. */
12115#ifndef LT_DLLAZY_OR_NOW
12116# ifdef RTLD_LAZY
12117# define LT_DLLAZY_OR_NOW RTLD_LAZY
12118# else
12119# ifdef DL_LAZY
12120# define LT_DLLAZY_OR_NOW DL_LAZY
12121# else
12122# ifdef RTLD_NOW
12123# define LT_DLLAZY_OR_NOW RTLD_NOW
12124# else
12125# ifdef DL_NOW
12126# define LT_DLLAZY_OR_NOW DL_NOW
12127# else
12128# define LT_DLLAZY_OR_NOW 0
12129# endif
12130# endif
12131# endif
12132# endif
12133#endif
12134
12135#ifdef __cplusplus
12136extern "C" void exit (int);
12137#endif
12138
12139void fnord() { int i=42;}
12140int main ()
12141{
12142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12143 int status = $lt_dlunknown;
12144
12145 if (self)
12146 {
12147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12148 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12149 /* dlclose (self); */
12150 }
12151
12152 exit (status);
12153}
12154EOF
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12160 (./conftest; exit; ) 2>/dev/null
12161 lt_status=$?
12162 case x$lt_status in
12163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12165 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12166 esac
12167 else :
12168 # compilation failed
12169 lt_cv_dlopen_self=no
12170 fi
12171fi
12172rm -fr conftest*
12173
12174
12175fi
12176echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12177echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12178
12179 if test "x$lt_cv_dlopen_self" = xyes; then
12180 LDFLAGS="$LDFLAGS $link_static_flag"
12181 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12182echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12183if test "${lt_cv_dlopen_self_static+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185else
12186 if test "$cross_compiling" = yes; then :
12187 lt_cv_dlopen_self_static=cross
12188else
12189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12190 lt_status=$lt_dlunknown
12191 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +000012192#line 12189 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012193#include "confdefs.h"
12194
12195#if HAVE_DLFCN_H
12196#include <dlfcn.h>
12197#endif
12198
12199#include <stdio.h>
12200
12201#ifdef RTLD_GLOBAL
12202# define LT_DLGLOBAL RTLD_GLOBAL
12203#else
12204# ifdef DL_GLOBAL
12205# define LT_DLGLOBAL DL_GLOBAL
12206# else
12207# define LT_DLGLOBAL 0
12208# endif
12209#endif
12210
12211/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12212 find out it does not work in some platform. */
12213#ifndef LT_DLLAZY_OR_NOW
12214# ifdef RTLD_LAZY
12215# define LT_DLLAZY_OR_NOW RTLD_LAZY
12216# else
12217# ifdef DL_LAZY
12218# define LT_DLLAZY_OR_NOW DL_LAZY
12219# else
12220# ifdef RTLD_NOW
12221# define LT_DLLAZY_OR_NOW RTLD_NOW
12222# else
12223# ifdef DL_NOW
12224# define LT_DLLAZY_OR_NOW DL_NOW
12225# else
12226# define LT_DLLAZY_OR_NOW 0
12227# endif
12228# endif
12229# endif
12230# endif
12231#endif
12232
12233#ifdef __cplusplus
12234extern "C" void exit (int);
12235#endif
12236
12237void fnord() { int i=42;}
12238int main ()
12239{
12240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12241 int status = $lt_dlunknown;
12242
12243 if (self)
12244 {
12245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12246 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12247 /* dlclose (self); */
12248 }
12249
12250 exit (status);
12251}
12252EOF
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254 (eval $ac_link) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12258 (./conftest; exit; ) 2>/dev/null
12259 lt_status=$?
12260 case x$lt_status in
12261 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12262 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12263 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12264 esac
12265 else :
12266 # compilation failed
12267 lt_cv_dlopen_self_static=no
12268 fi
12269fi
12270rm -fr conftest*
12271
12272
12273fi
12274echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12275echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12276 fi
12277
12278 CPPFLAGS="$save_CPPFLAGS"
12279 LDFLAGS="$save_LDFLAGS"
12280 LIBS="$save_LIBS"
12281 ;;
12282 esac
12283
12284 case $lt_cv_dlopen_self in
12285 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12286 *) enable_dlopen_self=unknown ;;
12287 esac
12288
12289 case $lt_cv_dlopen_self_static in
12290 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12291 *) enable_dlopen_self_static=unknown ;;
12292 esac
12293fi
12294
12295
12296# The else clause should only fire when bootstrapping the
12297# libtool distribution, otherwise you forgot to ship ltmain.sh
12298# with your package, and you will get complaints that there are
12299# no rules to generate ltmain.sh.
12300if test -f "$ltmain"; then
12301 # See if we are running on zsh, and set the options which allow our commands through
12302 # without removal of \ escapes.
12303 if test -n "${ZSH_VERSION+set}" ; then
12304 setopt NO_GLOB_SUBST
12305 fi
12306 # Now quote all the things that may contain metacharacters while being
12307 # careful not to overquote the AC_SUBSTed values. We take copies of the
12308 # variables and quote the copies for generation of the libtool script.
12309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12312 deplibs_check_method reload_flag reload_cmds need_locks \
12313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12314 lt_cv_sys_global_symbol_to_c_name_address \
12315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12316 old_postinstall_cmds old_postuninstall_cmds \
12317 compiler_CXX \
12318 CC_CXX \
12319 LD_CXX \
12320 lt_prog_compiler_wl_CXX \
12321 lt_prog_compiler_pic_CXX \
12322 lt_prog_compiler_static_CXX \
12323 lt_prog_compiler_no_builtin_flag_CXX \
12324 export_dynamic_flag_spec_CXX \
12325 thread_safe_flag_spec_CXX \
12326 whole_archive_flag_spec_CXX \
12327 enable_shared_with_static_runtimes_CXX \
12328 old_archive_cmds_CXX \
12329 old_archive_from_new_cmds_CXX \
12330 predep_objects_CXX \
12331 postdep_objects_CXX \
12332 predeps_CXX \
12333 postdeps_CXX \
12334 compiler_lib_search_path_CXX \
12335 archive_cmds_CXX \
12336 archive_expsym_cmds_CXX \
12337 postinstall_cmds_CXX \
12338 postuninstall_cmds_CXX \
12339 old_archive_from_expsyms_cmds_CXX \
12340 allow_undefined_flag_CXX \
12341 no_undefined_flag_CXX \
12342 export_symbols_cmds_CXX \
12343 hardcode_libdir_flag_spec_CXX \
12344 hardcode_libdir_flag_spec_ld_CXX \
12345 hardcode_libdir_separator_CXX \
12346 hardcode_automatic_CXX \
12347 module_cmds_CXX \
12348 module_expsym_cmds_CXX \
12349 lt_cv_prog_compiler_c_o_CXX \
12350 exclude_expsyms_CXX \
12351 include_expsyms_CXX; do
12352
12353 case $var in
12354 old_archive_cmds_CXX | \
12355 old_archive_from_new_cmds_CXX | \
12356 archive_cmds_CXX | \
12357 archive_expsym_cmds_CXX | \
12358 module_cmds_CXX | \
12359 module_expsym_cmds_CXX | \
12360 old_archive_from_expsyms_cmds_CXX | \
12361 export_symbols_cmds_CXX | \
12362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12363 postinstall_cmds | postuninstall_cmds | \
12364 old_postinstall_cmds | old_postuninstall_cmds | \
12365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12366 # Double-quote double-evaled strings.
12367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12368 ;;
12369 *)
12370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12371 ;;
12372 esac
12373 done
12374
12375 case $lt_echo in
12376 *'\$0 --fallback-echo"')
12377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12378 ;;
12379 esac
12380
12381cfgfile="$ofile"
12382
12383 cat <<__EOF__ >> "$cfgfile"
12384# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12385
12386# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12387
12388# Shell to use when invoking shell scripts.
12389SHELL=$lt_SHELL
12390
12391# Whether or not to build shared libraries.
12392build_libtool_libs=$enable_shared
12393
12394# Whether or not to build static libraries.
12395build_old_libs=$enable_static
12396
12397# Whether or not to add -lc for building shared libraries.
12398build_libtool_need_lc=$archive_cmds_need_lc_CXX
12399
12400# Whether or not to disallow shared libs when runtime libs are static
12401allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12402
12403# Whether or not to optimize for fast installation.
12404fast_install=$enable_fast_install
12405
12406# The host system.
12407host_alias=$host_alias
12408host=$host
12409
12410# An echo program that does not interpret backslashes.
12411echo=$lt_echo
12412
12413# The archiver.
12414AR=$lt_AR
12415AR_FLAGS=$lt_AR_FLAGS
12416
12417# A C compiler.
12418LTCC=$lt_LTCC
12419
12420# A language-specific compiler.
12421CC=$lt_compiler_CXX
12422
12423# Is the compiler the GNU C compiler?
12424with_gcc=$GCC_CXX
12425
12426# An ERE matcher.
12427EGREP=$lt_EGREP
12428
12429# The linker used to build libraries.
12430LD=$lt_LD_CXX
12431
12432# Whether we need hard or soft links.
12433LN_S=$lt_LN_S
12434
12435# A BSD-compatible nm program.
12436NM=$lt_NM
12437
12438# A symbol stripping program
12439STRIP=$STRIP
12440
12441# Used to examine libraries when file_magic_cmd begins "file"
12442MAGIC_CMD=$MAGIC_CMD
12443
12444# Used on cygwin: DLL creation program.
12445DLLTOOL="$DLLTOOL"
12446
12447# Used on cygwin: object dumper.
12448OBJDUMP="$OBJDUMP"
12449
12450# Used on cygwin: assembler.
12451AS="$AS"
12452
12453# The name of the directory that contains temporary libtool files.
12454objdir=$objdir
12455
12456# How to create reloadable object files.
12457reload_flag=$lt_reload_flag
12458reload_cmds=$lt_reload_cmds
12459
12460# How to pass a linker flag through the compiler.
12461wl=$lt_lt_prog_compiler_wl_CXX
12462
12463# Object file suffix (normally "o").
12464objext="$ac_objext"
12465
12466# Old archive suffix (normally "a").
12467libext="$libext"
12468
12469# Shared library suffix (normally ".so").
12470shrext='$shrext'
12471
12472# Executable file suffix (normally "").
12473exeext="$exeext"
12474
12475# Additional compiler flags for building library objects.
12476pic_flag=$lt_lt_prog_compiler_pic_CXX
12477pic_mode=$pic_mode
12478
12479# What is the maximum length of a command?
12480max_cmd_len=$lt_cv_sys_max_cmd_len
12481
12482# Does compiler simultaneously support -c and -o options?
12483compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12484
12485# Must we lock files when doing compilation ?
12486need_locks=$lt_need_locks
12487
12488# Do we need the lib prefix for modules?
12489need_lib_prefix=$need_lib_prefix
12490
12491# Do we need a version for libraries?
12492need_version=$need_version
12493
12494# Whether dlopen is supported.
12495dlopen_support=$enable_dlopen
12496
12497# Whether dlopen of programs is supported.
12498dlopen_self=$enable_dlopen_self
12499
12500# Whether dlopen of statically linked programs is supported.
12501dlopen_self_static=$enable_dlopen_self_static
12502
12503# Compiler flag to prevent dynamic linking.
12504link_static_flag=$lt_lt_prog_compiler_static_CXX
12505
12506# Compiler flag to turn off builtin functions.
12507no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12508
12509# Compiler flag to allow reflexive dlopens.
12510export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12511
12512# Compiler flag to generate shared objects directly from archives.
12513whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12514
12515# Compiler flag to generate thread-safe objects.
12516thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12517
12518# Library versioning type.
12519version_type=$version_type
12520
12521# Format of library name prefix.
12522libname_spec=$lt_libname_spec
12523
12524# List of archive names. First name is the real one, the rest are links.
12525# The last name is the one that the linker finds with -lNAME.
12526library_names_spec=$lt_library_names_spec
12527
12528# The coded name of the library, if different from the real name.
12529soname_spec=$lt_soname_spec
12530
12531# Commands used to build and install an old-style archive.
12532RANLIB=$lt_RANLIB
12533old_archive_cmds=$lt_old_archive_cmds_CXX
12534old_postinstall_cmds=$lt_old_postinstall_cmds
12535old_postuninstall_cmds=$lt_old_postuninstall_cmds
12536
12537# Create an old-style archive from a shared archive.
12538old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12539
12540# Create a temporary old-style archive to link instead of a shared archive.
12541old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12542
12543# Commands used to build and install a shared archive.
12544archive_cmds=$lt_archive_cmds_CXX
12545archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12546postinstall_cmds=$lt_postinstall_cmds
12547postuninstall_cmds=$lt_postuninstall_cmds
12548
12549# Commands used to build a loadable module (assumed same as above if empty)
12550module_cmds=$lt_module_cmds_CXX
12551module_expsym_cmds=$lt_module_expsym_cmds_CXX
12552
12553# Commands to strip libraries.
12554old_striplib=$lt_old_striplib
12555striplib=$lt_striplib
12556
12557# Dependencies to place before the objects being linked to create a
12558# shared library.
12559predep_objects=$lt_predep_objects_CXX
12560
12561# Dependencies to place after the objects being linked to create a
12562# shared library.
12563postdep_objects=$lt_postdep_objects_CXX
12564
12565# Dependencies to place before the objects being linked to create a
12566# shared library.
12567predeps=$lt_predeps_CXX
12568
12569# Dependencies to place after the objects being linked to create a
12570# shared library.
12571postdeps=$lt_postdeps_CXX
12572
12573# The library search path used internally by the compiler when linking
12574# a shared library.
12575compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12576
12577# Method to check whether dependent libraries are shared objects.
12578deplibs_check_method=$lt_deplibs_check_method
12579
12580# Command to use when deplibs_check_method == file_magic.
12581file_magic_cmd=$lt_file_magic_cmd
12582
12583# Flag that allows shared libraries with undefined symbols to be built.
12584allow_undefined_flag=$lt_allow_undefined_flag_CXX
12585
12586# Flag that forces no undefined symbols.
12587no_undefined_flag=$lt_no_undefined_flag_CXX
12588
12589# Commands used to finish a libtool library installation in a directory.
12590finish_cmds=$lt_finish_cmds
12591
12592# Same as above, but a single script fragment to be evaled but not shown.
12593finish_eval=$lt_finish_eval
12594
12595# Take the output of nm and produce a listing of raw symbols and C names.
12596global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12597
12598# Transform the output of nm in a proper C declaration
12599global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12600
12601# Transform the output of nm in a C name address pair
12602global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12603
12604# This is the shared library runtime path variable.
12605runpath_var=$runpath_var
12606
12607# This is the shared library path variable.
12608shlibpath_var=$shlibpath_var
12609
12610# Is shlibpath searched before the hard-coded library search path?
12611shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12612
12613# How to hardcode a shared library path into an executable.
12614hardcode_action=$hardcode_action_CXX
12615
12616# Whether we should hardcode library paths into libraries.
12617hardcode_into_libs=$hardcode_into_libs
12618
12619# Flag to hardcode \$libdir into a binary during linking.
12620# This must work even if \$libdir does not exist.
12621hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12622
12623# If ld is used when linking, flag to hardcode \$libdir into
12624# a binary during linking. This must work even if \$libdir does
12625# not exist.
12626hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12627
12628# Whether we need a single -rpath flag with a separated argument.
12629hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12630
12631# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12632# resulting binary.
12633hardcode_direct=$hardcode_direct_CXX
12634
12635# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12636# resulting binary.
12637hardcode_minus_L=$hardcode_minus_L_CXX
12638
12639# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12640# the resulting binary.
12641hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12642
12643# Set to yes if building a shared library automatically hardcodes DIR into the library
12644# and all subsequent libraries and executables linked against it.
12645hardcode_automatic=$hardcode_automatic_CXX
12646
12647# Variables whose values should be saved in libtool wrapper scripts and
12648# restored at relink time.
12649variables_saved_for_relink="$variables_saved_for_relink"
12650
12651# Whether libtool must link a program against all its dependency libraries.
12652link_all_deplibs=$link_all_deplibs_CXX
12653
12654# Compile-time system search path for libraries
12655sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12656
12657# Run-time system search path for libraries
12658sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12659
12660# Fix the shell variable \$srcfile for the compiler.
12661fix_srcfile_path="$fix_srcfile_path_CXX"
12662
12663# Set to yes if exported symbols are required.
12664always_export_symbols=$always_export_symbols_CXX
12665
12666# The commands to list exported symbols.
12667export_symbols_cmds=$lt_export_symbols_cmds_CXX
12668
12669# The commands to extract the exported symbol list from a shared archive.
12670extract_expsyms_cmds=$lt_extract_expsyms_cmds
12671
12672# Symbols that should not be listed in the preloaded symbols.
12673exclude_expsyms=$lt_exclude_expsyms_CXX
12674
12675# Symbols that must always be exported.
12676include_expsyms=$lt_include_expsyms_CXX
12677
12678# ### END LIBTOOL TAG CONFIG: $tagname
12679
12680__EOF__
12681
12682
12683else
12684 # If there is no Makefile yet, we rely on a make rule to execute
12685 # `config.status --recheck' to rerun these tests and create the
12686 # libtool script then.
12687 test -f Makefile && make "$ltmain"
12688fi
12689
12690
12691ac_ext=c
12692ac_cpp='$CPP $CPPFLAGS'
12693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695ac_compiler_gnu=$ac_cv_c_compiler_gnu
12696
12697CC=$lt_save_CC
12698LDCXX=$LD
12699LD=$lt_save_LD
12700GCC=$lt_save_GCC
12701with_gnu_ldcxx=$with_gnu_ld
12702with_gnu_ld=$lt_save_with_gnu_ld
12703lt_cv_path_LDCXX=$lt_cv_path_LD
12704lt_cv_path_LD=$lt_save_path_LD
12705lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12706lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12707
12708 else
12709 tagname=""
12710 fi
12711 ;;
12712
12713 F77)
12714 if test -n "$F77" && test "X$F77" != "Xno"; then
12715
12716ac_ext=f
12717ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12718ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12720
12721
12722archive_cmds_need_lc_F77=no
12723allow_undefined_flag_F77=
12724always_export_symbols_F77=no
12725archive_expsym_cmds_F77=
12726export_dynamic_flag_spec_F77=
12727hardcode_direct_F77=no
12728hardcode_libdir_flag_spec_F77=
12729hardcode_libdir_flag_spec_ld_F77=
12730hardcode_libdir_separator_F77=
12731hardcode_minus_L_F77=no
12732hardcode_automatic_F77=no
12733module_cmds_F77=
12734module_expsym_cmds_F77=
12735link_all_deplibs_F77=unknown
12736old_archive_cmds_F77=$old_archive_cmds
12737no_undefined_flag_F77=
12738whole_archive_flag_spec_F77=
12739enable_shared_with_static_runtimes_F77=no
12740
12741# Source file extension for f77 test sources.
12742ac_ext=f
12743
12744# Object file extension for compiled f77 test sources.
12745objext=o
12746objext_F77=$objext
12747
12748# Code to be used in simple compile tests
12749lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12750
12751# Code to be used in simple link tests
12752lt_simple_link_test_code=" program t\n end\n"
12753
12754# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12755
12756# If no C compiler was specified, use CC.
12757LTCC=${LTCC-"$CC"}
12758
12759# Allow CC to be a program name with arguments.
12760compiler=$CC
12761
12762
12763# Allow CC to be a program name with arguments.
12764lt_save_CC="$CC"
12765CC=${F77-"f77"}
12766compiler=$CC
12767compiler_F77=$CC
12768cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12769
12770echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12771echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12772echo "$as_me:$LINENO: result: $can_build_shared" >&5
12773echo "${ECHO_T}$can_build_shared" >&6
12774
12775echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12776echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12777test "$can_build_shared" = "no" && enable_shared=no
12778
12779# On AIX, shared libraries and static libraries use the same namespace, and
12780# are all built from PIC.
12781case "$host_os" in
12782aix3*)
12783 test "$enable_shared" = yes && enable_static=no
12784 if test -n "$RANLIB"; then
12785 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12786 postinstall_cmds='$RANLIB $lib'
12787 fi
12788 ;;
12789aix4*)
12790 test "$enable_shared" = yes && enable_static=no
12791 ;;
12792esac
12793echo "$as_me:$LINENO: result: $enable_shared" >&5
12794echo "${ECHO_T}$enable_shared" >&6
12795
12796echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12797echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12798# Make sure either enable_shared or enable_static is yes.
12799test "$enable_shared" = yes || enable_static=yes
12800echo "$as_me:$LINENO: result: $enable_static" >&5
12801echo "${ECHO_T}$enable_static" >&6
12802
12803test "$ld_shlibs_F77" = no && can_build_shared=no
12804
12805GCC_F77="$G77"
12806LD_F77="$LD"
12807
12808lt_prog_compiler_wl_F77=
12809lt_prog_compiler_pic_F77=
12810lt_prog_compiler_static_F77=
12811
12812echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12813echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12814
12815 if test "$GCC" = yes; then
12816 lt_prog_compiler_wl_F77='-Wl,'
12817 lt_prog_compiler_static_F77='-static'
12818
12819 case $host_os in
12820 aix*)
12821 # All AIX code is PIC.
12822 if test "$host_cpu" = ia64; then
12823 # AIX 5 now supports IA64 processor
12824 lt_prog_compiler_static_F77='-Bstatic'
12825 fi
12826 ;;
12827
12828 amigaos*)
12829 # FIXME: we need at least 68020 code to build shared libraries, but
12830 # adding the `-m68020' flag to GCC prevents building anything better,
12831 # like `-m68040'.
12832 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12833 ;;
12834
12835 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12836 # PIC is the default for these OSes.
12837 ;;
12838
12839 mingw* | pw32* | os2*)
12840 # This hack is so that the source file can tell whether it is being
12841 # built for inclusion in a dll (and should export symbols for example).
12842 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12843 ;;
12844
12845 darwin* | rhapsody*)
12846 # PIC is the default on this platform
12847 # Common symbols not allowed in MH_DYLIB files
12848 lt_prog_compiler_pic_F77='-fno-common'
12849 ;;
12850
12851 msdosdjgpp*)
12852 # Just because we use GCC doesn't mean we suddenly get shared libraries
12853 # on systems that don't support them.
12854 lt_prog_compiler_can_build_shared_F77=no
12855 enable_shared=no
12856 ;;
12857
12858 sysv4*MP*)
12859 if test -d /usr/nec; then
12860 lt_prog_compiler_pic_F77=-Kconform_pic
12861 fi
12862 ;;
12863
12864 hpux*)
12865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12866 # not for PA HP-UX.
12867 case "$host_cpu" in
12868 hppa*64*|ia64*)
12869 # +Z the default
12870 ;;
12871 *)
12872 lt_prog_compiler_pic_F77='-fPIC'
12873 ;;
12874 esac
12875 ;;
12876
12877 *)
12878 lt_prog_compiler_pic_F77='-fPIC'
12879 ;;
12880 esac
12881 else
12882 # PORTME Check for flag to pass linker flags through the system compiler.
12883 case $host_os in
12884 aix*)
12885 lt_prog_compiler_wl_F77='-Wl,'
12886 if test "$host_cpu" = ia64; then
12887 # AIX 5 now supports IA64 processor
12888 lt_prog_compiler_static_F77='-Bstatic'
12889 else
12890 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12891 fi
12892 ;;
12893
12894 mingw* | pw32* | os2*)
12895 # This hack is so that the source file can tell whether it is being
12896 # built for inclusion in a dll (and should export symbols for example).
12897 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12898 ;;
12899
12900 hpux9* | hpux10* | hpux11*)
12901 lt_prog_compiler_wl_F77='-Wl,'
12902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12903 # not for PA HP-UX.
12904 case "$host_cpu" in
12905 hppa*64*|ia64*)
12906 # +Z the default
12907 ;;
12908 *)
12909 lt_prog_compiler_pic_F77='+Z'
12910 ;;
12911 esac
12912 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12913 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12914 ;;
12915
12916 irix5* | irix6* | nonstopux*)
12917 lt_prog_compiler_wl_F77='-Wl,'
12918 # PIC (with -KPIC) is the default.
12919 lt_prog_compiler_static_F77='-non_shared'
12920 ;;
12921
12922 newsos6)
12923 lt_prog_compiler_pic_F77='-KPIC'
12924 lt_prog_compiler_static_F77='-Bstatic'
12925 ;;
12926
12927 linux*)
12928 case $CC in
12929 icc|ecc)
12930 lt_prog_compiler_wl_F77='-Wl,'
12931 lt_prog_compiler_pic_F77='-KPIC'
12932 lt_prog_compiler_static_F77='-static'
12933 ;;
12934 ccc)
12935 lt_prog_compiler_wl_F77='-Wl,'
12936 # All Alpha code is PIC.
12937 lt_prog_compiler_static_F77='-non_shared'
12938 ;;
12939 esac
12940 ;;
12941
12942 osf3* | osf4* | osf5*)
12943 lt_prog_compiler_wl_F77='-Wl,'
12944 # All OSF/1 code is PIC.
12945 lt_prog_compiler_static_F77='-non_shared'
12946 ;;
12947
12948 sco3.2v5*)
12949 lt_prog_compiler_pic_F77='-Kpic'
12950 lt_prog_compiler_static_F77='-dn'
12951 ;;
12952
12953 solaris*)
12954 lt_prog_compiler_wl_F77='-Wl,'
12955 lt_prog_compiler_pic_F77='-KPIC'
12956 lt_prog_compiler_static_F77='-Bstatic'
12957 ;;
12958
12959 sunos4*)
12960 lt_prog_compiler_wl_F77='-Qoption ld '
12961 lt_prog_compiler_pic_F77='-PIC'
12962 lt_prog_compiler_static_F77='-Bstatic'
12963 ;;
12964
12965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12966 lt_prog_compiler_wl_F77='-Wl,'
12967 lt_prog_compiler_pic_F77='-KPIC'
12968 lt_prog_compiler_static_F77='-Bstatic'
12969 ;;
12970
12971 sysv4*MP*)
12972 if test -d /usr/nec ;then
12973 lt_prog_compiler_pic_F77='-Kconform_pic'
12974 lt_prog_compiler_static_F77='-Bstatic'
12975 fi
12976 ;;
12977
12978 uts4*)
12979 lt_prog_compiler_pic_F77='-pic'
12980 lt_prog_compiler_static_F77='-Bstatic'
12981 ;;
12982
12983 *)
12984 lt_prog_compiler_can_build_shared_F77=no
12985 ;;
12986 esac
12987 fi
12988
12989echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12990echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12991
12992#
12993# Check to make sure the PIC flag actually works.
12994#
12995if test -n "$lt_prog_compiler_pic_F77"; then
12996 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12997echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12998if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000else
13001 lt_prog_compiler_pic_works_F77=no
13002 ac_outfile=conftest.$ac_objext
13003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13004 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13005 # Insert the option either (1) after the last *FLAGS variable, or
13006 # (2) before a word containing "conftest.", or (3) at the end.
13007 # Note that $ac_compile itself does not contain backslashes and begins
13008 # with a dollar sign (not a hyphen), so the echo should work correctly.
13009 # The option is referenced via a variable to avoid confusing sed.
13010 lt_compile=`echo "$ac_compile" | $SED \
13011 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13013 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000013014 (eval echo "\"\$as_me:13011: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013015 (eval "$lt_compile" 2>conftest.err)
13016 ac_status=$?
13017 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000013018 echo "$as_me:13015: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013019 if (exit $ac_status) && test -s "$ac_outfile"; then
13020 # The compiler can only warn and ignore the option if not recognized
13021 # So say no if there are warnings
13022 if test ! -s conftest.err; then
13023 lt_prog_compiler_pic_works_F77=yes
13024 fi
13025 fi
13026 $rm conftest*
13027
13028fi
13029echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13030echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13031
13032if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13033 case $lt_prog_compiler_pic_F77 in
13034 "" | " "*) ;;
13035 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13036 esac
13037else
13038 lt_prog_compiler_pic_F77=
13039 lt_prog_compiler_can_build_shared_F77=no
13040fi
13041
13042fi
13043case "$host_os" in
13044 # For platforms which do not support PIC, -DPIC is meaningless:
13045 *djgpp*)
13046 lt_prog_compiler_pic_F77=
13047 ;;
13048 *)
13049 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13050 ;;
13051esac
13052
13053echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13054echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13055if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057else
13058 lt_cv_prog_compiler_c_o_F77=no
13059 $rm -r conftest 2>/dev/null
13060 mkdir conftest
13061 cd conftest
13062 mkdir out
13063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13064
13065 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13066 # that will create temporary files in the current directory regardless of
13067 # the output directory. Thus, making CWD read-only will cause this test
13068 # to fail, enabling locking or at least warning the user not to do parallel
13069 # builds.
13070 chmod -w .
13071
13072 lt_compiler_flag="-o out/conftest2.$ac_objext"
13073 # Insert the option either (1) after the last *FLAGS variable, or
13074 # (2) before a word containing "conftest.", or (3) at the end.
13075 # Note that $ac_compile itself does not contain backslashes and begins
13076 # with a dollar sign (not a hyphen), so the echo should work correctly.
13077 lt_compile=`echo "$ac_compile" | $SED \
13078 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13080 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000013081 (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013082 (eval "$lt_compile" 2>out/conftest.err)
13083 ac_status=$?
13084 cat out/conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000013085 echo "$as_me:13082: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13087 then
13088 # The compiler can only warn and ignore the option if not recognized
13089 # So say no if there are warnings
13090 if test ! -s out/conftest.err; then
13091 lt_cv_prog_compiler_c_o_F77=yes
13092 fi
13093 fi
13094 chmod u+w .
13095 $rm conftest* out/*
13096 rmdir out
13097 cd ..
13098 rmdir conftest
13099 $rm conftest*
13100
13101fi
13102echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13103echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13104
13105
13106hard_links="nottested"
13107if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13108 # do not overwrite the value of need_locks provided by the user
13109 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13110echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13111 hard_links=yes
13112 $rm conftest*
13113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13114 touch conftest.a
13115 ln conftest.a conftest.b 2>&5 || hard_links=no
13116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13117 echo "$as_me:$LINENO: result: $hard_links" >&5
13118echo "${ECHO_T}$hard_links" >&6
13119 if test "$hard_links" = no; then
13120 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13121echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13122 need_locks=warn
13123 fi
13124else
13125 need_locks=no
13126fi
13127
13128echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13129echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13130
13131 runpath_var=
13132 allow_undefined_flag_F77=
13133 enable_shared_with_static_runtimes_F77=no
13134 archive_cmds_F77=
13135 archive_expsym_cmds_F77=
13136 old_archive_From_new_cmds_F77=
13137 old_archive_from_expsyms_cmds_F77=
13138 export_dynamic_flag_spec_F77=
13139 whole_archive_flag_spec_F77=
13140 thread_safe_flag_spec_F77=
13141 hardcode_libdir_flag_spec_F77=
13142 hardcode_libdir_flag_spec_ld_F77=
13143 hardcode_libdir_separator_F77=
13144 hardcode_direct_F77=no
13145 hardcode_minus_L_F77=no
13146 hardcode_shlibpath_var_F77=unsupported
13147 link_all_deplibs_F77=unknown
13148 hardcode_automatic_F77=no
13149 module_cmds_F77=
13150 module_expsym_cmds_F77=
13151 always_export_symbols_F77=no
13152 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13153 # include_expsyms should be a list of space-separated symbols to be *always*
13154 # included in the symbol list
13155 include_expsyms_F77=
13156 # exclude_expsyms can be an extended regexp of symbols to exclude
13157 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13158 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13159 # as well as any symbol that contains `d'.
13160 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13161 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13162 # platforms (ab)use it in PIC code, but their linkers get confused if
13163 # the symbol is explicitly referenced. Since portable code cannot
13164 # rely on this symbol name, it's probably fine to never include it in
13165 # preloaded symbol tables.
13166 extract_expsyms_cmds=
13167
13168 case $host_os in
13169 cygwin* | mingw* | pw32*)
13170 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13171 # When not using gcc, we currently assume that we are using
13172 # Microsoft Visual C++.
13173 if test "$GCC" != yes; then
13174 with_gnu_ld=no
13175 fi
13176 ;;
13177 openbsd*)
13178 with_gnu_ld=no
13179 ;;
13180 esac
13181
13182 ld_shlibs_F77=yes
13183 if test "$with_gnu_ld" = yes; then
13184 # If archive_cmds runs LD, not CC, wlarc should be empty
13185 wlarc='${wl}'
13186
13187 # See if GNU ld supports shared libraries.
13188 case $host_os in
13189 aix3* | aix4* | aix5*)
13190 # On AIX/PPC, the GNU linker is very broken
13191 if test "$host_cpu" != ia64; then
13192 ld_shlibs_F77=no
13193 cat <<EOF 1>&2
13194
13195*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13196*** to be unable to reliably create shared libraries on AIX.
13197*** Therefore, libtool is disabling shared libraries support. If you
13198*** really care for shared libraries, you may want to modify your PATH
13199*** so that a non-GNU linker is found, and then restart.
13200
13201EOF
13202 fi
13203 ;;
13204
13205 amigaos*)
13206 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)'
13207 hardcode_libdir_flag_spec_F77='-L$libdir'
13208 hardcode_minus_L_F77=yes
13209
13210 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13211 # that the semantics of dynamic libraries on AmigaOS, at least up
13212 # to version 4, is to share data among multiple programs linked
13213 # with the same dynamic library. Since this doesn't match the
13214 # behavior of shared libraries on other platforms, we can't use
13215 # them.
13216 ld_shlibs_F77=no
13217 ;;
13218
13219 beos*)
13220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13221 allow_undefined_flag_F77=unsupported
13222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13223 # support --undefined. This deserves some investigation. FIXME
13224 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13225 else
13226 ld_shlibs_F77=no
13227 fi
13228 ;;
13229
13230 cygwin* | mingw* | pw32*)
13231 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13232 # as there is no search path for DLLs.
13233 hardcode_libdir_flag_spec_F77='-L$libdir'
13234 allow_undefined_flag_F77=unsupported
13235 always_export_symbols_F77=no
13236 enable_shared_with_static_runtimes_F77=yes
13237 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13238
13239 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13240 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13241 # If the export-symbols file already is a .def file (1st line
13242 # is EXPORTS), use it as is; otherwise, prepend...
13243 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13244 cp $export_symbols $output_objdir/$soname.def;
13245 else
13246 echo EXPORTS > $output_objdir/$soname.def;
13247 cat $export_symbols >> $output_objdir/$soname.def;
13248 fi~
13249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13250 else
13251 ld_shlibs=no
13252 fi
13253 ;;
13254
13255 netbsd*)
13256 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13257 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13258 wlarc=
13259 else
13260 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13262 fi
13263 ;;
13264
13265 solaris* | sysv5*)
13266 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13267 ld_shlibs_F77=no
13268 cat <<EOF 1>&2
13269
13270*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13271*** create shared libraries on Solaris systems. Therefore, libtool
13272*** is disabling shared libraries support. We urge you to upgrade GNU
13273*** binutils to release 2.9.1 or newer. Another option is to modify
13274*** your PATH or compiler configuration so that the native linker is
13275*** used, and then restart.
13276
13277EOF
13278 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13279 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13280 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13281 else
13282 ld_shlibs_F77=no
13283 fi
13284 ;;
13285
13286 sunos4*)
13287 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13288 wlarc=
13289 hardcode_direct_F77=yes
13290 hardcode_shlibpath_var_F77=no
13291 ;;
13292
13293 *)
13294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13295 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13296 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13297 else
13298 ld_shlibs_F77=no
13299 fi
13300 ;;
13301 esac
13302
13303 if test "$ld_shlibs_F77" = yes; then
13304 runpath_var=LD_RUN_PATH
13305 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13306 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13307 # ancient GNU ld didn't support --whole-archive et. al.
13308 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13309 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13310 else
13311 whole_archive_flag_spec_F77=
13312 fi
13313 fi
13314 else
13315 # PORTME fill in a description of your system's linker (not GNU ld)
13316 case $host_os in
13317 aix3*)
13318 allow_undefined_flag_F77=unsupported
13319 always_export_symbols_F77=yes
13320 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'
13321 # Note: this linker hardcodes the directories in LIBPATH if there
13322 # are no directories specified by -L.
13323 hardcode_minus_L_F77=yes
13324 if test "$GCC" = yes && test -z "$link_static_flag"; then
13325 # Neither direct hardcoding nor static linking is supported with a
13326 # broken collect2.
13327 hardcode_direct_F77=unsupported
13328 fi
13329 ;;
13330
13331 aix4* | aix5*)
13332 if test "$host_cpu" = ia64; then
13333 # On IA64, the linker does run time linking by default, so we don't
13334 # have to do anything special.
13335 aix_use_runtimelinking=no
13336 exp_sym_flag='-Bexport'
13337 no_entry_flag=""
13338 else
13339 # If we're using GNU nm, then we don't want the "-C" option.
13340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13341 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13342 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'
13343 else
13344 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'
13345 fi
13346 aix_use_runtimelinking=no
13347
13348 # Test if we are trying to use run time linking or normal
13349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13350 # need to do runtime linking.
13351 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13352 for ld_flag in $LDFLAGS; do
13353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13354 aix_use_runtimelinking=yes
13355 break
13356 fi
13357 done
13358 esac
13359
13360 exp_sym_flag='-bexport'
13361 no_entry_flag='-bnoentry'
13362 fi
13363
13364 # When large executables or shared objects are built, AIX ld can
13365 # have problems creating the table of contents. If linking a library
13366 # or program results in "error TOC overflow" add -mminimal-toc to
13367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13369
13370 archive_cmds_F77=''
13371 hardcode_direct_F77=yes
13372 hardcode_libdir_separator_F77=':'
13373 link_all_deplibs_F77=yes
13374
13375 if test "$GCC" = yes; then
13376 case $host_os in aix4.012|aix4.012.*)
13377 # We only want to do this on AIX 4.2 and lower, the check
13378 # below for broken collect2 doesn't work under 4.3+
13379 collect2name=`${CC} -print-prog-name=collect2`
13380 if test -f "$collect2name" && \
13381 strings "$collect2name" | grep resolve_lib_name >/dev/null
13382 then
13383 # We have reworked collect2
13384 hardcode_direct_F77=yes
13385 else
13386 # We have old collect2
13387 hardcode_direct_F77=unsupported
13388 # It fails to find uninstalled libraries when the uninstalled
13389 # path is not listed in the libpath. Setting hardcode_minus_L
13390 # to unsupported forces relinking
13391 hardcode_minus_L_F77=yes
13392 hardcode_libdir_flag_spec_F77='-L$libdir'
13393 hardcode_libdir_separator_F77=
13394 fi
13395 esac
13396 shared_flag='-shared'
13397 else
13398 # not using gcc
13399 if test "$host_cpu" = ia64; then
13400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13401 # chokes on -Wl,-G. The following line is correct:
13402 shared_flag='-G'
13403 else
13404 if test "$aix_use_runtimelinking" = yes; then
13405 shared_flag='${wl}-G'
13406 else
13407 shared_flag='${wl}-bM:SRE'
13408 fi
13409 fi
13410 fi
13411
13412 # It seems that -bexpall does not export symbols beginning with
13413 # underscore (_), so it is better to generate a list of symbols to export.
13414 always_export_symbols_F77=yes
13415 if test "$aix_use_runtimelinking" = yes; then
13416 # Warning - without using the other runtime loading flags (-brtl),
13417 # -berok will link without error, but may produce a broken library.
13418 allow_undefined_flag_F77='-berok'
13419 # Determine the default libpath from the value encoded in an empty executable.
13420 cat >conftest.$ac_ext <<_ACEOF
13421 program main
13422
13423 end
13424_ACEOF
13425rm -f conftest.$ac_objext conftest$ac_exeext
13426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13427 (eval $ac_link) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -s conftest$ac_exeext'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437
13438aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13439}'`
13440# Check for a 64-bit object if we didn't find anything.
13441if 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; }
13442}'`; fi
13443else
13444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013445sed 's/^/| /' conftest.$ac_ext >&5
13446
John Criswell47fdd832003-07-14 16:52:07 +000013447fi
13448rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13449if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13450
13451 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13452 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"
13453 else
13454 if test "$host_cpu" = ia64; then
13455 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13456 allow_undefined_flag_F77="-z nodefs"
13457 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"
13458 else
13459 # Determine the default libpath from the value encoded in an empty executable.
13460 cat >conftest.$ac_ext <<_ACEOF
13461 program main
13462
13463 end
13464_ACEOF
13465rm -f conftest.$ac_objext conftest$ac_exeext
13466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13467 (eval $ac_link) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -s conftest$ac_exeext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477
13478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13479}'`
13480# Check for a 64-bit object if we didn't find anything.
13481if 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; }
13482}'`; fi
13483else
13484 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013485sed 's/^/| /' conftest.$ac_ext >&5
13486
John Criswell47fdd832003-07-14 16:52:07 +000013487fi
13488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13490
13491 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13492 # Warning - without using the other run time loading flags,
13493 # -berok will link without error, but may produce a broken library.
13494 no_undefined_flag_F77=' ${wl}-bernotok'
13495 allow_undefined_flag_F77=' ${wl}-berok'
13496 # -bexpall does not export symbols beginning with underscore (_)
13497 always_export_symbols_F77=yes
13498 # Exported symbols can be pulled into shared objects from archives
13499 whole_archive_flag_spec_F77=' '
13500 archive_cmds_need_lc_F77=yes
13501 # This is similar to how AIX traditionally builds it's shared libraries.
13502 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'
13503 fi
13504 fi
13505 ;;
13506
13507 amigaos*)
13508 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)'
13509 hardcode_libdir_flag_spec_F77='-L$libdir'
13510 hardcode_minus_L_F77=yes
13511 # see comment about different semantics on the GNU ld section
13512 ld_shlibs_F77=no
13513 ;;
13514
13515 bsdi4*)
13516 export_dynamic_flag_spec_F77=-rdynamic
13517 ;;
13518
13519 cygwin* | mingw* | pw32*)
13520 # When not using gcc, we currently assume that we are using
13521 # Microsoft Visual C++.
13522 # hardcode_libdir_flag_spec is actually meaningless, as there is
13523 # no search path for DLLs.
13524 hardcode_libdir_flag_spec_F77=' '
13525 allow_undefined_flag_F77=unsupported
13526 # Tell ltmain to make .lib files, not .a files.
13527 libext=lib
13528 # Tell ltmain to make .dll files, not .so files.
13529 shrext=".dll"
13530 # FIXME: Setting linknames here is a bad hack.
13531 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13532 # The linker will automatically build a .lib file if we build a DLL.
13533 old_archive_From_new_cmds_F77='true'
13534 # FIXME: Should let the user specify the lib program.
13535 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13536 fix_srcfile_path='`cygpath -w "$srcfile"`'
13537 enable_shared_with_static_runtimes_F77=yes
13538 ;;
13539
13540 darwin* | rhapsody*)
13541 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13542 archive_cmds_need_lc_F77=no
13543 case "$host_os" in
13544 rhapsody* | darwin1.[012])
13545 allow_undefined_flag_F77='-undefined suppress'
13546 ;;
13547 *) # Darwin 1.3 on
13548 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13549 ;;
13550 esac
13551 # FIXME: Relying on posixy $() will cause problems for
13552 # cross-compilation, but unfortunately the echo tests do not
13553 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13554 # `"' quotes if we put them in here... so don't!
13555 lt_int_apple_cc_single_mod=no
13556 output_verbose_link_cmd='echo'
13557 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13558 lt_int_apple_cc_single_mod=yes
13559 fi
13560 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13561 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13562 else
13563 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'
13564 fi
13565 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13567 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13568 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}'
13569 else
13570 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}'
13571 fi
13572 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}'
13573 hardcode_direct_F77=no
13574 hardcode_automatic_F77=yes
13575 hardcode_shlibpath_var_F77=unsupported
13576 whole_archive_flag_spec_F77='-all_load $convenience'
13577 link_all_deplibs_F77=yes
13578 fi
13579 ;;
13580
13581 dgux*)
13582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 hardcode_libdir_flag_spec_F77='-L$libdir'
13584 hardcode_shlibpath_var_F77=no
13585 ;;
13586
13587 freebsd1*)
13588 ld_shlibs_F77=no
13589 ;;
13590
13591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13592 # support. Future versions do this automatically, but an explicit c++rt0.o
13593 # does not break anything, and helps significantly (at the cost of a little
13594 # extra space).
13595 freebsd2.2*)
13596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13597 hardcode_libdir_flag_spec_F77='-R$libdir'
13598 hardcode_direct_F77=yes
13599 hardcode_shlibpath_var_F77=no
13600 ;;
13601
13602 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13603 freebsd2*)
13604 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13605 hardcode_direct_F77=yes
13606 hardcode_minus_L_F77=yes
13607 hardcode_shlibpath_var_F77=no
13608 ;;
13609
13610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13611 freebsd*)
13612 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13613 hardcode_libdir_flag_spec_F77='-R$libdir'
13614 hardcode_direct_F77=yes
13615 hardcode_shlibpath_var_F77=no
13616 ;;
13617
13618 hpux9*)
13619 if test "$GCC" = yes; then
13620 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'
13621 else
13622 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'
13623 fi
13624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13625 hardcode_libdir_separator_F77=:
13626 hardcode_direct_F77=yes
13627
13628 # hardcode_minus_L: Not really in the search PATH,
13629 # but as the default location of the library.
13630 hardcode_minus_L_F77=yes
13631 export_dynamic_flag_spec_F77='${wl}-E'
13632 ;;
13633
13634 hpux10* | hpux11*)
13635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13636 case "$host_cpu" in
13637 hppa*64*|ia64*)
13638 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 ;;
13640 *)
13641 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13642 ;;
13643 esac
13644 else
13645 case "$host_cpu" in
13646 hppa*64*|ia64*)
13647 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13648 ;;
13649 *)
13650 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13651 ;;
13652 esac
13653 fi
13654 if test "$with_gnu_ld" = no; then
13655 case "$host_cpu" in
13656 hppa*64*)
13657 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13658 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13659 hardcode_libdir_separator_F77=:
13660 hardcode_direct_F77=no
13661 hardcode_shlibpath_var_F77=no
13662 ;;
13663 ia64*)
13664 hardcode_libdir_flag_spec_F77='-L$libdir'
13665 hardcode_direct_F77=no
13666 hardcode_shlibpath_var_F77=no
13667
13668 # hardcode_minus_L: Not really in the search PATH,
13669 # but as the default location of the library.
13670 hardcode_minus_L_F77=yes
13671 ;;
13672 *)
13673 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13674 hardcode_libdir_separator_F77=:
13675 hardcode_direct_F77=yes
13676 export_dynamic_flag_spec_F77='${wl}-E'
13677
13678 # hardcode_minus_L: Not really in the search PATH,
13679 # but as the default location of the library.
13680 hardcode_minus_L_F77=yes
13681 ;;
13682 esac
13683 fi
13684 ;;
13685
13686 irix5* | irix6* | nonstopux*)
13687 if test "$GCC" = yes; then
13688 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'
13689 else
13690 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'
13691 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13692 fi
13693 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13694 hardcode_libdir_separator_F77=:
13695 link_all_deplibs_F77=yes
13696 ;;
13697
13698 netbsd*)
13699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13700 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13701 else
13702 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13703 fi
13704 hardcode_libdir_flag_spec_F77='-R$libdir'
13705 hardcode_direct_F77=yes
13706 hardcode_shlibpath_var_F77=no
13707 ;;
13708
13709 newsos6)
13710 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711 hardcode_direct_F77=yes
13712 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13713 hardcode_libdir_separator_F77=:
13714 hardcode_shlibpath_var_F77=no
13715 ;;
13716
13717 openbsd*)
13718 hardcode_direct_F77=yes
13719 hardcode_shlibpath_var_F77=no
13720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13721 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13722 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13723 export_dynamic_flag_spec_F77='${wl}-E'
13724 else
13725 case $host_os in
13726 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13727 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13728 hardcode_libdir_flag_spec_F77='-R$libdir'
13729 ;;
13730 *)
13731 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13732 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13733 ;;
13734 esac
13735 fi
13736 ;;
13737
13738 os2*)
13739 hardcode_libdir_flag_spec_F77='-L$libdir'
13740 hardcode_minus_L_F77=yes
13741 allow_undefined_flag_F77=unsupported
13742 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'
13743 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13744 ;;
13745
13746 osf3*)
13747 if test "$GCC" = yes; then
13748 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13749 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13750 else
13751 allow_undefined_flag_F77=' -expect_unresolved \*'
13752 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'
13753 fi
13754 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13755 hardcode_libdir_separator_F77=:
13756 ;;
13757
13758 osf4* | osf5*) # as osf3* with the addition of -msym flag
13759 if test "$GCC" = yes; then
13760 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13761 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'
13762 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13763 else
13764 allow_undefined_flag_F77=' -expect_unresolved \*'
13765 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'
13766 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~
13767 $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'
13768
13769 # Both c and cxx compiler support -rpath directly
13770 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13771 fi
13772 hardcode_libdir_separator_F77=:
13773 ;;
13774
13775 sco3.2v5*)
13776 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13777 hardcode_shlibpath_var_F77=no
13778 export_dynamic_flag_spec_F77='${wl}-Bexport'
13779 runpath_var=LD_RUN_PATH
13780 hardcode_runpath_var=yes
13781 ;;
13782
13783 solaris*)
13784 no_undefined_flag_F77=' -z text'
13785 if test "$GCC" = yes; then
13786 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13787 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13789 else
13790 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13792 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13793 fi
13794 hardcode_libdir_flag_spec_F77='-R$libdir'
13795 hardcode_shlibpath_var_F77=no
13796 case $host_os in
13797 solaris2.[0-5] | solaris2.[0-5].*) ;;
13798 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13799 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13800 esac
13801 link_all_deplibs_F77=yes
13802 ;;
13803
13804 sunos4*)
13805 if test "x$host_vendor" = xsequent; then
13806 # Use $CC to link under sequent, because it throws in some extra .o
13807 # files that make .init and .fini sections work.
13808 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13809 else
13810 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13811 fi
13812 hardcode_libdir_flag_spec_F77='-L$libdir'
13813 hardcode_direct_F77=yes
13814 hardcode_minus_L_F77=yes
13815 hardcode_shlibpath_var_F77=no
13816 ;;
13817
13818 sysv4)
13819 case $host_vendor in
13820 sni)
13821 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13822 hardcode_direct_F77=yes # is this really true???
13823 ;;
13824 siemens)
13825 ## LD is ld it makes a PLAMLIB
13826 ## CC just makes a GrossModule.
13827 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13828 reload_cmds_F77='$CC -r -o $output$reload_objs'
13829 hardcode_direct_F77=no
13830 ;;
13831 motorola)
13832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13834 ;;
13835 esac
13836 runpath_var='LD_RUN_PATH'
13837 hardcode_shlibpath_var_F77=no
13838 ;;
13839
13840 sysv4.3*)
13841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13842 hardcode_shlibpath_var_F77=no
13843 export_dynamic_flag_spec_F77='-Bexport'
13844 ;;
13845
13846 sysv4*MP*)
13847 if test -d /usr/nec; then
13848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_shlibpath_var_F77=no
13850 runpath_var=LD_RUN_PATH
13851 hardcode_runpath_var=yes
13852 ld_shlibs_F77=yes
13853 fi
13854 ;;
13855
13856 sysv4.2uw2*)
13857 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13858 hardcode_direct_F77=yes
13859 hardcode_minus_L_F77=no
13860 hardcode_shlibpath_var_F77=no
13861 hardcode_runpath_var=yes
13862 runpath_var=LD_RUN_PATH
13863 ;;
13864
13865 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13866 no_undefined_flag_F77='${wl}-z ${wl}text'
13867 if test "$GCC" = yes; then
13868 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13869 else
13870 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13871 fi
13872 runpath_var='LD_RUN_PATH'
13873 hardcode_shlibpath_var_F77=no
13874 ;;
13875
13876 sysv5*)
13877 no_undefined_flag_F77=' -z text'
13878 # $CC -shared without GNU ld will not create a library from C++
13879 # object files and a static libstdc++, better avoid it by now
13880 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13883 hardcode_libdir_flag_spec_F77=
13884 hardcode_shlibpath_var_F77=no
13885 runpath_var='LD_RUN_PATH'
13886 ;;
13887
13888 uts4*)
13889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13890 hardcode_libdir_flag_spec_F77='-L$libdir'
13891 hardcode_shlibpath_var_F77=no
13892 ;;
13893
13894 *)
13895 ld_shlibs_F77=no
13896 ;;
13897 esac
13898 fi
13899
13900echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13901echo "${ECHO_T}$ld_shlibs_F77" >&6
13902test "$ld_shlibs_F77" = no && can_build_shared=no
13903
13904variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13905if test "$GCC" = yes; then
13906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13907fi
13908
13909#
13910# Do we need to explicitly link libc?
13911#
13912case "x$archive_cmds_need_lc_F77" in
13913x|xyes)
13914 # Assume -lc should be added
13915 archive_cmds_need_lc_F77=yes
13916
13917 if test "$enable_shared" = yes && test "$GCC" = yes; then
13918 case $archive_cmds_F77 in
13919 *'~'*)
13920 # FIXME: we may have to deal with multi-command sequences.
13921 ;;
13922 '$CC '*)
13923 # Test whether the compiler implicitly links with -lc since on some
13924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13925 # to ld, don't add -lc before -lgcc.
13926 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13927echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13928 $rm conftest*
13929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13930
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932 (eval $ac_compile) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } 2>conftest.err; then
13936 soname=conftest
13937 lib=conftest
13938 libobjs=conftest.$ac_objext
13939 deplibs=
13940 wl=$lt_prog_compiler_wl_F77
13941 compiler_flags=-v
13942 linker_flags=-v
13943 verstring=
13944 output_objdir=.
13945 libname=conftest
13946 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13947 allow_undefined_flag_F77=
13948 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13949 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }
13953 then
13954 archive_cmds_need_lc_F77=no
13955 else
13956 archive_cmds_need_lc_F77=yes
13957 fi
13958 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13959 else
13960 cat conftest.err 1>&5
13961 fi
13962 $rm conftest*
13963 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13964echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13965 ;;
13966 esac
13967 fi
13968 ;;
13969esac
13970
13971echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13972echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13973hardcode_action_F77=
13974if test -n "$hardcode_libdir_flag_spec_F77" || \
13975 test -n "$runpath_var F77" || \
13976 test "X$hardcode_automatic_F77"="Xyes" ; then
13977
13978 # We can hardcode non-existant directories.
13979 if test "$hardcode_direct_F77" != no &&
13980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13981 # have to relink, otherwise we might link with an installed library
13982 # when we should be linking with a yet-to-be-installed one
13983 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13984 test "$hardcode_minus_L_F77" != no; then
13985 # Linking always hardcodes the temporary library directory.
13986 hardcode_action_F77=relink
13987 else
13988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13989 hardcode_action_F77=immediate
13990 fi
13991else
13992 # We cannot hardcode anything, or else we can only hardcode existing
13993 # directories.
13994 hardcode_action_F77=unsupported
13995fi
13996echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13997echo "${ECHO_T}$hardcode_action_F77" >&6
13998
13999if test "$hardcode_action_F77" = relink; then
14000 # Fast installation is not supported
14001 enable_fast_install=no
14002elif test "$shlibpath_overrides_runpath" = yes ||
14003 test "$enable_shared" = no; then
14004 # Fast installation is not necessary
14005 enable_fast_install=needless
14006fi
14007
14008striplib=
14009old_striplib=
14010echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14011echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14012if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14013 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14014 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14015 echo "$as_me:$LINENO: result: yes" >&5
14016echo "${ECHO_T}yes" >&6
14017else
14018# FIXME - insert some real tests, host_os isn't really good enough
14019 case $host_os in
14020 darwin*)
14021 if test -n "$STRIP" ; then
14022 striplib="$STRIP -x"
14023 echo "$as_me:$LINENO: result: yes" >&5
14024echo "${ECHO_T}yes" >&6
14025 else
14026 echo "$as_me:$LINENO: result: no" >&5
14027echo "${ECHO_T}no" >&6
14028fi
14029 ;;
14030 *)
14031 echo "$as_me:$LINENO: result: no" >&5
14032echo "${ECHO_T}no" >&6
14033 ;;
14034 esac
14035fi
14036
14037echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14038echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14039library_names_spec=
14040libname_spec='lib$name'
14041soname_spec=
14042shrext=".so"
14043postinstall_cmds=
14044postuninstall_cmds=
14045finish_cmds=
14046finish_eval=
14047shlibpath_var=
14048shlibpath_overrides_runpath=unknown
14049version_type=none
14050dynamic_linker="$host_os ld.so"
14051sys_lib_dlsearch_path_spec="/lib /usr/lib"
14052if test "$GCC" = yes; then
14053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14054 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14055 # if the path contains ";" then we assume it to be the separator
14056 # otherwise default to the standard path separator (i.e. ":") - it is
14057 # assumed that no part of a normal pathname contains ";" but that should
14058 # okay in the real world where ";" in dirpaths is itself problematic.
14059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14060 else
14061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14062 fi
14063else
14064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14065fi
14066need_lib_prefix=unknown
14067hardcode_into_libs=no
14068
14069# when you set need_version to no, make sure it does not cause -set_version
14070# flags to be left without arguments
14071need_version=unknown
14072
14073case $host_os in
14074aix3*)
14075 version_type=linux
14076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14077 shlibpath_var=LIBPATH
14078
14079 # AIX 3 has no versioning support, so we append a major version to the name.
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 ;;
14082
14083aix4* | aix5*)
14084 version_type=linux
14085 need_lib_prefix=no
14086 need_version=no
14087 hardcode_into_libs=yes
14088 if test "$host_cpu" = ia64; then
14089 # AIX 5 supports IA64
14090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14091 shlibpath_var=LD_LIBRARY_PATH
14092 else
14093 # With GCC up to 2.95.x, collect2 would create an import file
14094 # for dependence libraries. The import file would start with
14095 # the line `#! .'. This would cause the generated library to
14096 # depend on `.', always an invalid library. This was fixed in
14097 # development snapshots of GCC prior to 3.0.
14098 case $host_os in
14099 aix4 | aix4.[01] | aix4.[01].*)
14100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14101 echo ' yes '
14102 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14103 :
14104 else
14105 can_build_shared=no
14106 fi
14107 ;;
14108 esac
14109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14110 # soname into executable. Probably we can add versioning support to
14111 # collect2, so additional links can be useful in future.
14112 if test "$aix_use_runtimelinking" = yes; then
14113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14114 # instead of lib<name>.a to let people know that these are not
14115 # typical AIX shared libraries.
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117 else
14118 # We preserve .a as extension for shared libraries through AIX4.2
14119 # and later when we are not doing run time linking.
14120 library_names_spec='${libname}${release}.a $libname.a'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 fi
14123 shlibpath_var=LIBPATH
14124 fi
14125 ;;
14126
14127amigaos*)
14128 library_names_spec='$libname.ixlibrary $libname.a'
14129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14130 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'
14131 ;;
14132
14133beos*)
14134 library_names_spec='${libname}${shared_ext}'
14135 dynamic_linker="$host_os ld.so"
14136 shlibpath_var=LIBRARY_PATH
14137 ;;
14138
14139bsdi4*)
14140 version_type=linux
14141 need_version=no
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143 soname_spec='${libname}${release}${shared_ext}$major'
14144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14145 shlibpath_var=LD_LIBRARY_PATH
14146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14148 # the default ld.so.conf also contains /usr/contrib/lib and
14149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14150 # libtool to hard-code these into programs
14151 ;;
14152
14153cygwin* | mingw* | pw32*)
14154 version_type=windows
14155 shrext=".dll"
14156 need_version=no
14157 need_lib_prefix=no
14158
14159 case $GCC,$host_os in
14160 yes,cygwin* | yes,mingw* | yes,pw32*)
14161 library_names_spec='$libname.dll.a'
14162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14163 postinstall_cmds='base_file=`basename \${file}`~
14164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14165 dldir=$destdir/`dirname \$dlpath`~
14166 test -d \$dldir || mkdir -p \$dldir~
14167 $install_prog $dir/$dlname \$dldir/$dlname'
14168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14169 dlpath=$dir/\$dldll~
14170 $rm \$dlpath'
14171 shlibpath_overrides_runpath=yes
14172
14173 case $host_os in
14174 cygwin*)
14175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14177 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14178 ;;
14179 mingw*)
14180 # MinGW DLLs use traditional 'lib' prefix
14181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14183 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14184 # It is most probably a Windows format PATH printed by
14185 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14186 # path with ; separators, and with drive letters. We can handle the
14187 # drive letters (cygwin fileutils understands them), so leave them,
14188 # especially as we might pass files found there to a mingw objdump,
14189 # which wouldn't understand a cygwinified path. Ahh.
14190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14191 else
14192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14193 fi
14194 ;;
14195 pw32*)
14196 # pw32 DLLs use 'pw' prefix rather than 'lib'
14197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14198 ;;
14199 esac
14200 ;;
14201
14202 *)
14203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14204 ;;
14205 esac
14206 dynamic_linker='Win32 ld.exe'
14207 # FIXME: first we should search . and the directory the executable is in
14208 shlibpath_var=PATH
14209 ;;
14210
14211darwin* | rhapsody*)
14212 dynamic_linker="$host_os dyld"
14213 version_type=darwin
14214 need_lib_prefix=no
14215 need_version=no
14216 # FIXME: Relying on posixy $() will cause problems for
14217 # cross-compilation, but unfortunately the echo tests do not
14218 # yet detect zsh echo's removal of \ escapes.
14219 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14220 soname_spec='${libname}${release}${major}$shared_ext'
14221 shlibpath_overrides_runpath=yes
14222 shlibpath_var=DYLD_LIBRARY_PATH
14223 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14224 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14225 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14226 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"`
14227 fi
14228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14229 ;;
14230
14231dgux*)
14232 version_type=linux
14233 need_lib_prefix=no
14234 need_version=no
14235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14236 soname_spec='${libname}${release}${shared_ext}$major'
14237 shlibpath_var=LD_LIBRARY_PATH
14238 ;;
14239
14240freebsd1*)
14241 dynamic_linker=no
14242 ;;
14243
14244freebsd*)
14245 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14246 version_type=freebsd-$objformat
14247 case $version_type in
14248 freebsd-elf*)
14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14250 need_version=no
14251 need_lib_prefix=no
14252 ;;
14253 freebsd-*)
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14255 need_version=yes
14256 ;;
14257 esac
14258 shlibpath_var=LD_LIBRARY_PATH
14259 case $host_os in
14260 freebsd2*)
14261 shlibpath_overrides_runpath=yes
14262 ;;
14263 freebsd3.01* | freebsdelf3.01*)
14264 shlibpath_overrides_runpath=yes
14265 hardcode_into_libs=yes
14266 ;;
14267 *) # from 3.2 on
14268 shlibpath_overrides_runpath=no
14269 hardcode_into_libs=yes
14270 ;;
14271 esac
14272 ;;
14273
14274gnu*)
14275 version_type=linux
14276 need_lib_prefix=no
14277 need_version=no
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14279 soname_spec='${libname}${release}${shared_ext}$major'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 hardcode_into_libs=yes
14282 ;;
14283
14284hpux9* | hpux10* | hpux11*)
14285 # Give a soname corresponding to the major version so that dld.sl refuses to
14286 # link against other versions.
14287 version_type=sunos
14288 need_lib_prefix=no
14289 need_version=no
14290 case "$host_cpu" in
14291 ia64*)
14292 shrext='.so'
14293 hardcode_into_libs=yes
14294 dynamic_linker="$host_os dld.so"
14295 shlibpath_var=LD_LIBRARY_PATH
14296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298 soname_spec='${libname}${release}${shared_ext}$major'
14299 if test "X$HPUX_IA64_MODE" = X32; then
14300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14301 else
14302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14303 fi
14304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14305 ;;
14306 hppa*64*)
14307 shrext='.sl'
14308 hardcode_into_libs=yes
14309 dynamic_linker="$host_os dld.sl"
14310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14316 ;;
14317 *)
14318 shrext='.sl'
14319 dynamic_linker="$host_os dld.sl"
14320 shlibpath_var=SHLIB_PATH
14321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14324 ;;
14325 esac
14326 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14327 postinstall_cmds='chmod 555 $lib'
14328 ;;
14329
14330irix5* | irix6* | nonstopux*)
14331 case $host_os in
14332 nonstopux*) version_type=nonstopux ;;
14333 *)
14334 if test "$lt_cv_prog_gnu_ld" = yes; then
14335 version_type=linux
14336 else
14337 version_type=irix
14338 fi ;;
14339 esac
14340 need_lib_prefix=no
14341 need_version=no
14342 soname_spec='${libname}${release}${shared_ext}$major'
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14344 case $host_os in
14345 irix5* | nonstopux*)
14346 libsuff= shlibsuff=
14347 ;;
14348 *)
14349 case $LD in # libtool.m4 will add one of these switches to LD
14350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14351 libsuff= shlibsuff= libmagic=32-bit;;
14352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14353 libsuff=32 shlibsuff=N32 libmagic=N32;;
14354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14356 *) libsuff= shlibsuff= libmagic=never-match;;
14357 esac
14358 ;;
14359 esac
14360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14361 shlibpath_overrides_runpath=no
14362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14364 hardcode_into_libs=yes
14365 ;;
14366
14367# No shared lib support for Linux oldld, aout, or coff.
14368linux*oldld* | linux*aout* | linux*coff*)
14369 dynamic_linker=no
14370 ;;
14371
14372# This must be Linux ELF.
14373linux*)
14374 version_type=linux
14375 need_lib_prefix=no
14376 need_version=no
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14380 shlibpath_var=LD_LIBRARY_PATH
14381 shlibpath_overrides_runpath=no
14382 # This implies no fast_install, which is unacceptable.
14383 # Some rework will be needed to allow for fast_install
14384 # before this can be enabled.
14385 hardcode_into_libs=yes
14386
14387 # We used to test for /lib/ld.so.1 and disable shared libraries on
14388 # powerpc, because MkLinux only supported shared libraries with the
14389 # GNU dynamic linker. Since this was broken with cross compilers,
14390 # most powerpc-linux boxes support dynamic linking these days and
14391 # people can always --disable-shared, the test was removed, and we
14392 # assume the GNU/Linux dynamic linker is in use.
14393 dynamic_linker='GNU/Linux ld.so'
14394 ;;
14395
14396netbsd*)
14397 version_type=sunos
14398 need_lib_prefix=no
14399 need_version=no
14400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14403 dynamic_linker='NetBSD (a.out) ld.so'
14404 else
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 dynamic_linker='NetBSD ld.elf_so'
14408 fi
14409 shlibpath_var=LD_LIBRARY_PATH
14410 shlibpath_overrides_runpath=yes
14411 hardcode_into_libs=yes
14412 ;;
14413
14414newsos6)
14415 version_type=linux
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417 shlibpath_var=LD_LIBRARY_PATH
14418 shlibpath_overrides_runpath=yes
14419 ;;
14420
14421nto-qnx)
14422 version_type=linux
14423 need_lib_prefix=no
14424 need_version=no
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426 soname_spec='${libname}${release}${shared_ext}$major'
14427 shlibpath_var=LD_LIBRARY_PATH
14428 shlibpath_overrides_runpath=yes
14429 ;;
14430
14431openbsd*)
14432 version_type=sunos
14433 need_lib_prefix=no
14434 need_version=no
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437 shlibpath_var=LD_LIBRARY_PATH
14438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14439 case $host_os in
14440 openbsd2.[89] | openbsd2.[89].*)
14441 shlibpath_overrides_runpath=no
14442 ;;
14443 *)
14444 shlibpath_overrides_runpath=yes
14445 ;;
14446 esac
14447 else
14448 shlibpath_overrides_runpath=yes
14449 fi
14450 ;;
14451
14452os2*)
14453 libname_spec='$name'
14454 shrext=".dll"
14455 need_lib_prefix=no
14456 library_names_spec='$libname${shared_ext} $libname.a'
14457 dynamic_linker='OS/2 ld.exe'
14458 shlibpath_var=LIBPATH
14459 ;;
14460
14461osf3* | osf4* | osf5*)
14462 version_type=osf
14463 need_lib_prefix=no
14464 need_version=no
14465 soname_spec='${libname}${release}${shared_ext}$major'
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14470 ;;
14471
14472sco3.2v5*)
14473 version_type=osf
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 ;;
14478
14479solaris*)
14480 version_type=linux
14481 need_lib_prefix=no
14482 need_version=no
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 shlibpath_var=LD_LIBRARY_PATH
14486 shlibpath_overrides_runpath=yes
14487 hardcode_into_libs=yes
14488 # ldd complains unless libraries are executable
14489 postinstall_cmds='chmod +x $lib'
14490 ;;
14491
14492sunos4*)
14493 version_type=sunos
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14495 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14496 shlibpath_var=LD_LIBRARY_PATH
14497 shlibpath_overrides_runpath=yes
14498 if test "$with_gnu_ld" = yes; then
14499 need_lib_prefix=no
14500 fi
14501 need_version=yes
14502 ;;
14503
14504sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14505 version_type=linux
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 case $host_vendor in
14510 sni)
14511 shlibpath_overrides_runpath=no
14512 need_lib_prefix=no
14513 export_dynamic_flag_spec='${wl}-Blargedynsym'
14514 runpath_var=LD_RUN_PATH
14515 ;;
14516 siemens)
14517 need_lib_prefix=no
14518 ;;
14519 motorola)
14520 need_lib_prefix=no
14521 need_version=no
14522 shlibpath_overrides_runpath=no
14523 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14524 ;;
14525 esac
14526 ;;
14527
14528sysv4*MP*)
14529 if test -d /usr/nec ;then
14530 version_type=linux
14531 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14532 soname_spec='$libname${shared_ext}.$major'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 fi
14535 ;;
14536
14537uts4*)
14538 version_type=linux
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 soname_spec='${libname}${release}${shared_ext}$major'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 ;;
14543
14544*)
14545 dynamic_linker=no
14546 ;;
14547esac
14548echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14549echo "${ECHO_T}$dynamic_linker" >&6
14550test "$dynamic_linker" = no && can_build_shared=no
14551
14552
14553# The else clause should only fire when bootstrapping the
14554# libtool distribution, otherwise you forgot to ship ltmain.sh
14555# with your package, and you will get complaints that there are
14556# no rules to generate ltmain.sh.
14557if test -f "$ltmain"; then
14558 # See if we are running on zsh, and set the options which allow our commands through
14559 # without removal of \ escapes.
14560 if test -n "${ZSH_VERSION+set}" ; then
14561 setopt NO_GLOB_SUBST
14562 fi
14563 # Now quote all the things that may contain metacharacters while being
14564 # careful not to overquote the AC_SUBSTed values. We take copies of the
14565 # variables and quote the copies for generation of the libtool script.
14566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14567 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14568 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14569 deplibs_check_method reload_flag reload_cmds need_locks \
14570 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14571 lt_cv_sys_global_symbol_to_c_name_address \
14572 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14573 old_postinstall_cmds old_postuninstall_cmds \
14574 compiler_F77 \
14575 CC_F77 \
14576 LD_F77 \
14577 lt_prog_compiler_wl_F77 \
14578 lt_prog_compiler_pic_F77 \
14579 lt_prog_compiler_static_F77 \
14580 lt_prog_compiler_no_builtin_flag_F77 \
14581 export_dynamic_flag_spec_F77 \
14582 thread_safe_flag_spec_F77 \
14583 whole_archive_flag_spec_F77 \
14584 enable_shared_with_static_runtimes_F77 \
14585 old_archive_cmds_F77 \
14586 old_archive_from_new_cmds_F77 \
14587 predep_objects_F77 \
14588 postdep_objects_F77 \
14589 predeps_F77 \
14590 postdeps_F77 \
14591 compiler_lib_search_path_F77 \
14592 archive_cmds_F77 \
14593 archive_expsym_cmds_F77 \
14594 postinstall_cmds_F77 \
14595 postuninstall_cmds_F77 \
14596 old_archive_from_expsyms_cmds_F77 \
14597 allow_undefined_flag_F77 \
14598 no_undefined_flag_F77 \
14599 export_symbols_cmds_F77 \
14600 hardcode_libdir_flag_spec_F77 \
14601 hardcode_libdir_flag_spec_ld_F77 \
14602 hardcode_libdir_separator_F77 \
14603 hardcode_automatic_F77 \
14604 module_cmds_F77 \
14605 module_expsym_cmds_F77 \
14606 lt_cv_prog_compiler_c_o_F77 \
14607 exclude_expsyms_F77 \
14608 include_expsyms_F77; do
14609
14610 case $var in
14611 old_archive_cmds_F77 | \
14612 old_archive_from_new_cmds_F77 | \
14613 archive_cmds_F77 | \
14614 archive_expsym_cmds_F77 | \
14615 module_cmds_F77 | \
14616 module_expsym_cmds_F77 | \
14617 old_archive_from_expsyms_cmds_F77 | \
14618 export_symbols_cmds_F77 | \
14619 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14620 postinstall_cmds | postuninstall_cmds | \
14621 old_postinstall_cmds | old_postuninstall_cmds | \
14622 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14623 # Double-quote double-evaled strings.
14624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14625 ;;
14626 *)
14627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14628 ;;
14629 esac
14630 done
14631
14632 case $lt_echo in
14633 *'\$0 --fallback-echo"')
14634 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14635 ;;
14636 esac
14637
14638cfgfile="$ofile"
14639
14640 cat <<__EOF__ >> "$cfgfile"
14641# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14642
14643# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14644
14645# Shell to use when invoking shell scripts.
14646SHELL=$lt_SHELL
14647
14648# Whether or not to build shared libraries.
14649build_libtool_libs=$enable_shared
14650
14651# Whether or not to build static libraries.
14652build_old_libs=$enable_static
14653
14654# Whether or not to add -lc for building shared libraries.
14655build_libtool_need_lc=$archive_cmds_need_lc_F77
14656
14657# Whether or not to disallow shared libs when runtime libs are static
14658allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14659
14660# Whether or not to optimize for fast installation.
14661fast_install=$enable_fast_install
14662
14663# The host system.
14664host_alias=$host_alias
14665host=$host
14666
14667# An echo program that does not interpret backslashes.
14668echo=$lt_echo
14669
14670# The archiver.
14671AR=$lt_AR
14672AR_FLAGS=$lt_AR_FLAGS
14673
14674# A C compiler.
14675LTCC=$lt_LTCC
14676
14677# A language-specific compiler.
14678CC=$lt_compiler_F77
14679
14680# Is the compiler the GNU C compiler?
14681with_gcc=$GCC_F77
14682
14683# An ERE matcher.
14684EGREP=$lt_EGREP
14685
14686# The linker used to build libraries.
14687LD=$lt_LD_F77
14688
14689# Whether we need hard or soft links.
14690LN_S=$lt_LN_S
14691
14692# A BSD-compatible nm program.
14693NM=$lt_NM
14694
14695# A symbol stripping program
14696STRIP=$STRIP
14697
14698# Used to examine libraries when file_magic_cmd begins "file"
14699MAGIC_CMD=$MAGIC_CMD
14700
14701# Used on cygwin: DLL creation program.
14702DLLTOOL="$DLLTOOL"
14703
14704# Used on cygwin: object dumper.
14705OBJDUMP="$OBJDUMP"
14706
14707# Used on cygwin: assembler.
14708AS="$AS"
14709
14710# The name of the directory that contains temporary libtool files.
14711objdir=$objdir
14712
14713# How to create reloadable object files.
14714reload_flag=$lt_reload_flag
14715reload_cmds=$lt_reload_cmds
14716
14717# How to pass a linker flag through the compiler.
14718wl=$lt_lt_prog_compiler_wl_F77
14719
14720# Object file suffix (normally "o").
14721objext="$ac_objext"
14722
14723# Old archive suffix (normally "a").
14724libext="$libext"
14725
14726# Shared library suffix (normally ".so").
14727shrext='$shrext'
14728
14729# Executable file suffix (normally "").
14730exeext="$exeext"
14731
14732# Additional compiler flags for building library objects.
14733pic_flag=$lt_lt_prog_compiler_pic_F77
14734pic_mode=$pic_mode
14735
14736# What is the maximum length of a command?
14737max_cmd_len=$lt_cv_sys_max_cmd_len
14738
14739# Does compiler simultaneously support -c and -o options?
14740compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14741
14742# Must we lock files when doing compilation ?
14743need_locks=$lt_need_locks
14744
14745# Do we need the lib prefix for modules?
14746need_lib_prefix=$need_lib_prefix
14747
14748# Do we need a version for libraries?
14749need_version=$need_version
14750
14751# Whether dlopen is supported.
14752dlopen_support=$enable_dlopen
14753
14754# Whether dlopen of programs is supported.
14755dlopen_self=$enable_dlopen_self
14756
14757# Whether dlopen of statically linked programs is supported.
14758dlopen_self_static=$enable_dlopen_self_static
14759
14760# Compiler flag to prevent dynamic linking.
14761link_static_flag=$lt_lt_prog_compiler_static_F77
14762
14763# Compiler flag to turn off builtin functions.
14764no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14765
14766# Compiler flag to allow reflexive dlopens.
14767export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14768
14769# Compiler flag to generate shared objects directly from archives.
14770whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14771
14772# Compiler flag to generate thread-safe objects.
14773thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14774
14775# Library versioning type.
14776version_type=$version_type
14777
14778# Format of library name prefix.
14779libname_spec=$lt_libname_spec
14780
14781# List of archive names. First name is the real one, the rest are links.
14782# The last name is the one that the linker finds with -lNAME.
14783library_names_spec=$lt_library_names_spec
14784
14785# The coded name of the library, if different from the real name.
14786soname_spec=$lt_soname_spec
14787
14788# Commands used to build and install an old-style archive.
14789RANLIB=$lt_RANLIB
14790old_archive_cmds=$lt_old_archive_cmds_F77
14791old_postinstall_cmds=$lt_old_postinstall_cmds
14792old_postuninstall_cmds=$lt_old_postuninstall_cmds
14793
14794# Create an old-style archive from a shared archive.
14795old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14796
14797# Create a temporary old-style archive to link instead of a shared archive.
14798old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14799
14800# Commands used to build and install a shared archive.
14801archive_cmds=$lt_archive_cmds_F77
14802archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14803postinstall_cmds=$lt_postinstall_cmds
14804postuninstall_cmds=$lt_postuninstall_cmds
14805
14806# Commands used to build a loadable module (assumed same as above if empty)
14807module_cmds=$lt_module_cmds_F77
14808module_expsym_cmds=$lt_module_expsym_cmds_F77
14809
14810# Commands to strip libraries.
14811old_striplib=$lt_old_striplib
14812striplib=$lt_striplib
14813
14814# Dependencies to place before the objects being linked to create a
14815# shared library.
14816predep_objects=$lt_predep_objects_F77
14817
14818# Dependencies to place after the objects being linked to create a
14819# shared library.
14820postdep_objects=$lt_postdep_objects_F77
14821
14822# Dependencies to place before the objects being linked to create a
14823# shared library.
14824predeps=$lt_predeps_F77
14825
14826# Dependencies to place after the objects being linked to create a
14827# shared library.
14828postdeps=$lt_postdeps_F77
14829
14830# The library search path used internally by the compiler when linking
14831# a shared library.
14832compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14833
14834# Method to check whether dependent libraries are shared objects.
14835deplibs_check_method=$lt_deplibs_check_method
14836
14837# Command to use when deplibs_check_method == file_magic.
14838file_magic_cmd=$lt_file_magic_cmd
14839
14840# Flag that allows shared libraries with undefined symbols to be built.
14841allow_undefined_flag=$lt_allow_undefined_flag_F77
14842
14843# Flag that forces no undefined symbols.
14844no_undefined_flag=$lt_no_undefined_flag_F77
14845
14846# Commands used to finish a libtool library installation in a directory.
14847finish_cmds=$lt_finish_cmds
14848
14849# Same as above, but a single script fragment to be evaled but not shown.
14850finish_eval=$lt_finish_eval
14851
14852# Take the output of nm and produce a listing of raw symbols and C names.
14853global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14854
14855# Transform the output of nm in a proper C declaration
14856global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14857
14858# Transform the output of nm in a C name address pair
14859global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14860
14861# This is the shared library runtime path variable.
14862runpath_var=$runpath_var
14863
14864# This is the shared library path variable.
14865shlibpath_var=$shlibpath_var
14866
14867# Is shlibpath searched before the hard-coded library search path?
14868shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14869
14870# How to hardcode a shared library path into an executable.
14871hardcode_action=$hardcode_action_F77
14872
14873# Whether we should hardcode library paths into libraries.
14874hardcode_into_libs=$hardcode_into_libs
14875
14876# Flag to hardcode \$libdir into a binary during linking.
14877# This must work even if \$libdir does not exist.
14878hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14879
14880# If ld is used when linking, flag to hardcode \$libdir into
14881# a binary during linking. This must work even if \$libdir does
14882# not exist.
14883hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14884
14885# Whether we need a single -rpath flag with a separated argument.
14886hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14887
14888# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14889# resulting binary.
14890hardcode_direct=$hardcode_direct_F77
14891
14892# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14893# resulting binary.
14894hardcode_minus_L=$hardcode_minus_L_F77
14895
14896# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14897# the resulting binary.
14898hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14899
14900# Set to yes if building a shared library automatically hardcodes DIR into the library
14901# and all subsequent libraries and executables linked against it.
14902hardcode_automatic=$hardcode_automatic_F77
14903
14904# Variables whose values should be saved in libtool wrapper scripts and
14905# restored at relink time.
14906variables_saved_for_relink="$variables_saved_for_relink"
14907
14908# Whether libtool must link a program against all its dependency libraries.
14909link_all_deplibs=$link_all_deplibs_F77
14910
14911# Compile-time system search path for libraries
14912sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14913
14914# Run-time system search path for libraries
14915sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14916
14917# Fix the shell variable \$srcfile for the compiler.
14918fix_srcfile_path="$fix_srcfile_path_F77"
14919
14920# Set to yes if exported symbols are required.
14921always_export_symbols=$always_export_symbols_F77
14922
14923# The commands to list exported symbols.
14924export_symbols_cmds=$lt_export_symbols_cmds_F77
14925
14926# The commands to extract the exported symbol list from a shared archive.
14927extract_expsyms_cmds=$lt_extract_expsyms_cmds
14928
14929# Symbols that should not be listed in the preloaded symbols.
14930exclude_expsyms=$lt_exclude_expsyms_F77
14931
14932# Symbols that must always be exported.
14933include_expsyms=$lt_include_expsyms_F77
14934
14935# ### END LIBTOOL TAG CONFIG: $tagname
14936
14937__EOF__
14938
14939
14940else
14941 # If there is no Makefile yet, we rely on a make rule to execute
14942 # `config.status --recheck' to rerun these tests and create the
14943 # libtool script then.
14944 test -f Makefile && make "$ltmain"
14945fi
14946
14947
14948ac_ext=c
14949ac_cpp='$CPP $CPPFLAGS'
14950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14952ac_compiler_gnu=$ac_cv_c_compiler_gnu
14953
14954CC="$lt_save_CC"
14955
14956 else
14957 tagname=""
14958 fi
14959 ;;
14960
14961 GCJ)
14962 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14963
14964
14965
14966# Source file extension for Java test sources.
14967ac_ext=java
14968
14969# Object file extension for compiled Java test sources.
14970objext=o
14971objext_GCJ=$objext
14972
14973# Code to be used in simple compile tests
14974lt_simple_compile_test_code="class foo {}\n"
14975
14976# Code to be used in simple link tests
14977lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14978
14979# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14980
14981# If no C compiler was specified, use CC.
14982LTCC=${LTCC-"$CC"}
14983
14984# Allow CC to be a program name with arguments.
14985compiler=$CC
14986
14987
14988# Allow CC to be a program name with arguments.
14989lt_save_CC="$CC"
14990CC=${GCJ-"gcj"}
14991compiler=$CC
14992compiler_GCJ=$CC
14993
14994# GCJ did not exist at the time GCC didn't implicitly link libc in.
14995archive_cmds_need_lc_GCJ=no
14996
14997## CAVEAT EMPTOR:
14998## There is no encapsulation within the following macros, do not change
14999## the running order or otherwise move them around unless you know exactly
15000## what you are doing...
15001
15002lt_prog_compiler_no_builtin_flag_GCJ=
15003
15004if test "$GCC" = yes; then
15005 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15006
15007 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15008echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15009if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011else
15012 lt_cv_prog_compiler_rtti_exceptions=no
15013 ac_outfile=conftest.$ac_objext
15014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15015 lt_compiler_flag="-fno-rtti -fno-exceptions"
15016 # Insert the option either (1) after the last *FLAGS variable, or
15017 # (2) before a word containing "conftest.", or (3) at the end.
15018 # Note that $ac_compile itself does not contain backslashes and begins
15019 # with a dollar sign (not a hyphen), so the echo should work correctly.
15020 # The option is referenced via a variable to avoid confusing sed.
15021 lt_compile=`echo "$ac_compile" | $SED \
15022 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15024 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000015025 (eval echo "\"\$as_me:15022: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015026 (eval "$lt_compile" 2>conftest.err)
15027 ac_status=$?
15028 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000015029 echo "$as_me:15026: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015030 if (exit $ac_status) && test -s "$ac_outfile"; then
15031 # The compiler can only warn and ignore the option if not recognized
15032 # So say no if there are warnings
15033 if test ! -s conftest.err; then
15034 lt_cv_prog_compiler_rtti_exceptions=yes
15035 fi
15036 fi
15037 $rm conftest*
15038
15039fi
15040echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15041echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15042
15043if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15044 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15045else
15046 :
15047fi
15048
15049fi
15050
15051lt_prog_compiler_wl_GCJ=
15052lt_prog_compiler_pic_GCJ=
15053lt_prog_compiler_static_GCJ=
15054
15055echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15056echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15057
15058 if test "$GCC" = yes; then
15059 lt_prog_compiler_wl_GCJ='-Wl,'
15060 lt_prog_compiler_static_GCJ='-static'
15061
15062 case $host_os in
15063 aix*)
15064 # All AIX code is PIC.
15065 if test "$host_cpu" = ia64; then
15066 # AIX 5 now supports IA64 processor
15067 lt_prog_compiler_static_GCJ='-Bstatic'
15068 fi
15069 ;;
15070
15071 amigaos*)
15072 # FIXME: we need at least 68020 code to build shared libraries, but
15073 # adding the `-m68020' flag to GCC prevents building anything better,
15074 # like `-m68040'.
15075 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15076 ;;
15077
15078 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15079 # PIC is the default for these OSes.
15080 ;;
15081
15082 mingw* | pw32* | os2*)
15083 # This hack is so that the source file can tell whether it is being
15084 # built for inclusion in a dll (and should export symbols for example).
15085 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15086 ;;
15087
15088 darwin* | rhapsody*)
15089 # PIC is the default on this platform
15090 # Common symbols not allowed in MH_DYLIB files
15091 lt_prog_compiler_pic_GCJ='-fno-common'
15092 ;;
15093
15094 msdosdjgpp*)
15095 # Just because we use GCC doesn't mean we suddenly get shared libraries
15096 # on systems that don't support them.
15097 lt_prog_compiler_can_build_shared_GCJ=no
15098 enable_shared=no
15099 ;;
15100
15101 sysv4*MP*)
15102 if test -d /usr/nec; then
15103 lt_prog_compiler_pic_GCJ=-Kconform_pic
15104 fi
15105 ;;
15106
15107 hpux*)
15108 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15109 # not for PA HP-UX.
15110 case "$host_cpu" in
15111 hppa*64*|ia64*)
15112 # +Z the default
15113 ;;
15114 *)
15115 lt_prog_compiler_pic_GCJ='-fPIC'
15116 ;;
15117 esac
15118 ;;
15119
15120 *)
15121 lt_prog_compiler_pic_GCJ='-fPIC'
15122 ;;
15123 esac
15124 else
15125 # PORTME Check for flag to pass linker flags through the system compiler.
15126 case $host_os in
15127 aix*)
15128 lt_prog_compiler_wl_GCJ='-Wl,'
15129 if test "$host_cpu" = ia64; then
15130 # AIX 5 now supports IA64 processor
15131 lt_prog_compiler_static_GCJ='-Bstatic'
15132 else
15133 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15134 fi
15135 ;;
15136
15137 mingw* | pw32* | os2*)
15138 # This hack is so that the source file can tell whether it is being
15139 # built for inclusion in a dll (and should export symbols for example).
15140 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15141 ;;
15142
15143 hpux9* | hpux10* | hpux11*)
15144 lt_prog_compiler_wl_GCJ='-Wl,'
15145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15146 # not for PA HP-UX.
15147 case "$host_cpu" in
15148 hppa*64*|ia64*)
15149 # +Z the default
15150 ;;
15151 *)
15152 lt_prog_compiler_pic_GCJ='+Z'
15153 ;;
15154 esac
15155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15156 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15157 ;;
15158
15159 irix5* | irix6* | nonstopux*)
15160 lt_prog_compiler_wl_GCJ='-Wl,'
15161 # PIC (with -KPIC) is the default.
15162 lt_prog_compiler_static_GCJ='-non_shared'
15163 ;;
15164
15165 newsos6)
15166 lt_prog_compiler_pic_GCJ='-KPIC'
15167 lt_prog_compiler_static_GCJ='-Bstatic'
15168 ;;
15169
15170 linux*)
15171 case $CC in
15172 icc|ecc)
15173 lt_prog_compiler_wl_GCJ='-Wl,'
15174 lt_prog_compiler_pic_GCJ='-KPIC'
15175 lt_prog_compiler_static_GCJ='-static'
15176 ;;
15177 ccc)
15178 lt_prog_compiler_wl_GCJ='-Wl,'
15179 # All Alpha code is PIC.
15180 lt_prog_compiler_static_GCJ='-non_shared'
15181 ;;
15182 esac
15183 ;;
15184
15185 osf3* | osf4* | osf5*)
15186 lt_prog_compiler_wl_GCJ='-Wl,'
15187 # All OSF/1 code is PIC.
15188 lt_prog_compiler_static_GCJ='-non_shared'
15189 ;;
15190
15191 sco3.2v5*)
15192 lt_prog_compiler_pic_GCJ='-Kpic'
15193 lt_prog_compiler_static_GCJ='-dn'
15194 ;;
15195
15196 solaris*)
15197 lt_prog_compiler_wl_GCJ='-Wl,'
15198 lt_prog_compiler_pic_GCJ='-KPIC'
15199 lt_prog_compiler_static_GCJ='-Bstatic'
15200 ;;
15201
15202 sunos4*)
15203 lt_prog_compiler_wl_GCJ='-Qoption ld '
15204 lt_prog_compiler_pic_GCJ='-PIC'
15205 lt_prog_compiler_static_GCJ='-Bstatic'
15206 ;;
15207
15208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15209 lt_prog_compiler_wl_GCJ='-Wl,'
15210 lt_prog_compiler_pic_GCJ='-KPIC'
15211 lt_prog_compiler_static_GCJ='-Bstatic'
15212 ;;
15213
15214 sysv4*MP*)
15215 if test -d /usr/nec ;then
15216 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15217 lt_prog_compiler_static_GCJ='-Bstatic'
15218 fi
15219 ;;
15220
15221 uts4*)
15222 lt_prog_compiler_pic_GCJ='-pic'
15223 lt_prog_compiler_static_GCJ='-Bstatic'
15224 ;;
15225
15226 *)
15227 lt_prog_compiler_can_build_shared_GCJ=no
15228 ;;
15229 esac
15230 fi
15231
15232echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15233echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15234
15235#
15236# Check to make sure the PIC flag actually works.
15237#
15238if test -n "$lt_prog_compiler_pic_GCJ"; then
15239 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15240echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15241if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243else
15244 lt_prog_compiler_pic_works_GCJ=no
15245 ac_outfile=conftest.$ac_objext
15246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15247 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15248 # Insert the option either (1) after the last *FLAGS variable, or
15249 # (2) before a word containing "conftest.", or (3) at the end.
15250 # Note that $ac_compile itself does not contain backslashes and begins
15251 # with a dollar sign (not a hyphen), so the echo should work correctly.
15252 # The option is referenced via a variable to avoid confusing sed.
15253 lt_compile=`echo "$ac_compile" | $SED \
15254 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15256 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000015257 (eval echo "\"\$as_me:15254: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015258 (eval "$lt_compile" 2>conftest.err)
15259 ac_status=$?
15260 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000015261 echo "$as_me:15258: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015262 if (exit $ac_status) && test -s "$ac_outfile"; then
15263 # The compiler can only warn and ignore the option if not recognized
15264 # So say no if there are warnings
15265 if test ! -s conftest.err; then
15266 lt_prog_compiler_pic_works_GCJ=yes
15267 fi
15268 fi
15269 $rm conftest*
15270
15271fi
15272echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15273echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15274
15275if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15276 case $lt_prog_compiler_pic_GCJ in
15277 "" | " "*) ;;
15278 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15279 esac
15280else
15281 lt_prog_compiler_pic_GCJ=
15282 lt_prog_compiler_can_build_shared_GCJ=no
15283fi
15284
15285fi
15286case "$host_os" in
15287 # For platforms which do not support PIC, -DPIC is meaningless:
15288 *djgpp*)
15289 lt_prog_compiler_pic_GCJ=
15290 ;;
15291 *)
15292 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15293 ;;
15294esac
15295
15296echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15297echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15298if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300else
15301 lt_cv_prog_compiler_c_o_GCJ=no
15302 $rm -r conftest 2>/dev/null
15303 mkdir conftest
15304 cd conftest
15305 mkdir out
15306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15307
15308 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15309 # that will create temporary files in the current directory regardless of
15310 # the output directory. Thus, making CWD read-only will cause this test
15311 # to fail, enabling locking or at least warning the user not to do parallel
15312 # builds.
15313 chmod -w .
15314
15315 lt_compiler_flag="-o out/conftest2.$ac_objext"
15316 # Insert the option either (1) after the last *FLAGS variable, or
15317 # (2) before a word containing "conftest.", or (3) at the end.
15318 # Note that $ac_compile itself does not contain backslashes and begins
15319 # with a dollar sign (not a hyphen), so the echo should work correctly.
15320 lt_compile=`echo "$ac_compile" | $SED \
15321 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15323 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000015324 (eval echo "\"\$as_me:15321: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015325 (eval "$lt_compile" 2>out/conftest.err)
15326 ac_status=$?
15327 cat out/conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000015328 echo "$as_me:15325: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15330 then
15331 # The compiler can only warn and ignore the option if not recognized
15332 # So say no if there are warnings
15333 if test ! -s out/conftest.err; then
15334 lt_cv_prog_compiler_c_o_GCJ=yes
15335 fi
15336 fi
15337 chmod u+w .
15338 $rm conftest* out/*
15339 rmdir out
15340 cd ..
15341 rmdir conftest
15342 $rm conftest*
15343
15344fi
15345echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15346echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15347
15348
15349hard_links="nottested"
15350if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15351 # do not overwrite the value of need_locks provided by the user
15352 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15353echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15354 hard_links=yes
15355 $rm conftest*
15356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15357 touch conftest.a
15358 ln conftest.a conftest.b 2>&5 || hard_links=no
15359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15360 echo "$as_me:$LINENO: result: $hard_links" >&5
15361echo "${ECHO_T}$hard_links" >&6
15362 if test "$hard_links" = no; then
15363 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15364echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15365 need_locks=warn
15366 fi
15367else
15368 need_locks=no
15369fi
15370
15371echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15372echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15373
15374 runpath_var=
15375 allow_undefined_flag_GCJ=
15376 enable_shared_with_static_runtimes_GCJ=no
15377 archive_cmds_GCJ=
15378 archive_expsym_cmds_GCJ=
15379 old_archive_From_new_cmds_GCJ=
15380 old_archive_from_expsyms_cmds_GCJ=
15381 export_dynamic_flag_spec_GCJ=
15382 whole_archive_flag_spec_GCJ=
15383 thread_safe_flag_spec_GCJ=
15384 hardcode_libdir_flag_spec_GCJ=
15385 hardcode_libdir_flag_spec_ld_GCJ=
15386 hardcode_libdir_separator_GCJ=
15387 hardcode_direct_GCJ=no
15388 hardcode_minus_L_GCJ=no
15389 hardcode_shlibpath_var_GCJ=unsupported
15390 link_all_deplibs_GCJ=unknown
15391 hardcode_automatic_GCJ=no
15392 module_cmds_GCJ=
15393 module_expsym_cmds_GCJ=
15394 always_export_symbols_GCJ=no
15395 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396 # include_expsyms should be a list of space-separated symbols to be *always*
15397 # included in the symbol list
15398 include_expsyms_GCJ=
15399 # exclude_expsyms can be an extended regexp of symbols to exclude
15400 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15401 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15402 # as well as any symbol that contains `d'.
15403 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15404 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15405 # platforms (ab)use it in PIC code, but their linkers get confused if
15406 # the symbol is explicitly referenced. Since portable code cannot
15407 # rely on this symbol name, it's probably fine to never include it in
15408 # preloaded symbol tables.
15409 extract_expsyms_cmds=
15410
15411 case $host_os in
15412 cygwin* | mingw* | pw32*)
15413 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15414 # When not using gcc, we currently assume that we are using
15415 # Microsoft Visual C++.
15416 if test "$GCC" != yes; then
15417 with_gnu_ld=no
15418 fi
15419 ;;
15420 openbsd*)
15421 with_gnu_ld=no
15422 ;;
15423 esac
15424
15425 ld_shlibs_GCJ=yes
15426 if test "$with_gnu_ld" = yes; then
15427 # If archive_cmds runs LD, not CC, wlarc should be empty
15428 wlarc='${wl}'
15429
15430 # See if GNU ld supports shared libraries.
15431 case $host_os in
15432 aix3* | aix4* | aix5*)
15433 # On AIX/PPC, the GNU linker is very broken
15434 if test "$host_cpu" != ia64; then
15435 ld_shlibs_GCJ=no
15436 cat <<EOF 1>&2
15437
15438*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15439*** to be unable to reliably create shared libraries on AIX.
15440*** Therefore, libtool is disabling shared libraries support. If you
15441*** really care for shared libraries, you may want to modify your PATH
15442*** so that a non-GNU linker is found, and then restart.
15443
15444EOF
15445 fi
15446 ;;
15447
15448 amigaos*)
15449 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)'
15450 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15451 hardcode_minus_L_GCJ=yes
15452
15453 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15454 # that the semantics of dynamic libraries on AmigaOS, at least up
15455 # to version 4, is to share data among multiple programs linked
15456 # with the same dynamic library. Since this doesn't match the
15457 # behavior of shared libraries on other platforms, we can't use
15458 # them.
15459 ld_shlibs_GCJ=no
15460 ;;
15461
15462 beos*)
15463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15464 allow_undefined_flag_GCJ=unsupported
15465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15466 # support --undefined. This deserves some investigation. FIXME
15467 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15468 else
15469 ld_shlibs_GCJ=no
15470 fi
15471 ;;
15472
15473 cygwin* | mingw* | pw32*)
15474 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15475 # as there is no search path for DLLs.
15476 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15477 allow_undefined_flag_GCJ=unsupported
15478 always_export_symbols_GCJ=no
15479 enable_shared_with_static_runtimes_GCJ=yes
15480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15481
15482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15484 # If the export-symbols file already is a .def file (1st line
15485 # is EXPORTS), use it as is; otherwise, prepend...
15486 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15487 cp $export_symbols $output_objdir/$soname.def;
15488 else
15489 echo EXPORTS > $output_objdir/$soname.def;
15490 cat $export_symbols >> $output_objdir/$soname.def;
15491 fi~
15492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15493 else
15494 ld_shlibs=no
15495 fi
15496 ;;
15497
15498 netbsd*)
15499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15500 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15501 wlarc=
15502 else
15503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15505 fi
15506 ;;
15507
15508 solaris* | sysv5*)
15509 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15510 ld_shlibs_GCJ=no
15511 cat <<EOF 1>&2
15512
15513*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15514*** create shared libraries on Solaris systems. Therefore, libtool
15515*** is disabling shared libraries support. We urge you to upgrade GNU
15516*** binutils to release 2.9.1 or newer. Another option is to modify
15517*** your PATH or compiler configuration so that the native linker is
15518*** used, and then restart.
15519
15520EOF
15521 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15524 else
15525 ld_shlibs_GCJ=no
15526 fi
15527 ;;
15528
15529 sunos4*)
15530 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15531 wlarc=
15532 hardcode_direct_GCJ=yes
15533 hardcode_shlibpath_var_GCJ=no
15534 ;;
15535
15536 *)
15537 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15538 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15540 else
15541 ld_shlibs_GCJ=no
15542 fi
15543 ;;
15544 esac
15545
15546 if test "$ld_shlibs_GCJ" = yes; then
15547 runpath_var=LD_RUN_PATH
15548 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15549 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15550 # ancient GNU ld didn't support --whole-archive et. al.
15551 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15552 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15553 else
15554 whole_archive_flag_spec_GCJ=
15555 fi
15556 fi
15557 else
15558 # PORTME fill in a description of your system's linker (not GNU ld)
15559 case $host_os in
15560 aix3*)
15561 allow_undefined_flag_GCJ=unsupported
15562 always_export_symbols_GCJ=yes
15563 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'
15564 # Note: this linker hardcodes the directories in LIBPATH if there
15565 # are no directories specified by -L.
15566 hardcode_minus_L_GCJ=yes
15567 if test "$GCC" = yes && test -z "$link_static_flag"; then
15568 # Neither direct hardcoding nor static linking is supported with a
15569 # broken collect2.
15570 hardcode_direct_GCJ=unsupported
15571 fi
15572 ;;
15573
15574 aix4* | aix5*)
15575 if test "$host_cpu" = ia64; then
15576 # On IA64, the linker does run time linking by default, so we don't
15577 # have to do anything special.
15578 aix_use_runtimelinking=no
15579 exp_sym_flag='-Bexport'
15580 no_entry_flag=""
15581 else
15582 # If we're using GNU nm, then we don't want the "-C" option.
15583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15584 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15585 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'
15586 else
15587 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'
15588 fi
15589 aix_use_runtimelinking=no
15590
15591 # Test if we are trying to use run time linking or normal
15592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15593 # need to do runtime linking.
15594 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15595 for ld_flag in $LDFLAGS; do
15596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15597 aix_use_runtimelinking=yes
15598 break
15599 fi
15600 done
15601 esac
15602
15603 exp_sym_flag='-bexport'
15604 no_entry_flag='-bnoentry'
15605 fi
15606
15607 # When large executables or shared objects are built, AIX ld can
15608 # have problems creating the table of contents. If linking a library
15609 # or program results in "error TOC overflow" add -mminimal-toc to
15610 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15611 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15612
15613 archive_cmds_GCJ=''
15614 hardcode_direct_GCJ=yes
15615 hardcode_libdir_separator_GCJ=':'
15616 link_all_deplibs_GCJ=yes
15617
15618 if test "$GCC" = yes; then
15619 case $host_os in aix4.012|aix4.012.*)
15620 # We only want to do this on AIX 4.2 and lower, the check
15621 # below for broken collect2 doesn't work under 4.3+
15622 collect2name=`${CC} -print-prog-name=collect2`
15623 if test -f "$collect2name" && \
15624 strings "$collect2name" | grep resolve_lib_name >/dev/null
15625 then
15626 # We have reworked collect2
15627 hardcode_direct_GCJ=yes
15628 else
15629 # We have old collect2
15630 hardcode_direct_GCJ=unsupported
15631 # It fails to find uninstalled libraries when the uninstalled
15632 # path is not listed in the libpath. Setting hardcode_minus_L
15633 # to unsupported forces relinking
15634 hardcode_minus_L_GCJ=yes
15635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15636 hardcode_libdir_separator_GCJ=
15637 fi
15638 esac
15639 shared_flag='-shared'
15640 else
15641 # not using gcc
15642 if test "$host_cpu" = ia64; then
15643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15644 # chokes on -Wl,-G. The following line is correct:
15645 shared_flag='-G'
15646 else
15647 if test "$aix_use_runtimelinking" = yes; then
15648 shared_flag='${wl}-G'
15649 else
15650 shared_flag='${wl}-bM:SRE'
15651 fi
15652 fi
15653 fi
15654
15655 # It seems that -bexpall does not export symbols beginning with
15656 # underscore (_), so it is better to generate a list of symbols to export.
15657 always_export_symbols_GCJ=yes
15658 if test "$aix_use_runtimelinking" = yes; then
15659 # Warning - without using the other runtime loading flags (-brtl),
15660 # -berok will link without error, but may produce a broken library.
15661 allow_undefined_flag_GCJ='-berok'
15662 # Determine the default libpath from the value encoded in an empty executable.
15663 cat >conftest.$ac_ext <<_ACEOF
15664#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015665/* confdefs.h. */
15666_ACEOF
15667cat confdefs.h >>conftest.$ac_ext
15668cat >>conftest.$ac_ext <<_ACEOF
15669/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015670
John Criswell47fdd832003-07-14 16:52:07 +000015671int
15672main ()
15673{
15674
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679rm -f conftest.$ac_objext conftest$ac_exeext
15680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681 (eval $ac_link) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -s conftest$ac_exeext'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691
15692aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15693}'`
15694# Check for a 64-bit object if we didn't find anything.
15695if 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; }
15696}'`; fi
15697else
15698 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015699sed 's/^/| /' conftest.$ac_ext >&5
15700
John Criswell47fdd832003-07-14 16:52:07 +000015701fi
15702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15704
15705 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15706 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"
15707 else
15708 if test "$host_cpu" = ia64; then
15709 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15710 allow_undefined_flag_GCJ="-z nodefs"
15711 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"
15712 else
15713 # Determine the default libpath from the value encoded in an empty executable.
15714 cat >conftest.$ac_ext <<_ACEOF
15715#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015721
John Criswell47fdd832003-07-14 16:52:07 +000015722int
15723main ()
15724{
15725
15726 ;
15727 return 0;
15728}
15729_ACEOF
15730rm -f conftest.$ac_objext conftest$ac_exeext
15731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732 (eval $ac_link) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -s conftest$ac_exeext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742
15743aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15744}'`
15745# Check for a 64-bit object if we didn't find anything.
15746if 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; }
15747}'`; fi
15748else
15749 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015750sed 's/^/| /' conftest.$ac_ext >&5
15751
John Criswell47fdd832003-07-14 16:52:07 +000015752fi
15753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15754if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15755
15756 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15757 # Warning - without using the other run time loading flags,
15758 # -berok will link without error, but may produce a broken library.
15759 no_undefined_flag_GCJ=' ${wl}-bernotok'
15760 allow_undefined_flag_GCJ=' ${wl}-berok'
15761 # -bexpall does not export symbols beginning with underscore (_)
15762 always_export_symbols_GCJ=yes
15763 # Exported symbols can be pulled into shared objects from archives
15764 whole_archive_flag_spec_GCJ=' '
15765 archive_cmds_need_lc_GCJ=yes
15766 # This is similar to how AIX traditionally builds it's shared libraries.
15767 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'
15768 fi
15769 fi
15770 ;;
15771
15772 amigaos*)
15773 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)'
15774 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15775 hardcode_minus_L_GCJ=yes
15776 # see comment about different semantics on the GNU ld section
15777 ld_shlibs_GCJ=no
15778 ;;
15779
15780 bsdi4*)
15781 export_dynamic_flag_spec_GCJ=-rdynamic
15782 ;;
15783
15784 cygwin* | mingw* | pw32*)
15785 # When not using gcc, we currently assume that we are using
15786 # Microsoft Visual C++.
15787 # hardcode_libdir_flag_spec is actually meaningless, as there is
15788 # no search path for DLLs.
15789 hardcode_libdir_flag_spec_GCJ=' '
15790 allow_undefined_flag_GCJ=unsupported
15791 # Tell ltmain to make .lib files, not .a files.
15792 libext=lib
15793 # Tell ltmain to make .dll files, not .so files.
15794 shrext=".dll"
15795 # FIXME: Setting linknames here is a bad hack.
15796 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15797 # The linker will automatically build a .lib file if we build a DLL.
15798 old_archive_From_new_cmds_GCJ='true'
15799 # FIXME: Should let the user specify the lib program.
15800 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15801 fix_srcfile_path='`cygpath -w "$srcfile"`'
15802 enable_shared_with_static_runtimes_GCJ=yes
15803 ;;
15804
15805 darwin* | rhapsody*)
15806 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15807 archive_cmds_need_lc_GCJ=no
15808 case "$host_os" in
15809 rhapsody* | darwin1.[012])
15810 allow_undefined_flag_GCJ='-undefined suppress'
15811 ;;
15812 *) # Darwin 1.3 on
15813 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15814 ;;
15815 esac
15816 # FIXME: Relying on posixy $() will cause problems for
15817 # cross-compilation, but unfortunately the echo tests do not
15818 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15819 # `"' quotes if we put them in here... so don't!
15820 lt_int_apple_cc_single_mod=no
15821 output_verbose_link_cmd='echo'
15822 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15823 lt_int_apple_cc_single_mod=yes
15824 fi
15825 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15826 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15827 else
15828 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'
15829 fi
15830 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15831 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15832 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15833 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}'
15834 else
15835 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}'
15836 fi
15837 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}'
15838 hardcode_direct_GCJ=no
15839 hardcode_automatic_GCJ=yes
15840 hardcode_shlibpath_var_GCJ=unsupported
15841 whole_archive_flag_spec_GCJ='-all_load $convenience'
15842 link_all_deplibs_GCJ=yes
15843 fi
15844 ;;
15845
15846 dgux*)
15847 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15849 hardcode_shlibpath_var_GCJ=no
15850 ;;
15851
15852 freebsd1*)
15853 ld_shlibs_GCJ=no
15854 ;;
15855
15856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15857 # support. Future versions do this automatically, but an explicit c++rt0.o
15858 # does not break anything, and helps significantly (at the cost of a little
15859 # extra space).
15860 freebsd2.2*)
15861 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15862 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15863 hardcode_direct_GCJ=yes
15864 hardcode_shlibpath_var_GCJ=no
15865 ;;
15866
15867 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15868 freebsd2*)
15869 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15870 hardcode_direct_GCJ=yes
15871 hardcode_minus_L_GCJ=yes
15872 hardcode_shlibpath_var_GCJ=no
15873 ;;
15874
15875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15876 freebsd*)
15877 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15878 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15879 hardcode_direct_GCJ=yes
15880 hardcode_shlibpath_var_GCJ=no
15881 ;;
15882
15883 hpux9*)
15884 if test "$GCC" = yes; then
15885 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'
15886 else
15887 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'
15888 fi
15889 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15890 hardcode_libdir_separator_GCJ=:
15891 hardcode_direct_GCJ=yes
15892
15893 # hardcode_minus_L: Not really in the search PATH,
15894 # but as the default location of the library.
15895 hardcode_minus_L_GCJ=yes
15896 export_dynamic_flag_spec_GCJ='${wl}-E'
15897 ;;
15898
15899 hpux10* | hpux11*)
15900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15901 case "$host_cpu" in
15902 hppa*64*|ia64*)
15903 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 ;;
15905 *)
15906 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15907 ;;
15908 esac
15909 else
15910 case "$host_cpu" in
15911 hppa*64*|ia64*)
15912 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15913 ;;
15914 *)
15915 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15916 ;;
15917 esac
15918 fi
15919 if test "$with_gnu_ld" = no; then
15920 case "$host_cpu" in
15921 hppa*64*)
15922 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15923 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15924 hardcode_libdir_separator_GCJ=:
15925 hardcode_direct_GCJ=no
15926 hardcode_shlibpath_var_GCJ=no
15927 ;;
15928 ia64*)
15929 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15930 hardcode_direct_GCJ=no
15931 hardcode_shlibpath_var_GCJ=no
15932
15933 # hardcode_minus_L: Not really in the search PATH,
15934 # but as the default location of the library.
15935 hardcode_minus_L_GCJ=yes
15936 ;;
15937 *)
15938 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15939 hardcode_libdir_separator_GCJ=:
15940 hardcode_direct_GCJ=yes
15941 export_dynamic_flag_spec_GCJ='${wl}-E'
15942
15943 # hardcode_minus_L: Not really in the search PATH,
15944 # but as the default location of the library.
15945 hardcode_minus_L_GCJ=yes
15946 ;;
15947 esac
15948 fi
15949 ;;
15950
15951 irix5* | irix6* | nonstopux*)
15952 if test "$GCC" = yes; then
15953 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'
15954 else
15955 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'
15956 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15957 fi
15958 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15959 hardcode_libdir_separator_GCJ=:
15960 link_all_deplibs_GCJ=yes
15961 ;;
15962
15963 netbsd*)
15964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15965 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15966 else
15967 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15968 fi
15969 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15970 hardcode_direct_GCJ=yes
15971 hardcode_shlibpath_var_GCJ=no
15972 ;;
15973
15974 newsos6)
15975 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15976 hardcode_direct_GCJ=yes
15977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15978 hardcode_libdir_separator_GCJ=:
15979 hardcode_shlibpath_var_GCJ=no
15980 ;;
15981
15982 openbsd*)
15983 hardcode_direct_GCJ=yes
15984 hardcode_shlibpath_var_GCJ=no
15985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15986 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15988 export_dynamic_flag_spec_GCJ='${wl}-E'
15989 else
15990 case $host_os in
15991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15992 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15993 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15994 ;;
15995 *)
15996 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15998 ;;
15999 esac
16000 fi
16001 ;;
16002
16003 os2*)
16004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005 hardcode_minus_L_GCJ=yes
16006 allow_undefined_flag_GCJ=unsupported
16007 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'
16008 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16009 ;;
16010
16011 osf3*)
16012 if test "$GCC" = yes; then
16013 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16014 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16015 else
16016 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16017 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'
16018 fi
16019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16020 hardcode_libdir_separator_GCJ=:
16021 ;;
16022
16023 osf4* | osf5*) # as osf3* with the addition of -msym flag
16024 if test "$GCC" = yes; then
16025 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16026 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'
16027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16028 else
16029 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16030 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'
16031 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~
16032 $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'
16033
16034 # Both c and cxx compiler support -rpath directly
16035 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16036 fi
16037 hardcode_libdir_separator_GCJ=:
16038 ;;
16039
16040 sco3.2v5*)
16041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042 hardcode_shlibpath_var_GCJ=no
16043 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16044 runpath_var=LD_RUN_PATH
16045 hardcode_runpath_var=yes
16046 ;;
16047
16048 solaris*)
16049 no_undefined_flag_GCJ=' -z text'
16050 if test "$GCC" = yes; then
16051 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16052 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16053 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16054 else
16055 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16058 fi
16059 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16060 hardcode_shlibpath_var_GCJ=no
16061 case $host_os in
16062 solaris2.[0-5] | solaris2.[0-5].*) ;;
16063 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16064 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16065 esac
16066 link_all_deplibs_GCJ=yes
16067 ;;
16068
16069 sunos4*)
16070 if test "x$host_vendor" = xsequent; then
16071 # Use $CC to link under sequent, because it throws in some extra .o
16072 # files that make .init and .fini sections work.
16073 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16074 else
16075 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16076 fi
16077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16078 hardcode_direct_GCJ=yes
16079 hardcode_minus_L_GCJ=yes
16080 hardcode_shlibpath_var_GCJ=no
16081 ;;
16082
16083 sysv4)
16084 case $host_vendor in
16085 sni)
16086 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_direct_GCJ=yes # is this really true???
16088 ;;
16089 siemens)
16090 ## LD is ld it makes a PLAMLIB
16091 ## CC just makes a GrossModule.
16092 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16093 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16094 hardcode_direct_GCJ=no
16095 ;;
16096 motorola)
16097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16099 ;;
16100 esac
16101 runpath_var='LD_RUN_PATH'
16102 hardcode_shlibpath_var_GCJ=no
16103 ;;
16104
16105 sysv4.3*)
16106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_shlibpath_var_GCJ=no
16108 export_dynamic_flag_spec_GCJ='-Bexport'
16109 ;;
16110
16111 sysv4*MP*)
16112 if test -d /usr/nec; then
16113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114 hardcode_shlibpath_var_GCJ=no
16115 runpath_var=LD_RUN_PATH
16116 hardcode_runpath_var=yes
16117 ld_shlibs_GCJ=yes
16118 fi
16119 ;;
16120
16121 sysv4.2uw2*)
16122 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_direct_GCJ=yes
16124 hardcode_minus_L_GCJ=no
16125 hardcode_shlibpath_var_GCJ=no
16126 hardcode_runpath_var=yes
16127 runpath_var=LD_RUN_PATH
16128 ;;
16129
16130 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16131 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16132 if test "$GCC" = yes; then
16133 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16134 else
16135 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 fi
16137 runpath_var='LD_RUN_PATH'
16138 hardcode_shlibpath_var_GCJ=no
16139 ;;
16140
16141 sysv5*)
16142 no_undefined_flag_GCJ=' -z text'
16143 # $CC -shared without GNU ld will not create a library from C++
16144 # object files and a static libstdc++, better avoid it by now
16145 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16148 hardcode_libdir_flag_spec_GCJ=
16149 hardcode_shlibpath_var_GCJ=no
16150 runpath_var='LD_RUN_PATH'
16151 ;;
16152
16153 uts4*)
16154 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16156 hardcode_shlibpath_var_GCJ=no
16157 ;;
16158
16159 *)
16160 ld_shlibs_GCJ=no
16161 ;;
16162 esac
16163 fi
16164
16165echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16166echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16167test "$ld_shlibs_GCJ" = no && can_build_shared=no
16168
16169variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16170if test "$GCC" = yes; then
16171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16172fi
16173
16174#
16175# Do we need to explicitly link libc?
16176#
16177case "x$archive_cmds_need_lc_GCJ" in
16178x|xyes)
16179 # Assume -lc should be added
16180 archive_cmds_need_lc_GCJ=yes
16181
16182 if test "$enable_shared" = yes && test "$GCC" = yes; then
16183 case $archive_cmds_GCJ in
16184 *'~'*)
16185 # FIXME: we may have to deal with multi-command sequences.
16186 ;;
16187 '$CC '*)
16188 # Test whether the compiler implicitly links with -lc since on some
16189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16190 # to ld, don't add -lc before -lgcc.
16191 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16192echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16193 $rm conftest*
16194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16195
16196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197 (eval $ac_compile) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } 2>conftest.err; then
16201 soname=conftest
16202 lib=conftest
16203 libobjs=conftest.$ac_objext
16204 deplibs=
16205 wl=$lt_prog_compiler_wl_GCJ
16206 compiler_flags=-v
16207 linker_flags=-v
16208 verstring=
16209 output_objdir=.
16210 libname=conftest
16211 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16212 allow_undefined_flag_GCJ=
16213 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16214 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }
16218 then
16219 archive_cmds_need_lc_GCJ=no
16220 else
16221 archive_cmds_need_lc_GCJ=yes
16222 fi
16223 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16224 else
16225 cat conftest.err 1>&5
16226 fi
16227 $rm conftest*
16228 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16229echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16230 ;;
16231 esac
16232 fi
16233 ;;
16234esac
16235
16236echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16237echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16238hardcode_action_GCJ=
16239if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16240 test -n "$runpath_var GCJ" || \
16241 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16242
16243 # We can hardcode non-existant directories.
16244 if test "$hardcode_direct_GCJ" != no &&
16245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16246 # have to relink, otherwise we might link with an installed library
16247 # when we should be linking with a yet-to-be-installed one
16248 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16249 test "$hardcode_minus_L_GCJ" != no; then
16250 # Linking always hardcodes the temporary library directory.
16251 hardcode_action_GCJ=relink
16252 else
16253 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16254 hardcode_action_GCJ=immediate
16255 fi
16256else
16257 # We cannot hardcode anything, or else we can only hardcode existing
16258 # directories.
16259 hardcode_action_GCJ=unsupported
16260fi
16261echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16262echo "${ECHO_T}$hardcode_action_GCJ" >&6
16263
16264if test "$hardcode_action_GCJ" = relink; then
16265 # Fast installation is not supported
16266 enable_fast_install=no
16267elif test "$shlibpath_overrides_runpath" = yes ||
16268 test "$enable_shared" = no; then
16269 # Fast installation is not necessary
16270 enable_fast_install=needless
16271fi
16272
16273striplib=
16274old_striplib=
16275echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16276echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16277if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16278 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16279 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16280 echo "$as_me:$LINENO: result: yes" >&5
16281echo "${ECHO_T}yes" >&6
16282else
16283# FIXME - insert some real tests, host_os isn't really good enough
16284 case $host_os in
16285 darwin*)
16286 if test -n "$STRIP" ; then
16287 striplib="$STRIP -x"
16288 echo "$as_me:$LINENO: result: yes" >&5
16289echo "${ECHO_T}yes" >&6
16290 else
16291 echo "$as_me:$LINENO: result: no" >&5
16292echo "${ECHO_T}no" >&6
16293fi
16294 ;;
16295 *)
16296 echo "$as_me:$LINENO: result: no" >&5
16297echo "${ECHO_T}no" >&6
16298 ;;
16299 esac
16300fi
16301
16302echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16303echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16304library_names_spec=
16305libname_spec='lib$name'
16306soname_spec=
16307shrext=".so"
16308postinstall_cmds=
16309postuninstall_cmds=
16310finish_cmds=
16311finish_eval=
16312shlibpath_var=
16313shlibpath_overrides_runpath=unknown
16314version_type=none
16315dynamic_linker="$host_os ld.so"
16316sys_lib_dlsearch_path_spec="/lib /usr/lib"
16317if test "$GCC" = yes; then
16318 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16319 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16320 # if the path contains ";" then we assume it to be the separator
16321 # otherwise default to the standard path separator (i.e. ":") - it is
16322 # assumed that no part of a normal pathname contains ";" but that should
16323 # okay in the real world where ";" in dirpaths is itself problematic.
16324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16325 else
16326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16327 fi
16328else
16329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16330fi
16331need_lib_prefix=unknown
16332hardcode_into_libs=no
16333
16334# when you set need_version to no, make sure it does not cause -set_version
16335# flags to be left without arguments
16336need_version=unknown
16337
16338case $host_os in
16339aix3*)
16340 version_type=linux
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16342 shlibpath_var=LIBPATH
16343
16344 # AIX 3 has no versioning support, so we append a major version to the name.
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 ;;
16347
16348aix4* | aix5*)
16349 version_type=linux
16350 need_lib_prefix=no
16351 need_version=no
16352 hardcode_into_libs=yes
16353 if test "$host_cpu" = ia64; then
16354 # AIX 5 supports IA64
16355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 else
16358 # With GCC up to 2.95.x, collect2 would create an import file
16359 # for dependence libraries. The import file would start with
16360 # the line `#! .'. This would cause the generated library to
16361 # depend on `.', always an invalid library. This was fixed in
16362 # development snapshots of GCC prior to 3.0.
16363 case $host_os in
16364 aix4 | aix4.[01] | aix4.[01].*)
16365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16366 echo ' yes '
16367 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16368 :
16369 else
16370 can_build_shared=no
16371 fi
16372 ;;
16373 esac
16374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16375 # soname into executable. Probably we can add versioning support to
16376 # collect2, so additional links can be useful in future.
16377 if test "$aix_use_runtimelinking" = yes; then
16378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16379 # instead of lib<name>.a to let people know that these are not
16380 # typical AIX shared libraries.
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382 else
16383 # We preserve .a as extension for shared libraries through AIX4.2
16384 # and later when we are not doing run time linking.
16385 library_names_spec='${libname}${release}.a $libname.a'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 fi
16388 shlibpath_var=LIBPATH
16389 fi
16390 ;;
16391
16392amigaos*)
16393 library_names_spec='$libname.ixlibrary $libname.a'
16394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16395 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'
16396 ;;
16397
16398beos*)
16399 library_names_spec='${libname}${shared_ext}'
16400 dynamic_linker="$host_os ld.so"
16401 shlibpath_var=LIBRARY_PATH
16402 ;;
16403
16404bsdi4*)
16405 version_type=linux
16406 need_version=no
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16410 shlibpath_var=LD_LIBRARY_PATH
16411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16413 # the default ld.so.conf also contains /usr/contrib/lib and
16414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16415 # libtool to hard-code these into programs
16416 ;;
16417
16418cygwin* | mingw* | pw32*)
16419 version_type=windows
16420 shrext=".dll"
16421 need_version=no
16422 need_lib_prefix=no
16423
16424 case $GCC,$host_os in
16425 yes,cygwin* | yes,mingw* | yes,pw32*)
16426 library_names_spec='$libname.dll.a'
16427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16428 postinstall_cmds='base_file=`basename \${file}`~
16429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16430 dldir=$destdir/`dirname \$dlpath`~
16431 test -d \$dldir || mkdir -p \$dldir~
16432 $install_prog $dir/$dlname \$dldir/$dlname'
16433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16434 dlpath=$dir/\$dldll~
16435 $rm \$dlpath'
16436 shlibpath_overrides_runpath=yes
16437
16438 case $host_os in
16439 cygwin*)
16440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16442 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16443 ;;
16444 mingw*)
16445 # MinGW DLLs use traditional 'lib' prefix
16446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16448 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16449 # It is most probably a Windows format PATH printed by
16450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16451 # path with ; separators, and with drive letters. We can handle the
16452 # drive letters (cygwin fileutils understands them), so leave them,
16453 # especially as we might pass files found there to a mingw objdump,
16454 # which wouldn't understand a cygwinified path. Ahh.
16455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16456 else
16457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16458 fi
16459 ;;
16460 pw32*)
16461 # pw32 DLLs use 'pw' prefix rather than 'lib'
16462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16463 ;;
16464 esac
16465 ;;
16466
16467 *)
16468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16469 ;;
16470 esac
16471 dynamic_linker='Win32 ld.exe'
16472 # FIXME: first we should search . and the directory the executable is in
16473 shlibpath_var=PATH
16474 ;;
16475
16476darwin* | rhapsody*)
16477 dynamic_linker="$host_os dyld"
16478 version_type=darwin
16479 need_lib_prefix=no
16480 need_version=no
16481 # FIXME: Relying on posixy $() will cause problems for
16482 # cross-compilation, but unfortunately the echo tests do not
16483 # yet detect zsh echo's removal of \ escapes.
16484 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16485 soname_spec='${libname}${release}${major}$shared_ext'
16486 shlibpath_overrides_runpath=yes
16487 shlibpath_var=DYLD_LIBRARY_PATH
16488 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16489 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16490 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16491 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"`
16492 fi
16493 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16494 ;;
16495
16496dgux*)
16497 version_type=linux
16498 need_lib_prefix=no
16499 need_version=no
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 ;;
16504
16505freebsd1*)
16506 dynamic_linker=no
16507 ;;
16508
16509freebsd*)
16510 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16511 version_type=freebsd-$objformat
16512 case $version_type in
16513 freebsd-elf*)
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16515 need_version=no
16516 need_lib_prefix=no
16517 ;;
16518 freebsd-*)
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16520 need_version=yes
16521 ;;
16522 esac
16523 shlibpath_var=LD_LIBRARY_PATH
16524 case $host_os in
16525 freebsd2*)
16526 shlibpath_overrides_runpath=yes
16527 ;;
16528 freebsd3.01* | freebsdelf3.01*)
16529 shlibpath_overrides_runpath=yes
16530 hardcode_into_libs=yes
16531 ;;
16532 *) # from 3.2 on
16533 shlibpath_overrides_runpath=no
16534 hardcode_into_libs=yes
16535 ;;
16536 esac
16537 ;;
16538
16539gnu*)
16540 version_type=linux
16541 need_lib_prefix=no
16542 need_version=no
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16544 soname_spec='${libname}${release}${shared_ext}$major'
16545 shlibpath_var=LD_LIBRARY_PATH
16546 hardcode_into_libs=yes
16547 ;;
16548
16549hpux9* | hpux10* | hpux11*)
16550 # Give a soname corresponding to the major version so that dld.sl refuses to
16551 # link against other versions.
16552 version_type=sunos
16553 need_lib_prefix=no
16554 need_version=no
16555 case "$host_cpu" in
16556 ia64*)
16557 shrext='.so'
16558 hardcode_into_libs=yes
16559 dynamic_linker="$host_os dld.so"
16560 shlibpath_var=LD_LIBRARY_PATH
16561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 if test "X$HPUX_IA64_MODE" = X32; then
16565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16566 else
16567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16568 fi
16569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16570 ;;
16571 hppa*64*)
16572 shrext='.sl'
16573 hardcode_into_libs=yes
16574 dynamic_linker="$host_os dld.sl"
16575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16581 ;;
16582 *)
16583 shrext='.sl'
16584 dynamic_linker="$host_os dld.sl"
16585 shlibpath_var=SHLIB_PATH
16586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16588 soname_spec='${libname}${release}${shared_ext}$major'
16589 ;;
16590 esac
16591 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16592 postinstall_cmds='chmod 555 $lib'
16593 ;;
16594
16595irix5* | irix6* | nonstopux*)
16596 case $host_os in
16597 nonstopux*) version_type=nonstopux ;;
16598 *)
16599 if test "$lt_cv_prog_gnu_ld" = yes; then
16600 version_type=linux
16601 else
16602 version_type=irix
16603 fi ;;
16604 esac
16605 need_lib_prefix=no
16606 need_version=no
16607 soname_spec='${libname}${release}${shared_ext}$major'
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16609 case $host_os in
16610 irix5* | nonstopux*)
16611 libsuff= shlibsuff=
16612 ;;
16613 *)
16614 case $LD in # libtool.m4 will add one of these switches to LD
16615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16616 libsuff= shlibsuff= libmagic=32-bit;;
16617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16618 libsuff=32 shlibsuff=N32 libmagic=N32;;
16619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16620 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16621 *) libsuff= shlibsuff= libmagic=never-match;;
16622 esac
16623 ;;
16624 esac
16625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16626 shlibpath_overrides_runpath=no
16627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16629 hardcode_into_libs=yes
16630 ;;
16631
16632# No shared lib support for Linux oldld, aout, or coff.
16633linux*oldld* | linux*aout* | linux*coff*)
16634 dynamic_linker=no
16635 ;;
16636
16637# This must be Linux ELF.
16638linux*)
16639 version_type=linux
16640 need_lib_prefix=no
16641 need_version=no
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16645 shlibpath_var=LD_LIBRARY_PATH
16646 shlibpath_overrides_runpath=no
16647 # This implies no fast_install, which is unacceptable.
16648 # Some rework will be needed to allow for fast_install
16649 # before this can be enabled.
16650 hardcode_into_libs=yes
16651
16652 # We used to test for /lib/ld.so.1 and disable shared libraries on
16653 # powerpc, because MkLinux only supported shared libraries with the
16654 # GNU dynamic linker. Since this was broken with cross compilers,
16655 # most powerpc-linux boxes support dynamic linking these days and
16656 # people can always --disable-shared, the test was removed, and we
16657 # assume the GNU/Linux dynamic linker is in use.
16658 dynamic_linker='GNU/Linux ld.so'
16659 ;;
16660
16661netbsd*)
16662 version_type=sunos
16663 need_lib_prefix=no
16664 need_version=no
16665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16668 dynamic_linker='NetBSD (a.out) ld.so'
16669 else
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16671 soname_spec='${libname}${release}${shared_ext}$major'
16672 dynamic_linker='NetBSD ld.elf_so'
16673 fi
16674 shlibpath_var=LD_LIBRARY_PATH
16675 shlibpath_overrides_runpath=yes
16676 hardcode_into_libs=yes
16677 ;;
16678
16679newsos6)
16680 version_type=linux
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 shlibpath_var=LD_LIBRARY_PATH
16683 shlibpath_overrides_runpath=yes
16684 ;;
16685
16686nto-qnx)
16687 version_type=linux
16688 need_lib_prefix=no
16689 need_version=no
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691 soname_spec='${libname}${release}${shared_ext}$major'
16692 shlibpath_var=LD_LIBRARY_PATH
16693 shlibpath_overrides_runpath=yes
16694 ;;
16695
16696openbsd*)
16697 version_type=sunos
16698 need_lib_prefix=no
16699 need_version=no
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702 shlibpath_var=LD_LIBRARY_PATH
16703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16704 case $host_os in
16705 openbsd2.[89] | openbsd2.[89].*)
16706 shlibpath_overrides_runpath=no
16707 ;;
16708 *)
16709 shlibpath_overrides_runpath=yes
16710 ;;
16711 esac
16712 else
16713 shlibpath_overrides_runpath=yes
16714 fi
16715 ;;
16716
16717os2*)
16718 libname_spec='$name'
16719 shrext=".dll"
16720 need_lib_prefix=no
16721 library_names_spec='$libname${shared_ext} $libname.a'
16722 dynamic_linker='OS/2 ld.exe'
16723 shlibpath_var=LIBPATH
16724 ;;
16725
16726osf3* | osf4* | osf5*)
16727 version_type=osf
16728 need_lib_prefix=no
16729 need_version=no
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16735 ;;
16736
16737sco3.2v5*)
16738 version_type=osf
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 ;;
16743
16744solaris*)
16745 version_type=linux
16746 need_lib_prefix=no
16747 need_version=no
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=yes
16752 hardcode_into_libs=yes
16753 # ldd complains unless libraries are executable
16754 postinstall_cmds='chmod +x $lib'
16755 ;;
16756
16757sunos4*)
16758 version_type=sunos
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16760 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 shlibpath_overrides_runpath=yes
16763 if test "$with_gnu_ld" = yes; then
16764 need_lib_prefix=no
16765 fi
16766 need_version=yes
16767 ;;
16768
16769sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16770 version_type=linux
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 soname_spec='${libname}${release}${shared_ext}$major'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 case $host_vendor in
16775 sni)
16776 shlibpath_overrides_runpath=no
16777 need_lib_prefix=no
16778 export_dynamic_flag_spec='${wl}-Blargedynsym'
16779 runpath_var=LD_RUN_PATH
16780 ;;
16781 siemens)
16782 need_lib_prefix=no
16783 ;;
16784 motorola)
16785 need_lib_prefix=no
16786 need_version=no
16787 shlibpath_overrides_runpath=no
16788 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16789 ;;
16790 esac
16791 ;;
16792
16793sysv4*MP*)
16794 if test -d /usr/nec ;then
16795 version_type=linux
16796 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16797 soname_spec='$libname${shared_ext}.$major'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 fi
16800 ;;
16801
16802uts4*)
16803 version_type=linux
16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805 soname_spec='${libname}${release}${shared_ext}$major'
16806 shlibpath_var=LD_LIBRARY_PATH
16807 ;;
16808
16809*)
16810 dynamic_linker=no
16811 ;;
16812esac
16813echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16814echo "${ECHO_T}$dynamic_linker" >&6
16815test "$dynamic_linker" = no && can_build_shared=no
16816
16817if test "x$enable_dlopen" != xyes; then
16818 enable_dlopen=unknown
16819 enable_dlopen_self=unknown
16820 enable_dlopen_self_static=unknown
16821else
16822 lt_cv_dlopen=no
16823 lt_cv_dlopen_libs=
16824
16825 case $host_os in
16826 beos*)
16827 lt_cv_dlopen="load_add_on"
16828 lt_cv_dlopen_libs=
16829 lt_cv_dlopen_self=yes
16830 ;;
16831
16832 mingw* | pw32*)
16833 lt_cv_dlopen="LoadLibrary"
16834 lt_cv_dlopen_libs=
16835 ;;
16836
16837 cygwin*)
16838 lt_cv_dlopen="dlopen"
16839 lt_cv_dlopen_libs=
16840 ;;
16841
16842 darwin*)
16843 # if libdl is installed we need to link against it
16844 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16845echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16846if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848else
16849 ac_check_lib_save_LIBS=$LIBS
16850LIBS="-ldl $LIBS"
16851cat >conftest.$ac_ext <<_ACEOF
16852#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016853/* confdefs.h. */
16854_ACEOF
16855cat confdefs.h >>conftest.$ac_ext
16856cat >>conftest.$ac_ext <<_ACEOF
16857/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016858
16859/* Override any gcc2 internal prototype to avoid an error. */
16860#ifdef __cplusplus
16861extern "C"
16862#endif
16863/* We use char because int might match the return type of a gcc2
16864 builtin and then its argument prototype would still apply. */
16865char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016866int
16867main ()
16868{
16869dlopen ();
16870 ;
16871 return 0;
16872}
16873_ACEOF
16874rm -f conftest.$ac_objext conftest$ac_exeext
16875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16876 (eval $ac_link) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -s conftest$ac_exeext'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_lib_dl_dlopen=yes
16887else
16888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016889sed 's/^/| /' conftest.$ac_ext >&5
16890
John Criswell47fdd832003-07-14 16:52:07 +000016891ac_cv_lib_dl_dlopen=no
16892fi
16893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16894LIBS=$ac_check_lib_save_LIBS
16895fi
16896echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16897echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16898if test $ac_cv_lib_dl_dlopen = yes; then
16899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16900else
16901
16902 lt_cv_dlopen="dyld"
16903 lt_cv_dlopen_libs=
16904 lt_cv_dlopen_self=yes
16905
16906fi
16907
16908 ;;
16909
16910 *)
16911 echo "$as_me:$LINENO: checking for shl_load" >&5
16912echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16913if test "${ac_cv_func_shl_load+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16915else
16916 cat >conftest.$ac_ext <<_ACEOF
16917#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016918/* confdefs.h. */
16919_ACEOF
16920cat confdefs.h >>conftest.$ac_ext
16921cat >>conftest.$ac_ext <<_ACEOF
16922/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016923/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016924 which can conflict with char shl_load (); below.
16925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16926 <limits.h> exists even on freestanding compilers. */
16927#ifdef __STDC__
16928# include <limits.h>
16929#else
16930# include <assert.h>
16931#endif
John Criswell47fdd832003-07-14 16:52:07 +000016932/* Override any gcc2 internal prototype to avoid an error. */
16933#ifdef __cplusplus
16934extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016935{
John Criswell47fdd832003-07-14 16:52:07 +000016936#endif
16937/* We use char because int might match the return type of a gcc2
16938 builtin and then its argument prototype would still apply. */
16939char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016940/* The GNU C library defines this for functions which it implements
16941 to always fail with ENOSYS. Some functions are actually named
16942 something starting with __ and the normal name is an alias. */
16943#if defined (__stub_shl_load) || defined (__stub___shl_load)
16944choke me
16945#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016946char (*f) () = shl_load;
16947#endif
16948#ifdef __cplusplus
16949}
John Criswell47fdd832003-07-14 16:52:07 +000016950#endif
16951
John Criswell0c38eaf2003-09-10 15:17:25 +000016952int
16953main ()
16954{
16955return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016956 ;
16957 return 0;
16958}
16959_ACEOF
16960rm -f conftest.$ac_objext conftest$ac_exeext
16961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16962 (eval $ac_link) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -s conftest$ac_exeext'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
16972 ac_cv_func_shl_load=yes
16973else
16974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016975sed 's/^/| /' conftest.$ac_ext >&5
16976
John Criswell47fdd832003-07-14 16:52:07 +000016977ac_cv_func_shl_load=no
16978fi
16979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16980fi
16981echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16982echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16983if test $ac_cv_func_shl_load = yes; then
16984 lt_cv_dlopen="shl_load"
16985else
16986 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16987echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16988if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990else
16991 ac_check_lib_save_LIBS=$LIBS
16992LIBS="-ldld $LIBS"
16993cat >conftest.$ac_ext <<_ACEOF
16994#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016995/* confdefs.h. */
16996_ACEOF
16997cat confdefs.h >>conftest.$ac_ext
16998cat >>conftest.$ac_ext <<_ACEOF
16999/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017000
17001/* Override any gcc2 internal prototype to avoid an error. */
17002#ifdef __cplusplus
17003extern "C"
17004#endif
17005/* We use char because int might match the return type of a gcc2
17006 builtin and then its argument prototype would still apply. */
17007char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017008int
17009main ()
17010{
17011shl_load ();
17012 ;
17013 return 0;
17014}
17015_ACEOF
17016rm -f conftest.$ac_objext conftest$ac_exeext
17017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17018 (eval $ac_link) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -s conftest$ac_exeext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_cv_lib_dld_shl_load=yes
17029else
17030 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017031sed 's/^/| /' conftest.$ac_ext >&5
17032
John Criswell47fdd832003-07-14 16:52:07 +000017033ac_cv_lib_dld_shl_load=no
17034fi
17035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17036LIBS=$ac_check_lib_save_LIBS
17037fi
17038echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17039echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17040if test $ac_cv_lib_dld_shl_load = yes; then
17041 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17042else
17043 echo "$as_me:$LINENO: checking for dlopen" >&5
17044echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17045if test "${ac_cv_func_dlopen+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048 cat >conftest.$ac_ext <<_ACEOF
17049#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017055/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017056 which can conflict with char dlopen (); below.
17057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17058 <limits.h> exists even on freestanding compilers. */
17059#ifdef __STDC__
17060# include <limits.h>
17061#else
17062# include <assert.h>
17063#endif
John Criswell47fdd832003-07-14 16:52:07 +000017064/* Override any gcc2 internal prototype to avoid an error. */
17065#ifdef __cplusplus
17066extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017067{
John Criswell47fdd832003-07-14 16:52:07 +000017068#endif
17069/* We use char because int might match the return type of a gcc2
17070 builtin and then its argument prototype would still apply. */
17071char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017072/* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075#if defined (__stub_dlopen) || defined (__stub___dlopen)
17076choke me
17077#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017078char (*f) () = dlopen;
17079#endif
17080#ifdef __cplusplus
17081}
John Criswell47fdd832003-07-14 16:52:07 +000017082#endif
17083
John Criswell0c38eaf2003-09-10 15:17:25 +000017084int
17085main ()
17086{
17087return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017088 ;
17089 return 0;
17090}
17091_ACEOF
17092rm -f conftest.$ac_objext conftest$ac_exeext
17093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17094 (eval $ac_link) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
17098 { ac_try='test -s conftest$ac_exeext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_cv_func_dlopen=yes
17105else
17106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017107sed 's/^/| /' conftest.$ac_ext >&5
17108
John Criswell47fdd832003-07-14 16:52:07 +000017109ac_cv_func_dlopen=no
17110fi
17111rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17112fi
17113echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17114echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17115if test $ac_cv_func_dlopen = yes; then
17116 lt_cv_dlopen="dlopen"
17117else
17118 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17119echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17120if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17122else
17123 ac_check_lib_save_LIBS=$LIBS
17124LIBS="-ldl $LIBS"
17125cat >conftest.$ac_ext <<_ACEOF
17126#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017127/* confdefs.h. */
17128_ACEOF
17129cat confdefs.h >>conftest.$ac_ext
17130cat >>conftest.$ac_ext <<_ACEOF
17131/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017132
17133/* Override any gcc2 internal prototype to avoid an error. */
17134#ifdef __cplusplus
17135extern "C"
17136#endif
17137/* We use char because int might match the return type of a gcc2
17138 builtin and then its argument prototype would still apply. */
17139char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017140int
17141main ()
17142{
17143dlopen ();
17144 ;
17145 return 0;
17146}
17147_ACEOF
17148rm -f conftest.$ac_objext conftest$ac_exeext
17149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150 (eval $ac_link) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -s conftest$ac_exeext'
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_cv_lib_dl_dlopen=yes
17161else
17162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017163sed 's/^/| /' conftest.$ac_ext >&5
17164
John Criswell47fdd832003-07-14 16:52:07 +000017165ac_cv_lib_dl_dlopen=no
17166fi
17167rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17168LIBS=$ac_check_lib_save_LIBS
17169fi
17170echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17171echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17172if test $ac_cv_lib_dl_dlopen = yes; then
17173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17174else
17175 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17176echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17177if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179else
17180 ac_check_lib_save_LIBS=$LIBS
17181LIBS="-lsvld $LIBS"
17182cat >conftest.$ac_ext <<_ACEOF
17183#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017184/* confdefs.h. */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017189
17190/* Override any gcc2 internal prototype to avoid an error. */
17191#ifdef __cplusplus
17192extern "C"
17193#endif
17194/* We use char because int might match the return type of a gcc2
17195 builtin and then its argument prototype would still apply. */
17196char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017197int
17198main ()
17199{
17200dlopen ();
17201 ;
17202 return 0;
17203}
17204_ACEOF
17205rm -f conftest.$ac_objext conftest$ac_exeext
17206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207 (eval $ac_link) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -s conftest$ac_exeext'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 ac_cv_lib_svld_dlopen=yes
17218else
17219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017220sed 's/^/| /' conftest.$ac_ext >&5
17221
John Criswell47fdd832003-07-14 16:52:07 +000017222ac_cv_lib_svld_dlopen=no
17223fi
17224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17225LIBS=$ac_check_lib_save_LIBS
17226fi
17227echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17228echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17229if test $ac_cv_lib_svld_dlopen = yes; then
17230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17231else
17232 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17233echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17234if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236else
17237 ac_check_lib_save_LIBS=$LIBS
17238LIBS="-ldld $LIBS"
17239cat >conftest.$ac_ext <<_ACEOF
17240#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017241/* confdefs.h. */
17242_ACEOF
17243cat confdefs.h >>conftest.$ac_ext
17244cat >>conftest.$ac_ext <<_ACEOF
17245/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017246
17247/* Override any gcc2 internal prototype to avoid an error. */
17248#ifdef __cplusplus
17249extern "C"
17250#endif
17251/* We use char because int might match the return type of a gcc2
17252 builtin and then its argument prototype would still apply. */
17253char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017254int
17255main ()
17256{
17257dld_link ();
17258 ;
17259 return 0;
17260}
17261_ACEOF
17262rm -f conftest.$ac_objext conftest$ac_exeext
17263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264 (eval $ac_link) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -s conftest$ac_exeext'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_cv_lib_dld_dld_link=yes
17275else
17276 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017277sed 's/^/| /' conftest.$ac_ext >&5
17278
John Criswell47fdd832003-07-14 16:52:07 +000017279ac_cv_lib_dld_dld_link=no
17280fi
17281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17282LIBS=$ac_check_lib_save_LIBS
17283fi
17284echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17285echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17286if test $ac_cv_lib_dld_dld_link = yes; then
17287 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17288fi
17289
17290
17291fi
17292
17293
17294fi
17295
17296
17297fi
17298
17299
17300fi
17301
17302
17303fi
17304
17305 ;;
17306 esac
17307
17308 if test "x$lt_cv_dlopen" != xno; then
17309 enable_dlopen=yes
17310 else
17311 enable_dlopen=no
17312 fi
17313
17314 case $lt_cv_dlopen in
17315 dlopen)
17316 save_CPPFLAGS="$CPPFLAGS"
17317 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17318
17319 save_LDFLAGS="$LDFLAGS"
17320 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17321
17322 save_LIBS="$LIBS"
17323 LIBS="$lt_cv_dlopen_libs $LIBS"
17324
17325 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17326echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17327if test "${lt_cv_dlopen_self+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329else
17330 if test "$cross_compiling" = yes; then :
17331 lt_cv_dlopen_self=cross
17332else
17333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17334 lt_status=$lt_dlunknown
17335 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +000017336#line 17333 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017337#include "confdefs.h"
17338
17339#if HAVE_DLFCN_H
17340#include <dlfcn.h>
17341#endif
17342
17343#include <stdio.h>
17344
17345#ifdef RTLD_GLOBAL
17346# define LT_DLGLOBAL RTLD_GLOBAL
17347#else
17348# ifdef DL_GLOBAL
17349# define LT_DLGLOBAL DL_GLOBAL
17350# else
17351# define LT_DLGLOBAL 0
17352# endif
17353#endif
17354
17355/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17356 find out it does not work in some platform. */
17357#ifndef LT_DLLAZY_OR_NOW
17358# ifdef RTLD_LAZY
17359# define LT_DLLAZY_OR_NOW RTLD_LAZY
17360# else
17361# ifdef DL_LAZY
17362# define LT_DLLAZY_OR_NOW DL_LAZY
17363# else
17364# ifdef RTLD_NOW
17365# define LT_DLLAZY_OR_NOW RTLD_NOW
17366# else
17367# ifdef DL_NOW
17368# define LT_DLLAZY_OR_NOW DL_NOW
17369# else
17370# define LT_DLLAZY_OR_NOW 0
17371# endif
17372# endif
17373# endif
17374# endif
17375#endif
17376
17377#ifdef __cplusplus
17378extern "C" void exit (int);
17379#endif
17380
17381void fnord() { int i=42;}
17382int main ()
17383{
17384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17385 int status = $lt_dlunknown;
17386
17387 if (self)
17388 {
17389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17391 /* dlclose (self); */
17392 }
17393
17394 exit (status);
17395}
17396EOF
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17402 (./conftest; exit; ) 2>/dev/null
17403 lt_status=$?
17404 case x$lt_status in
17405 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17406 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17407 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17408 esac
17409 else :
17410 # compilation failed
17411 lt_cv_dlopen_self=no
17412 fi
17413fi
17414rm -fr conftest*
17415
17416
17417fi
17418echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17419echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17420
17421 if test "x$lt_cv_dlopen_self" = xyes; then
17422 LDFLAGS="$LDFLAGS $link_static_flag"
17423 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17424echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17425if test "${lt_cv_dlopen_self_static+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427else
17428 if test "$cross_compiling" = yes; then :
17429 lt_cv_dlopen_self_static=cross
17430else
17431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17432 lt_status=$lt_dlunknown
17433 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +000017434#line 17431 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017435#include "confdefs.h"
17436
17437#if HAVE_DLFCN_H
17438#include <dlfcn.h>
17439#endif
17440
17441#include <stdio.h>
17442
17443#ifdef RTLD_GLOBAL
17444# define LT_DLGLOBAL RTLD_GLOBAL
17445#else
17446# ifdef DL_GLOBAL
17447# define LT_DLGLOBAL DL_GLOBAL
17448# else
17449# define LT_DLGLOBAL 0
17450# endif
17451#endif
17452
17453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17454 find out it does not work in some platform. */
17455#ifndef LT_DLLAZY_OR_NOW
17456# ifdef RTLD_LAZY
17457# define LT_DLLAZY_OR_NOW RTLD_LAZY
17458# else
17459# ifdef DL_LAZY
17460# define LT_DLLAZY_OR_NOW DL_LAZY
17461# else
17462# ifdef RTLD_NOW
17463# define LT_DLLAZY_OR_NOW RTLD_NOW
17464# else
17465# ifdef DL_NOW
17466# define LT_DLLAZY_OR_NOW DL_NOW
17467# else
17468# define LT_DLLAZY_OR_NOW 0
17469# endif
17470# endif
17471# endif
17472# endif
17473#endif
17474
17475#ifdef __cplusplus
17476extern "C" void exit (int);
17477#endif
17478
17479void fnord() { int i=42;}
17480int main ()
17481{
17482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17483 int status = $lt_dlunknown;
17484
17485 if (self)
17486 {
17487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17488 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17489 /* dlclose (self); */
17490 }
17491
17492 exit (status);
17493}
17494EOF
17495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17496 (eval $ac_link) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17500 (./conftest; exit; ) 2>/dev/null
17501 lt_status=$?
17502 case x$lt_status in
17503 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17504 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17505 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17506 esac
17507 else :
17508 # compilation failed
17509 lt_cv_dlopen_self_static=no
17510 fi
17511fi
17512rm -fr conftest*
17513
17514
17515fi
17516echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17517echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17518 fi
17519
17520 CPPFLAGS="$save_CPPFLAGS"
17521 LDFLAGS="$save_LDFLAGS"
17522 LIBS="$save_LIBS"
17523 ;;
17524 esac
17525
17526 case $lt_cv_dlopen_self in
17527 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17528 *) enable_dlopen_self=unknown ;;
17529 esac
17530
17531 case $lt_cv_dlopen_self_static in
17532 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17533 *) enable_dlopen_self_static=unknown ;;
17534 esac
17535fi
17536
17537
17538# The else clause should only fire when bootstrapping the
17539# libtool distribution, otherwise you forgot to ship ltmain.sh
17540# with your package, and you will get complaints that there are
17541# no rules to generate ltmain.sh.
17542if test -f "$ltmain"; then
17543 # See if we are running on zsh, and set the options which allow our commands through
17544 # without removal of \ escapes.
17545 if test -n "${ZSH_VERSION+set}" ; then
17546 setopt NO_GLOB_SUBST
17547 fi
17548 # Now quote all the things that may contain metacharacters while being
17549 # careful not to overquote the AC_SUBSTed values. We take copies of the
17550 # variables and quote the copies for generation of the libtool script.
17551 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17552 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17553 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17554 deplibs_check_method reload_flag reload_cmds need_locks \
17555 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17556 lt_cv_sys_global_symbol_to_c_name_address \
17557 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17558 old_postinstall_cmds old_postuninstall_cmds \
17559 compiler_GCJ \
17560 CC_GCJ \
17561 LD_GCJ \
17562 lt_prog_compiler_wl_GCJ \
17563 lt_prog_compiler_pic_GCJ \
17564 lt_prog_compiler_static_GCJ \
17565 lt_prog_compiler_no_builtin_flag_GCJ \
17566 export_dynamic_flag_spec_GCJ \
17567 thread_safe_flag_spec_GCJ \
17568 whole_archive_flag_spec_GCJ \
17569 enable_shared_with_static_runtimes_GCJ \
17570 old_archive_cmds_GCJ \
17571 old_archive_from_new_cmds_GCJ \
17572 predep_objects_GCJ \
17573 postdep_objects_GCJ \
17574 predeps_GCJ \
17575 postdeps_GCJ \
17576 compiler_lib_search_path_GCJ \
17577 archive_cmds_GCJ \
17578 archive_expsym_cmds_GCJ \
17579 postinstall_cmds_GCJ \
17580 postuninstall_cmds_GCJ \
17581 old_archive_from_expsyms_cmds_GCJ \
17582 allow_undefined_flag_GCJ \
17583 no_undefined_flag_GCJ \
17584 export_symbols_cmds_GCJ \
17585 hardcode_libdir_flag_spec_GCJ \
17586 hardcode_libdir_flag_spec_ld_GCJ \
17587 hardcode_libdir_separator_GCJ \
17588 hardcode_automatic_GCJ \
17589 module_cmds_GCJ \
17590 module_expsym_cmds_GCJ \
17591 lt_cv_prog_compiler_c_o_GCJ \
17592 exclude_expsyms_GCJ \
17593 include_expsyms_GCJ; do
17594
17595 case $var in
17596 old_archive_cmds_GCJ | \
17597 old_archive_from_new_cmds_GCJ | \
17598 archive_cmds_GCJ | \
17599 archive_expsym_cmds_GCJ | \
17600 module_cmds_GCJ | \
17601 module_expsym_cmds_GCJ | \
17602 old_archive_from_expsyms_cmds_GCJ | \
17603 export_symbols_cmds_GCJ | \
17604 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17605 postinstall_cmds | postuninstall_cmds | \
17606 old_postinstall_cmds | old_postuninstall_cmds | \
17607 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17608 # Double-quote double-evaled strings.
17609 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17610 ;;
17611 *)
17612 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17613 ;;
17614 esac
17615 done
17616
17617 case $lt_echo in
17618 *'\$0 --fallback-echo"')
17619 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17620 ;;
17621 esac
17622
17623cfgfile="$ofile"
17624
17625 cat <<__EOF__ >> "$cfgfile"
17626# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17627
17628# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17629
17630# Shell to use when invoking shell scripts.
17631SHELL=$lt_SHELL
17632
17633# Whether or not to build shared libraries.
17634build_libtool_libs=$enable_shared
17635
17636# Whether or not to build static libraries.
17637build_old_libs=$enable_static
17638
17639# Whether or not to add -lc for building shared libraries.
17640build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17641
17642# Whether or not to disallow shared libs when runtime libs are static
17643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17644
17645# Whether or not to optimize for fast installation.
17646fast_install=$enable_fast_install
17647
17648# The host system.
17649host_alias=$host_alias
17650host=$host
17651
17652# An echo program that does not interpret backslashes.
17653echo=$lt_echo
17654
17655# The archiver.
17656AR=$lt_AR
17657AR_FLAGS=$lt_AR_FLAGS
17658
17659# A C compiler.
17660LTCC=$lt_LTCC
17661
17662# A language-specific compiler.
17663CC=$lt_compiler_GCJ
17664
17665# Is the compiler the GNU C compiler?
17666with_gcc=$GCC_GCJ
17667
17668# An ERE matcher.
17669EGREP=$lt_EGREP
17670
17671# The linker used to build libraries.
17672LD=$lt_LD_GCJ
17673
17674# Whether we need hard or soft links.
17675LN_S=$lt_LN_S
17676
17677# A BSD-compatible nm program.
17678NM=$lt_NM
17679
17680# A symbol stripping program
17681STRIP=$STRIP
17682
17683# Used to examine libraries when file_magic_cmd begins "file"
17684MAGIC_CMD=$MAGIC_CMD
17685
17686# Used on cygwin: DLL creation program.
17687DLLTOOL="$DLLTOOL"
17688
17689# Used on cygwin: object dumper.
17690OBJDUMP="$OBJDUMP"
17691
17692# Used on cygwin: assembler.
17693AS="$AS"
17694
17695# The name of the directory that contains temporary libtool files.
17696objdir=$objdir
17697
17698# How to create reloadable object files.
17699reload_flag=$lt_reload_flag
17700reload_cmds=$lt_reload_cmds
17701
17702# How to pass a linker flag through the compiler.
17703wl=$lt_lt_prog_compiler_wl_GCJ
17704
17705# Object file suffix (normally "o").
17706objext="$ac_objext"
17707
17708# Old archive suffix (normally "a").
17709libext="$libext"
17710
17711# Shared library suffix (normally ".so").
17712shrext='$shrext'
17713
17714# Executable file suffix (normally "").
17715exeext="$exeext"
17716
17717# Additional compiler flags for building library objects.
17718pic_flag=$lt_lt_prog_compiler_pic_GCJ
17719pic_mode=$pic_mode
17720
17721# What is the maximum length of a command?
17722max_cmd_len=$lt_cv_sys_max_cmd_len
17723
17724# Does compiler simultaneously support -c and -o options?
17725compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17726
17727# Must we lock files when doing compilation ?
17728need_locks=$lt_need_locks
17729
17730# Do we need the lib prefix for modules?
17731need_lib_prefix=$need_lib_prefix
17732
17733# Do we need a version for libraries?
17734need_version=$need_version
17735
17736# Whether dlopen is supported.
17737dlopen_support=$enable_dlopen
17738
17739# Whether dlopen of programs is supported.
17740dlopen_self=$enable_dlopen_self
17741
17742# Whether dlopen of statically linked programs is supported.
17743dlopen_self_static=$enable_dlopen_self_static
17744
17745# Compiler flag to prevent dynamic linking.
17746link_static_flag=$lt_lt_prog_compiler_static_GCJ
17747
17748# Compiler flag to turn off builtin functions.
17749no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17750
17751# Compiler flag to allow reflexive dlopens.
17752export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17753
17754# Compiler flag to generate shared objects directly from archives.
17755whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17756
17757# Compiler flag to generate thread-safe objects.
17758thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17759
17760# Library versioning type.
17761version_type=$version_type
17762
17763# Format of library name prefix.
17764libname_spec=$lt_libname_spec
17765
17766# List of archive names. First name is the real one, the rest are links.
17767# The last name is the one that the linker finds with -lNAME.
17768library_names_spec=$lt_library_names_spec
17769
17770# The coded name of the library, if different from the real name.
17771soname_spec=$lt_soname_spec
17772
17773# Commands used to build and install an old-style archive.
17774RANLIB=$lt_RANLIB
17775old_archive_cmds=$lt_old_archive_cmds_GCJ
17776old_postinstall_cmds=$lt_old_postinstall_cmds
17777old_postuninstall_cmds=$lt_old_postuninstall_cmds
17778
17779# Create an old-style archive from a shared archive.
17780old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17781
17782# Create a temporary old-style archive to link instead of a shared archive.
17783old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17784
17785# Commands used to build and install a shared archive.
17786archive_cmds=$lt_archive_cmds_GCJ
17787archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17788postinstall_cmds=$lt_postinstall_cmds
17789postuninstall_cmds=$lt_postuninstall_cmds
17790
17791# Commands used to build a loadable module (assumed same as above if empty)
17792module_cmds=$lt_module_cmds_GCJ
17793module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17794
17795# Commands to strip libraries.
17796old_striplib=$lt_old_striplib
17797striplib=$lt_striplib
17798
17799# Dependencies to place before the objects being linked to create a
17800# shared library.
17801predep_objects=$lt_predep_objects_GCJ
17802
17803# Dependencies to place after the objects being linked to create a
17804# shared library.
17805postdep_objects=$lt_postdep_objects_GCJ
17806
17807# Dependencies to place before the objects being linked to create a
17808# shared library.
17809predeps=$lt_predeps_GCJ
17810
17811# Dependencies to place after the objects being linked to create a
17812# shared library.
17813postdeps=$lt_postdeps_GCJ
17814
17815# The library search path used internally by the compiler when linking
17816# a shared library.
17817compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17818
17819# Method to check whether dependent libraries are shared objects.
17820deplibs_check_method=$lt_deplibs_check_method
17821
17822# Command to use when deplibs_check_method == file_magic.
17823file_magic_cmd=$lt_file_magic_cmd
17824
17825# Flag that allows shared libraries with undefined symbols to be built.
17826allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17827
17828# Flag that forces no undefined symbols.
17829no_undefined_flag=$lt_no_undefined_flag_GCJ
17830
17831# Commands used to finish a libtool library installation in a directory.
17832finish_cmds=$lt_finish_cmds
17833
17834# Same as above, but a single script fragment to be evaled but not shown.
17835finish_eval=$lt_finish_eval
17836
17837# Take the output of nm and produce a listing of raw symbols and C names.
17838global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17839
17840# Transform the output of nm in a proper C declaration
17841global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17842
17843# Transform the output of nm in a C name address pair
17844global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17845
17846# This is the shared library runtime path variable.
17847runpath_var=$runpath_var
17848
17849# This is the shared library path variable.
17850shlibpath_var=$shlibpath_var
17851
17852# Is shlibpath searched before the hard-coded library search path?
17853shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17854
17855# How to hardcode a shared library path into an executable.
17856hardcode_action=$hardcode_action_GCJ
17857
17858# Whether we should hardcode library paths into libraries.
17859hardcode_into_libs=$hardcode_into_libs
17860
17861# Flag to hardcode \$libdir into a binary during linking.
17862# This must work even if \$libdir does not exist.
17863hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17864
17865# If ld is used when linking, flag to hardcode \$libdir into
17866# a binary during linking. This must work even if \$libdir does
17867# not exist.
17868hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17869
17870# Whether we need a single -rpath flag with a separated argument.
17871hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17872
17873# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17874# resulting binary.
17875hardcode_direct=$hardcode_direct_GCJ
17876
17877# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17878# resulting binary.
17879hardcode_minus_L=$hardcode_minus_L_GCJ
17880
17881# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17882# the resulting binary.
17883hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17884
17885# Set to yes if building a shared library automatically hardcodes DIR into the library
17886# and all subsequent libraries and executables linked against it.
17887hardcode_automatic=$hardcode_automatic_GCJ
17888
17889# Variables whose values should be saved in libtool wrapper scripts and
17890# restored at relink time.
17891variables_saved_for_relink="$variables_saved_for_relink"
17892
17893# Whether libtool must link a program against all its dependency libraries.
17894link_all_deplibs=$link_all_deplibs_GCJ
17895
17896# Compile-time system search path for libraries
17897sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17898
17899# Run-time system search path for libraries
17900sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17901
17902# Fix the shell variable \$srcfile for the compiler.
17903fix_srcfile_path="$fix_srcfile_path_GCJ"
17904
17905# Set to yes if exported symbols are required.
17906always_export_symbols=$always_export_symbols_GCJ
17907
17908# The commands to list exported symbols.
17909export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17910
17911# The commands to extract the exported symbol list from a shared archive.
17912extract_expsyms_cmds=$lt_extract_expsyms_cmds
17913
17914# Symbols that should not be listed in the preloaded symbols.
17915exclude_expsyms=$lt_exclude_expsyms_GCJ
17916
17917# Symbols that must always be exported.
17918include_expsyms=$lt_include_expsyms_GCJ
17919
17920# ### END LIBTOOL TAG CONFIG: $tagname
17921
17922__EOF__
17923
17924
17925else
17926 # If there is no Makefile yet, we rely on a make rule to execute
17927 # `config.status --recheck' to rerun these tests and create the
17928 # libtool script then.
17929 test -f Makefile && make "$ltmain"
17930fi
17931
17932
17933ac_ext=c
17934ac_cpp='$CPP $CPPFLAGS'
17935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937ac_compiler_gnu=$ac_cv_c_compiler_gnu
17938
17939CC="$lt_save_CC"
17940
17941 else
17942 tagname=""
17943 fi
17944 ;;
17945
17946 RC)
17947
17948
17949
17950# Source file extension for RC test sources.
17951ac_ext=rc
17952
17953# Object file extension for compiled RC test sources.
17954objext=o
17955objext_RC=$objext
17956
17957# Code to be used in simple compile tests
17958lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17959
17960# Code to be used in simple link tests
17961lt_simple_link_test_code="$lt_simple_compile_test_code"
17962
17963# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17964
17965# If no C compiler was specified, use CC.
17966LTCC=${LTCC-"$CC"}
17967
17968# Allow CC to be a program name with arguments.
17969compiler=$CC
17970
17971
17972# Allow CC to be a program name with arguments.
17973lt_save_CC="$CC"
17974CC=${RC-"windres"}
17975compiler=$CC
17976compiler_RC=$CC
17977lt_cv_prog_compiler_c_o_RC=yes
17978
17979# The else clause should only fire when bootstrapping the
17980# libtool distribution, otherwise you forgot to ship ltmain.sh
17981# with your package, and you will get complaints that there are
17982# no rules to generate ltmain.sh.
17983if test -f "$ltmain"; then
17984 # See if we are running on zsh, and set the options which allow our commands through
17985 # without removal of \ escapes.
17986 if test -n "${ZSH_VERSION+set}" ; then
17987 setopt NO_GLOB_SUBST
17988 fi
17989 # Now quote all the things that may contain metacharacters while being
17990 # careful not to overquote the AC_SUBSTed values. We take copies of the
17991 # variables and quote the copies for generation of the libtool script.
17992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17993 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17994 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17995 deplibs_check_method reload_flag reload_cmds need_locks \
17996 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17997 lt_cv_sys_global_symbol_to_c_name_address \
17998 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17999 old_postinstall_cmds old_postuninstall_cmds \
18000 compiler_RC \
18001 CC_RC \
18002 LD_RC \
18003 lt_prog_compiler_wl_RC \
18004 lt_prog_compiler_pic_RC \
18005 lt_prog_compiler_static_RC \
18006 lt_prog_compiler_no_builtin_flag_RC \
18007 export_dynamic_flag_spec_RC \
18008 thread_safe_flag_spec_RC \
18009 whole_archive_flag_spec_RC \
18010 enable_shared_with_static_runtimes_RC \
18011 old_archive_cmds_RC \
18012 old_archive_from_new_cmds_RC \
18013 predep_objects_RC \
18014 postdep_objects_RC \
18015 predeps_RC \
18016 postdeps_RC \
18017 compiler_lib_search_path_RC \
18018 archive_cmds_RC \
18019 archive_expsym_cmds_RC \
18020 postinstall_cmds_RC \
18021 postuninstall_cmds_RC \
18022 old_archive_from_expsyms_cmds_RC \
18023 allow_undefined_flag_RC \
18024 no_undefined_flag_RC \
18025 export_symbols_cmds_RC \
18026 hardcode_libdir_flag_spec_RC \
18027 hardcode_libdir_flag_spec_ld_RC \
18028 hardcode_libdir_separator_RC \
18029 hardcode_automatic_RC \
18030 module_cmds_RC \
18031 module_expsym_cmds_RC \
18032 lt_cv_prog_compiler_c_o_RC \
18033 exclude_expsyms_RC \
18034 include_expsyms_RC; do
18035
18036 case $var in
18037 old_archive_cmds_RC | \
18038 old_archive_from_new_cmds_RC | \
18039 archive_cmds_RC | \
18040 archive_expsym_cmds_RC | \
18041 module_cmds_RC | \
18042 module_expsym_cmds_RC | \
18043 old_archive_from_expsyms_cmds_RC | \
18044 export_symbols_cmds_RC | \
18045 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18046 postinstall_cmds | postuninstall_cmds | \
18047 old_postinstall_cmds | old_postuninstall_cmds | \
18048 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18049 # Double-quote double-evaled strings.
18050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18051 ;;
18052 *)
18053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18054 ;;
18055 esac
18056 done
18057
18058 case $lt_echo in
18059 *'\$0 --fallback-echo"')
18060 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18061 ;;
18062 esac
18063
18064cfgfile="$ofile"
18065
18066 cat <<__EOF__ >> "$cfgfile"
18067# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18068
18069# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18070
18071# Shell to use when invoking shell scripts.
18072SHELL=$lt_SHELL
18073
18074# Whether or not to build shared libraries.
18075build_libtool_libs=$enable_shared
18076
18077# Whether or not to build static libraries.
18078build_old_libs=$enable_static
18079
18080# Whether or not to add -lc for building shared libraries.
18081build_libtool_need_lc=$archive_cmds_need_lc_RC
18082
18083# Whether or not to disallow shared libs when runtime libs are static
18084allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18085
18086# Whether or not to optimize for fast installation.
18087fast_install=$enable_fast_install
18088
18089# The host system.
18090host_alias=$host_alias
18091host=$host
18092
18093# An echo program that does not interpret backslashes.
18094echo=$lt_echo
18095
18096# The archiver.
18097AR=$lt_AR
18098AR_FLAGS=$lt_AR_FLAGS
18099
18100# A C compiler.
18101LTCC=$lt_LTCC
18102
18103# A language-specific compiler.
18104CC=$lt_compiler_RC
18105
18106# Is the compiler the GNU C compiler?
18107with_gcc=$GCC_RC
18108
18109# An ERE matcher.
18110EGREP=$lt_EGREP
18111
18112# The linker used to build libraries.
18113LD=$lt_LD_RC
18114
18115# Whether we need hard or soft links.
18116LN_S=$lt_LN_S
18117
18118# A BSD-compatible nm program.
18119NM=$lt_NM
18120
18121# A symbol stripping program
18122STRIP=$STRIP
18123
18124# Used to examine libraries when file_magic_cmd begins "file"
18125MAGIC_CMD=$MAGIC_CMD
18126
18127# Used on cygwin: DLL creation program.
18128DLLTOOL="$DLLTOOL"
18129
18130# Used on cygwin: object dumper.
18131OBJDUMP="$OBJDUMP"
18132
18133# Used on cygwin: assembler.
18134AS="$AS"
18135
18136# The name of the directory that contains temporary libtool files.
18137objdir=$objdir
18138
18139# How to create reloadable object files.
18140reload_flag=$lt_reload_flag
18141reload_cmds=$lt_reload_cmds
18142
18143# How to pass a linker flag through the compiler.
18144wl=$lt_lt_prog_compiler_wl_RC
18145
18146# Object file suffix (normally "o").
18147objext="$ac_objext"
18148
18149# Old archive suffix (normally "a").
18150libext="$libext"
18151
18152# Shared library suffix (normally ".so").
18153shrext='$shrext'
18154
18155# Executable file suffix (normally "").
18156exeext="$exeext"
18157
18158# Additional compiler flags for building library objects.
18159pic_flag=$lt_lt_prog_compiler_pic_RC
18160pic_mode=$pic_mode
18161
18162# What is the maximum length of a command?
18163max_cmd_len=$lt_cv_sys_max_cmd_len
18164
18165# Does compiler simultaneously support -c and -o options?
18166compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18167
18168# Must we lock files when doing compilation ?
18169need_locks=$lt_need_locks
18170
18171# Do we need the lib prefix for modules?
18172need_lib_prefix=$need_lib_prefix
18173
18174# Do we need a version for libraries?
18175need_version=$need_version
18176
18177# Whether dlopen is supported.
18178dlopen_support=$enable_dlopen
18179
18180# Whether dlopen of programs is supported.
18181dlopen_self=$enable_dlopen_self
18182
18183# Whether dlopen of statically linked programs is supported.
18184dlopen_self_static=$enable_dlopen_self_static
18185
18186# Compiler flag to prevent dynamic linking.
18187link_static_flag=$lt_lt_prog_compiler_static_RC
18188
18189# Compiler flag to turn off builtin functions.
18190no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18191
18192# Compiler flag to allow reflexive dlopens.
18193export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18194
18195# Compiler flag to generate shared objects directly from archives.
18196whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18197
18198# Compiler flag to generate thread-safe objects.
18199thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18200
18201# Library versioning type.
18202version_type=$version_type
18203
18204# Format of library name prefix.
18205libname_spec=$lt_libname_spec
18206
18207# List of archive names. First name is the real one, the rest are links.
18208# The last name is the one that the linker finds with -lNAME.
18209library_names_spec=$lt_library_names_spec
18210
18211# The coded name of the library, if different from the real name.
18212soname_spec=$lt_soname_spec
18213
18214# Commands used to build and install an old-style archive.
18215RANLIB=$lt_RANLIB
18216old_archive_cmds=$lt_old_archive_cmds_RC
18217old_postinstall_cmds=$lt_old_postinstall_cmds
18218old_postuninstall_cmds=$lt_old_postuninstall_cmds
18219
18220# Create an old-style archive from a shared archive.
18221old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18222
18223# Create a temporary old-style archive to link instead of a shared archive.
18224old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18225
18226# Commands used to build and install a shared archive.
18227archive_cmds=$lt_archive_cmds_RC
18228archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18229postinstall_cmds=$lt_postinstall_cmds
18230postuninstall_cmds=$lt_postuninstall_cmds
18231
18232# Commands used to build a loadable module (assumed same as above if empty)
18233module_cmds=$lt_module_cmds_RC
18234module_expsym_cmds=$lt_module_expsym_cmds_RC
18235
18236# Commands to strip libraries.
18237old_striplib=$lt_old_striplib
18238striplib=$lt_striplib
18239
18240# Dependencies to place before the objects being linked to create a
18241# shared library.
18242predep_objects=$lt_predep_objects_RC
18243
18244# Dependencies to place after the objects being linked to create a
18245# shared library.
18246postdep_objects=$lt_postdep_objects_RC
18247
18248# Dependencies to place before the objects being linked to create a
18249# shared library.
18250predeps=$lt_predeps_RC
18251
18252# Dependencies to place after the objects being linked to create a
18253# shared library.
18254postdeps=$lt_postdeps_RC
18255
18256# The library search path used internally by the compiler when linking
18257# a shared library.
18258compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18259
18260# Method to check whether dependent libraries are shared objects.
18261deplibs_check_method=$lt_deplibs_check_method
18262
18263# Command to use when deplibs_check_method == file_magic.
18264file_magic_cmd=$lt_file_magic_cmd
18265
18266# Flag that allows shared libraries with undefined symbols to be built.
18267allow_undefined_flag=$lt_allow_undefined_flag_RC
18268
18269# Flag that forces no undefined symbols.
18270no_undefined_flag=$lt_no_undefined_flag_RC
18271
18272# Commands used to finish a libtool library installation in a directory.
18273finish_cmds=$lt_finish_cmds
18274
18275# Same as above, but a single script fragment to be evaled but not shown.
18276finish_eval=$lt_finish_eval
18277
18278# Take the output of nm and produce a listing of raw symbols and C names.
18279global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18280
18281# Transform the output of nm in a proper C declaration
18282global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18283
18284# Transform the output of nm in a C name address pair
18285global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18286
18287# This is the shared library runtime path variable.
18288runpath_var=$runpath_var
18289
18290# This is the shared library path variable.
18291shlibpath_var=$shlibpath_var
18292
18293# Is shlibpath searched before the hard-coded library search path?
18294shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18295
18296# How to hardcode a shared library path into an executable.
18297hardcode_action=$hardcode_action_RC
18298
18299# Whether we should hardcode library paths into libraries.
18300hardcode_into_libs=$hardcode_into_libs
18301
18302# Flag to hardcode \$libdir into a binary during linking.
18303# This must work even if \$libdir does not exist.
18304hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18305
18306# If ld is used when linking, flag to hardcode \$libdir into
18307# a binary during linking. This must work even if \$libdir does
18308# not exist.
18309hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18310
18311# Whether we need a single -rpath flag with a separated argument.
18312hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18313
18314# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18315# resulting binary.
18316hardcode_direct=$hardcode_direct_RC
18317
18318# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18319# resulting binary.
18320hardcode_minus_L=$hardcode_minus_L_RC
18321
18322# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18323# the resulting binary.
18324hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18325
18326# Set to yes if building a shared library automatically hardcodes DIR into the library
18327# and all subsequent libraries and executables linked against it.
18328hardcode_automatic=$hardcode_automatic_RC
18329
18330# Variables whose values should be saved in libtool wrapper scripts and
18331# restored at relink time.
18332variables_saved_for_relink="$variables_saved_for_relink"
18333
18334# Whether libtool must link a program against all its dependency libraries.
18335link_all_deplibs=$link_all_deplibs_RC
18336
18337# Compile-time system search path for libraries
18338sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18339
18340# Run-time system search path for libraries
18341sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18342
18343# Fix the shell variable \$srcfile for the compiler.
18344fix_srcfile_path="$fix_srcfile_path_RC"
18345
18346# Set to yes if exported symbols are required.
18347always_export_symbols=$always_export_symbols_RC
18348
18349# The commands to list exported symbols.
18350export_symbols_cmds=$lt_export_symbols_cmds_RC
18351
18352# The commands to extract the exported symbol list from a shared archive.
18353extract_expsyms_cmds=$lt_extract_expsyms_cmds
18354
18355# Symbols that should not be listed in the preloaded symbols.
18356exclude_expsyms=$lt_exclude_expsyms_RC
18357
18358# Symbols that must always be exported.
18359include_expsyms=$lt_include_expsyms_RC
18360
18361# ### END LIBTOOL TAG CONFIG: $tagname
18362
18363__EOF__
18364
18365
18366else
18367 # If there is no Makefile yet, we rely on a make rule to execute
18368 # `config.status --recheck' to rerun these tests and create the
18369 # libtool script then.
18370 test -f Makefile && make "$ltmain"
18371fi
18372
18373
18374ac_ext=c
18375ac_cpp='$CPP $CPPFLAGS'
18376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18378ac_compiler_gnu=$ac_cv_c_compiler_gnu
18379
18380CC="$lt_save_CC"
18381
18382 ;;
18383
18384 *)
18385 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18386echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18387 { (exit 1); exit 1; }; }
18388 ;;
18389 esac
18390
18391 # Append the new tag name to the list of available tags.
18392 if test -n "$tagname" ; then
18393 available_tags="$available_tags $tagname"
18394 fi
18395 fi
18396 done
18397 IFS="$lt_save_ifs"
18398
18399 # Now substitute the updated list of available tags.
18400 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18401 mv "${ofile}T" "$ofile"
18402 chmod +x "$ofile"
18403 else
18404 rm -f "${ofile}T"
18405 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18406echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18407 { (exit 1); exit 1; }; }
18408 fi
18409fi
John Criswell7a73b802003-06-30 21:59:07 +000018410
18411
18412
18413# This can be used to rebuild libtool when needed
18414LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18415
18416# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018417LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018418
18419# Prevent multiple expansion
18420
18421
18422
John Criswell47fdd832003-07-14 16:52:07 +000018423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
John Criswellde00db22003-08-25 16:49:54 +000018441# Extract the first word of "pwd", so it can be a program name with args.
18442set dummy pwd; ac_word=$2
18443echo "$as_me:$LINENO: checking for $ac_word" >&5
18444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18445if test "${ac_cv_path_RPWD+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18447else
18448 case $RPWD in
18449 [\\/]* | ?:[\\/]*)
18450 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18451 ;;
18452 *)
18453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18454for as_dir in $PATH
18455do
18456 IFS=$as_save_IFS
18457 test -z "$as_dir" && as_dir=.
18458 for ac_exec_ext in '' $ac_executable_extensions; do
18459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18460 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18462 break 2
18463 fi
18464done
18465done
18466
18467 ;;
18468esac
18469fi
18470RPWD=$ac_cv_path_RPWD
18471
18472if test -n "$RPWD"; then
18473 echo "$as_me:$LINENO: result: $RPWD" >&5
18474echo "${ECHO_T}$RPWD" >&6
18475else
18476 echo "$as_me:$LINENO: result: no" >&5
18477echo "${ECHO_T}no" >&6
18478fi
18479
John Criswell7a73b802003-06-30 21:59:07 +000018480# Extract the first word of "ar", so it can be a program name with args.
18481set dummy ar; ac_word=$2
18482echo "$as_me:$LINENO: checking for $ac_word" >&5
18483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18484if test "${ac_cv_path_AR+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486else
18487 case $AR in
18488 [\\/]* | ?:[\\/]*)
18489 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18490 ;;
18491 *)
18492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18493for as_dir in $PATH
18494do
18495 IFS=$as_save_IFS
18496 test -z "$as_dir" && as_dir=.
18497 for ac_exec_ext in '' $ac_executable_extensions; do
18498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18499 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18501 break 2
18502 fi
18503done
18504done
18505
18506 ;;
18507esac
18508fi
18509AR=$ac_cv_path_AR
18510
18511if test -n "$AR"; then
18512 echo "$as_me:$LINENO: result: $AR" >&5
18513echo "${ECHO_T}$AR" >&6
18514else
18515 echo "$as_me:$LINENO: result: no" >&5
18516echo "${ECHO_T}no" >&6
18517fi
18518
18519# Extract the first word of "sed", so it can be a program name with args.
18520set dummy sed; ac_word=$2
18521echo "$as_me:$LINENO: checking for $ac_word" >&5
18522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18523if test "${ac_cv_path_SED+set}" = set; then
18524 echo $ECHO_N "(cached) $ECHO_C" >&6
18525else
18526 case $SED in
18527 [\\/]* | ?:[\\/]*)
18528 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18529 ;;
18530 *)
18531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18532for as_dir in $PATH
18533do
18534 IFS=$as_save_IFS
18535 test -z "$as_dir" && as_dir=.
18536 for ac_exec_ext in '' $ac_executable_extensions; do
18537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18538 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18540 break 2
18541 fi
18542done
18543done
18544
18545 ;;
18546esac
18547fi
18548SED=$ac_cv_path_SED
18549
18550if test -n "$SED"; then
18551 echo "$as_me:$LINENO: result: $SED" >&5
18552echo "${ECHO_T}$SED" >&6
18553else
18554 echo "$as_me:$LINENO: result: no" >&5
18555echo "${ECHO_T}no" >&6
18556fi
18557
18558# Extract the first word of "rm", so it can be a program name with args.
18559set dummy rm; ac_word=$2
18560echo "$as_me:$LINENO: checking for $ac_word" >&5
18561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18562if test "${ac_cv_path_RM+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564else
18565 case $RM in
18566 [\\/]* | ?:[\\/]*)
18567 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18568 ;;
18569 *)
18570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18571for as_dir in $PATH
18572do
18573 IFS=$as_save_IFS
18574 test -z "$as_dir" && as_dir=.
18575 for ac_exec_ext in '' $ac_executable_extensions; do
18576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18577 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18579 break 2
18580 fi
18581done
18582done
18583
18584 ;;
18585esac
18586fi
18587RM=$ac_cv_path_RM
18588
18589if test -n "$RM"; then
18590 echo "$as_me:$LINENO: result: $RM" >&5
18591echo "${ECHO_T}$RM" >&6
18592else
18593 echo "$as_me:$LINENO: result: no" >&5
18594echo "${ECHO_T}no" >&6
18595fi
18596
18597# Extract the first word of "echo", so it can be a program name with args.
18598set dummy echo; ac_word=$2
18599echo "$as_me:$LINENO: checking for $ac_word" >&5
18600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601if test "${ac_cv_path_ECHO+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603else
18604 case $ECHO in
18605 [\\/]* | ?:[\\/]*)
18606 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18607 ;;
18608 *)
18609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610for as_dir in $PATH
18611do
18612 IFS=$as_save_IFS
18613 test -z "$as_dir" && as_dir=.
18614 for ac_exec_ext in '' $ac_executable_extensions; do
18615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618 break 2
18619 fi
18620done
18621done
18622
18623 ;;
18624esac
18625fi
18626ECHO=$ac_cv_path_ECHO
18627
18628if test -n "$ECHO"; then
18629 echo "$as_me:$LINENO: result: $ECHO" >&5
18630echo "${ECHO_T}$ECHO" >&6
18631else
18632 echo "$as_me:$LINENO: result: no" >&5
18633echo "${ECHO_T}no" >&6
18634fi
18635
18636# Extract the first word of "mkdir", so it can be a program name with args.
18637set dummy mkdir; ac_word=$2
18638echo "$as_me:$LINENO: checking for $ac_word" >&5
18639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18640if test "${ac_cv_path_MKDIR+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642else
18643 case $MKDIR in
18644 [\\/]* | ?:[\\/]*)
18645 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18646 ;;
18647 *)
18648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18649for as_dir in $PATH
18650do
18651 IFS=$as_save_IFS
18652 test -z "$as_dir" && as_dir=.
18653 for ac_exec_ext in '' $ac_executable_extensions; do
18654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18655 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18657 break 2
18658 fi
18659done
18660done
18661
18662 ;;
18663esac
18664fi
18665MKDIR=$ac_cv_path_MKDIR
18666
18667if test -n "$MKDIR"; then
18668 echo "$as_me:$LINENO: result: $MKDIR" >&5
18669echo "${ECHO_T}$MKDIR" >&6
18670else
18671 echo "$as_me:$LINENO: result: no" >&5
18672echo "${ECHO_T}no" >&6
18673fi
18674
18675# Extract the first word of "date", so it can be a program name with args.
18676set dummy date; ac_word=$2
18677echo "$as_me:$LINENO: checking for $ac_word" >&5
18678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18679if test "${ac_cv_path_DATE+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
18681else
18682 case $DATE in
18683 [\\/]* | ?:[\\/]*)
18684 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18685 ;;
18686 *)
18687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18688for as_dir in $PATH
18689do
18690 IFS=$as_save_IFS
18691 test -z "$as_dir" && as_dir=.
18692 for ac_exec_ext in '' $ac_executable_extensions; do
18693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18694 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18696 break 2
18697 fi
18698done
18699done
18700
18701 ;;
18702esac
18703fi
18704DATE=$ac_cv_path_DATE
18705
18706if test -n "$DATE"; then
18707 echo "$as_me:$LINENO: result: $DATE" >&5
18708echo "${ECHO_T}$DATE" >&6
18709else
18710 echo "$as_me:$LINENO: result: no" >&5
18711echo "${ECHO_T}no" >&6
18712fi
18713
18714# Extract the first word of "mv", so it can be a program name with args.
18715set dummy mv; ac_word=$2
18716echo "$as_me:$LINENO: checking for $ac_word" >&5
18717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18718if test "${ac_cv_path_MV+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720else
18721 case $MV in
18722 [\\/]* | ?:[\\/]*)
18723 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18724 ;;
18725 *)
18726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18727for as_dir in $PATH
18728do
18729 IFS=$as_save_IFS
18730 test -z "$as_dir" && as_dir=.
18731 for ac_exec_ext in '' $ac_executable_extensions; do
18732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18733 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18735 break 2
18736 fi
18737done
18738done
18739
18740 ;;
18741esac
18742fi
18743MV=$ac_cv_path_MV
18744
18745if test -n "$MV"; then
18746 echo "$as_me:$LINENO: result: $MV" >&5
18747echo "${ECHO_T}$MV" >&6
18748else
18749 echo "$as_me:$LINENO: result: no" >&5
18750echo "${ECHO_T}no" >&6
18751fi
18752
18753# Extract the first word of "dot", so it can be a program name with args.
18754set dummy dot; ac_word=$2
18755echo "$as_me:$LINENO: checking for $ac_word" >&5
18756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18757if test "${ac_cv_path_DOT+set}" = set; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18759else
18760 case $DOT in
18761 [\\/]* | ?:[\\/]*)
18762 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18763 ;;
18764 *)
18765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18766for as_dir in $PATH
18767do
18768 IFS=$as_save_IFS
18769 test -z "$as_dir" && as_dir=.
18770 for ac_exec_ext in '' $ac_executable_extensions; do
18771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18772 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18774 break 2
18775 fi
18776done
18777done
18778
18779 ;;
18780esac
18781fi
18782DOT=$ac_cv_path_DOT
18783
18784if test -n "$DOT"; then
18785 echo "$as_me:$LINENO: result: $DOT" >&5
18786echo "${ECHO_T}$DOT" >&6
18787else
18788 echo "$as_me:$LINENO: result: no" >&5
18789echo "${ECHO_T}no" >&6
18790fi
18791
18792# Extract the first word of "etags", so it can be a program name with args.
18793set dummy etags; ac_word=$2
18794echo "$as_me:$LINENO: checking for $ac_word" >&5
18795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18796if test "${ac_cv_path_ETAGS+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799 case $ETAGS in
18800 [\\/]* | ?:[\\/]*)
18801 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18802 ;;
18803 *)
18804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18805for as_dir in $PATH
18806do
18807 IFS=$as_save_IFS
18808 test -z "$as_dir" && as_dir=.
18809 for ac_exec_ext in '' $ac_executable_extensions; do
18810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18811 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18813 break 2
18814 fi
18815done
18816done
18817
18818 ;;
18819esac
18820fi
18821ETAGS=$ac_cv_path_ETAGS
18822
18823if test -n "$ETAGS"; then
18824 echo "$as_me:$LINENO: result: $ETAGS" >&5
18825echo "${ECHO_T}$ETAGS" >&6
18826else
18827 echo "$as_me:$LINENO: result: no" >&5
18828echo "${ECHO_T}no" >&6
18829fi
18830
18831# Extract the first word of "purify", so it can be a program name with args.
18832set dummy purify; ac_word=$2
18833echo "$as_me:$LINENO: checking for $ac_word" >&5
18834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18835if test "${ac_cv_path_PURIFY+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18837else
18838 case $PURIFY in
18839 [\\/]* | ?:[\\/]*)
18840 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18841 ;;
18842 *)
18843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18844for as_dir in $PATH
18845do
18846 IFS=$as_save_IFS
18847 test -z "$as_dir" && as_dir=.
18848 for ac_exec_ext in '' $ac_executable_extensions; do
18849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18850 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18852 break 2
18853 fi
18854done
18855done
18856
18857 ;;
18858esac
18859fi
18860PURIFY=$ac_cv_path_PURIFY
18861
18862if test -n "$PURIFY"; then
18863 echo "$as_me:$LINENO: result: $PURIFY" >&5
18864echo "${ECHO_T}$PURIFY" >&6
18865else
18866 echo "$as_me:$LINENO: result: no" >&5
18867echo "${ECHO_T}no" >&6
18868fi
18869
John Criswellde00db22003-08-25 16:49:54 +000018870# Extract the first word of "python", so it can be a program name with args.
18871set dummy python; ac_word=$2
18872echo "$as_me:$LINENO: checking for $ac_word" >&5
18873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18874if test "${ac_cv_path_PYTHON+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876else
18877 case $PYTHON in
18878 [\\/]* | ?:[\\/]*)
18879 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18880 ;;
18881 *)
18882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883for as_dir in $PATH
18884do
18885 IFS=$as_save_IFS
18886 test -z "$as_dir" && as_dir=.
18887 for ac_exec_ext in '' $ac_executable_extensions; do
18888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18891 break 2
18892 fi
18893done
18894done
18895
18896 ;;
18897esac
18898fi
18899PYTHON=$ac_cv_path_PYTHON
18900
18901if test -n "$PYTHON"; then
18902 echo "$as_me:$LINENO: result: $PYTHON" >&5
18903echo "${ECHO_T}$PYTHON" >&6
18904else
18905 echo "$as_me:$LINENO: result: no" >&5
18906echo "${ECHO_T}no" >&6
18907fi
18908
18909# Extract the first word of "qmtest", so it can be a program name with args.
18910set dummy qmtest; ac_word=$2
18911echo "$as_me:$LINENO: checking for $ac_word" >&5
18912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18913if test "${ac_cv_path_QMTEST+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916 case $QMTEST in
18917 [\\/]* | ?:[\\/]*)
18918 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18919 ;;
18920 *)
18921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18922for as_dir in $PATH
18923do
18924 IFS=$as_save_IFS
18925 test -z "$as_dir" && as_dir=.
18926 for ac_exec_ext in '' $ac_executable_extensions; do
18927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18928 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18930 break 2
18931 fi
18932done
18933done
18934
18935 ;;
18936esac
18937fi
18938QMTEST=$ac_cv_path_QMTEST
18939
18940if test -n "$QMTEST"; then
18941 echo "$as_me:$LINENO: result: $QMTEST" >&5
18942echo "${ECHO_T}$QMTEST" >&6
18943else
18944 echo "$as_me:$LINENO: result: no" >&5
18945echo "${ECHO_T}no" >&6
18946fi
18947
18948
18949pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18950pymajor=`echo $pyversion | cut -d. -f1`
18951pyminor=`echo $pyversion | cut -d. -f2`
18952
18953if test "$pymajor" -ge "2"
18954then
18955 if test "$pymajor" -eq "2"
18956 then
18957 if test "$pyminor" -lt "2"
18958 then
18959 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18960echo "$as_me: error: Python 2.2 or greater required" >&2;}
18961 { (exit 1); exit 1; }; }
18962 fi
18963 fi
18964else
18965 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18966echo "$as_me: error: Python 2.2 or greater required" >&2;}
18967 { (exit 1); exit 1; }; }
18968fi
John Criswell7a73b802003-06-30 21:59:07 +000018969
18970
18971
18972
18973
18974echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18975echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18976if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978else
18979 ac_check_lib_save_LIBS=$LIBS
18980LIBS="-lelf $LIBS"
18981cat >conftest.$ac_ext <<_ACEOF
18982#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018983/* confdefs.h. */
18984_ACEOF
18985cat confdefs.h >>conftest.$ac_ext
18986cat >>conftest.$ac_ext <<_ACEOF
18987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018988
18989/* Override any gcc2 internal prototype to avoid an error. */
18990#ifdef __cplusplus
18991extern "C"
18992#endif
18993/* We use char because int might match the return type of a gcc2
18994 builtin and then its argument prototype would still apply. */
18995char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018996int
18997main ()
18998{
18999elf_begin ();
19000 ;
19001 return 0;
19002}
19003_ACEOF
19004rm -f conftest.$ac_objext conftest$ac_exeext
19005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19006 (eval $ac_link) 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
19010 { ac_try='test -s conftest$ac_exeext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 ac_cv_lib_elf_elf_begin=yes
19017else
19018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019019sed 's/^/| /' conftest.$ac_ext >&5
19020
John Criswell7a73b802003-06-30 21:59:07 +000019021ac_cv_lib_elf_elf_begin=no
19022fi
19023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19024LIBS=$ac_check_lib_save_LIBS
19025fi
19026echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19027echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19028if test $ac_cv_lib_elf_elf_begin = yes; then
19029 cat >>confdefs.h <<_ACEOF
19030#define HAVE_LIBELF 1
19031_ACEOF
19032
19033 LIBS="-lelf $LIBS"
19034
19035fi
19036
19037
19038echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19039echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19040if test "${ac_cv_search_dlopen+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042else
19043 ac_func_search_save_LIBS=$LIBS
19044ac_cv_search_dlopen=no
19045cat >conftest.$ac_ext <<_ACEOF
19046#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019047/* confdefs.h. */
19048_ACEOF
19049cat confdefs.h >>conftest.$ac_ext
19050cat >>conftest.$ac_ext <<_ACEOF
19051/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019052
19053/* Override any gcc2 internal prototype to avoid an error. */
19054#ifdef __cplusplus
19055extern "C"
19056#endif
19057/* We use char because int might match the return type of a gcc2
19058 builtin and then its argument prototype would still apply. */
19059char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019060int
19061main ()
19062{
19063dlopen ();
19064 ;
19065 return 0;
19066}
19067_ACEOF
19068rm -f conftest.$ac_objext conftest$ac_exeext
19069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19070 (eval $ac_link) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
19074 { ac_try='test -s conftest$ac_exeext'
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 ac_cv_search_dlopen="none required"
19081else
19082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019083sed 's/^/| /' conftest.$ac_ext >&5
19084
John Criswell7a73b802003-06-30 21:59:07 +000019085fi
19086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19087if test "$ac_cv_search_dlopen" = no; then
19088 for ac_lib in dl; do
19089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19090 cat >conftest.$ac_ext <<_ACEOF
19091#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019092/* confdefs.h. */
19093_ACEOF
19094cat confdefs.h >>conftest.$ac_ext
19095cat >>conftest.$ac_ext <<_ACEOF
19096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019097
19098/* Override any gcc2 internal prototype to avoid an error. */
19099#ifdef __cplusplus
19100extern "C"
19101#endif
19102/* We use char because int might match the return type of a gcc2
19103 builtin and then its argument prototype would still apply. */
19104char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019105int
19106main ()
19107{
19108dlopen ();
19109 ;
19110 return 0;
19111}
19112_ACEOF
19113rm -f conftest.$ac_objext conftest$ac_exeext
19114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115 (eval $ac_link) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -s conftest$ac_exeext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_search_dlopen="-l$ac_lib"
19126break
19127else
19128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019129sed 's/^/| /' conftest.$ac_ext >&5
19130
John Criswell7a73b802003-06-30 21:59:07 +000019131fi
19132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19133 done
19134fi
19135LIBS=$ac_func_search_save_LIBS
19136fi
19137echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19138echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19139if test "$ac_cv_search_dlopen" != no; then
19140 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19141
19142else
19143 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19144echo "$as_me: error: dlopen() required but not found" >&2;}
19145 { (exit 1); exit 1; }; }
19146fi
19147
19148
19149echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19150echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19151if test "${ac_cv_search_mallinfo+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19153else
19154 ac_func_search_save_LIBS=$LIBS
19155ac_cv_search_mallinfo=no
19156cat >conftest.$ac_ext <<_ACEOF
19157#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019163
19164/* Override any gcc2 internal prototype to avoid an error. */
19165#ifdef __cplusplus
19166extern "C"
19167#endif
19168/* We use char because int might match the return type of a gcc2
19169 builtin and then its argument prototype would still apply. */
19170char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019171int
19172main ()
19173{
19174mallinfo ();
19175 ;
19176 return 0;
19177}
19178_ACEOF
19179rm -f conftest.$ac_objext conftest$ac_exeext
19180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -s conftest$ac_exeext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_search_mallinfo="none required"
19192else
19193 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019194sed 's/^/| /' conftest.$ac_ext >&5
19195
John Criswell7a73b802003-06-30 21:59:07 +000019196fi
19197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19198if test "$ac_cv_search_mallinfo" = no; then
19199 for ac_lib in malloc; do
19200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19201 cat >conftest.$ac_ext <<_ACEOF
19202#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019203/* confdefs.h. */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019208
19209/* Override any gcc2 internal prototype to avoid an error. */
19210#ifdef __cplusplus
19211extern "C"
19212#endif
19213/* We use char because int might match the return type of a gcc2
19214 builtin and then its argument prototype would still apply. */
19215char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019216int
19217main ()
19218{
19219mallinfo ();
19220 ;
19221 return 0;
19222}
19223_ACEOF
19224rm -f conftest.$ac_objext conftest$ac_exeext
19225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19226 (eval $ac_link) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -s conftest$ac_exeext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_cv_search_mallinfo="-l$ac_lib"
19237break
19238else
19239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019240sed 's/^/| /' conftest.$ac_ext >&5
19241
John Criswell7a73b802003-06-30 21:59:07 +000019242fi
19243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19244 done
19245fi
19246LIBS=$ac_func_search_save_LIBS
19247fi
19248echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19249echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19250if test "$ac_cv_search_mallinfo" != no; then
19251 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19252 cat >>confdefs.h <<\_ACEOF
19253#define HAVE_MALLINFO 1
19254_ACEOF
19255
19256fi
19257
19258
19259
19260echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19261echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19262if test "${ac_cv_header_stdc+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264else
19265 cat >conftest.$ac_ext <<_ACEOF
19266#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019267/* confdefs.h. */
19268_ACEOF
19269cat confdefs.h >>conftest.$ac_ext
19270cat >>conftest.$ac_ext <<_ACEOF
19271/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019272#include <stdlib.h>
19273#include <stdarg.h>
19274#include <string.h>
19275#include <float.h>
19276
John Criswell0c38eaf2003-09-10 15:17:25 +000019277int
19278main ()
19279{
19280
19281 ;
19282 return 0;
19283}
John Criswell7a73b802003-06-30 21:59:07 +000019284_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019285rm -f conftest.$ac_objext
19286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019288 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019290 (exit $ac_status); } &&
19291 { ac_try='test -s conftest.$ac_objext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019297 ac_cv_header_stdc=yes
19298else
19299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019303fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019304rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019305
19306if test $ac_cv_header_stdc = yes; then
19307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19308 cat >conftest.$ac_ext <<_ACEOF
19309#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019310/* confdefs.h. */
19311_ACEOF
19312cat confdefs.h >>conftest.$ac_ext
19313cat >>conftest.$ac_ext <<_ACEOF
19314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019315#include <string.h>
19316
19317_ACEOF
19318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019319 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019320 :
19321else
19322 ac_cv_header_stdc=no
19323fi
19324rm -f conftest*
19325
19326fi
19327
19328if test $ac_cv_header_stdc = yes; then
19329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19330 cat >conftest.$ac_ext <<_ACEOF
19331#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019332/* confdefs.h. */
19333_ACEOF
19334cat confdefs.h >>conftest.$ac_ext
19335cat >>conftest.$ac_ext <<_ACEOF
19336/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019337#include <stdlib.h>
19338
19339_ACEOF
19340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019341 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019342 :
19343else
19344 ac_cv_header_stdc=no
19345fi
19346rm -f conftest*
19347
19348fi
19349
19350if test $ac_cv_header_stdc = yes; then
19351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19352 if test "$cross_compiling" = yes; then
19353 :
19354else
19355 cat >conftest.$ac_ext <<_ACEOF
19356#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019362#include <ctype.h>
19363#if ((' ' & 0x0FF) == 0x020)
19364# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19365# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19366#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019367# define ISLOWER(c) \
19368 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019369 || ('j' <= (c) && (c) <= 'r') \
19370 || ('s' <= (c) && (c) <= 'z'))
19371# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19372#endif
19373
19374#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19375int
19376main ()
19377{
19378 int i;
19379 for (i = 0; i < 256; i++)
19380 if (XOR (islower (i), ISLOWER (i))
19381 || toupper (i) != TOUPPER (i))
19382 exit(2);
19383 exit (0);
19384}
19385_ACEOF
19386rm -f conftest$ac_exeext
19387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19388 (eval $ac_link) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 :
19398else
19399 echo "$as_me: program exited with status $ac_status" >&5
19400echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019401sed 's/^/| /' conftest.$ac_ext >&5
19402
John Criswell7a73b802003-06-30 21:59:07 +000019403( exit $ac_status )
19404ac_cv_header_stdc=no
19405fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019406rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019407fi
19408fi
19409fi
19410echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19411echo "${ECHO_T}$ac_cv_header_stdc" >&6
19412if test $ac_cv_header_stdc = yes; then
19413
19414cat >>confdefs.h <<\_ACEOF
19415#define STDC_HEADERS 1
19416_ACEOF
19417
19418fi
19419
19420echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19421echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19422if test "${ac_cv_header_sys_wait_h+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 cat >conftest.$ac_ext <<_ACEOF
19426#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019432#include <sys/types.h>
19433#include <sys/wait.h>
19434#ifndef WEXITSTATUS
19435# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19436#endif
19437#ifndef WIFEXITED
19438# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19439#endif
19440
John Criswell7a73b802003-06-30 21:59:07 +000019441int
19442main ()
19443{
19444 int s;
19445 wait (&s);
19446 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19447 ;
19448 return 0;
19449}
19450_ACEOF
19451rm -f conftest.$ac_objext
19452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19453 (eval $ac_compile) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 ac_cv_header_sys_wait_h=yes
19464else
19465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019466sed 's/^/| /' conftest.$ac_ext >&5
19467
John Criswell7a73b802003-06-30 21:59:07 +000019468ac_cv_header_sys_wait_h=no
19469fi
19470rm -f conftest.$ac_objext conftest.$ac_ext
19471fi
19472echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19473echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19474if test $ac_cv_header_sys_wait_h = yes; then
19475
19476cat >>confdefs.h <<\_ACEOF
19477#define HAVE_SYS_WAIT_H 1
19478_ACEOF
19479
19480fi
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19492do
19493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19494if eval "test \"\${$as_ac_Header+set}\" = set"; then
19495 echo "$as_me:$LINENO: checking for $ac_header" >&5
19496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19497if eval "test \"\${$as_ac_Header+set}\" = set"; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19499fi
19500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19502else
19503 # Is the header compilable?
19504echo "$as_me:$LINENO: checking $ac_header usability" >&5
19505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19506cat >conftest.$ac_ext <<_ACEOF
19507#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019508/* confdefs.h. */
19509_ACEOF
19510cat confdefs.h >>conftest.$ac_ext
19511cat >>conftest.$ac_ext <<_ACEOF
19512/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019513$ac_includes_default
19514#include <$ac_header>
19515_ACEOF
19516rm -f conftest.$ac_objext
19517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_header_compiler=yes
19529else
19530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019531sed 's/^/| /' conftest.$ac_ext >&5
19532
John Criswell7a73b802003-06-30 21:59:07 +000019533ac_header_compiler=no
19534fi
19535rm -f conftest.$ac_objext conftest.$ac_ext
19536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19537echo "${ECHO_T}$ac_header_compiler" >&6
19538
19539# Is the header present?
19540echo "$as_me:$LINENO: checking $ac_header presence" >&5
19541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19542cat >conftest.$ac_ext <<_ACEOF
19543#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019549#include <$ac_header>
19550_ACEOF
19551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19553 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019554 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } >/dev/null; then
19559 if test -s conftest.err; then
19560 ac_cpp_err=$ac_c_preproc_warn_flag
19561 else
19562 ac_cpp_err=
19563 fi
19564else
19565 ac_cpp_err=yes
19566fi
19567if test -z "$ac_cpp_err"; then
19568 ac_header_preproc=yes
19569else
19570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019571sed 's/^/| /' conftest.$ac_ext >&5
19572
John Criswell7a73b802003-06-30 21:59:07 +000019573 ac_header_preproc=no
19574fi
19575rm -f conftest.err conftest.$ac_ext
19576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19577echo "${ECHO_T}$ac_header_preproc" >&6
19578
19579# So? What about this header?
19580case $ac_header_compiler:$ac_header_preproc in
19581 yes:no )
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19586 (
19587 cat <<\_ASBOX
19588## ------------------------------------ ##
19589## Report this to bug-autoconf@gnu.org. ##
19590## ------------------------------------ ##
19591_ASBOX
19592 ) |
19593 sed "s/^/$as_me: WARNING: /" >&2
19594 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019595 no:yes )
19596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19602 (
19603 cat <<\_ASBOX
19604## ------------------------------------ ##
19605## Report this to bug-autoconf@gnu.org. ##
19606## ------------------------------------ ##
19607_ASBOX
19608 ) |
19609 sed "s/^/$as_me: WARNING: /" >&2
19610 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019611esac
19612echo "$as_me:$LINENO: checking for $ac_header" >&5
19613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19614if eval "test \"\${$as_ac_Header+set}\" = set"; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616else
19617 eval "$as_ac_Header=$ac_header_preproc"
19618fi
19619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19621
19622fi
19623if test `eval echo '${'$as_ac_Header'}'` = yes; then
19624 cat >>confdefs.h <<_ACEOF
19625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19626_ACEOF
19627
19628fi
19629
19630done
19631
19632
19633
19634
19635
19636
19637for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19638do
19639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19640if eval "test \"\${$as_ac_Header+set}\" = set"; then
19641 echo "$as_me:$LINENO: checking for $ac_header" >&5
19642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19643if eval "test \"\${$as_ac_Header+set}\" = set"; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645fi
19646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19648else
19649 # Is the header compilable?
19650echo "$as_me:$LINENO: checking $ac_header usability" >&5
19651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19652cat >conftest.$ac_ext <<_ACEOF
19653#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019654/* confdefs.h. */
19655_ACEOF
19656cat confdefs.h >>conftest.$ac_ext
19657cat >>conftest.$ac_ext <<_ACEOF
19658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019659$ac_includes_default
19660#include <$ac_header>
19661_ACEOF
19662rm -f conftest.$ac_objext
19663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19664 (eval $ac_compile) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } &&
19668 { ac_try='test -s conftest.$ac_objext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_header_compiler=yes
19675else
19676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019677sed 's/^/| /' conftest.$ac_ext >&5
19678
John Criswell7a73b802003-06-30 21:59:07 +000019679ac_header_compiler=no
19680fi
19681rm -f conftest.$ac_objext conftest.$ac_ext
19682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19683echo "${ECHO_T}$ac_header_compiler" >&6
19684
19685# Is the header present?
19686echo "$as_me:$LINENO: checking $ac_header presence" >&5
19687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19688cat >conftest.$ac_ext <<_ACEOF
19689#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019690/* confdefs.h. */
19691_ACEOF
19692cat confdefs.h >>conftest.$ac_ext
19693cat >>conftest.$ac_ext <<_ACEOF
19694/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019695#include <$ac_header>
19696_ACEOF
19697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19699 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019700 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019701 rm -f conftest.er1
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } >/dev/null; then
19705 if test -s conftest.err; then
19706 ac_cpp_err=$ac_c_preproc_warn_flag
19707 else
19708 ac_cpp_err=
19709 fi
19710else
19711 ac_cpp_err=yes
19712fi
19713if test -z "$ac_cpp_err"; then
19714 ac_header_preproc=yes
19715else
19716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019717sed 's/^/| /' conftest.$ac_ext >&5
19718
John Criswell7a73b802003-06-30 21:59:07 +000019719 ac_header_preproc=no
19720fi
19721rm -f conftest.err conftest.$ac_ext
19722echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19723echo "${ECHO_T}$ac_header_preproc" >&6
19724
19725# So? What about this header?
19726case $ac_header_compiler:$ac_header_preproc in
19727 yes:no )
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19732 (
19733 cat <<\_ASBOX
19734## ------------------------------------ ##
19735## Report this to bug-autoconf@gnu.org. ##
19736## ------------------------------------ ##
19737_ASBOX
19738 ) |
19739 sed "s/^/$as_me: WARNING: /" >&2
19740 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019741 no:yes )
19742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19748 (
19749 cat <<\_ASBOX
19750## ------------------------------------ ##
19751## Report this to bug-autoconf@gnu.org. ##
19752## ------------------------------------ ##
19753_ASBOX
19754 ) |
19755 sed "s/^/$as_me: WARNING: /" >&2
19756 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019757esac
19758echo "$as_me:$LINENO: checking for $ac_header" >&5
19759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19760if eval "test \"\${$as_ac_Header+set}\" = set"; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762else
19763 eval "$as_ac_Header=$ac_header_preproc"
19764fi
19765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19767
19768fi
19769if test `eval echo '${'$as_ac_Header'}'` = yes; then
19770 cat >>confdefs.h <<_ACEOF
19771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19772_ACEOF
19773
19774fi
19775
19776done
19777
19778
19779
19780
19781for ac_header in dlfcn.h link.h
19782do
19783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19784if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785 echo "$as_me:$LINENO: checking for $ac_header" >&5
19786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19787if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789fi
19790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19792else
19793 # Is the header compilable?
19794echo "$as_me:$LINENO: checking $ac_header usability" >&5
19795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19796cat >conftest.$ac_ext <<_ACEOF
19797#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019798/* confdefs.h. */
19799_ACEOF
19800cat confdefs.h >>conftest.$ac_ext
19801cat >>conftest.$ac_ext <<_ACEOF
19802/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019803$ac_includes_default
19804#include <$ac_header>
19805_ACEOF
19806rm -f conftest.$ac_objext
19807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808 (eval $ac_compile) 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19818 ac_header_compiler=yes
19819else
19820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019821sed 's/^/| /' conftest.$ac_ext >&5
19822
John Criswell7a73b802003-06-30 21:59:07 +000019823ac_header_compiler=no
19824fi
19825rm -f conftest.$ac_objext conftest.$ac_ext
19826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19827echo "${ECHO_T}$ac_header_compiler" >&6
19828
19829# Is the header present?
19830echo "$as_me:$LINENO: checking $ac_header presence" >&5
19831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19832cat >conftest.$ac_ext <<_ACEOF
19833#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019839#include <$ac_header>
19840_ACEOF
19841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19843 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019844 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } >/dev/null; then
19849 if test -s conftest.err; then
19850 ac_cpp_err=$ac_c_preproc_warn_flag
19851 else
19852 ac_cpp_err=
19853 fi
19854else
19855 ac_cpp_err=yes
19856fi
19857if test -z "$ac_cpp_err"; then
19858 ac_header_preproc=yes
19859else
19860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019861sed 's/^/| /' conftest.$ac_ext >&5
19862
John Criswell7a73b802003-06-30 21:59:07 +000019863 ac_header_preproc=no
19864fi
19865rm -f conftest.err conftest.$ac_ext
19866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19867echo "${ECHO_T}$ac_header_preproc" >&6
19868
19869# So? What about this header?
19870case $ac_header_compiler:$ac_header_preproc in
19871 yes:no )
19872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19876 (
19877 cat <<\_ASBOX
19878## ------------------------------------ ##
19879## Report this to bug-autoconf@gnu.org. ##
19880## ------------------------------------ ##
19881_ASBOX
19882 ) |
19883 sed "s/^/$as_me: WARNING: /" >&2
19884 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019885 no:yes )
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892 (
19893 cat <<\_ASBOX
19894## ------------------------------------ ##
19895## Report this to bug-autoconf@gnu.org. ##
19896## ------------------------------------ ##
19897_ASBOX
19898 ) |
19899 sed "s/^/$as_me: WARNING: /" >&2
19900 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019901esac
19902echo "$as_me:$LINENO: checking for $ac_header" >&5
19903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19904if eval "test \"\${$as_ac_Header+set}\" = set"; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19906else
19907 eval "$as_ac_Header=$ac_header_preproc"
19908fi
19909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19911
19912fi
19913if test `eval echo '${'$as_ac_Header'}'` = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19916_ACEOF
19917
19918fi
19919
19920done
19921
19922
19923
John Criswell7a73b802003-06-30 21:59:07 +000019924echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19925echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19926if test "${ac_cv_c_const+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19928else
19929 cat >conftest.$ac_ext <<_ACEOF
19930#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019931/* confdefs.h. */
19932_ACEOF
19933cat confdefs.h >>conftest.$ac_ext
19934cat >>conftest.$ac_ext <<_ACEOF
19935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019936
John Criswell7a73b802003-06-30 21:59:07 +000019937int
19938main ()
19939{
19940/* FIXME: Include the comments suggested by Paul. */
19941#ifndef __cplusplus
19942 /* Ultrix mips cc rejects this. */
19943 typedef int charset[2];
19944 const charset x;
19945 /* SunOS 4.1.1 cc rejects this. */
19946 char const *const *ccp;
19947 char **p;
19948 /* NEC SVR4.0.2 mips cc rejects this. */
19949 struct point {int x, y;};
19950 static struct point const zero = {0,0};
19951 /* AIX XL C 1.02.0.0 rejects this.
19952 It does not let you subtract one const X* pointer from another in
19953 an arm of an if-expression whose if-part is not a constant
19954 expression */
19955 const char *g = "string";
19956 ccp = &g + (g ? g-g : 0);
19957 /* HPUX 7.0 cc rejects these. */
19958 ++ccp;
19959 p = (char**) ccp;
19960 ccp = (char const *const *) p;
19961 { /* SCO 3.2v4 cc rejects this. */
19962 char *t;
19963 char const *s = 0 ? (char *) 0 : (char const *) 0;
19964
19965 *t++ = 0;
19966 }
19967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19968 int x[] = {25, 17};
19969 const int *foo = &x[0];
19970 ++foo;
19971 }
19972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19973 typedef const int *iptr;
19974 iptr p = 0;
19975 ++p;
19976 }
19977 { /* AIX XL C 1.02.0.0 rejects this saying
19978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19979 struct s { int j; const int *ap[3]; };
19980 struct s *b; b->j = 5;
19981 }
19982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19983 const int foo = 10;
19984 }
19985#endif
19986
19987 ;
19988 return 0;
19989}
19990_ACEOF
19991rm -f conftest.$ac_objext
19992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 ac_cv_c_const=yes
20004else
20005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020006sed 's/^/| /' conftest.$ac_ext >&5
20007
John Criswell7a73b802003-06-30 21:59:07 +000020008ac_cv_c_const=no
20009fi
20010rm -f conftest.$ac_objext conftest.$ac_ext
20011fi
20012echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20013echo "${ECHO_T}$ac_cv_c_const" >&6
20014if test $ac_cv_c_const = no; then
20015
20016cat >>confdefs.h <<\_ACEOF
20017#define const
20018_ACEOF
20019
20020fi
20021
20022echo "$as_me:$LINENO: checking for inline" >&5
20023echo $ECHO_N "checking for inline... $ECHO_C" >&6
20024if test "${ac_cv_c_inline+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026else
20027 ac_cv_c_inline=no
20028for ac_kw in inline __inline__ __inline; do
20029 cat >conftest.$ac_ext <<_ACEOF
20030#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020031/* confdefs.h. */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020036#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020037typedef int foo_t;
20038static $ac_kw foo_t static_foo () {return 0; }
20039$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020040#endif
20041
20042_ACEOF
20043rm -f conftest.$ac_objext
20044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20045 (eval $ac_compile) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try='test -s conftest.$ac_objext'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_cv_c_inline=$ac_kw; break
20056else
20057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020058sed 's/^/| /' conftest.$ac_ext >&5
20059
John Criswell7a73b802003-06-30 21:59:07 +000020060fi
20061rm -f conftest.$ac_objext conftest.$ac_ext
20062done
20063
20064fi
20065echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20066echo "${ECHO_T}$ac_cv_c_inline" >&6
20067case $ac_cv_c_inline in
20068 inline | yes) ;;
20069 no)
20070cat >>confdefs.h <<\_ACEOF
20071#define inline
20072_ACEOF
20073 ;;
20074 *) cat >>confdefs.h <<_ACEOF
20075#define inline $ac_cv_c_inline
20076_ACEOF
20077 ;;
20078esac
20079
20080
20081echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20082echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20083if test "${ac_cv_c_bigendian+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085else
20086 # See if sys/param.h defines the BYTE_ORDER macro.
20087cat >conftest.$ac_ext <<_ACEOF
20088#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020094#include <sys/types.h>
20095#include <sys/param.h>
20096
John Criswell7a73b802003-06-30 21:59:07 +000020097int
20098main ()
20099{
20100#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20101 bogus endian macros
20102#endif
20103
20104 ;
20105 return 0;
20106}
20107_ACEOF
20108rm -f conftest.$ac_objext
20109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110 (eval $ac_compile) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -s conftest.$ac_objext'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120 # It does; now see whether it defined to BIG_ENDIAN or not.
20121cat >conftest.$ac_ext <<_ACEOF
20122#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020123/* confdefs.h. */
20124_ACEOF
20125cat confdefs.h >>conftest.$ac_ext
20126cat >>conftest.$ac_ext <<_ACEOF
20127/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020128#include <sys/types.h>
20129#include <sys/param.h>
20130
John Criswell7a73b802003-06-30 21:59:07 +000020131int
20132main ()
20133{
20134#if BYTE_ORDER != BIG_ENDIAN
20135 not big endian
20136#endif
20137
20138 ;
20139 return 0;
20140}
20141_ACEOF
20142rm -f conftest.$ac_objext
20143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144 (eval $ac_compile) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
20148 { ac_try='test -s conftest.$ac_objext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_c_bigendian=yes
20155else
20156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020157sed 's/^/| /' conftest.$ac_ext >&5
20158
John Criswell7a73b802003-06-30 21:59:07 +000020159ac_cv_c_bigendian=no
20160fi
20161rm -f conftest.$ac_objext conftest.$ac_ext
20162else
20163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020164sed 's/^/| /' conftest.$ac_ext >&5
20165
John Criswell7a73b802003-06-30 21:59:07 +000020166# It does not; compile a test program.
20167if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020168 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020169 ac_cv_c_bigendian=unknown
20170 cat >conftest.$ac_ext <<_ACEOF
20171#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020177short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20178short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20179void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20180short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20181short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20182void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020183int
20184main ()
20185{
20186 _ascii (); _ebcdic ();
20187 ;
20188 return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext
20192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20193 (eval $ac_compile) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
20197 { ac_try='test -s conftest.$ac_objext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020203 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020204 ac_cv_c_bigendian=yes
20205fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020206if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020207 if test "$ac_cv_c_bigendian" = unknown; then
20208 ac_cv_c_bigendian=no
20209 else
20210 # finding both strings is unlikely to happen, but who knows?
20211 ac_cv_c_bigendian=unknown
20212 fi
20213fi
20214else
20215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020216sed 's/^/| /' conftest.$ac_ext >&5
20217
John Criswell7a73b802003-06-30 21:59:07 +000020218fi
20219rm -f conftest.$ac_objext conftest.$ac_ext
20220else
20221 cat >conftest.$ac_ext <<_ACEOF
20222#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020223/* confdefs.h. */
20224_ACEOF
20225cat confdefs.h >>conftest.$ac_ext
20226cat >>conftest.$ac_ext <<_ACEOF
20227/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020228int
20229main ()
20230{
20231 /* Are we little or big endian? From Harbison&Steele. */
20232 union
20233 {
20234 long l;
20235 char c[sizeof (long)];
20236 } u;
20237 u.l = 1;
20238 exit (u.c[sizeof (long) - 1] == 1);
20239}
20240_ACEOF
20241rm -f conftest$ac_exeext
20242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20243 (eval $ac_link) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_c_bigendian=no
20253else
20254 echo "$as_me: program exited with status $ac_status" >&5
20255echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020256sed 's/^/| /' conftest.$ac_ext >&5
20257
John Criswell7a73b802003-06-30 21:59:07 +000020258( exit $ac_status )
20259ac_cv_c_bigendian=yes
20260fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020261rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020262fi
20263fi
20264rm -f conftest.$ac_objext conftest.$ac_ext
20265fi
20266echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20267echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20268case $ac_cv_c_bigendian in
20269 yes)
20270 cat >>confdefs.h <<\_ACEOF
20271#define ENDIAN_BIG 1
20272_ACEOF
20273 ;;
20274 no)
20275 cat >>confdefs.h <<\_ACEOF
20276#define ENDIAN_LITTLE 1
20277_ACEOF
20278 ;;
20279 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020280 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020281presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020282echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020283presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20284 { (exit 1); exit 1; }; } ;;
20285esac
20286
20287
20288echo "$as_me:$LINENO: checking for pid_t" >&5
20289echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20290if test "${ac_cv_type_pid_t+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20292else
20293 cat >conftest.$ac_ext <<_ACEOF
20294#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020295/* confdefs.h. */
20296_ACEOF
20297cat confdefs.h >>conftest.$ac_ext
20298cat >>conftest.$ac_ext <<_ACEOF
20299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020300$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020301int
20302main ()
20303{
20304if ((pid_t *) 0)
20305 return 0;
20306if (sizeof (pid_t))
20307 return 0;
20308 ;
20309 return 0;
20310}
20311_ACEOF
20312rm -f conftest.$ac_objext
20313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try='test -s conftest.$ac_objext'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
20324 ac_cv_type_pid_t=yes
20325else
20326 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020327sed 's/^/| /' conftest.$ac_ext >&5
20328
John Criswell7a73b802003-06-30 21:59:07 +000020329ac_cv_type_pid_t=no
20330fi
20331rm -f conftest.$ac_objext conftest.$ac_ext
20332fi
20333echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20334echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20335if test $ac_cv_type_pid_t = yes; then
20336 :
20337else
20338
20339cat >>confdefs.h <<_ACEOF
20340#define pid_t int
20341_ACEOF
20342
20343fi
20344
20345echo "$as_me:$LINENO: checking for size_t" >&5
20346echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20347if test "${ac_cv_type_size_t+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20349else
20350 cat >conftest.$ac_ext <<_ACEOF
20351#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020352/* confdefs.h. */
20353_ACEOF
20354cat confdefs.h >>conftest.$ac_ext
20355cat >>conftest.$ac_ext <<_ACEOF
20356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020357$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020358int
20359main ()
20360{
20361if ((size_t *) 0)
20362 return 0;
20363if (sizeof (size_t))
20364 return 0;
20365 ;
20366 return 0;
20367}
20368_ACEOF
20369rm -f conftest.$ac_objext
20370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371 (eval $ac_compile) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_cv_type_size_t=yes
20382else
20383 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020384sed 's/^/| /' conftest.$ac_ext >&5
20385
John Criswell7a73b802003-06-30 21:59:07 +000020386ac_cv_type_size_t=no
20387fi
20388rm -f conftest.$ac_objext conftest.$ac_ext
20389fi
20390echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20391echo "${ECHO_T}$ac_cv_type_size_t" >&6
20392if test $ac_cv_type_size_t = yes; then
20393 :
20394else
20395
20396cat >>confdefs.h <<_ACEOF
20397#define size_t unsigned
20398_ACEOF
20399
20400fi
20401
20402echo "$as_me:$LINENO: checking for int64_t" >&5
20403echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20404if test "${ac_cv_type_int64_t+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20406else
20407 cat >conftest.$ac_ext <<_ACEOF
20408#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020409/* confdefs.h. */
20410_ACEOF
20411cat confdefs.h >>conftest.$ac_ext
20412cat >>conftest.$ac_ext <<_ACEOF
20413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020414$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020415int
20416main ()
20417{
20418if ((int64_t *) 0)
20419 return 0;
20420if (sizeof (int64_t))
20421 return 0;
20422 ;
20423 return 0;
20424}
20425_ACEOF
20426rm -f conftest.$ac_objext
20427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20428 (eval $ac_compile) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } &&
20432 { ac_try='test -s conftest.$ac_objext'
20433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434 (eval $ac_try) 2>&5
20435 ac_status=$?
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; }; then
20438 ac_cv_type_int64_t=yes
20439else
20440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020441sed 's/^/| /' conftest.$ac_ext >&5
20442
John Criswell7a73b802003-06-30 21:59:07 +000020443ac_cv_type_int64_t=no
20444fi
20445rm -f conftest.$ac_objext conftest.$ac_ext
20446fi
20447echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20448echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20449if test $ac_cv_type_int64_t = yes; then
20450
20451cat >>confdefs.h <<_ACEOF
20452#define HAVE_INT64_T 1
20453_ACEOF
20454
20455
20456else
20457 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20458echo "$as_me: error: Type int64_t required but not found" >&2;}
20459 { (exit 1); exit 1; }; }
20460fi
20461
20462echo "$as_me:$LINENO: checking for uint64_t" >&5
20463echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20464if test "${ac_cv_type_uint64_t+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466else
20467 cat >conftest.$ac_ext <<_ACEOF
20468#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020474$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020475int
20476main ()
20477{
20478if ((uint64_t *) 0)
20479 return 0;
20480if (sizeof (uint64_t))
20481 return 0;
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest.$ac_objext
20487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } &&
20492 { ac_try='test -s conftest.$ac_objext'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 ac_cv_type_uint64_t=yes
20499else
20500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020501sed 's/^/| /' conftest.$ac_ext >&5
20502
John Criswell7a73b802003-06-30 21:59:07 +000020503ac_cv_type_uint64_t=no
20504fi
20505rm -f conftest.$ac_objext conftest.$ac_ext
20506fi
20507echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20508echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20509if test $ac_cv_type_uint64_t = yes; then
20510
20511cat >>confdefs.h <<_ACEOF
20512#define HAVE_UINT64_T 1
20513_ACEOF
20514
20515
20516else
20517 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20518echo "$as_me: error: Type uint64_t required but not found" >&2;}
20519 { (exit 1); exit 1; }; }
20520fi
20521
20522echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20523echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20524if test "${ac_cv_header_time+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526else
20527 cat >conftest.$ac_ext <<_ACEOF
20528#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020534#include <sys/types.h>
20535#include <sys/time.h>
20536#include <time.h>
20537
John Criswell7a73b802003-06-30 21:59:07 +000020538int
20539main ()
20540{
20541if ((struct tm *) 0)
20542return 0;
20543 ;
20544 return 0;
20545}
20546_ACEOF
20547rm -f conftest.$ac_objext
20548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549 (eval $ac_compile) 2>&5
20550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } &&
20553 { ac_try='test -s conftest.$ac_objext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20556 ac_status=$?
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20559 ac_cv_header_time=yes
20560else
20561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020562sed 's/^/| /' conftest.$ac_ext >&5
20563
John Criswell7a73b802003-06-30 21:59:07 +000020564ac_cv_header_time=no
20565fi
20566rm -f conftest.$ac_objext conftest.$ac_ext
20567fi
20568echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20569echo "${ECHO_T}$ac_cv_header_time" >&6
20570if test $ac_cv_header_time = yes; then
20571
20572cat >>confdefs.h <<\_ACEOF
20573#define TIME_WITH_SYS_TIME 1
20574_ACEOF
20575
20576fi
20577
20578echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20579echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20580if test "${ac_cv_struct_tm+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582else
20583 cat >conftest.$ac_ext <<_ACEOF
20584#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020585/* confdefs.h. */
20586_ACEOF
20587cat confdefs.h >>conftest.$ac_ext
20588cat >>conftest.$ac_ext <<_ACEOF
20589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020590#include <sys/types.h>
20591#include <time.h>
20592
John Criswell7a73b802003-06-30 21:59:07 +000020593int
20594main ()
20595{
20596struct tm *tp; tp->tm_sec;
20597 ;
20598 return 0;
20599}
20600_ACEOF
20601rm -f conftest.$ac_objext
20602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20603 (eval $ac_compile) 2>&5
20604 ac_status=$?
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -s conftest.$ac_objext'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; }; then
20613 ac_cv_struct_tm=time.h
20614else
20615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020616sed 's/^/| /' conftest.$ac_ext >&5
20617
John Criswell7a73b802003-06-30 21:59:07 +000020618ac_cv_struct_tm=sys/time.h
20619fi
20620rm -f conftest.$ac_objext conftest.$ac_ext
20621fi
20622echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20623echo "${ECHO_T}$ac_cv_struct_tm" >&6
20624if test $ac_cv_struct_tm = sys/time.h; then
20625
20626cat >>confdefs.h <<\_ACEOF
20627#define TM_IN_SYS_TIME 1
20628_ACEOF
20629
20630fi
20631
20632
John Criswell7a73b802003-06-30 21:59:07 +000020633echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20634echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20635if test "${ac_cv_cxx_namespaces+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20637else
20638
20639
20640 ac_ext=cc
20641ac_cpp='$CXXCPP $CPPFLAGS'
20642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20645
20646 cat >conftest.$ac_ext <<_ACEOF
20647#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020648/* confdefs.h. */
20649_ACEOF
20650cat confdefs.h >>conftest.$ac_ext
20651cat >>conftest.$ac_ext <<_ACEOF
20652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020653namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020654int
20655main ()
20656{
20657using namespace Outer::Inner; return i;
20658 ;
20659 return 0;
20660}
20661_ACEOF
20662rm -f conftest.$ac_objext
20663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664 (eval $ac_compile) 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
20668 { ac_try='test -s conftest.$ac_objext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_cv_cxx_namespaces=yes
20675else
20676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020677sed 's/^/| /' conftest.$ac_ext >&5
20678
John Criswell7a73b802003-06-30 21:59:07 +000020679ac_cv_cxx_namespaces=no
20680fi
20681rm -f conftest.$ac_objext conftest.$ac_ext
20682 ac_ext=c
20683ac_cpp='$CPP $CPPFLAGS'
20684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20686ac_compiler_gnu=$ac_cv_c_compiler_gnu
20687
20688
20689fi
20690echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20691echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20692if test "$ac_cv_cxx_namespaces" = yes; then
20693
20694cat >>confdefs.h <<\_ACEOF
20695#define HAVE_NAMESPACES
20696_ACEOF
20697
20698fi
20699
20700echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20701echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20702if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704else
20705
20706
20707
20708 ac_ext=cc
20709ac_cpp='$CXXCPP $CPPFLAGS'
20710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20713
20714 cat >conftest.$ac_ext <<_ACEOF
20715#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020716/* confdefs.h. */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020721#include <ext/hash_map>
20722#ifdef HAVE_NAMESPACES
20723using namespace std;
20724#endif
John Criswell7a73b802003-06-30 21:59:07 +000020725int
20726main ()
20727{
20728hash_map<int, int> t; return 0;
20729 ;
20730 return 0;
20731}
20732_ACEOF
20733rm -f conftest.$ac_objext
20734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20735 (eval $ac_compile) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -s conftest.$ac_objext'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
20745 ac_cv_cxx_have_ext_hash_map=std
20746else
20747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020748sed 's/^/| /' conftest.$ac_ext >&5
20749
John Criswell7a73b802003-06-30 21:59:07 +000020750ac_cv_cxx_have_ext_hash_map=no
20751fi
20752rm -f conftest.$ac_objext conftest.$ac_ext
20753 cat >conftest.$ac_ext <<_ACEOF
20754#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020760#include <ext/hash_map>
20761#ifdef HAVE_NAMESPACES
20762using namespace __gnu_cxx;
20763#endif
John Criswell7a73b802003-06-30 21:59:07 +000020764int
20765main ()
20766{
20767hash_map<int, int> t; return 0;
20768 ;
20769 return 0;
20770}
20771_ACEOF
20772rm -f conftest.$ac_objext
20773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774 (eval $ac_compile) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); } &&
20778 { ac_try='test -s conftest.$ac_objext'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 ac_cv_cxx_have_ext_hash_map=gnu
20785else
20786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020787sed 's/^/| /' conftest.$ac_ext >&5
20788
John Criswell7a73b802003-06-30 21:59:07 +000020789ac_cv_cxx_have_ext_hash_map=no
20790fi
20791rm -f conftest.$ac_objext conftest.$ac_ext
20792 ac_ext=c
20793ac_cpp='$CPP $CPPFLAGS'
20794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20796ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797
20798
20799fi
20800echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20801echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20802if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20803
20804cat >>confdefs.h <<\_ACEOF
20805#define HAVE_STD_EXT_HASH_MAP
20806_ACEOF
20807
20808fi
20809if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20810
20811cat >>confdefs.h <<\_ACEOF
20812#define HAVE_GNU_EXT_HASH_MAP
20813_ACEOF
20814
20815fi
20816
20817echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20818echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20819if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
20821else
20822
20823
20824
20825 ac_ext=cc
20826ac_cpp='$CXXCPP $CPPFLAGS'
20827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830
20831 cat >conftest.$ac_ext <<_ACEOF
20832#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020838#include <ext/hash_set>
20839#ifdef HAVE_NAMESPACES
20840using namespace std;
20841#endif
John Criswell7a73b802003-06-30 21:59:07 +000020842int
20843main ()
20844{
20845hash_set<int> t; return 0;
20846 ;
20847 return 0;
20848}
20849_ACEOF
20850rm -f conftest.$ac_objext
20851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20852 (eval $ac_compile) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -s conftest.$ac_objext'
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; }; then
20862 ac_cv_cxx_have_ext_hash_set=std
20863else
20864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020865sed 's/^/| /' conftest.$ac_ext >&5
20866
John Criswell7a73b802003-06-30 21:59:07 +000020867ac_cv_cxx_have_ext_hash_set=no
20868fi
20869rm -f conftest.$ac_objext conftest.$ac_ext
20870 cat >conftest.$ac_ext <<_ACEOF
20871#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020872/* confdefs.h. */
20873_ACEOF
20874cat confdefs.h >>conftest.$ac_ext
20875cat >>conftest.$ac_ext <<_ACEOF
20876/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020877#include <ext/hash_set>
20878#ifdef HAVE_NAMESPACES
20879using namespace __gnu_cxx;
20880#endif
John Criswell7a73b802003-06-30 21:59:07 +000020881int
20882main ()
20883{
20884hash_set<int> t; return 0;
20885 ;
20886 return 0;
20887}
20888_ACEOF
20889rm -f conftest.$ac_objext
20890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20891 (eval $ac_compile) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } &&
20895 { ac_try='test -s conftest.$ac_objext'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; }; then
20901 ac_cv_cxx_have_ext_hash_set=gnu
20902else
20903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020904sed 's/^/| /' conftest.$ac_ext >&5
20905
John Criswell7a73b802003-06-30 21:59:07 +000020906ac_cv_cxx_have_ext_hash_set=no
20907fi
20908rm -f conftest.$ac_objext conftest.$ac_ext
20909 ac_ext=c
20910ac_cpp='$CPP $CPPFLAGS'
20911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914
20915
20916fi
20917echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20918echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20919if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20920
20921cat >>confdefs.h <<\_ACEOF
20922#define HAVE_STD_EXT_HASH_SET
20923_ACEOF
20924
20925fi
20926if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20927
20928cat >>confdefs.h <<\_ACEOF
20929#define HAVE_GNU_EXT_HASH_SET
20930_ACEOF
20931
20932fi
20933
20934echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20935echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20936if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
20938else
20939
20940
20941
20942 ac_ext=cc
20943ac_cpp='$CXXCPP $CPPFLAGS'
20944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
20948 cat >conftest.$ac_ext <<_ACEOF
20949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020950/* confdefs.h. */
20951_ACEOF
20952cat confdefs.h >>conftest.$ac_ext
20953cat >>conftest.$ac_ext <<_ACEOF
20954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020955#include <ext/slist>
20956#ifdef HAVE_NAMESPACES
20957using namespace std;
20958#endif
John Criswell7a73b802003-06-30 21:59:07 +000020959int
20960main ()
20961{
20962slist<int> s; return 0;
20963 ;
20964 return 0;
20965}
20966_ACEOF
20967rm -f conftest.$ac_objext
20968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20969 (eval $ac_compile) 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -s conftest.$ac_objext'
20974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_cxx_have_ext_slist=std
20980else
20981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020982sed 's/^/| /' conftest.$ac_ext >&5
20983
John Criswell7a73b802003-06-30 21:59:07 +000020984ac_cv_cxx_have_ext_slist=no
20985fi
20986rm -f conftest.$ac_objext conftest.$ac_ext
20987 cat >conftest.$ac_ext <<_ACEOF
20988#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020994#include <ext/slist>
20995#ifdef HAVE_NAMESPACES
20996using namespace __gnu_cxx;
20997#endif
John Criswell7a73b802003-06-30 21:59:07 +000020998int
20999main ()
21000{
21001slist<int> s; return 0;
21002 ;
21003 return 0;
21004}
21005_ACEOF
21006rm -f conftest.$ac_objext
21007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21008 (eval $ac_compile) 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } &&
21012 { ac_try='test -s conftest.$ac_objext'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 ac_cv_cxx_have_ext_slist=gnu
21019else
21020 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021021sed 's/^/| /' conftest.$ac_ext >&5
21022
John Criswell7a73b802003-06-30 21:59:07 +000021023ac_cv_cxx_have_ext_slist=no
21024fi
21025rm -f conftest.$ac_objext conftest.$ac_ext
21026
21027 ac_ext=c
21028ac_cpp='$CPP $CPPFLAGS'
21029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21031ac_compiler_gnu=$ac_cv_c_compiler_gnu
21032
21033
21034fi
21035echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21036echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21037if test "$ac_cv_cxx_have_ext_slist" = std; then
21038
21039cat >>confdefs.h <<\_ACEOF
21040#define HAVE_EXT_SLIST std
21041_ACEOF
21042
21043fi
21044if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21045
21046cat >>confdefs.h <<\_ACEOF
21047#define HAVE_EXT_SLIST gnu
21048_ACEOF
21049
21050fi
21051
21052echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21053echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21054if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21056else
21057
21058
21059
21060 ac_ext=cc
21061ac_cpp='$CXXCPP $CPPFLAGS'
21062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21065
21066 cat >conftest.$ac_ext <<_ACEOF
21067#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021068/* confdefs.h. */
21069_ACEOF
21070cat confdefs.h >>conftest.$ac_ext
21071cat >>conftest.$ac_ext <<_ACEOF
21072/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021073#include <iterator>
21074#ifdef HAVE_NAMESPACES
21075using namespace std;
21076#endif
John Criswell7a73b802003-06-30 21:59:07 +000021077int
21078main ()
21079{
21080iterator<int,int,int> t; return 0;
21081 ;
21082 return 0;
21083}
21084_ACEOF
21085rm -f conftest.$ac_objext
21086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21087 (eval $ac_compile) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -s conftest.$ac_objext'
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21097 ac_cv_cxx_have_std_iterator=yes
21098else
21099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021100sed 's/^/| /' conftest.$ac_ext >&5
21101
John Criswell7a73b802003-06-30 21:59:07 +000021102ac_cv_cxx_have_std_iterator=no
21103fi
21104rm -f conftest.$ac_objext conftest.$ac_ext
21105 ac_ext=c
21106ac_cpp='$CPP $CPPFLAGS'
21107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109ac_compiler_gnu=$ac_cv_c_compiler_gnu
21110
21111
21112fi
21113echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21114echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21115if test "$ac_cv_cxx_have_std_iterator" = yes; then
21116
21117cat >>confdefs.h <<\_ACEOF
21118#define HAVE_STD_ITERATOR
21119_ACEOF
21120
21121fi
21122
21123echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21124echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21125if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21127else
21128
21129
21130
21131 ac_ext=cc
21132ac_cpp='$CXXCPP $CPPFLAGS'
21133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21136
21137 cat >conftest.$ac_ext <<_ACEOF
21138#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021139/* confdefs.h. */
21140_ACEOF
21141cat confdefs.h >>conftest.$ac_ext
21142cat >>conftest.$ac_ext <<_ACEOF
21143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021144#include <iterator>
21145#ifdef HAVE_NAMESPACES
21146using namespace std;
21147#endif
John Criswell7a73b802003-06-30 21:59:07 +000021148int
21149main ()
21150{
John Criswellc78022e2003-07-29 19:11:58 +000021151bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021152 ;
21153 return 0;
21154}
21155_ACEOF
21156rm -f conftest.$ac_objext
21157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21158 (eval $ac_compile) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
21162 { ac_try='test -s conftest.$ac_objext'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 ac_cv_cxx_have_bi_iterator=yes
21169else
21170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021171sed 's/^/| /' conftest.$ac_ext >&5
21172
John Criswell7a73b802003-06-30 21:59:07 +000021173ac_cv_cxx_have_bi_iterator=no
21174fi
21175rm -f conftest.$ac_objext conftest.$ac_ext
21176 ac_ext=c
21177ac_cpp='$CPP $CPPFLAGS'
21178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21180ac_compiler_gnu=$ac_cv_c_compiler_gnu
21181
21182
21183fi
21184echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21185echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21186if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21187
21188cat >>confdefs.h <<\_ACEOF
21189#define HAVE_BI_ITERATOR
21190_ACEOF
21191
21192fi
21193
21194echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21195echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21196if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21198else
21199
21200
21201
21202 ac_ext=cc
21203ac_cpp='$CXXCPP $CPPFLAGS'
21204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21207
21208 cat >conftest.$ac_ext <<_ACEOF
21209#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021210/* confdefs.h. */
21211_ACEOF
21212cat confdefs.h >>conftest.$ac_ext
21213cat >>conftest.$ac_ext <<_ACEOF
21214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021215#include <iterator>
21216#ifdef HAVE_NAMESPACES
21217using namespace std;
21218#endif
John Criswell7a73b802003-06-30 21:59:07 +000021219int
21220main ()
21221{
John Criswellc78022e2003-07-29 19:11:58 +000021222forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021223 ;
21224 return 0;
21225}
21226_ACEOF
21227rm -f conftest.$ac_objext
21228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21229 (eval $ac_compile) 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -s conftest.$ac_objext'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; }; then
21239 ac_cv_cxx_have_fwd_iterator=yes
21240else
21241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021242sed 's/^/| /' conftest.$ac_ext >&5
21243
John Criswell7a73b802003-06-30 21:59:07 +000021244ac_cv_cxx_have_fwd_iterator=no
21245fi
21246rm -f conftest.$ac_objext conftest.$ac_ext
21247 ac_ext=c
21248ac_cpp='$CPP $CPPFLAGS'
21249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251ac_compiler_gnu=$ac_cv_c_compiler_gnu
21252
21253
21254fi
21255echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21256echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21257if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21258
21259cat >>confdefs.h <<\_ACEOF
21260#define HAVE_FWD_ITERATOR
21261_ACEOF
21262
21263fi
21264
21265
21266# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21267# for constant arguments. Useless!
21268echo "$as_me:$LINENO: checking for working alloca.h" >&5
21269echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21270if test "${ac_cv_working_alloca_h+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21272else
21273 cat >conftest.$ac_ext <<_ACEOF
21274#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021275/* confdefs.h. */
21276_ACEOF
21277cat confdefs.h >>conftest.$ac_ext
21278cat >>conftest.$ac_ext <<_ACEOF
21279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021280#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021281int
21282main ()
21283{
21284char *p = (char *) alloca (2 * sizeof (int));
21285 ;
21286 return 0;
21287}
21288_ACEOF
21289rm -f conftest.$ac_objext conftest$ac_exeext
21290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21291 (eval $ac_link) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -s conftest$ac_exeext'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 ac_cv_working_alloca_h=yes
21302else
21303 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021304sed 's/^/| /' conftest.$ac_ext >&5
21305
John Criswell7a73b802003-06-30 21:59:07 +000021306ac_cv_working_alloca_h=no
21307fi
21308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21309fi
21310echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21311echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21312if test $ac_cv_working_alloca_h = yes; then
21313
21314cat >>confdefs.h <<\_ACEOF
21315#define HAVE_ALLOCA_H 1
21316_ACEOF
21317
21318fi
21319
21320echo "$as_me:$LINENO: checking for alloca" >&5
21321echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21322if test "${ac_cv_func_alloca_works+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324else
21325 cat >conftest.$ac_ext <<_ACEOF
21326#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021327/* confdefs.h. */
21328_ACEOF
21329cat confdefs.h >>conftest.$ac_ext
21330cat >>conftest.$ac_ext <<_ACEOF
21331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021332#ifdef __GNUC__
21333# define alloca __builtin_alloca
21334#else
21335# ifdef _MSC_VER
21336# include <malloc.h>
21337# define alloca _alloca
21338# else
21339# if HAVE_ALLOCA_H
21340# include <alloca.h>
21341# else
21342# ifdef _AIX
21343 #pragma alloca
21344# else
21345# ifndef alloca /* predefined by HP cc +Olibcalls */
21346char *alloca ();
21347# endif
21348# endif
21349# endif
21350# endif
21351#endif
21352
John Criswell7a73b802003-06-30 21:59:07 +000021353int
21354main ()
21355{
21356char *p = (char *) alloca (1);
21357 ;
21358 return 0;
21359}
21360_ACEOF
21361rm -f conftest.$ac_objext conftest$ac_exeext
21362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21363 (eval $ac_link) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -s conftest$ac_exeext'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; }; then
21373 ac_cv_func_alloca_works=yes
21374else
21375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021376sed 's/^/| /' conftest.$ac_ext >&5
21377
John Criswell7a73b802003-06-30 21:59:07 +000021378ac_cv_func_alloca_works=no
21379fi
21380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21381fi
21382echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21383echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21384
21385if test $ac_cv_func_alloca_works = yes; then
21386
21387cat >>confdefs.h <<\_ACEOF
21388#define HAVE_ALLOCA 1
21389_ACEOF
21390
21391else
21392 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21393# that cause trouble. Some versions do not even contain alloca or
21394# contain a buggy version. If you still want to use their alloca,
21395# use ar to extract alloca.o from them instead of compiling alloca.c.
21396
21397ALLOCA=alloca.$ac_objext
21398
21399cat >>confdefs.h <<\_ACEOF
21400#define C_ALLOCA 1
21401_ACEOF
21402
21403
21404echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21405echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21406if test "${ac_cv_os_cray+set}" = set; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21408else
21409 cat >conftest.$ac_ext <<_ACEOF
21410#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021411/* confdefs.h. */
21412_ACEOF
21413cat confdefs.h >>conftest.$ac_ext
21414cat >>conftest.$ac_ext <<_ACEOF
21415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021416#if defined(CRAY) && ! defined(CRAY2)
21417webecray
21418#else
21419wenotbecray
21420#endif
21421
21422_ACEOF
21423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021424 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021425 ac_cv_os_cray=yes
21426else
21427 ac_cv_os_cray=no
21428fi
21429rm -f conftest*
21430
21431fi
21432echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21433echo "${ECHO_T}$ac_cv_os_cray" >&6
21434if test $ac_cv_os_cray = yes; then
21435 for ac_func in _getb67 GETB67 getb67; do
21436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21437echo "$as_me:$LINENO: checking for $ac_func" >&5
21438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21439if eval "test \"\${$as_ac_var+set}\" = set"; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21441else
21442 cat >conftest.$ac_ext <<_ACEOF
21443#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021444/* confdefs.h. */
21445_ACEOF
21446cat confdefs.h >>conftest.$ac_ext
21447cat >>conftest.$ac_ext <<_ACEOF
21448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021449/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021450 which can conflict with char $ac_func (); below.
21451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21452 <limits.h> exists even on freestanding compilers. */
21453#ifdef __STDC__
21454# include <limits.h>
21455#else
21456# include <assert.h>
21457#endif
John Criswell7a73b802003-06-30 21:59:07 +000021458/* Override any gcc2 internal prototype to avoid an error. */
21459#ifdef __cplusplus
21460extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021461{
John Criswell7a73b802003-06-30 21:59:07 +000021462#endif
21463/* We use char because int might match the return type of a gcc2
21464 builtin and then its argument prototype would still apply. */
21465char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021466/* The GNU C library defines this for functions which it implements
21467 to always fail with ENOSYS. Some functions are actually named
21468 something starting with __ and the normal name is an alias. */
21469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21470choke me
21471#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021472char (*f) () = $ac_func;
21473#endif
21474#ifdef __cplusplus
21475}
John Criswell7a73b802003-06-30 21:59:07 +000021476#endif
21477
John Criswell0c38eaf2003-09-10 15:17:25 +000021478int
21479main ()
21480{
21481return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021482 ;
21483 return 0;
21484}
21485_ACEOF
21486rm -f conftest.$ac_objext conftest$ac_exeext
21487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21488 (eval $ac_link) 2>&5
21489 ac_status=$?
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } &&
21492 { ac_try='test -s conftest$ac_exeext'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; }; then
21498 eval "$as_ac_var=yes"
21499else
21500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021501sed 's/^/| /' conftest.$ac_ext >&5
21502
John Criswell7a73b802003-06-30 21:59:07 +000021503eval "$as_ac_var=no"
21504fi
21505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21506fi
21507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21509if test `eval echo '${'$as_ac_var'}'` = yes; then
21510
21511cat >>confdefs.h <<_ACEOF
21512#define CRAY_STACKSEG_END $ac_func
21513_ACEOF
21514
21515 break
21516fi
21517
21518 done
21519fi
21520
21521echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21522echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21523if test "${ac_cv_c_stack_direction+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525else
21526 if test "$cross_compiling" = yes; then
21527 ac_cv_c_stack_direction=0
21528else
21529 cat >conftest.$ac_ext <<_ACEOF
21530#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021531/* confdefs.h. */
21532_ACEOF
21533cat confdefs.h >>conftest.$ac_ext
21534cat >>conftest.$ac_ext <<_ACEOF
21535/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021536int
21537find_stack_direction ()
21538{
21539 static char *addr = 0;
21540 auto char dummy;
21541 if (addr == 0)
21542 {
21543 addr = &dummy;
21544 return find_stack_direction ();
21545 }
21546 else
21547 return (&dummy > addr) ? 1 : -1;
21548}
21549
21550int
21551main ()
21552{
21553 exit (find_stack_direction () < 0);
21554}
21555_ACEOF
21556rm -f conftest$ac_exeext
21557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21558 (eval $ac_link) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 ac_cv_c_stack_direction=1
21568else
21569 echo "$as_me: program exited with status $ac_status" >&5
21570echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021571sed 's/^/| /' conftest.$ac_ext >&5
21572
John Criswell7a73b802003-06-30 21:59:07 +000021573( exit $ac_status )
21574ac_cv_c_stack_direction=-1
21575fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021576rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021577fi
21578fi
21579echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21580echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21581
21582cat >>confdefs.h <<_ACEOF
21583#define STACK_DIRECTION $ac_cv_c_stack_direction
21584_ACEOF
21585
21586
21587fi
21588
21589if test $ac_cv_c_compiler_gnu = yes; then
21590 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21591echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21592if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594else
21595 ac_pattern="Autoconf.*'x'"
21596 cat >conftest.$ac_ext <<_ACEOF
21597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021598/* confdefs.h. */
21599_ACEOF
21600cat confdefs.h >>conftest.$ac_ext
21601cat >>conftest.$ac_ext <<_ACEOF
21602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021603#include <sgtty.h>
21604Autoconf TIOCGETP
21605_ACEOF
21606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021607 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021608 ac_cv_prog_gcc_traditional=yes
21609else
21610 ac_cv_prog_gcc_traditional=no
21611fi
21612rm -f conftest*
21613
21614
21615 if test $ac_cv_prog_gcc_traditional = no; then
21616 cat >conftest.$ac_ext <<_ACEOF
21617#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021618/* confdefs.h. */
21619_ACEOF
21620cat confdefs.h >>conftest.$ac_ext
21621cat >>conftest.$ac_ext <<_ACEOF
21622/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021623#include <termio.h>
21624Autoconf TCGETA
21625_ACEOF
21626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021627 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021628 ac_cv_prog_gcc_traditional=yes
21629fi
21630rm -f conftest*
21631
21632 fi
21633fi
21634echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21635echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21636 if test $ac_cv_prog_gcc_traditional = yes; then
21637 CC="$CC -traditional"
21638 fi
21639fi
21640
21641echo "$as_me:$LINENO: checking for working memcmp" >&5
21642echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21643if test "${ac_cv_func_memcmp_working+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21645else
21646 if test "$cross_compiling" = yes; then
21647 ac_cv_func_memcmp_working=no
21648else
21649 cat >conftest.$ac_ext <<_ACEOF
21650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021656
John Criswell7a73b802003-06-30 21:59:07 +000021657int
21658main ()
21659{
21660
21661 /* Some versions of memcmp are not 8-bit clean. */
21662 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21663 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21664 exit (1);
21665
21666 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21667 or more and with at least one buffer not starting on a 4-byte boundary.
21668 William Lewis provided this test program. */
21669 {
21670 char foo[21];
21671 char bar[21];
21672 int i;
21673 for (i = 0; i < 4; i++)
21674 {
21675 char *a = foo + i;
21676 char *b = bar + i;
21677 strcpy (a, "--------01111111");
21678 strcpy (b, "--------10000000");
21679 if (memcmp (a, b, 16) >= 0)
21680 exit (1);
21681 }
21682 exit (0);
21683 }
21684
21685 ;
21686 return 0;
21687}
21688_ACEOF
21689rm -f conftest$ac_exeext
21690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21691 (eval $ac_link) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 ac_cv_func_memcmp_working=yes
21701else
21702 echo "$as_me: program exited with status $ac_status" >&5
21703echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021704sed 's/^/| /' conftest.$ac_ext >&5
21705
John Criswell7a73b802003-06-30 21:59:07 +000021706( exit $ac_status )
21707ac_cv_func_memcmp_working=no
21708fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021709rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021710fi
21711fi
21712echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21713echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21714test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21715
21716
21717
21718for ac_header in stdlib.h unistd.h
21719do
21720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21721if eval "test \"\${$as_ac_Header+set}\" = set"; then
21722 echo "$as_me:$LINENO: checking for $ac_header" >&5
21723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21724if eval "test \"\${$as_ac_Header+set}\" = set"; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21726fi
21727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21729else
21730 # Is the header compilable?
21731echo "$as_me:$LINENO: checking $ac_header usability" >&5
21732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21733cat >conftest.$ac_ext <<_ACEOF
21734#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021735/* confdefs.h. */
21736_ACEOF
21737cat confdefs.h >>conftest.$ac_ext
21738cat >>conftest.$ac_ext <<_ACEOF
21739/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021740$ac_includes_default
21741#include <$ac_header>
21742_ACEOF
21743rm -f conftest.$ac_objext
21744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21745 (eval $ac_compile) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
21749 { ac_try='test -s conftest.$ac_objext'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 ac_header_compiler=yes
21756else
21757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021758sed 's/^/| /' conftest.$ac_ext >&5
21759
John Criswell7a73b802003-06-30 21:59:07 +000021760ac_header_compiler=no
21761fi
21762rm -f conftest.$ac_objext conftest.$ac_ext
21763echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21764echo "${ECHO_T}$ac_header_compiler" >&6
21765
21766# Is the header present?
21767echo "$as_me:$LINENO: checking $ac_header presence" >&5
21768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21769cat >conftest.$ac_ext <<_ACEOF
21770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021771/* confdefs.h. */
21772_ACEOF
21773cat confdefs.h >>conftest.$ac_ext
21774cat >>conftest.$ac_ext <<_ACEOF
21775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021776#include <$ac_header>
21777_ACEOF
21778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21780 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021781 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } >/dev/null; then
21786 if test -s conftest.err; then
21787 ac_cpp_err=$ac_c_preproc_warn_flag
21788 else
21789 ac_cpp_err=
21790 fi
21791else
21792 ac_cpp_err=yes
21793fi
21794if test -z "$ac_cpp_err"; then
21795 ac_header_preproc=yes
21796else
21797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021798sed 's/^/| /' conftest.$ac_ext >&5
21799
John Criswell7a73b802003-06-30 21:59:07 +000021800 ac_header_preproc=no
21801fi
21802rm -f conftest.err conftest.$ac_ext
21803echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21804echo "${ECHO_T}$ac_header_preproc" >&6
21805
21806# So? What about this header?
21807case $ac_header_compiler:$ac_header_preproc in
21808 yes:no )
21809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21813 (
21814 cat <<\_ASBOX
21815## ------------------------------------ ##
21816## Report this to bug-autoconf@gnu.org. ##
21817## ------------------------------------ ##
21818_ASBOX
21819 ) |
21820 sed "s/^/$as_me: WARNING: /" >&2
21821 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021822 no:yes )
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21826echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21829 (
21830 cat <<\_ASBOX
21831## ------------------------------------ ##
21832## Report this to bug-autoconf@gnu.org. ##
21833## ------------------------------------ ##
21834_ASBOX
21835 ) |
21836 sed "s/^/$as_me: WARNING: /" >&2
21837 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021838esac
21839echo "$as_me:$LINENO: checking for $ac_header" >&5
21840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21841if eval "test \"\${$as_ac_Header+set}\" = set"; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843else
21844 eval "$as_ac_Header=$ac_header_preproc"
21845fi
21846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21848
21849fi
21850if test `eval echo '${'$as_ac_Header'}'` = yes; then
21851 cat >>confdefs.h <<_ACEOF
21852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21853_ACEOF
21854
21855fi
21856
21857done
21858
21859
21860for ac_func in getpagesize
21861do
21862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21863echo "$as_me:$LINENO: checking for $ac_func" >&5
21864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21865if eval "test \"\${$as_ac_var+set}\" = set"; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21867else
21868 cat >conftest.$ac_ext <<_ACEOF
21869#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021870/* confdefs.h. */
21871_ACEOF
21872cat confdefs.h >>conftest.$ac_ext
21873cat >>conftest.$ac_ext <<_ACEOF
21874/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021875/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021876 which can conflict with char $ac_func (); below.
21877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21878 <limits.h> exists even on freestanding compilers. */
21879#ifdef __STDC__
21880# include <limits.h>
21881#else
21882# include <assert.h>
21883#endif
John Criswell7a73b802003-06-30 21:59:07 +000021884/* Override any gcc2 internal prototype to avoid an error. */
21885#ifdef __cplusplus
21886extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021887{
John Criswell7a73b802003-06-30 21:59:07 +000021888#endif
21889/* We use char because int might match the return type of a gcc2
21890 builtin and then its argument prototype would still apply. */
21891char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021892/* The GNU C library defines this for functions which it implements
21893 to always fail with ENOSYS. Some functions are actually named
21894 something starting with __ and the normal name is an alias. */
21895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21896choke me
21897#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021898char (*f) () = $ac_func;
21899#endif
21900#ifdef __cplusplus
21901}
John Criswell7a73b802003-06-30 21:59:07 +000021902#endif
21903
John Criswell0c38eaf2003-09-10 15:17:25 +000021904int
21905main ()
21906{
21907return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021908 ;
21909 return 0;
21910}
21911_ACEOF
21912rm -f conftest.$ac_objext conftest$ac_exeext
21913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21914 (eval $ac_link) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } &&
21918 { ac_try='test -s conftest$ac_exeext'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; }; then
21924 eval "$as_ac_var=yes"
21925else
21926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021927sed 's/^/| /' conftest.$ac_ext >&5
21928
John Criswell7a73b802003-06-30 21:59:07 +000021929eval "$as_ac_var=no"
21930fi
21931rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21932fi
21933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21934echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21935if test `eval echo '${'$as_ac_var'}'` = yes; then
21936 cat >>confdefs.h <<_ACEOF
21937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21938_ACEOF
21939
21940fi
21941done
21942
21943echo "$as_me:$LINENO: checking for working mmap" >&5
21944echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21945if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21947else
21948 if test "$cross_compiling" = yes; then
21949 ac_cv_func_mmap_fixed_mapped=no
21950else
21951 cat >conftest.$ac_ext <<_ACEOF
21952#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021953/* confdefs.h. */
21954_ACEOF
21955cat confdefs.h >>conftest.$ac_ext
21956cat >>conftest.$ac_ext <<_ACEOF
21957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021958$ac_includes_default
21959/* malloc might have been renamed as rpl_malloc. */
21960#undef malloc
21961
21962/* Thanks to Mike Haertel and Jim Avera for this test.
21963 Here is a matrix of mmap possibilities:
21964 mmap private not fixed
21965 mmap private fixed at somewhere currently unmapped
21966 mmap private fixed at somewhere already mapped
21967 mmap shared not fixed
21968 mmap shared fixed at somewhere currently unmapped
21969 mmap shared fixed at somewhere already mapped
21970 For private mappings, we should verify that changes cannot be read()
21971 back from the file, nor mmap's back from the file at a different
21972 address. (There have been systems where private was not correctly
21973 implemented like the infamous i386 svr4.0, and systems where the
21974 VM page cache was not coherent with the file system buffer cache
21975 like early versions of FreeBSD and possibly contemporary NetBSD.)
21976 For shared mappings, we should conversely verify that changes get
21977 propagated back to all the places they're supposed to be.
21978
21979 Grep wants private fixed already mapped.
21980 The main things grep needs to know about mmap are:
21981 * does it exist and is it safe to write into the mmap'd area
21982 * how to use it (BSD variants) */
21983
21984#include <fcntl.h>
21985#include <sys/mman.h>
21986
21987#if !STDC_HEADERS && !HAVE_STDLIB_H
21988char *malloc ();
21989#endif
21990
21991/* This mess was copied from the GNU getpagesize.h. */
21992#if !HAVE_GETPAGESIZE
21993/* Assume that all systems that can run configure have sys/param.h. */
21994# if !HAVE_SYS_PARAM_H
21995# define HAVE_SYS_PARAM_H 1
21996# endif
21997
21998# ifdef _SC_PAGESIZE
21999# define getpagesize() sysconf(_SC_PAGESIZE)
22000# else /* no _SC_PAGESIZE */
22001# if HAVE_SYS_PARAM_H
22002# include <sys/param.h>
22003# ifdef EXEC_PAGESIZE
22004# define getpagesize() EXEC_PAGESIZE
22005# else /* no EXEC_PAGESIZE */
22006# ifdef NBPG
22007# define getpagesize() NBPG * CLSIZE
22008# ifndef CLSIZE
22009# define CLSIZE 1
22010# endif /* no CLSIZE */
22011# else /* no NBPG */
22012# ifdef NBPC
22013# define getpagesize() NBPC
22014# else /* no NBPC */
22015# ifdef PAGESIZE
22016# define getpagesize() PAGESIZE
22017# endif /* PAGESIZE */
22018# endif /* no NBPC */
22019# endif /* no NBPG */
22020# endif /* no EXEC_PAGESIZE */
22021# else /* no HAVE_SYS_PARAM_H */
22022# define getpagesize() 8192 /* punt totally */
22023# endif /* no HAVE_SYS_PARAM_H */
22024# endif /* no _SC_PAGESIZE */
22025
22026#endif /* no HAVE_GETPAGESIZE */
22027
22028int
22029main ()
22030{
22031 char *data, *data2, *data3;
22032 int i, pagesize;
22033 int fd;
22034
22035 pagesize = getpagesize ();
22036
22037 /* First, make a file with some known garbage in it. */
22038 data = (char *) malloc (pagesize);
22039 if (!data)
22040 exit (1);
22041 for (i = 0; i < pagesize; ++i)
22042 *(data + i) = rand ();
22043 umask (0);
22044 fd = creat ("conftest.mmap", 0600);
22045 if (fd < 0)
22046 exit (1);
22047 if (write (fd, data, pagesize) != pagesize)
22048 exit (1);
22049 close (fd);
22050
22051 /* Next, try to mmap the file at a fixed address which already has
22052 something else allocated at it. If we can, also make sure that
22053 we see the same garbage. */
22054 fd = open ("conftest.mmap", O_RDWR);
22055 if (fd < 0)
22056 exit (1);
22057 data2 = (char *) malloc (2 * pagesize);
22058 if (!data2)
22059 exit (1);
22060 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22061 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22062 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22063 exit (1);
22064 for (i = 0; i < pagesize; ++i)
22065 if (*(data + i) != *(data2 + i))
22066 exit (1);
22067
22068 /* Finally, make sure that changes to the mapped area do not
22069 percolate back to the file as seen by read(). (This is a bug on
22070 some variants of i386 svr4.0.) */
22071 for (i = 0; i < pagesize; ++i)
22072 *(data2 + i) = *(data2 + i) + 1;
22073 data3 = (char *) malloc (pagesize);
22074 if (!data3)
22075 exit (1);
22076 if (read (fd, data3, pagesize) != pagesize)
22077 exit (1);
22078 for (i = 0; i < pagesize; ++i)
22079 if (*(data + i) != *(data3 + i))
22080 exit (1);
22081 close (fd);
22082 exit (0);
22083}
22084_ACEOF
22085rm -f conftest$ac_exeext
22086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087 (eval $ac_link) 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 ac_cv_func_mmap_fixed_mapped=yes
22097else
22098 echo "$as_me: program exited with status $ac_status" >&5
22099echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022100sed 's/^/| /' conftest.$ac_ext >&5
22101
John Criswell7a73b802003-06-30 21:59:07 +000022102( exit $ac_status )
22103ac_cv_func_mmap_fixed_mapped=no
22104fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022105rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022106fi
22107fi
22108echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22109echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22110if test $ac_cv_func_mmap_fixed_mapped = yes; then
22111
22112cat >>confdefs.h <<\_ACEOF
22113#define HAVE_MMAP 1
22114_ACEOF
22115
22116fi
22117rm -f conftest.mmap
22118
22119echo "$as_me:$LINENO: checking for mmap of files" >&5
22120echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22121if test "${ac_cv_func_mmap_file+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22123else
22124
22125
22126 ac_ext=c
22127ac_cpp='$CPP $CPPFLAGS'
22128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130ac_compiler_gnu=$ac_cv_c_compiler_gnu
22131
22132 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022133 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22134See \`config.log' for more details." >&5
22135echo "$as_me: error: cannot run test program while cross compiling
22136See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022137 { (exit 1); exit 1; }; }
22138else
22139 cat >conftest.$ac_ext <<_ACEOF
22140#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022146
22147#ifdef HAVE_SYS_MMAN_H
22148#include <sys/mman.h>
22149#endif
22150
22151#ifdef HAVE_SYS_TYPES_H
22152#include <sys/types.h>
22153#endif
22154
22155#ifdef HAVE_FCNTL_H
22156#include <fcntl.h>
22157#endif
22158
22159 int fd;
22160 int main () {
22161 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22162_ACEOF
22163rm -f conftest$ac_exeext
22164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22165 (eval $ac_link) 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_func_mmap_file=yes
22175else
22176 echo "$as_me: program exited with status $ac_status" >&5
22177echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022178sed 's/^/| /' conftest.$ac_ext >&5
22179
John Criswell7a73b802003-06-30 21:59:07 +000022180( exit $ac_status )
22181ac_cv_func_mmap_file=no
22182fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022183rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022184fi
22185 ac_ext=c
22186ac_cpp='$CPP $CPPFLAGS'
22187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22189ac_compiler_gnu=$ac_cv_c_compiler_gnu
22190
22191
22192fi
22193echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22194echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22195if test "$ac_cv_func_mmap_file" = yes; then
22196 cat >>confdefs.h <<\_ACEOF
22197#define HAVE_MMAP_FILE 1
22198_ACEOF
22199
22200 MMAP_FILE=yes
22201
22202fi
22203
22204if test ${ac_cv_func_mmap_file} = "no"
22205then
22206 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22207echo "$as_me: error: mmap() of files required but not found" >&2;}
22208 { (exit 1); exit 1; }; }
22209fi
22210echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22211echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22212if test "${ac_cv_header_mmap_anon+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214else
22215
22216
22217 ac_ext=c
22218ac_cpp='$CPP $CPPFLAGS'
22219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22221ac_compiler_gnu=$ac_cv_c_compiler_gnu
22222
22223 cat >conftest.$ac_ext <<_ACEOF
22224#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022225/* confdefs.h. */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022230#include <sys/mman.h>
22231 #include <unistd.h>
22232 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022233int
22234main ()
22235{
22236mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22237 ;
22238 return 0;
22239}
22240_ACEOF
22241rm -f conftest.$ac_objext
22242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22243 (eval $ac_compile) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } &&
22247 { ac_try='test -s conftest.$ac_objext'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; }; then
22253 ac_cv_header_mmap_anon=yes
22254else
22255 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022256sed 's/^/| /' conftest.$ac_ext >&5
22257
John Criswell7a73b802003-06-30 21:59:07 +000022258ac_cv_header_mmap_anon=no
22259fi
22260rm -f conftest.$ac_objext conftest.$ac_ext
22261 ac_ext=c
22262ac_cpp='$CPP $CPPFLAGS'
22263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22265ac_compiler_gnu=$ac_cv_c_compiler_gnu
22266
22267
22268fi
22269echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22270echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22271if test "$ac_cv_header_mmap_anon" = yes; then
22272 cat >>confdefs.h <<\_ACEOF
22273#define HAVE_MMAP_ANONYMOUS 1
22274_ACEOF
22275
22276fi
22277
22278echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22279echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22280if test "${ac_cv_type_signal+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22282else
22283 cat >conftest.$ac_ext <<_ACEOF
22284#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022285/* confdefs.h. */
22286_ACEOF
22287cat confdefs.h >>conftest.$ac_ext
22288cat >>conftest.$ac_ext <<_ACEOF
22289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022290#include <sys/types.h>
22291#include <signal.h>
22292#ifdef signal
22293# undef signal
22294#endif
22295#ifdef __cplusplus
22296extern "C" void (*signal (int, void (*)(int)))(int);
22297#else
22298void (*signal ()) ();
22299#endif
22300
John Criswell7a73b802003-06-30 21:59:07 +000022301int
22302main ()
22303{
22304int i;
22305 ;
22306 return 0;
22307}
22308_ACEOF
22309rm -f conftest.$ac_objext
22310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22311 (eval $ac_compile) 2>&5
22312 ac_status=$?
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } &&
22315 { ac_try='test -s conftest.$ac_objext'
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5
22318 ac_status=$?
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; }; then
22321 ac_cv_type_signal=void
22322else
22323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022324sed 's/^/| /' conftest.$ac_ext >&5
22325
John Criswell7a73b802003-06-30 21:59:07 +000022326ac_cv_type_signal=int
22327fi
22328rm -f conftest.$ac_objext conftest.$ac_ext
22329fi
22330echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22331echo "${ECHO_T}$ac_cv_type_signal" >&6
22332
22333cat >>confdefs.h <<_ACEOF
22334#define RETSIGTYPE $ac_cv_type_signal
22335_ACEOF
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22348do
22349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22350echo "$as_me:$LINENO: checking for $ac_func" >&5
22351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22352if eval "test \"\${$as_ac_var+set}\" = set"; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354else
22355 cat >conftest.$ac_ext <<_ACEOF
22356#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022357/* confdefs.h. */
22358_ACEOF
22359cat confdefs.h >>conftest.$ac_ext
22360cat >>conftest.$ac_ext <<_ACEOF
22361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022362/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022363 which can conflict with char $ac_func (); below.
22364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22365 <limits.h> exists even on freestanding compilers. */
22366#ifdef __STDC__
22367# include <limits.h>
22368#else
22369# include <assert.h>
22370#endif
John Criswell7a73b802003-06-30 21:59:07 +000022371/* Override any gcc2 internal prototype to avoid an error. */
22372#ifdef __cplusplus
22373extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022374{
John Criswell7a73b802003-06-30 21:59:07 +000022375#endif
22376/* We use char because int might match the return type of a gcc2
22377 builtin and then its argument prototype would still apply. */
22378char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022379/* The GNU C library defines this for functions which it implements
22380 to always fail with ENOSYS. Some functions are actually named
22381 something starting with __ and the normal name is an alias. */
22382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22383choke me
22384#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022385char (*f) () = $ac_func;
22386#endif
22387#ifdef __cplusplus
22388}
John Criswell7a73b802003-06-30 21:59:07 +000022389#endif
22390
John Criswell0c38eaf2003-09-10 15:17:25 +000022391int
22392main ()
22393{
22394return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022395 ;
22396 return 0;
22397}
22398_ACEOF
22399rm -f conftest.$ac_objext conftest$ac_exeext
22400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22401 (eval $ac_link) 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } &&
22405 { ac_try='test -s conftest$ac_exeext'
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 eval "$as_ac_var=yes"
22412else
22413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022414sed 's/^/| /' conftest.$ac_ext >&5
22415
John Criswell7a73b802003-06-30 21:59:07 +000022416eval "$as_ac_var=no"
22417fi
22418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22419fi
22420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22422if test `eval echo '${'$as_ac_var'}'` = yes; then
22423 cat >>confdefs.h <<_ACEOF
22424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22425_ACEOF
22426
22427fi
22428done
22429
22430
22431
22432echo "$as_me:$LINENO: checking for mmap" >&5
22433echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22434if test "${ac_cv_func_mmap+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22436else
22437 cat >conftest.$ac_ext <<_ACEOF
22438#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022439/* confdefs.h. */
22440_ACEOF
22441cat confdefs.h >>conftest.$ac_ext
22442cat >>conftest.$ac_ext <<_ACEOF
22443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022444/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022445 which can conflict with char mmap (); below.
22446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22447 <limits.h> exists even on freestanding compilers. */
22448#ifdef __STDC__
22449# include <limits.h>
22450#else
22451# include <assert.h>
22452#endif
John Criswell7a73b802003-06-30 21:59:07 +000022453/* Override any gcc2 internal prototype to avoid an error. */
22454#ifdef __cplusplus
22455extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022456{
John Criswell7a73b802003-06-30 21:59:07 +000022457#endif
22458/* We use char because int might match the return type of a gcc2
22459 builtin and then its argument prototype would still apply. */
22460char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022461/* The GNU C library defines this for functions which it implements
22462 to always fail with ENOSYS. Some functions are actually named
22463 something starting with __ and the normal name is an alias. */
22464#if defined (__stub_mmap) || defined (__stub___mmap)
22465choke me
22466#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022467char (*f) () = mmap;
22468#endif
22469#ifdef __cplusplus
22470}
John Criswell7a73b802003-06-30 21:59:07 +000022471#endif
22472
John Criswell0c38eaf2003-09-10 15:17:25 +000022473int
22474main ()
22475{
22476return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022477 ;
22478 return 0;
22479}
22480_ACEOF
22481rm -f conftest.$ac_objext conftest$ac_exeext
22482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22483 (eval $ac_link) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } &&
22487 { ac_try='test -s conftest$ac_exeext'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; }; then
22493 ac_cv_func_mmap=yes
22494else
22495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022496sed 's/^/| /' conftest.$ac_ext >&5
22497
John Criswell7a73b802003-06-30 21:59:07 +000022498ac_cv_func_mmap=no
22499fi
22500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22501fi
22502echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22503echo "${ECHO_T}$ac_cv_func_mmap" >&6
22504if test $ac_cv_func_mmap = yes; then
22505 :
22506else
22507 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22508echo "$as_me: error: Function mmap() required but not found" >&2;}
22509 { (exit 1); exit 1; }; }
22510fi
22511
22512echo "$as_me:$LINENO: checking for mprotect" >&5
22513echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22514if test "${ac_cv_func_mprotect+set}" = set; then
22515 echo $ECHO_N "(cached) $ECHO_C" >&6
22516else
22517 cat >conftest.$ac_ext <<_ACEOF
22518#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022519/* confdefs.h. */
22520_ACEOF
22521cat confdefs.h >>conftest.$ac_ext
22522cat >>conftest.$ac_ext <<_ACEOF
22523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022524/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022525 which can conflict with char mprotect (); below.
22526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22527 <limits.h> exists even on freestanding compilers. */
22528#ifdef __STDC__
22529# include <limits.h>
22530#else
22531# include <assert.h>
22532#endif
John Criswell7a73b802003-06-30 21:59:07 +000022533/* Override any gcc2 internal prototype to avoid an error. */
22534#ifdef __cplusplus
22535extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022536{
John Criswell7a73b802003-06-30 21:59:07 +000022537#endif
22538/* We use char because int might match the return type of a gcc2
22539 builtin and then its argument prototype would still apply. */
22540char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022541/* The GNU C library defines this for functions which it implements
22542 to always fail with ENOSYS. Some functions are actually named
22543 something starting with __ and the normal name is an alias. */
22544#if defined (__stub_mprotect) || defined (__stub___mprotect)
22545choke me
22546#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022547char (*f) () = mprotect;
22548#endif
22549#ifdef __cplusplus
22550}
John Criswell7a73b802003-06-30 21:59:07 +000022551#endif
22552
John Criswell0c38eaf2003-09-10 15:17:25 +000022553int
22554main ()
22555{
22556return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022557 ;
22558 return 0;
22559}
22560_ACEOF
22561rm -f conftest.$ac_objext conftest$ac_exeext
22562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22563 (eval $ac_link) 2>&5
22564 ac_status=$?
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } &&
22567 { ac_try='test -s conftest$ac_exeext'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22570 ac_status=$?
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 ac_cv_func_mprotect=yes
22574else
22575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022576sed 's/^/| /' conftest.$ac_ext >&5
22577
John Criswell7a73b802003-06-30 21:59:07 +000022578ac_cv_func_mprotect=no
22579fi
22580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22581fi
22582echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22583echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22584if test $ac_cv_func_mprotect = yes; then
22585 :
22586else
22587 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22588echo "$as_me: error: Function mprotect() required but not found" >&2;}
22589 { (exit 1); exit 1; }; }
22590fi
22591
22592
John Criswellb13092b2003-07-22 21:00:24 +000022593
John Criswell7a73b802003-06-30 21:59:07 +000022594# Check whether --enable-purify or --disable-purify was given.
22595if test "${enable_purify+set}" = set; then
22596 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022597
22598else
John Criswellb13092b2003-07-22 21:00:24 +000022599 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022600fi;
John Criswellb13092b2003-07-22 21:00:24 +000022601if test ${enableval} = "no"
22602then
22603 ENABLE_PURIFY=
22604
22605else
22606 ENABLE_PURIFY=ENABLE_PURIFY=1
22607
22608fi
22609
John Criswell7a73b802003-06-30 21:59:07 +000022610# Check whether --enable-optimized or --disable-optimized was given.
22611if test "${enable_optimized+set}" = set; then
22612 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022613
22614else
John Criswellb13092b2003-07-22 21:00:24 +000022615 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022616fi;
John Criswellb13092b2003-07-22 21:00:24 +000022617if test ${enableval} = "no"
22618then
22619 ENABLE_OPTIMIZED=
22620
22621else
22622 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22623
22624fi
22625
John Criswell7a73b802003-06-30 21:59:07 +000022626# Check whether --enable-spec or --disable-spec was given.
22627if test "${enable_spec+set}" = set; then
22628 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022629
22630else
John Criswellb13092b2003-07-22 21:00:24 +000022631 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022632fi;
John Criswellb13092b2003-07-22 21:00:24 +000022633if test ${enableval} = "no"
22634then
22635 USE_SPEC=
22636
22637else
22638 USE_SPEC=USE_SPEC=1
22639
22640fi
22641
John Criswell7a73b802003-06-30 21:59:07 +000022642# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22643if test "${enable_precompiled_bytecode+set}" = set; then
22644 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022645
22646else
John Criswellb13092b2003-07-22 21:00:24 +000022647 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022648fi;
John Criswellb13092b2003-07-22 21:00:24 +000022649if test ${enableval} = "no"
22650then
22651 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022652
John Criswellb13092b2003-07-22 21:00:24 +000022653else
22654 UPB=USE_PRECOMPILED_BYTECODE=1
22655
22656fi
John Criswellf02dbf02003-07-22 20:07:49 +000022657
22658
22659# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22660if test "${enable_llc_diffs+set}" = set; then
22661 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022662
22663else
John Criswellb13092b2003-07-22 21:00:24 +000022664 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022665fi;
John Criswellb13092b2003-07-22 21:00:24 +000022666if test ${enableval} = "no"
22667then
22668 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022669
John Criswellb13092b2003-07-22 21:00:24 +000022670else
22671 DISABLE_LLC_DIFFS=
22672
22673fi
22674
22675# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022676if test "${enable_jit+set}" = set; then
22677 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022678
22679else
John Criswellc78022e2003-07-29 19:11:58 +000022680 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022681fi;
John Criswellb13092b2003-07-22 21:00:24 +000022682
22683if test ${enableval} = "no"
22684then
22685 JIT=
22686
22687else
John Criswellc78022e2003-07-29 19:11:58 +000022688 case $target in
22689 *i*86*)
22690 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022691
John Criswellc78022e2003-07-29 19:11:58 +000022692 ;;
22693 *sparc*)
22694 JIT=TARGET_HAS_JIT=1
22695
22696 ;;
22697 *)
22698 JIT=
22699
22700 ;;
22701 esac
John Criswellb13092b2003-07-22 21:00:24 +000022702fi
John Criswell7a73b802003-06-30 21:59:07 +000022703
22704
John Criswellc78022e2003-07-29 19:11:58 +000022705
John Criswell7a73b802003-06-30 21:59:07 +000022706# Check whether --with-spec or --without-spec was given.
22707if test "${with_spec+set}" = set; then
22708 withval="$with_spec"
22709 SPEC_ROOT=$withval
22710
22711else
22712 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22713
22714fi;
22715
John Criswellc78022e2003-07-29 19:11:58 +000022716
John Criswell7a73b802003-06-30 21:59:07 +000022717# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22718if test "${with_llvmgccdir+set}" = set; then
22719 withval="$with_llvmgccdir"
22720 LLVMGCCDIR=$withval
22721
22722fi;
22723
John Criswellc78022e2003-07-29 19:11:58 +000022724
John Criswell7a73b802003-06-30 21:59:07 +000022725# Check whether --with-bcrepos or --without-bcrepos was given.
22726if test "${with_bcrepos+set}" = set; then
22727 withval="$with_bcrepos"
22728 BCR=$withval
22729
22730else
22731 BCR=/home/vadve/lattner/LLVMPrograms
22732
22733fi;
22734
John Criswellc78022e2003-07-29 19:11:58 +000022735
John Criswell7a73b802003-06-30 21:59:07 +000022736# Check whether --with-papi or --without-papi was given.
22737if test "${with_papi+set}" = set; then
22738 withval="$with_papi"
22739 PAPIDIR=$withval
22740
22741else
John Criswellde00db22003-08-25 16:49:54 +000022742 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022743
22744fi;
22745
John Criswell7a73b802003-06-30 21:59:07 +000022746
22747# Check whether --with-purify or --without-purify was given.
22748if test "${with_purify+set}" = set; then
22749 withval="$with_purify"
22750 PURIFY=$withval
22751
22752fi;
22753
John Criswellde00db22003-08-25 16:49:54 +000022754
John Criswell0c38eaf2003-09-10 15:17:25 +000022755 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022756cat >confcache <<\_ACEOF
22757# This file is a shell script that caches the results of configure
22758# tests run on this system so they can be shared between configure
22759# scripts and configure runs, see configure's option --config-cache.
22760# It is not useful on other systems. If it contains results you don't
22761# want to keep, you may remove or edit it.
22762#
22763# config.status only pays attention to the cache file if you give it
22764# the --recheck option to rerun configure.
22765#
John Criswell0c38eaf2003-09-10 15:17:25 +000022766# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022767# loading this file, other *unset* `ac_cv_foo' will be assigned the
22768# following values.
22769
22770_ACEOF
22771
22772# The following way of writing the cache mishandles newlines in values,
22773# but we know of no workaround that is simple, portable, and efficient.
22774# So, don't put newlines in cache variables' values.
22775# Ultrix sh set writes to stderr and can't be redirected directly,
22776# and sets the high bit in the cache file unless we assign to the vars.
22777{
22778 (set) 2>&1 |
22779 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22780 *ac_space=\ *)
22781 # `set' does not quote correctly, so add quotes (double-quote
22782 # substitution turns \\\\ into \\, and sed turns \\ into \).
22783 sed -n \
22784 "s/'/'\\\\''/g;
22785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22786 ;;
22787 *)
22788 # `set' quotes correctly as required by POSIX, so do not add quotes.
22789 sed -n \
22790 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22791 ;;
22792 esac;
22793} |
22794 sed '
22795 t clear
22796 : clear
22797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22798 t end
22799 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22800 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022801if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022802 if test -w $cache_file; then
22803 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22804 cat confcache >$cache_file
22805 else
22806 echo "not updating unwritable cache $cache_file"
22807 fi
22808fi
22809rm -f confcache
22810
22811test "x$prefix" = xNONE && prefix=$ac_default_prefix
22812# Let make expand exec_prefix.
22813test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22814
22815# VPATH may cause trouble with some makes, so we remove $(srcdir),
22816# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22817# trailing colons and then remove the whole line if VPATH becomes empty
22818# (actually we leave an empty line to preserve line numbers).
22819if test "x$srcdir" = x.; then
22820 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22821s/:*\$(srcdir):*/:/;
22822s/:*\${srcdir}:*/:/;
22823s/:*@srcdir@:*/:/;
22824s/^\([^=]*=[ ]*\):*/\1/;
22825s/:*$//;
22826s/^[^=]*=[ ]*$//;
22827}'
22828fi
22829
22830DEFS=-DHAVE_CONFIG_H
22831
John Criswell0c38eaf2003-09-10 15:17:25 +000022832ac_libobjs=
22833ac_ltlibobjs=
22834for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22835 # 1. Remove the extension, and $U if already installed.
22836 ac_i=`echo "$ac_i" |
22837 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22838 # 2. Add them.
22839 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22840 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22841done
22842LIBOBJS=$ac_libobjs
22843
22844LTLIBOBJS=$ac_ltlibobjs
22845
22846
John Criswell7a73b802003-06-30 21:59:07 +000022847
22848: ${CONFIG_STATUS=./config.status}
22849ac_clean_files_save=$ac_clean_files
22850ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22851{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22852echo "$as_me: creating $CONFIG_STATUS" >&6;}
22853cat >$CONFIG_STATUS <<_ACEOF
22854#! $SHELL
22855# Generated by $as_me.
22856# Run this file to recreate the current configuration.
22857# Compiler output produced by configure, useful for debugging
22858# configure, is in config.log if it exists.
22859
22860debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022861ac_cs_recheck=false
22862ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022863SHELL=\${CONFIG_SHELL-$SHELL}
22864_ACEOF
22865
22866cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022867## --------------------- ##
22868## M4sh Initialization. ##
22869## --------------------- ##
22870
22871# Be Bourne compatible
22872if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22873 emulate sh
22874 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022875 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22876 # is contrary to our usage. Disable this feature.
22877 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022878elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22879 set -o posix
22880fi
22881
John Criswell7a73b802003-06-30 21:59:07 +000022882# Support unset when possible.
22883if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22884 as_unset=unset
22885else
22886 as_unset=false
22887fi
22888
John Criswell0c38eaf2003-09-10 15:17:25 +000022889
22890# Work around bugs in pre-3.0 UWIN ksh.
22891$as_unset ENV MAIL MAILPATH
22892PS1='$ '
22893PS2='> '
22894PS4='+ '
22895
22896# NLS nuisances.
22897for as_var in \
22898 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22899 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22900 LC_TELEPHONE LC_TIME
22901do
22902 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22903 eval $as_var=C; export $as_var
22904 else
22905 $as_unset $as_var
22906 fi
22907done
22908
22909# Required to use basename.
22910if expr a : '\(a\)' >/dev/null 2>&1; then
22911 as_expr=expr
22912else
22913 as_expr=false
22914fi
22915
22916if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22917 as_basename=basename
22918else
22919 as_basename=false
22920fi
John Criswell7a73b802003-06-30 21:59:07 +000022921
22922
22923# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022924as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022925$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22926 X"$0" : 'X\(//\)$' \| \
22927 X"$0" : 'X\(/\)$' \| \
22928 . : '\(.\)' 2>/dev/null ||
22929echo X/"$0" |
22930 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22931 /^X\/\(\/\/\)$/{ s//\1/; q; }
22932 /^X\/\(\/\).*/{ s//\1/; q; }
22933 s/.*/./; q'`
22934
John Criswell0c38eaf2003-09-10 15:17:25 +000022935
John Criswell7a73b802003-06-30 21:59:07 +000022936# PATH needs CR, and LINENO needs CR and PATH.
22937# Avoid depending upon Character Ranges.
22938as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22939as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22940as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22941as_cr_digits='0123456789'
22942as_cr_alnum=$as_cr_Letters$as_cr_digits
22943
22944# The user is always right.
22945if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022946 echo "#! /bin/sh" >conf$$.sh
22947 echo "exit 0" >>conf$$.sh
22948 chmod +x conf$$.sh
22949 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022950 PATH_SEPARATOR=';'
22951 else
22952 PATH_SEPARATOR=:
22953 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022954 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022955fi
22956
22957
22958 as_lineno_1=$LINENO
22959 as_lineno_2=$LINENO
22960 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22961 test "x$as_lineno_1" != "x$as_lineno_2" &&
22962 test "x$as_lineno_3" = "x$as_lineno_2" || {
22963 # Find who we are. Look in the path if we contain no path at all
22964 # relative or not.
22965 case $0 in
22966 *[\\/]* ) as_myself=$0 ;;
22967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968for as_dir in $PATH
22969do
22970 IFS=$as_save_IFS
22971 test -z "$as_dir" && as_dir=.
22972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22973done
22974
22975 ;;
22976 esac
22977 # We did not find ourselves, most probably we were run as `sh COMMAND'
22978 # in which case we are not to be found in the path.
22979 if test "x$as_myself" = x; then
22980 as_myself=$0
22981 fi
22982 if test ! -f "$as_myself"; then
22983 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22984echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22985 { (exit 1); exit 1; }; }
22986 fi
22987 case $CONFIG_SHELL in
22988 '')
22989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22990for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22991do
22992 IFS=$as_save_IFS
22993 test -z "$as_dir" && as_dir=.
22994 for as_base in sh bash ksh sh5; do
22995 case $as_dir in
22996 /*)
22997 if ("$as_dir/$as_base" -c '
22998 as_lineno_1=$LINENO
22999 as_lineno_2=$LINENO
23000 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23001 test "x$as_lineno_1" != "x$as_lineno_2" &&
23002 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023003 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23004 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023005 CONFIG_SHELL=$as_dir/$as_base
23006 export CONFIG_SHELL
23007 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23008 fi;;
23009 esac
23010 done
23011done
23012;;
23013 esac
23014
23015 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23016 # uniformly replaced by the line number. The first 'sed' inserts a
23017 # line-number line before each line; the second 'sed' does the real
23018 # work. The second script uses 'N' to pair each line-number line
23019 # with the numbered line, and appends trailing '-' during
23020 # substitution so that $LINENO is not a special case at line end.
23021 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23022 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23023 sed '=' <$as_myself |
23024 sed '
23025 N
23026 s,$,-,
23027 : loop
23028 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23029 t loop
23030 s,-$,,
23031 s,^['$as_cr_digits']*\n,,
23032 ' >$as_me.lineno &&
23033 chmod +x $as_me.lineno ||
23034 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23035echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23036 { (exit 1); exit 1; }; }
23037
23038 # Don't try to exec as it changes $[0], causing all sort of problems
23039 # (the dirname of $[0] is not the place where we might find the
23040 # original and so on. Autoconf is especially sensible to this).
23041 . ./$as_me.lineno
23042 # Exit status is that of the last command.
23043 exit
23044}
23045
23046
23047case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23048 *c*,-n*) ECHO_N= ECHO_C='
23049' ECHO_T=' ' ;;
23050 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23051 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23052esac
23053
23054if expr a : '\(a\)' >/dev/null 2>&1; then
23055 as_expr=expr
23056else
23057 as_expr=false
23058fi
23059
23060rm -f conf$$ conf$$.exe conf$$.file
23061echo >conf$$.file
23062if ln -s conf$$.file conf$$ 2>/dev/null; then
23063 # We could just check for DJGPP; but this test a) works b) is more generic
23064 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23065 if test -f conf$$.exe; then
23066 # Don't use ln at all; we don't have any links
23067 as_ln_s='cp -p'
23068 else
23069 as_ln_s='ln -s'
23070 fi
23071elif ln conf$$.file conf$$ 2>/dev/null; then
23072 as_ln_s=ln
23073else
23074 as_ln_s='cp -p'
23075fi
23076rm -f conf$$ conf$$.exe conf$$.file
23077
John Criswell0c38eaf2003-09-10 15:17:25 +000023078if mkdir -p . 2>/dev/null; then
23079 as_mkdir_p=:
23080else
23081 as_mkdir_p=false
23082fi
23083
John Criswell7a73b802003-06-30 21:59:07 +000023084as_executable_p="test -f"
23085
23086# Sed expression to map a string onto a valid CPP name.
23087as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23088
23089# Sed expression to map a string onto a valid variable name.
23090as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23091
23092
23093# IFS
23094# We need space, tab and new line, in precisely that order.
23095as_nl='
23096'
23097IFS=" $as_nl"
23098
23099# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023100$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023101
23102exec 6>&1
23103
23104# Open the log real soon, to keep \$[0] and so on meaningful, and to
23105# report actual input values of CONFIG_FILES etc. instead of their
23106# values after options handling. Logging --version etc. is OK.
23107exec 5>>config.log
23108{
23109 echo
23110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23111## Running $as_me. ##
23112_ASBOX
23113} >&5
23114cat >&5 <<_CSEOF
23115
23116This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023117generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023118
23119 CONFIG_FILES = $CONFIG_FILES
23120 CONFIG_HEADERS = $CONFIG_HEADERS
23121 CONFIG_LINKS = $CONFIG_LINKS
23122 CONFIG_COMMANDS = $CONFIG_COMMANDS
23123 $ $0 $@
23124
23125_CSEOF
23126echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23127echo >&5
23128_ACEOF
23129
23130# Files that config.status was made for.
23131if test -n "$ac_config_files"; then
23132 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23133fi
23134
23135if test -n "$ac_config_headers"; then
23136 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23137fi
23138
23139if test -n "$ac_config_links"; then
23140 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23141fi
23142
23143if test -n "$ac_config_commands"; then
23144 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23145fi
23146
23147cat >>$CONFIG_STATUS <<\_ACEOF
23148
23149ac_cs_usage="\
23150\`$as_me' instantiates files from templates according to the
23151current configuration.
23152
23153Usage: $0 [OPTIONS] [FILE]...
23154
23155 -h, --help print this help, then exit
23156 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023157 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023158 -d, --debug don't remove temporary files
23159 --recheck update $as_me by reconfiguring in the same conditions
23160 --file=FILE[:TEMPLATE]
23161 instantiate the configuration file FILE
23162 --header=FILE[:TEMPLATE]
23163 instantiate the configuration header FILE
23164
23165Configuration files:
23166$config_files
23167
23168Configuration headers:
23169$config_headers
23170
John Criswellc764fbc2003-09-06 15:17:13 +000023171Configuration commands:
23172$config_commands
23173
John Criswell7a73b802003-06-30 21:59:07 +000023174Report bugs to <bug-autoconf@gnu.org>."
23175_ACEOF
23176
23177cat >>$CONFIG_STATUS <<_ACEOF
23178ac_cs_version="\\
23179[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023180configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023181 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23182
23183Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23184Free Software Foundation, Inc.
23185This config.status script is free software; the Free Software Foundation
23186gives unlimited permission to copy, distribute and modify it."
23187srcdir=$srcdir
23188INSTALL="$INSTALL"
23189_ACEOF
23190
23191cat >>$CONFIG_STATUS <<\_ACEOF
23192# If no file are specified by the user, then we need to provide default
23193# value. By we need to know if files were specified by the user.
23194ac_need_defaults=:
23195while test $# != 0
23196do
23197 case $1 in
23198 --*=*)
23199 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23200 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023201 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023202 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023203 -*)
23204 ac_option=$1
23205 ac_optarg=$2
23206 ac_shift=shift
23207 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023208 *) # This is not an option, so the user has probably given explicit
23209 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023210 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023211 ac_need_defaults=false;;
23212 esac
23213
John Criswell0c38eaf2003-09-10 15:17:25 +000023214 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023215 # Handling of the options.
23216_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023217cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23219 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023220 --version | --vers* | -V )
23221 echo "$ac_cs_version"; exit 0 ;;
23222 --he | --h)
23223 # Conflict between --help and --header
23224 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23225Try \`$0 --help' for more information." >&5
23226echo "$as_me: error: ambiguous option: $1
23227Try \`$0 --help' for more information." >&2;}
23228 { (exit 1); exit 1; }; };;
23229 --help | --hel | -h )
23230 echo "$ac_cs_usage"; exit 0 ;;
23231 --debug | --d* | -d )
23232 debug=: ;;
23233 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023234 $ac_shift
23235 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023236 ac_need_defaults=false;;
23237 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023238 $ac_shift
23239 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023240 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23242 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23243 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023244
23245 # This is an error.
23246 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23247Try \`$0 --help' for more information." >&5
23248echo "$as_me: error: unrecognized option: $1
23249Try \`$0 --help' for more information." >&2;}
23250 { (exit 1); exit 1; }; } ;;
23251
23252 *) ac_config_targets="$ac_config_targets $1" ;;
23253
23254 esac
23255 shift
23256done
23257
John Criswell0c38eaf2003-09-10 15:17:25 +000023258ac_configure_extra_args=
23259
23260if $ac_cs_silent; then
23261 exec 6>/dev/null
23262 ac_configure_extra_args="$ac_configure_extra_args --silent"
23263fi
23264
23265_ACEOF
23266cat >>$CONFIG_STATUS <<_ACEOF
23267if \$ac_cs_recheck; then
23268 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23269 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23270fi
23271
John Criswell7a73b802003-06-30 21:59:07 +000023272_ACEOF
23273
John Criswellc764fbc2003-09-06 15:17:13 +000023274cat >>$CONFIG_STATUS <<_ACEOF
23275#
23276# INIT-COMMANDS section.
23277#
John Criswell7a73b802003-06-30 21:59:07 +000023278
John Criswellc764fbc2003-09-06 15:17:13 +000023279${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23280${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23281${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23282${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23283${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23284${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23285${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23286${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23287${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23288${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23289${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23290${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023296${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23297${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23301${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23307${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23311${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23316${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023317${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23318${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023319${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23320${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23321${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23322${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023323${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023324${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023325${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23326${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023327${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23328${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23329${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23330${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23331${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23332${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23333${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23334${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23335${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23336${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23337${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23338${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023422${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023436${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023437${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23446${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23447${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23453${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23455
23456_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023457
23458
23459
23460cat >>$CONFIG_STATUS <<\_ACEOF
23461for ac_config_target in $ac_config_targets
23462do
23463 case "$ac_config_target" in
23464 # Handling of arguments.
23465 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023466 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23467 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23468 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23469 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23470 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23471 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23472 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23473 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23474 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23475 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23476 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23477 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23478 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23479 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23480 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23481 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23482 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023483 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23484 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23485 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23486 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23487 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23488 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23489 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23490 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23491 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23492 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23493 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23494 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23495 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23496 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23497 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23498 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23499 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23500 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23501 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23502 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23503 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023504 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23505 "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023506 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23507 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23508 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23509 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023510 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023511 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023512 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23513 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023514 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23515 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23516 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23517 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23518 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23519 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23520 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23521 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23522 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23523 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23524 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23525 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23526 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23527 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23528 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23529 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23530 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23531 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23532 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23533 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23534 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23535 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023536 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023537 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23538 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23539 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23540 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23541 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23542 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23543 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23544 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23545 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23546 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23547 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23548 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23549 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23550 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23551 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23552 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23553 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23554 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023555 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23556 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023557 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23558 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023559 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23560 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23561 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23562 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23563 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23564 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23565 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23566 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23567 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23568 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23569 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23570 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23571 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23572 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23573 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23574 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23575 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23576 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23577 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23578 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23579 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23580 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23581 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23582 "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023583 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023584 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23585 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23586 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23587 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23588 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23589 "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023590 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023591 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023592 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23593 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23594 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23595 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23596 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023597 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23598 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23599 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023600 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23601 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23602 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23603 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23604 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23605 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023606 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023607 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023608 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023609 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23610 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23611 "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23612 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23613 "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23614 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23615 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23616 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23617 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23618 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23619 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23620 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23621 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023622 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023623 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23624 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23625 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23626 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23627 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23628 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23629 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23630 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23631 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23632 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23633 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23634 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23635 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23636 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23637 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23638 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23639 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23640 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023641 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23642 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23643echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23644 { (exit 1); exit 1; }; };;
23645 esac
23646done
23647
23648# If the user did not use the arguments to specify the items to instantiate,
23649# then the envvar interface is used. Set only those that are not.
23650# We use the long form for the default assignment because of an extremely
23651# bizarre bug on SunOS 4.1.3.
23652if $ac_need_defaults; then
23653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023656fi
23657
John Criswell0c38eaf2003-09-10 15:17:25 +000023658# Have a temporary directory for convenience. Make it in the build tree
23659# simply because there is no reason to put it here, and in addition,
23660# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023661# Create a temporary directory, and hook for its removal unless debugging.
23662$debug ||
23663{
23664 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23665 trap '{ (exit 1); exit 1; }' 1 2 13 15
23666}
23667
23668# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023669
John Criswell7a73b802003-06-30 21:59:07 +000023670{
John Criswell0c38eaf2003-09-10 15:17:25 +000023671 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023672 test -n "$tmp" && test -d "$tmp"
23673} ||
23674{
John Criswell0c38eaf2003-09-10 15:17:25 +000023675 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023676 (umask 077 && mkdir $tmp)
23677} ||
23678{
John Criswell0c38eaf2003-09-10 15:17:25 +000023679 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023680 { (exit 1); exit 1; }
23681}
23682
23683_ACEOF
23684
23685cat >>$CONFIG_STATUS <<_ACEOF
23686
23687#
23688# CONFIG_FILES section.
23689#
23690
23691# No need to generate the scripts if there are no CONFIG_FILES.
23692# This happens for instance when ./config.status config.h
23693if test -n "\$CONFIG_FILES"; then
23694 # Protect against being on the right side of a sed subst in config.status.
23695 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23696 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23697s,@SHELL@,$SHELL,;t t
23698s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23699s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23700s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23701s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23702s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23703s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23704s,@exec_prefix@,$exec_prefix,;t t
23705s,@prefix@,$prefix,;t t
23706s,@program_transform_name@,$program_transform_name,;t t
23707s,@bindir@,$bindir,;t t
23708s,@sbindir@,$sbindir,;t t
23709s,@libexecdir@,$libexecdir,;t t
23710s,@datadir@,$datadir,;t t
23711s,@sysconfdir@,$sysconfdir,;t t
23712s,@sharedstatedir@,$sharedstatedir,;t t
23713s,@localstatedir@,$localstatedir,;t t
23714s,@libdir@,$libdir,;t t
23715s,@includedir@,$includedir,;t t
23716s,@oldincludedir@,$oldincludedir,;t t
23717s,@infodir@,$infodir,;t t
23718s,@mandir@,$mandir,;t t
23719s,@build_alias@,$build_alias,;t t
23720s,@host_alias@,$host_alias,;t t
23721s,@target_alias@,$target_alias,;t t
23722s,@DEFS@,$DEFS,;t t
23723s,@ECHO_C@,$ECHO_C,;t t
23724s,@ECHO_N@,$ECHO_N,;t t
23725s,@ECHO_T@,$ECHO_T,;t t
23726s,@LIBS@,$LIBS,;t t
23727s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23728s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23729s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23730s,@build@,$build,;t t
23731s,@build_cpu@,$build_cpu,;t t
23732s,@build_vendor@,$build_vendor,;t t
23733s,@build_os@,$build_os,;t t
23734s,@host@,$host,;t t
23735s,@host_cpu@,$host_cpu,;t t
23736s,@host_vendor@,$host_vendor,;t t
23737s,@host_os@,$host_os,;t t
23738s,@target@,$target,;t t
23739s,@target_cpu@,$target_cpu,;t t
23740s,@target_vendor@,$target_vendor,;t t
23741s,@target_os@,$target_os,;t t
23742s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023743s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023744s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023745s,@CXX@,$CXX,;t t
23746s,@CXXFLAGS@,$CXXFLAGS,;t t
23747s,@LDFLAGS@,$LDFLAGS,;t t
23748s,@CPPFLAGS@,$CPPFLAGS,;t t
23749s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23750s,@EXEEXT@,$EXEEXT,;t t
23751s,@OBJEXT@,$OBJEXT,;t t
23752s,@CC@,$CC,;t t
23753s,@CFLAGS@,$CFLAGS,;t t
23754s,@ac_ct_CC@,$ac_ct_CC,;t t
23755s,@CPP@,$CPP,;t t
23756s,@ifGNUmake@,$ifGNUmake,;t t
23757s,@LEX@,$LEX,;t t
23758s,@LEXLIB@,$LEXLIB,;t t
23759s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23760s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023761s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023762s,@LN_S@,$LN_S,;t t
23763s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023764s,@AR@,$AR,;t t
23765s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023766s,@RANLIB@,$RANLIB,;t t
23767s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23768s,@STRIP@,$STRIP,;t t
23769s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023770s,@CXXCPP@,$CXXCPP,;t t
23771s,@F77@,$F77,;t t
23772s,@FFLAGS@,$FFLAGS,;t t
23773s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023774s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023775s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023776s,@SED@,$SED,;t t
23777s,@RM@,$RM,;t t
23778s,@MKDIR@,$MKDIR,;t t
23779s,@DATE@,$DATE,;t t
23780s,@MV@,$MV,;t t
23781s,@DOT@,$DOT,;t t
23782s,@ETAGS@,$ETAGS,;t t
23783s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023784s,@PYTHON@,$PYTHON,;t t
23785s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023786s,@ALLOCA@,$ALLOCA,;t t
23787s,@LIBOBJS@,$LIBOBJS,;t t
23788s,@MMAP_FILE@,$MMAP_FILE,;t t
23789s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023790s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23791s,@USE_SPEC@,$USE_SPEC,;t t
23792s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023793s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023794s,@JIT@,$JIT,;t t
23795s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23796s,@BCR@,$BCR,;t t
23797s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023798s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023799CEOF
23800
23801_ACEOF
23802
23803 cat >>$CONFIG_STATUS <<\_ACEOF
23804 # Split the substitutions into bite-sized pieces for seds with
23805 # small command number limits, like on Digital OSF/1 and HP-UX.
23806 ac_max_sed_lines=48
23807 ac_sed_frag=1 # Number of current file.
23808 ac_beg=1 # First line for current file.
23809 ac_end=$ac_max_sed_lines # Line after last line for current file.
23810 ac_more_lines=:
23811 ac_sed_cmds=
23812 while $ac_more_lines; do
23813 if test $ac_beg -gt 1; then
23814 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23815 else
23816 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23817 fi
23818 if test ! -s $tmp/subs.frag; then
23819 ac_more_lines=false
23820 else
23821 # The purpose of the label and of the branching condition is to
23822 # speed up the sed processing (if there are no `@' at all, there
23823 # is no need to browse any of the substitutions).
23824 # These are the two extra sed commands mentioned above.
23825 (echo ':t
23826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23827 if test -z "$ac_sed_cmds"; then
23828 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23829 else
23830 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23831 fi
23832 ac_sed_frag=`expr $ac_sed_frag + 1`
23833 ac_beg=$ac_end
23834 ac_end=`expr $ac_end + $ac_max_sed_lines`
23835 fi
23836 done
23837 if test -z "$ac_sed_cmds"; then
23838 ac_sed_cmds=cat
23839 fi
23840fi # test -n "$CONFIG_FILES"
23841
23842_ACEOF
23843cat >>$CONFIG_STATUS <<\_ACEOF
23844for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23846 case $ac_file in
23847 - | *:- | *:-:* ) # input from stdin
23848 cat >$tmp/stdin
23849 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23851 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23853 * ) ac_file_in=$ac_file.in ;;
23854 esac
23855
23856 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23857 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23858$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23859 X"$ac_file" : 'X\(//\)[^/]' \| \
23860 X"$ac_file" : 'X\(//\)$' \| \
23861 X"$ac_file" : 'X\(/\)' \| \
23862 . : '\(.\)' 2>/dev/null ||
23863echo X"$ac_file" |
23864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23866 /^X\(\/\/\)$/{ s//\1/; q; }
23867 /^X\(\/\).*/{ s//\1/; q; }
23868 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023869 { if $as_mkdir_p; then
23870 mkdir -p "$ac_dir"
23871 else
23872 as_dir="$ac_dir"
23873 as_dirs=
23874 while test ! -d "$as_dir"; do
23875 as_dirs="$as_dir $as_dirs"
23876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23878 X"$as_dir" : 'X\(//\)[^/]' \| \
23879 X"$as_dir" : 'X\(//\)$' \| \
23880 X"$as_dir" : 'X\(/\)' \| \
23881 . : '\(.\)' 2>/dev/null ||
23882echo X"$as_dir" |
23883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23885 /^X\(\/\/\)$/{ s//\1/; q; }
23886 /^X\(\/\).*/{ s//\1/; q; }
23887 s/.*/./; q'`
23888 done
23889 test ! -n "$as_dirs" || mkdir $as_dirs
23890 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23891echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23892 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023893
23894 ac_builddir=.
23895
23896if test "$ac_dir" != .; then
23897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23898 # A "../" for each directory in $ac_dir_suffix.
23899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23900else
23901 ac_dir_suffix= ac_top_builddir=
23902fi
23903
23904case $srcdir in
23905 .) # No --srcdir option. We are building in place.
23906 ac_srcdir=.
23907 if test -z "$ac_top_builddir"; then
23908 ac_top_srcdir=.
23909 else
23910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23911 fi ;;
23912 [\\/]* | ?:[\\/]* ) # Absolute path.
23913 ac_srcdir=$srcdir$ac_dir_suffix;
23914 ac_top_srcdir=$srcdir ;;
23915 *) # Relative path.
23916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23918esac
23919# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23920# absolute.
23921ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023922ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023923ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23924ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23925
23926
23927 case $INSTALL in
23928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23929 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23930 esac
23931
23932 if test x"$ac_file" != x-; then
23933 { echo "$as_me:$LINENO: creating $ac_file" >&5
23934echo "$as_me: creating $ac_file" >&6;}
23935 rm -f "$ac_file"
23936 fi
23937 # Let's still pretend it is `configure' which instantiates (i.e., don't
23938 # use $as_me), people would be surprised to read:
23939 # /* config.h. Generated by config.status. */
23940 if test x"$ac_file" = x-; then
23941 configure_input=
23942 else
23943 configure_input="$ac_file. "
23944 fi
23945 configure_input=$configure_input"Generated from `echo $ac_file_in |
23946 sed 's,.*/,,'` by configure."
23947
23948 # First look for the input files in the build tree, otherwise in the
23949 # src tree.
23950 ac_file_inputs=`IFS=:
23951 for f in $ac_file_in; do
23952 case $f in
23953 -) echo $tmp/stdin ;;
23954 [\\/$]*)
23955 # Absolute (can't be DOS-style, as IFS=:)
23956 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23957echo "$as_me: error: cannot find input file: $f" >&2;}
23958 { (exit 1); exit 1; }; }
23959 echo $f;;
23960 *) # Relative
23961 if test -f "$f"; then
23962 # Build tree
23963 echo $f
23964 elif test -f "$srcdir/$f"; then
23965 # Source tree
23966 echo $srcdir/$f
23967 else
23968 # /dev/null tree
23969 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23970echo "$as_me: error: cannot find input file: $f" >&2;}
23971 { (exit 1); exit 1; }; }
23972 fi;;
23973 esac
23974 done` || { (exit 1); exit 1; }
23975_ACEOF
23976cat >>$CONFIG_STATUS <<_ACEOF
23977 sed "$ac_vpsub
23978$extrasub
23979_ACEOF
23980cat >>$CONFIG_STATUS <<\_ACEOF
23981:t
23982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23983s,@configure_input@,$configure_input,;t t
23984s,@srcdir@,$ac_srcdir,;t t
23985s,@abs_srcdir@,$ac_abs_srcdir,;t t
23986s,@top_srcdir@,$ac_top_srcdir,;t t
23987s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23988s,@builddir@,$ac_builddir,;t t
23989s,@abs_builddir@,$ac_abs_builddir,;t t
23990s,@top_builddir@,$ac_top_builddir,;t t
23991s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23992s,@INSTALL@,$ac_INSTALL,;t t
23993" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23994 rm -f $tmp/stdin
23995 if test x"$ac_file" != x-; then
23996 mv $tmp/out $ac_file
23997 else
23998 cat $tmp/out
23999 rm -f $tmp/out
24000 fi
24001
24002done
24003_ACEOF
24004cat >>$CONFIG_STATUS <<\_ACEOF
24005
24006#
24007# CONFIG_HEADER section.
24008#
24009
24010# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24011# NAME is the cpp macro being defined and VALUE is the value it is being given.
24012#
24013# ac_d sets the value in "#define NAME VALUE" lines.
24014ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24015ac_dB='[ ].*$,\1#\2'
24016ac_dC=' '
24017ac_dD=',;t'
24018# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24019ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24020ac_uB='$,\1#\2define\3'
24021ac_uC=' '
24022ac_uD=',;t'
24023
24024for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24026 case $ac_file in
24027 - | *:- | *:-:* ) # input from stdin
24028 cat >$tmp/stdin
24029 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24030 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24031 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24033 * ) ac_file_in=$ac_file.in ;;
24034 esac
24035
24036 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24037echo "$as_me: creating $ac_file" >&6;}
24038
24039 # First look for the input files in the build tree, otherwise in the
24040 # src tree.
24041 ac_file_inputs=`IFS=:
24042 for f in $ac_file_in; do
24043 case $f in
24044 -) echo $tmp/stdin ;;
24045 [\\/$]*)
24046 # Absolute (can't be DOS-style, as IFS=:)
24047 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24048echo "$as_me: error: cannot find input file: $f" >&2;}
24049 { (exit 1); exit 1; }; }
24050 echo $f;;
24051 *) # Relative
24052 if test -f "$f"; then
24053 # Build tree
24054 echo $f
24055 elif test -f "$srcdir/$f"; then
24056 # Source tree
24057 echo $srcdir/$f
24058 else
24059 # /dev/null tree
24060 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24061echo "$as_me: error: cannot find input file: $f" >&2;}
24062 { (exit 1); exit 1; }; }
24063 fi;;
24064 esac
24065 done` || { (exit 1); exit 1; }
24066 # Remove the trailing spaces.
24067 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24068
24069_ACEOF
24070
24071# Transform confdefs.h into two sed scripts, `conftest.defines' and
24072# `conftest.undefs', that substitutes the proper values into
24073# config.h.in to produce config.h. The first handles `#define'
24074# templates, and the second `#undef' templates.
24075# And first: Protect against being on the right side of a sed subst in
24076# config.status. Protect against being in an unquoted here document
24077# in config.status.
24078rm -f conftest.defines conftest.undefs
24079# Using a here document instead of a string reduces the quoting nightmare.
24080# Putting comments in sed scripts is not portable.
24081#
24082# `end' is used to avoid that the second main sed command (meant for
24083# 0-ary CPP macros) applies to n-ary macro definitions.
24084# See the Autoconf documentation for `clear'.
24085cat >confdef2sed.sed <<\_ACEOF
24086s/[\\&,]/\\&/g
24087s,[\\$`],\\&,g
24088t clear
24089: clear
24090s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24091t end
24092s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24093: end
24094_ACEOF
24095# If some macros were called several times there might be several times
24096# the same #defines, which is useless. Nevertheless, we may not want to
24097# sort them, since we want the *last* AC-DEFINE to be honored.
24098uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24099sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24100rm -f confdef2sed.sed
24101
24102# This sed command replaces #undef with comments. This is necessary, for
24103# example, in the case of _POSIX_SOURCE, which is predefined and required
24104# on some systems where configure will not decide to define it.
24105cat >>conftest.undefs <<\_ACEOF
24106s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24107_ACEOF
24108
24109# Break up conftest.defines because some shells have a limit on the size
24110# of here documents, and old seds have small limits too (100 cmds).
24111echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024112echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024113echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24114echo ' :' >>$CONFIG_STATUS
24115rm -f conftest.tail
24116while grep . conftest.defines >/dev/null
24117do
24118 # Write a limited-size here document to $tmp/defines.sed.
24119 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24120 # Speed up: don't consider the non `#define' lines.
24121 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24122 # Work around the forget-to-reset-the-flag bug.
24123 echo 't clr' >>$CONFIG_STATUS
24124 echo ': clr' >>$CONFIG_STATUS
24125 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24126 echo 'CEOF
24127 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24128 rm -f $tmp/in
24129 mv $tmp/out $tmp/in
24130' >>$CONFIG_STATUS
24131 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24132 rm -f conftest.defines
24133 mv conftest.tail conftest.defines
24134done
24135rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024136echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024137echo >>$CONFIG_STATUS
24138
24139# Break up conftest.undefs because some shells have a limit on the size
24140# of here documents, and old seds have small limits too (100 cmds).
24141echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24142rm -f conftest.tail
24143while grep . conftest.undefs >/dev/null
24144do
24145 # Write a limited-size here document to $tmp/undefs.sed.
24146 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24147 # Speed up: don't consider the non `#undef'
24148 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24149 # Work around the forget-to-reset-the-flag bug.
24150 echo 't clr' >>$CONFIG_STATUS
24151 echo ': clr' >>$CONFIG_STATUS
24152 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24153 echo 'CEOF
24154 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24155 rm -f $tmp/in
24156 mv $tmp/out $tmp/in
24157' >>$CONFIG_STATUS
24158 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24159 rm -f conftest.undefs
24160 mv conftest.tail conftest.undefs
24161done
24162rm -f conftest.undefs
24163
24164cat >>$CONFIG_STATUS <<\_ACEOF
24165 # Let's still pretend it is `configure' which instantiates (i.e., don't
24166 # use $as_me), people would be surprised to read:
24167 # /* config.h. Generated by config.status. */
24168 if test x"$ac_file" = x-; then
24169 echo "/* Generated by configure. */" >$tmp/config.h
24170 else
24171 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24172 fi
24173 cat $tmp/in >>$tmp/config.h
24174 rm -f $tmp/in
24175 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024176 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024177 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24178echo "$as_me: $ac_file is unchanged" >&6;}
24179 else
24180 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24181$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182 X"$ac_file" : 'X\(//\)[^/]' \| \
24183 X"$ac_file" : 'X\(//\)$' \| \
24184 X"$ac_file" : 'X\(/\)' \| \
24185 . : '\(.\)' 2>/dev/null ||
24186echo X"$ac_file" |
24187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24189 /^X\(\/\/\)$/{ s//\1/; q; }
24190 /^X\(\/\).*/{ s//\1/; q; }
24191 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024192 { if $as_mkdir_p; then
24193 mkdir -p "$ac_dir"
24194 else
24195 as_dir="$ac_dir"
24196 as_dirs=
24197 while test ! -d "$as_dir"; do
24198 as_dirs="$as_dir $as_dirs"
24199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24200$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24201 X"$as_dir" : 'X\(//\)[^/]' \| \
24202 X"$as_dir" : 'X\(//\)$' \| \
24203 X"$as_dir" : 'X\(/\)' \| \
24204 . : '\(.\)' 2>/dev/null ||
24205echo X"$as_dir" |
24206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24208 /^X\(\/\/\)$/{ s//\1/; q; }
24209 /^X\(\/\).*/{ s//\1/; q; }
24210 s/.*/./; q'`
24211 done
24212 test ! -n "$as_dirs" || mkdir $as_dirs
24213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24214echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24215 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024216
24217 rm -f $ac_file
24218 mv $tmp/config.h $ac_file
24219 fi
24220 else
24221 cat $tmp/config.h
24222 rm -f $tmp/config.h
24223 fi
24224done
24225_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024226cat >>$CONFIG_STATUS <<\_ACEOF
24227
24228#
24229# CONFIG_COMMANDS section.
24230#
24231for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24232 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24233 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24234 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24235$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24236 X"$ac_dest" : 'X\(//\)[^/]' \| \
24237 X"$ac_dest" : 'X\(//\)$' \| \
24238 X"$ac_dest" : 'X\(/\)' \| \
24239 . : '\(.\)' 2>/dev/null ||
24240echo X"$ac_dest" |
24241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24243 /^X\(\/\/\)$/{ s//\1/; q; }
24244 /^X\(\/\).*/{ s//\1/; q; }
24245 s/.*/./; q'`
24246 ac_builddir=.
24247
24248if test "$ac_dir" != .; then
24249 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24250 # A "../" for each directory in $ac_dir_suffix.
24251 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24252else
24253 ac_dir_suffix= ac_top_builddir=
24254fi
24255
24256case $srcdir in
24257 .) # No --srcdir option. We are building in place.
24258 ac_srcdir=.
24259 if test -z "$ac_top_builddir"; then
24260 ac_top_srcdir=.
24261 else
24262 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24263 fi ;;
24264 [\\/]* | ?:[\\/]* ) # Absolute path.
24265 ac_srcdir=$srcdir$ac_dir_suffix;
24266 ac_top_srcdir=$srcdir ;;
24267 *) # Relative path.
24268 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24269 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24270esac
24271# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24272# absolute.
24273ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024274ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024275ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24276ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24277
24278
24279 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24280echo "$as_me: executing $ac_dest commands" >&6;}
24281 case $ac_dest in
24282 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24283 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24284 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24285 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24286 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24287 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24288 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24289 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24290 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24291 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24292 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24293 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24294 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24295 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24296 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24297 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24298 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 +000024299 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24300 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24301 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24302 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24303 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24304 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24305 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24306 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24307 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24308 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24309 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24310 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24311 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24312 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24313 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24314 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24315 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24316 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24317 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24318 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24319 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024320 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24321 runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024322 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24323 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24324 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24325 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024326 runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024327 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024328 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24329 runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024330 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24331 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24332 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24333 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24334 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24335 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24336 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24337 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24338 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24339 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24340 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24341 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24342 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24343 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24344 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24345 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24346 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24347 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24348 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24349 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24350 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24351 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024352 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024353 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 ;;
24354 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 ;;
24355 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 ;;
24356 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 ;;
24357 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 ;;
24358 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 ;;
24359 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 ;;
24360 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 ;;
24361 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 ;;
24362 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 ;;
24363 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 ;;
24364 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 ;;
24365 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 ;;
24366 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 ;;
24367 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 ;;
24368 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24369 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24370 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024371 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24372 test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024373 test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24374 test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024375 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24376 test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24377 test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24378 test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24379 test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24380 test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24381 test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24382 test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24383 test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24384 test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24385 test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24386 test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24387 test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24388 test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24389 test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24390 test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24391 test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24392 test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24393 test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24394 test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24395 test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24396 test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24397 test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24398 test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024399 test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024400 test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24401 test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24402 test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24403 test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24404 test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24405 test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024406 test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024407 test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024408 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24409 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24410 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24411 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 ;;
24412 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 +000024413 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24414 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24415 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024416 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24417 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24418 test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24419 test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24420 test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24421 test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024422 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024423 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
John Criswell0afe8252003-09-11 20:53:48 +000024424 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024425 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24426 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24427 tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24428 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24429 tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24430 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24431 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24432 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24433 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24434 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24435 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24436 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24437 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24438 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024439 tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024440 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24441 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24442 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24443 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24444 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24445 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24446 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24447 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24448 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24449 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24450 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24451 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24452 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24453 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24454 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24455 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24456 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24457 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24458 esac
24459done
24460_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024461
24462cat >>$CONFIG_STATUS <<\_ACEOF
24463
24464{ (exit 0); exit 0; }
24465_ACEOF
24466chmod +x $CONFIG_STATUS
24467ac_clean_files=$ac_clean_files_save
24468
24469
24470# configure is writing to config.log, and then calls config.status.
24471# config.status does its own redirection, appending to config.log.
24472# Unfortunately, on DOS this fails, as config.log is still kept open
24473# by configure, so config.status won't be able to write to it; its
24474# output is simply discarded. So we exec the FD to /dev/null,
24475# effectively closing config.log, so it can be properly (re)opened and
24476# appended to by config.status. When coming back to configure, we
24477# need to make the FD available again.
24478if test "$no_create" != yes; then
24479 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024480 ac_config_status_args=
24481 test "$silent" = yes &&
24482 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024483 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024485 exec 5>>config.log
24486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24487 # would make configure fail if this is the last instruction.
24488 $ac_cs_success || { (exit 1); exit 1; }
24489fi
24490