blob: eba98302290f315e6d6cdff898ee9544b7e23a48 [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 Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell0c38eaf2003-09-10 15:17:25 +00001522 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001523
John Criswell0c38eaf2003-09-10 15:17:25 +00001524 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001525
1526
John Criswell0c38eaf2003-09-10 15:17:25 +00001527 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001528
1529
John Criswell0c38eaf2003-09-10 15:17:25 +00001530 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001531
1532
John Criswell0c38eaf2003-09-10 15:17:25 +00001533 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001534
1535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001537
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001540
1541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell613758d2003-09-11 18:03:50 +00001638 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell613758d2003-09-11 18:03:50 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1654
1655
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001657
1658
John Criswell613758d2003-09-11 18:03:50 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1660
1661
1662 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
John Criswell0c38eaf2003-09-10 15:17:25 +00001671 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell0c38eaf2003-09-10 15:17:25 +00001674 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001675
1676
John Criswell0c38eaf2003-09-10 15:17:25 +00001677 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell0c38eaf2003-09-10 15:17:25 +00001692 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001693
1694
John Criswell0c38eaf2003-09-10 15:17:25 +00001695 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001702
1703
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001705
1706
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell613758d2003-09-11 18:03:50 +00001731 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1732
1733
John Criswell0c38eaf2003-09-10 15:17:25 +00001734 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001738
1739
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001741
1742
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001744
1745
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell0c38eaf2003-09-10 15:17:25 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001759
1760
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001762
1763
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001765
1766
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001768
1769
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001771
1772
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001774
1775
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001777
1778
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001780
1781
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001783
1784
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell48e3cb92003-09-12 16:31:43 +00001788 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001789
1790
John Criswell48e3cb92003-09-12 16:31:43 +00001791 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell39e83892003-09-12 16:36:17 +00001794 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1795
1796
1797 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1798
1799
John Criswell48e3cb92003-09-12 16:31:43 +00001800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001801
1802
John Criswell48e3cb92003-09-12 16:31:43 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001804
1805
John Criswell48e3cb92003-09-12 16:31:43 +00001806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001807
1808
John Criswell48e3cb92003-09-12 16:31:43 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell48e3cb92003-09-12 16:31:43 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001813
1814
John Criswell48e3cb92003-09-12 16:31:43 +00001815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001816
1817
John Criswell48e3cb92003-09-12 16:31:43 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001819
1820
John Criswell48e3cb92003-09-12 16:31:43 +00001821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001825
1826
John Criswell48e3cb92003-09-12 16:31:43 +00001827 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001828
1829
John Criswell48e3cb92003-09-12 16:31:43 +00001830 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001831
1832
John Criswell48e3cb92003-09-12 16:31:43 +00001833 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001834
1835
John Criswell48e3cb92003-09-12 16:31:43 +00001836 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001837
1838
John Criswell48e3cb92003-09-12 16:31:43 +00001839 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001840
1841
John Criswell48e3cb92003-09-12 16:31:43 +00001842 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001843
1844
John Criswell48e3cb92003-09-12 16:31:43 +00001845 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001846
1847
John Criswell48e3cb92003-09-12 16:31:43 +00001848 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001849
1850
John Criswell48e3cb92003-09-12 16:31:43 +00001851 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001852
1853
John Criswell48e3cb92003-09-12 16:31:43 +00001854 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001855
1856
John Criswell48e3cb92003-09-12 16:31:43 +00001857 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001858
1859
John Criswell48e3cb92003-09-12 16:31:43 +00001860 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001861
1862
John Criswell48e3cb92003-09-12 16:31:43 +00001863 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1864
1865
1866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1867
1868
1869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001870
1871
John Criswell39e83892003-09-12 16:36:17 +00001872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell48e3cb92003-09-12 16:31:43 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001876
1877
John Criswell48e3cb92003-09-12 16:31:43 +00001878 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001879
1880
John Criswell48e3cb92003-09-12 16:31:43 +00001881 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001882
1883
John Criswell48e3cb92003-09-12 16:31:43 +00001884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001885
1886
John Criswell48e3cb92003-09-12 16:31:43 +00001887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001888
1889
John Criswell48e3cb92003-09-12 16:31:43 +00001890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001891
1892
John Criswell48e3cb92003-09-12 16:31:43 +00001893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell48e3cb92003-09-12 16:31:43 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell0c38eaf2003-09-10 15:17:25 +00001899 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001900
1901
John Criswell0c38eaf2003-09-10 15:17:25 +00001902 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001903
1904
John Criswell0c38eaf2003-09-10 15:17:25 +00001905 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001906
1907
John Criswell0c38eaf2003-09-10 15:17:25 +00001908 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001909
1910
John Criswell0c38eaf2003-09-10 15:17:25 +00001911 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001912
1913
John Criswell0c38eaf2003-09-10 15:17:25 +00001914 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell0c38eaf2003-09-10 15:17:25 +00001917 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell0c38eaf2003-09-10 15:17:25 +00001920 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswellffaaf3b2003-09-10 18:38:44 +00001923 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1924
1925
1926 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1927
1928
1929 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1930
1931
1932 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1933
1934
1935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1936
1937
1938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1939
1940
John Criswell0c38eaf2003-09-10 15:17:25 +00001941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001942
1943
John Criswell0c38eaf2003-09-10 15:17:25 +00001944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001945
1946
John Criswell0afe8252003-09-11 20:53:48 +00001947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1948
1949
John Criswell0c38eaf2003-09-10 15:17:25 +00001950 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001951
1952
John Criswell0c38eaf2003-09-10 15:17:25 +00001953 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001954
1955
John Criswell0c38eaf2003-09-10 15:17:25 +00001956 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001957
1958
John Criswell0c38eaf2003-09-10 15:17:25 +00001959 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001960
1961
John Criswell0c38eaf2003-09-10 15:17:25 +00001962 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001963
1964
John Criswell0c38eaf2003-09-10 15:17:25 +00001965 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001966
1967
John Criswell0c38eaf2003-09-10 15:17:25 +00001968 ac_config_commands="$ac_config_commands tools/link/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001969
1970
John Criswell0c38eaf2003-09-10 15:17:25 +00001971 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001972
1973
John Criswell0c38eaf2003-09-10 15:17:25 +00001974 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001975
1976
John Criswell0c38eaf2003-09-10 15:17:25 +00001977 ac_config_commands="$ac_config_commands tools/opt/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001978
1979
John Criswell0c38eaf2003-09-10 15:17:25 +00001980 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
John Criswell0c38eaf2003-09-10 15:17:25 +00001983 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
Chris Lattnerebd70302003-09-13 03:29:53 +00001986 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1987
1988
John Criswell0c38eaf2003-09-10 15:17:25 +00001989 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001990
1991
John Criswell0c38eaf2003-09-10 15:17:25 +00001992 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001993
1994
John Criswell0c38eaf2003-09-10 15:17:25 +00001995 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001996
1997
John Criswell0c38eaf2003-09-10 15:17:25 +00001998 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
John Criswell0c38eaf2003-09-10 15:17:25 +00002001 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002002
2003
John Criswell0c38eaf2003-09-10 15:17:25 +00002004 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
John Criswell0c38eaf2003-09-10 15:17:25 +00002007 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
John Criswell0c38eaf2003-09-10 15:17:25 +00002010 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002011
2012
John Criswell0c38eaf2003-09-10 15:17:25 +00002013 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002014
2015
John Criswell0c38eaf2003-09-10 15:17:25 +00002016 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002017
2018
John Criswell0c38eaf2003-09-10 15:17:25 +00002019 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002020
2021
John Criswell0c38eaf2003-09-10 15:17:25 +00002022 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell392aaa32003-07-22 19:18:09 +00002043
2044
John Criswell7a73b802003-06-30 21:59:07 +00002045# Find a good install program. We prefer a C program (faster),
2046# so one script is as good as another. But avoid the broken or
2047# incompatible versions:
2048# SysV /etc/install, /usr/sbin/install
2049# SunOS /usr/etc/install
2050# IRIX /sbin/install
2051# AIX /bin/install
2052# AmigaOS /C/install, which installs bootblocks on floppy discs
2053# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2054# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2055# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2056# ./install, which can be erroneously created by make from ./install.sh.
2057echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2058echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2059if test -z "$INSTALL"; then
2060if test "${ac_cv_path_install+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064for as_dir in $PATH
2065do
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 # Account for people who put trailing slashes in PATH elements.
2069case $as_dir/ in
2070 ./ | .// | /cC/* | \
2071 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2072 /usr/ucb/* ) ;;
2073 *)
2074 # OSF1 and SCO ODT 3.0 have their own names for install.
2075 # Don't use installbsd from OSF since it installs stuff as root
2076 # by default.
2077 for ac_prog in ginstall scoinst install; do
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2080 if test $ac_prog = install &&
2081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082 # AIX install. It has an incompatible calling convention.
2083 :
2084 elif test $ac_prog = install &&
2085 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2086 # program-specific install script used by HP pwplus--don't use.
2087 :
2088 else
2089 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2090 break 3
2091 fi
2092 fi
2093 done
2094 done
2095 ;;
2096esac
2097done
2098
2099
2100fi
2101 if test "${ac_cv_path_install+set}" = set; then
2102 INSTALL=$ac_cv_path_install
2103 else
2104 # As a last resort, use the slow shell script. We don't cache a
2105 # path for INSTALL within a source directory, because that will
2106 # break other packages using the cache if that directory is
2107 # removed, or if the path is relative.
2108 INSTALL=$ac_install_sh
2109 fi
2110fi
2111echo "$as_me:$LINENO: result: $INSTALL" >&5
2112echo "${ECHO_T}$INSTALL" >&6
2113
2114# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2115# It thinks the first close brace ends the variable substitution.
2116test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2117
2118test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2119
2120test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2121
2122
2123# Make sure we can run config.sub.
2124$ac_config_sub sun4 >/dev/null 2>&1 ||
2125 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2126echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2127 { (exit 1); exit 1; }; }
2128
2129echo "$as_me:$LINENO: checking build system type" >&5
2130echo $ECHO_N "checking build system type... $ECHO_C" >&6
2131if test "${ac_cv_build+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134 ac_cv_build_alias=$build_alias
2135test -z "$ac_cv_build_alias" &&
2136 ac_cv_build_alias=`$ac_config_guess`
2137test -z "$ac_cv_build_alias" &&
2138 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
2141ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2142 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2143echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2145
2146fi
2147echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148echo "${ECHO_T}$ac_cv_build" >&6
2149build=$ac_cv_build
2150build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2151build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2152build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2153
2154
2155echo "$as_me:$LINENO: checking host system type" >&5
2156echo $ECHO_N "checking host system type... $ECHO_C" >&6
2157if test "${ac_cv_host+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 ac_cv_host_alias=$host_alias
2161test -z "$ac_cv_host_alias" &&
2162 ac_cv_host_alias=$ac_cv_build_alias
2163ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2164 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2165echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2166 { (exit 1); exit 1; }; }
2167
2168fi
2169echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2170echo "${ECHO_T}$ac_cv_host" >&6
2171host=$ac_cv_host
2172host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2173host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2174host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2175
2176
2177echo "$as_me:$LINENO: checking target system type" >&5
2178echo $ECHO_N "checking target system type... $ECHO_C" >&6
2179if test "${ac_cv_target+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 ac_cv_target_alias=$target_alias
2183test "x$ac_cv_target_alias" = "x" &&
2184 ac_cv_target_alias=$ac_cv_host_alias
2185ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2186 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2187echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2188 { (exit 1); exit 1; }; }
2189
2190fi
2191echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2192echo "${ECHO_T}$ac_cv_target" >&6
2193target=$ac_cv_target
2194target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2195target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2196target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2197
2198
2199# The aliases save the names the user supplied, while $host etc.
2200# will get canonicalized.
2201test -n "$target_alias" &&
2202 test "$program_prefix$program_suffix$program_transform_name" = \
2203 NONENONEs,x,x, &&
2204 program_prefix=${target_alias}-
2205
2206case $build in
2207 *i*86*) OS=Linux
2208
John Criswellf02dbf02003-07-22 20:07:49 +00002209 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002210
2211 ;;
2212
2213 *sparc*) OS=SunOS
2214
2215 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2216
2217 ;;
2218
2219 *) OS=Unknown
2220
2221 ;;
2222esac
2223
2224case $target in
2225 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2226
2227 ;;
2228esac
2229
John Criswell76595452003-07-01 22:07:39 +00002230case $target in
2231 *i*86*) ARCH=x86
2232
2233 ;;
2234 *sparc*solaris*) ARCH=Sparc
2235
2236 ;;
2237esac
2238
John Criswell7a73b802003-06-30 21:59:07 +00002239
2240ac_ext=cc
2241ac_cpp='$CXXCPP $CPPFLAGS'
2242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2245if test -n "$ac_tool_prefix"; then
2246 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2247 do
2248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2249set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2250echo "$as_me:$LINENO: checking for $ac_word" >&5
2251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252if test "${ac_cv_prog_CXX+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
2255 if test -n "$CXX"; then
2256 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2257else
2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259for as_dir in $PATH
2260do
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 break 2
2268 fi
2269done
2270done
2271
2272fi
2273fi
2274CXX=$ac_cv_prog_CXX
2275if test -n "$CXX"; then
2276 echo "$as_me:$LINENO: result: $CXX" >&5
2277echo "${ECHO_T}$CXX" >&6
2278else
2279 echo "$as_me:$LINENO: result: no" >&5
2280echo "${ECHO_T}no" >&6
2281fi
2282
2283 test -n "$CXX" && break
2284 done
2285fi
2286if test -z "$CXX"; then
2287 ac_ct_CXX=$CXX
2288 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2289do
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291set dummy $ac_prog; ac_word=$2
2292echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 if test -n "$ac_ct_CXX"; then
2298 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_prog_ac_ct_CXX="$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311done
2312done
2313
2314fi
2315fi
2316ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2317if test -n "$ac_ct_CXX"; then
2318 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2319echo "${ECHO_T}$ac_ct_CXX" >&6
2320else
2321 echo "$as_me:$LINENO: result: no" >&5
2322echo "${ECHO_T}no" >&6
2323fi
2324
2325 test -n "$ac_ct_CXX" && break
2326done
2327test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2328
2329 CXX=$ac_ct_CXX
2330fi
2331
2332
2333# Provide some information about the compiler.
2334echo "$as_me:$LINENO:" \
2335 "checking for C++ compiler version" >&5
2336ac_compiler=`set X $ac_compile; echo $2`
2337{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2338 (eval $ac_compiler --version </dev/null >&5) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }
2342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2343 (eval $ac_compiler -v </dev/null >&5) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }
2347{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2348 (eval $ac_compiler -V </dev/null >&5) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2352
2353cat >conftest.$ac_ext <<_ACEOF
2354#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002355/* confdefs.h. */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
2359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002360
John Criswell7a73b802003-06-30 21:59:07 +00002361int
2362main ()
2363{
2364
2365 ;
2366 return 0;
2367}
2368_ACEOF
2369ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002370ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002371# Try to create an executable without -o first, disregard a.out.
2372# It will help us diagnose broken compilers, and finding out an intuition
2373# of exeext.
2374echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2375echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2376ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2377if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2378 (eval $ac_link_default) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 # Find the output, starting from the most likely. This scheme is
2383# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2384# resort.
2385
2386# Be careful to initialize this variable, since it used to be cached.
2387# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2388ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002389# b.out is created by i960 compilers.
2390for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2391do
2392 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002393 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2395 ;;
2396 conftest.$ac_ext )
2397 # This is the source file.
2398 ;;
2399 [ab].out )
2400 # We found the default executable, but exeext='' is most
2401 # certainly right.
2402 break;;
2403 *.* )
2404 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2405 # FIXME: I believe we export ac_cv_exeext for Libtool,
2406 # but it would be cool to find out if it's true. Does anybody
2407 # maintain Libtool? --akim.
2408 export ac_cv_exeext
2409 break;;
2410 * )
2411 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002412 esac
2413done
2414else
2415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2419See \`config.log' for more details." >&5
2420echo "$as_me: error: C++ compiler cannot create executables
2421See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002422 { (exit 77); exit 77; }; }
2423fi
2424
2425ac_exeext=$ac_cv_exeext
2426echo "$as_me:$LINENO: result: $ac_file" >&5
2427echo "${ECHO_T}$ac_file" >&6
2428
2429# Check the compiler produces executables we can run. If not, either
2430# the compiler is broken, or we cross compile.
2431echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2432echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2433# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2434# If not cross compiling, check that we can run a simple program.
2435if test "$cross_compiling" != yes; then
2436 if { ac_try='./$ac_file'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 cross_compiling=no
2443 else
2444 if test "$cross_compiling" = maybe; then
2445 cross_compiling=yes
2446 else
2447 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002448If you meant to cross compile, use \`--host'.
2449See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002450echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002451If you meant to cross compile, use \`--host'.
2452See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002453 { (exit 1); exit 1; }; }
2454 fi
2455 fi
2456fi
2457echo "$as_me:$LINENO: result: yes" >&5
2458echo "${ECHO_T}yes" >&6
2459
John Criswell0c38eaf2003-09-10 15:17:25 +00002460rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002461ac_clean_files=$ac_clean_files_save
2462# Check the compiler produces executables we can run. If not, either
2463# the compiler is broken, or we cross compile.
2464echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2465echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2466echo "$as_me:$LINENO: result: $cross_compiling" >&5
2467echo "${ECHO_T}$cross_compiling" >&6
2468
2469echo "$as_me:$LINENO: checking for suffix of executables" >&5
2470echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2472 (eval $ac_link) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; then
2476 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2477# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2478# work properly (i.e., refer to `conftest.exe'), while it won't with
2479# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002480for ac_file in conftest.exe conftest conftest.*; do
2481 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002482 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2485 export ac_cv_exeext
2486 break;;
2487 * ) break;;
2488 esac
2489done
2490else
John Criswell0c38eaf2003-09-10 15:17:25 +00002491 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2492See \`config.log' for more details." >&5
2493echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2494See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002495 { (exit 1); exit 1; }; }
2496fi
2497
2498rm -f conftest$ac_cv_exeext
2499echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2500echo "${ECHO_T}$ac_cv_exeext" >&6
2501
2502rm -f conftest.$ac_ext
2503EXEEXT=$ac_cv_exeext
2504ac_exeext=$EXEEXT
2505echo "$as_me:$LINENO: checking for suffix of object files" >&5
2506echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2507if test "${ac_cv_objext+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510 cat >conftest.$ac_ext <<_ACEOF
2511#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002512/* confdefs.h. */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002517
John Criswell7a73b802003-06-30 21:59:07 +00002518int
2519main ()
2520{
2521
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526rm -f conftest.o conftest.obj
2527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2533 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002535 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2536 break;;
2537 esac
2538done
2539else
2540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2544See \`config.log' for more details." >&5
2545echo "$as_me: error: cannot compute suffix of object files: cannot compile
2546See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002547 { (exit 1); exit 1; }; }
2548fi
2549
2550rm -f conftest.$ac_cv_objext conftest.$ac_ext
2551fi
2552echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2553echo "${ECHO_T}$ac_cv_objext" >&6
2554OBJEXT=$ac_cv_objext
2555ac_objext=$OBJEXT
2556echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2557echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2558if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561 cat >conftest.$ac_ext <<_ACEOF
2562#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002568
John Criswell7a73b802003-06-30 21:59:07 +00002569int
2570main ()
2571{
2572#ifndef __GNUC__
2573 choke me
2574#endif
2575
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580rm -f conftest.$ac_objext
2581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_compiler_gnu=yes
2593else
2594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002595sed 's/^/| /' conftest.$ac_ext >&5
2596
John Criswell7a73b802003-06-30 21:59:07 +00002597ac_compiler_gnu=no
2598fi
2599rm -f conftest.$ac_objext conftest.$ac_ext
2600ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2601
2602fi
2603echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2604echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2605GXX=`test $ac_compiler_gnu = yes && echo yes`
2606ac_test_CXXFLAGS=${CXXFLAGS+set}
2607ac_save_CXXFLAGS=$CXXFLAGS
2608CXXFLAGS="-g"
2609echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2610echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2611if test "${ac_cv_prog_cxx_g+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614 cat >conftest.$ac_ext <<_ACEOF
2615#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002616/* confdefs.h. */
2617_ACEOF
2618cat confdefs.h >>conftest.$ac_ext
2619cat >>conftest.$ac_ext <<_ACEOF
2620/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002621
John Criswell7a73b802003-06-30 21:59:07 +00002622int
2623main ()
2624{
2625
2626 ;
2627 return 0;
2628}
2629_ACEOF
2630rm -f conftest.$ac_objext
2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 ac_cv_prog_cxx_g=yes
2643else
2644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002645sed 's/^/| /' conftest.$ac_ext >&5
2646
John Criswell7a73b802003-06-30 21:59:07 +00002647ac_cv_prog_cxx_g=no
2648fi
2649rm -f conftest.$ac_objext conftest.$ac_ext
2650fi
2651echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2652echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2653if test "$ac_test_CXXFLAGS" = set; then
2654 CXXFLAGS=$ac_save_CXXFLAGS
2655elif test $ac_cv_prog_cxx_g = yes; then
2656 if test "$GXX" = yes; then
2657 CXXFLAGS="-g -O2"
2658 else
2659 CXXFLAGS="-g"
2660 fi
2661else
2662 if test "$GXX" = yes; then
2663 CXXFLAGS="-O2"
2664 else
2665 CXXFLAGS=
2666 fi
2667fi
2668for ac_declaration in \
2669 ''\
2670 '#include <stdlib.h>' \
2671 'extern "C" void std::exit (int) throw (); using std::exit;' \
2672 'extern "C" void std::exit (int); using std::exit;' \
2673 'extern "C" void exit (int) throw ();' \
2674 'extern "C" void exit (int);' \
2675 'void exit (int);'
2676do
2677 cat >conftest.$ac_ext <<_ACEOF
2678#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002684#include <stdlib.h>
2685$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002686int
2687main ()
2688{
2689exit (42);
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext
2695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -s conftest.$ac_objext'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2706 :
2707else
2708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002709sed 's/^/| /' conftest.$ac_ext >&5
2710
John Criswell7a73b802003-06-30 21:59:07 +00002711continue
2712fi
2713rm -f conftest.$ac_objext conftest.$ac_ext
2714 cat >conftest.$ac_ext <<_ACEOF
2715#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002716/* confdefs.h. */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002721$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002722int
2723main ()
2724{
2725exit (42);
2726 ;
2727 return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext
2731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 break
2743else
2744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002745sed 's/^/| /' conftest.$ac_ext >&5
2746
John Criswell7a73b802003-06-30 21:59:07 +00002747fi
2748rm -f conftest.$ac_objext conftest.$ac_ext
2749done
2750rm -f conftest*
2751if test -n "$ac_declaration"; then
2752 echo '#ifdef __cplusplus' >>confdefs.h
2753 echo $ac_declaration >>confdefs.h
2754 echo '#endif' >>confdefs.h
2755fi
2756
2757ac_ext=c
2758ac_cpp='$CPP $CPPFLAGS'
2759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
2763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768if test -n "$ac_tool_prefix"; then
2769 for ac_prog in gcc
2770 do
2771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773echo "$as_me:$LINENO: checking for $ac_word" >&5
2774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792done
2793done
2794
2795fi
2796fi
2797CC=$ac_cv_prog_CC
2798if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800echo "${ECHO_T}$CC" >&6
2801else
2802 echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804fi
2805
2806 test -n "$CC" && break
2807 done
2808fi
2809if test -z "$CC"; then
2810 ac_ct_CC=$CC
2811 for ac_prog in gcc
2812do
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814set dummy $ac_prog; ac_word=$2
2815echo "$as_me:$LINENO: checking for $ac_word" >&5
2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_CC="$ac_prog"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834done
2835done
2836
2837fi
2838fi
2839ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840if test -n "$ac_ct_CC"; then
2841 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2842echo "${ECHO_T}$ac_ct_CC" >&6
2843else
2844 echo "$as_me:$LINENO: result: no" >&5
2845echo "${ECHO_T}no" >&6
2846fi
2847
2848 test -n "$ac_ct_CC" && break
2849done
2850
2851 CC=$ac_ct_CC
2852fi
2853
2854
John Criswell0c38eaf2003-09-10 15:17:25 +00002855test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2856See \`config.log' for more details." >&5
2857echo "$as_me: error: no acceptable C compiler found in \$PATH
2858See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002859 { (exit 1); exit 1; }; }
2860
2861# Provide some information about the compiler.
2862echo "$as_me:$LINENO:" \
2863 "checking for C compiler version" >&5
2864ac_compiler=`set X $ac_compile; echo $2`
2865{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2866 (eval $ac_compiler --version </dev/null >&5) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }
2870{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2871 (eval $ac_compiler -v </dev/null >&5) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }
2875{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2876 (eval $ac_compiler -V </dev/null >&5) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }
2880
2881echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2882echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2883if test "${ac_cv_c_compiler_gnu+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
2886 cat >conftest.$ac_ext <<_ACEOF
2887#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002888/* confdefs.h. */
2889_ACEOF
2890cat confdefs.h >>conftest.$ac_ext
2891cat >>conftest.$ac_ext <<_ACEOF
2892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002893
John Criswell7a73b802003-06-30 21:59:07 +00002894int
2895main ()
2896{
2897#ifndef __GNUC__
2898 choke me
2899#endif
2900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905rm -f conftest.$ac_objext
2906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_compiler_gnu=yes
2918else
2919 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002920sed 's/^/| /' conftest.$ac_ext >&5
2921
John Criswell7a73b802003-06-30 21:59:07 +00002922ac_compiler_gnu=no
2923fi
2924rm -f conftest.$ac_objext conftest.$ac_ext
2925ac_cv_c_compiler_gnu=$ac_compiler_gnu
2926
2927fi
2928echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2929echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2930GCC=`test $ac_compiler_gnu = yes && echo yes`
2931ac_test_CFLAGS=${CFLAGS+set}
2932ac_save_CFLAGS=$CFLAGS
2933CFLAGS="-g"
2934echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2935echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2936if test "${ac_cv_prog_cc_g+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939 cat >conftest.$ac_ext <<_ACEOF
2940#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002941/* confdefs.h. */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002946
John Criswell7a73b802003-06-30 21:59:07 +00002947int
2948main ()
2949{
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext
2956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 (eval $ac_try) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 ac_cv_prog_cc_g=yes
2968else
2969 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002970sed 's/^/| /' conftest.$ac_ext >&5
2971
John Criswell7a73b802003-06-30 21:59:07 +00002972ac_cv_prog_cc_g=no
2973fi
2974rm -f conftest.$ac_objext conftest.$ac_ext
2975fi
2976echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2977echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2978if test "$ac_test_CFLAGS" = set; then
2979 CFLAGS=$ac_save_CFLAGS
2980elif test $ac_cv_prog_cc_g = yes; then
2981 if test "$GCC" = yes; then
2982 CFLAGS="-g -O2"
2983 else
2984 CFLAGS="-g"
2985 fi
2986else
2987 if test "$GCC" = yes; then
2988 CFLAGS="-O2"
2989 else
2990 CFLAGS=
2991 fi
2992fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002993echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2994echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2995if test "${ac_cv_prog_cc_stdc+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 ac_cv_prog_cc_stdc=no
2999ac_save_CC=$CC
3000cat >conftest.$ac_ext <<_ACEOF
3001#line $LINENO "configure"
3002/* confdefs.h. */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h. */
3007#include <stdarg.h>
3008#include <stdio.h>
3009#include <sys/types.h>
3010#include <sys/stat.h>
3011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3012struct buf { int x; };
3013FILE * (*rcsopen) (struct buf *, struct stat *, int);
3014static char *e (p, i)
3015 char **p;
3016 int i;
3017{
3018 return p[i];
3019}
3020static char *f (char * (*g) (char **, int), char **p, ...)
3021{
3022 char *s;
3023 va_list v;
3024 va_start (v,p);
3025 s = g (p, va_arg (v,int));
3026 va_end (v);
3027 return s;
3028}
3029int test (int i, double x);
3030struct s1 {int (*f) (int a);};
3031struct s2 {int (*f) (double a);};
3032int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3033int argc;
3034char **argv;
3035int
3036main ()
3037{
3038return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043# Don't try gcc -ansi; that turns off useful extensions and
3044# breaks some systems' header files.
3045# AIX -qlanglvl=ansi
3046# Ultrix and OSF/1 -std1
3047# HP-UX 10.20 and later -Ae
3048# HP-UX older versions -Aa -D_HPUX_SOURCE
3049# SVR4 -Xc -D__EXTENSIONS__
3050for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051do
3052 CC="$ac_save_CC $ac_arg"
3053 rm -f conftest.$ac_objext
3054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_cv_prog_cc_stdc=$ac_arg
3066break
3067else
3068 echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071fi
3072rm -f conftest.$ac_objext
3073done
3074rm -f conftest.$ac_ext conftest.$ac_objext
3075CC=$ac_save_CC
3076
3077fi
3078
3079case "x$ac_cv_prog_cc_stdc" in
3080 x|xno)
3081 echo "$as_me:$LINENO: result: none needed" >&5
3082echo "${ECHO_T}none needed" >&6 ;;
3083 *)
3084 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3085echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3086 CC="$CC $ac_cv_prog_cc_stdc" ;;
3087esac
3088
John Criswell7a73b802003-06-30 21:59:07 +00003089# Some people use a C++ compiler to compile C. Since we use `exit',
3090# in C++ we need to declare it. In case someone uses the same compiler
3091# for both compiling C and C++ we need to have the C++ compiler decide
3092# the declaration of exit, since it's the most demanding environment.
3093cat >conftest.$ac_ext <<_ACEOF
3094#ifndef __cplusplus
3095 choke me
3096#endif
3097_ACEOF
3098rm -f conftest.$ac_objext
3099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3100 (eval $ac_compile) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 for ac_declaration in \
3111 ''\
3112 '#include <stdlib.h>' \
3113 'extern "C" void std::exit (int) throw (); using std::exit;' \
3114 'extern "C" void std::exit (int); using std::exit;' \
3115 'extern "C" void exit (int) throw ();' \
3116 'extern "C" void exit (int);' \
3117 'void exit (int);'
3118do
3119 cat >conftest.$ac_ext <<_ACEOF
3120#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003126#include <stdlib.h>
3127$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003128int
3129main ()
3130{
3131exit (42);
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 :
3149else
3150 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003151sed 's/^/| /' conftest.$ac_ext >&5
3152
John Criswell7a73b802003-06-30 21:59:07 +00003153continue
3154fi
3155rm -f conftest.$ac_objext conftest.$ac_ext
3156 cat >conftest.$ac_ext <<_ACEOF
3157#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003158/* confdefs.h. */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
3162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003163$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003164int
3165main ()
3166{
3167exit (42);
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext
3173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 break
3185else
3186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003187sed 's/^/| /' conftest.$ac_ext >&5
3188
John Criswell7a73b802003-06-30 21:59:07 +00003189fi
3190rm -f conftest.$ac_objext conftest.$ac_ext
3191done
3192rm -f conftest*
3193if test -n "$ac_declaration"; then
3194 echo '#ifdef __cplusplus' >>confdefs.h
3195 echo $ac_declaration >>confdefs.h
3196 echo '#endif' >>confdefs.h
3197fi
3198
3199else
3200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003201sed 's/^/| /' conftest.$ac_ext >&5
3202
John Criswell7a73b802003-06-30 21:59:07 +00003203fi
3204rm -f conftest.$ac_objext conftest.$ac_ext
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211ac_ext=c
3212ac_cpp='$CPP $CPPFLAGS'
3213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3217echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3218# On Suns, sometimes $CPP names a directory.
3219if test -n "$CPP" && test -d "$CPP"; then
3220 CPP=
3221fi
3222if test -z "$CPP"; then
3223 if test "${ac_cv_prog_CPP+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
3226 # Double quotes because CPP needs to be expanded
3227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3228 do
3229 ac_preproc_ok=false
3230for ac_c_preproc_warn_flag in '' yes
3231do
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat >conftest.$ac_ext <<_ACEOF
3239#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245#ifdef __STDC__
3246# include <limits.h>
3247#else
3248# include <assert.h>
3249#endif
John Criswell7a73b802003-06-30 21:59:07 +00003250 Syntax error
3251_ACEOF
3252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003255 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 else
3263 ac_cpp_err=
3264 fi
3265else
3266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 :
3270else
3271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003272sed 's/^/| /' conftest.$ac_ext >&5
3273
John Criswell7a73b802003-06-30 21:59:07 +00003274 # Broken: fails on valid input.
3275continue
3276fi
3277rm -f conftest.err conftest.$ac_ext
3278
3279 # OK, works on sane cases. Now check whether non-existent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003288#include <ac_nonexistent.h>
3289_ACEOF
3290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003293 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_c_preproc_warn_flag
3300 else
3301 ac_cpp_err=
3302 fi
3303else
3304 ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3308continue
3309else
3310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003311sed 's/^/| /' conftest.$ac_ext >&5
3312
John Criswell7a73b802003-06-30 21:59:07 +00003313 # Passes both tests.
3314ac_preproc_ok=:
3315break
3316fi
3317rm -f conftest.err conftest.$ac_ext
3318
3319done
3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321rm -f conftest.err conftest.$ac_ext
3322if $ac_preproc_ok; then
3323 break
3324fi
3325
3326 done
3327 ac_cv_prog_CPP=$CPP
3328
3329fi
3330 CPP=$ac_cv_prog_CPP
3331else
3332 ac_cv_prog_CPP=$CPP
3333fi
3334echo "$as_me:$LINENO: result: $CPP" >&5
3335echo "${ECHO_T}$CPP" >&6
3336ac_preproc_ok=false
3337for ac_c_preproc_warn_flag in '' yes
3338do
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
3346#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003347/* confdefs.h. */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
3351/* end confdefs.h. */
3352#ifdef __STDC__
3353# include <limits.h>
3354#else
3355# include <assert.h>
3356#endif
John Criswell7a73b802003-06-30 21:59:07 +00003357 Syntax error
3358_ACEOF
3359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003362 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 else
3370 ac_cpp_err=
3371 fi
3372else
3373 ac_cpp_err=yes
3374fi
3375if test -z "$ac_cpp_err"; then
3376 :
3377else
3378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003379sed 's/^/| /' conftest.$ac_ext >&5
3380
John Criswell7a73b802003-06-30 21:59:07 +00003381 # Broken: fails on valid input.
3382continue
3383fi
3384rm -f conftest.err conftest.$ac_ext
3385
3386 # OK, works on sane cases. Now check whether non-existent headers
3387 # can be detected and how.
3388 cat >conftest.$ac_ext <<_ACEOF
3389#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003395#include <ac_nonexistent.h>
3396_ACEOF
3397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003400 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null; then
3405 if test -s conftest.err; then
3406 ac_cpp_err=$ac_c_preproc_warn_flag
3407 else
3408 ac_cpp_err=
3409 fi
3410else
3411 ac_cpp_err=yes
3412fi
3413if test -z "$ac_cpp_err"; then
3414 # Broken: success on invalid input.
3415continue
3416else
3417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003418sed 's/^/| /' conftest.$ac_ext >&5
3419
John Criswell7a73b802003-06-30 21:59:07 +00003420 # Passes both tests.
3421ac_preproc_ok=:
3422break
3423fi
3424rm -f conftest.err conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.err conftest.$ac_ext
3429if $ac_preproc_ok; then
3430 :
3431else
John Criswell0c38eaf2003-09-10 15:17:25 +00003432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433See \`config.log' for more details." >&5
3434echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003436 { (exit 1); exit 1; }; }
3437fi
3438
3439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445
3446if test "$GCC" != "yes"
3447then
3448 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3449echo "$as_me: error: gcc required but not found" >&2;}
3450 { (exit 1); exit 1; }; }
3451fi
3452
3453if test "$GXX" != "yes"
3454then
3455 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3456echo "$as_me: error: g++ required but not found" >&2;}
3457 { (exit 1); exit 1; }; }
3458fi
3459
John Criswellde00db22003-08-25 16:49:54 +00003460gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3461if test "$gccmajor" -lt "3"
3462then
3463 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3464echo "$as_me: error: gcc 3.x required" >&2;}
3465 { (exit 1); exit 1; }; }
3466fi
3467
John Criswell7a73b802003-06-30 21:59:07 +00003468 echo "$as_me:$LINENO: checking for GNU make" >&5
3469echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3470if test "${_cv_gnu_make_command+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473 _cv_gnu_make_command='' ;
3474 for a in "$MAKE" make gmake gnumake ; do
3475 if test -z "$a" ; then continue ; fi ;
3476 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3477 _cv_gnu_make_command=$a ;
3478 break;
3479 fi
3480 done ;
3481
3482fi
3483echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3484echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3485 if test "x$_cv_gnu_make_command" != "x" ; then
3486 ifGNUmake='' ;
3487 else
3488 ifGNUmake='#' ;
3489 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3490echo "${ECHO_T}\"Not found\"" >&6;
3491 fi
3492
3493
3494if test -z "$_cv_gnu_make_command"
3495then
3496 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3497echo "$as_me: error: GNU Make required but not found" >&2;}
3498 { (exit 1); exit 1; }; }
3499fi
3500
3501
3502echo "$as_me:$LINENO: checking " >&5
3503echo $ECHO_N "checking ... $ECHO_C" >&6
3504if test "${ac_cv_has_flex+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 for ac_prog in flex lex
3508do
3509 # Extract the first word of "$ac_prog", so it can be a program name with args.
3510set dummy $ac_prog; ac_word=$2
3511echo "$as_me:$LINENO: checking for $ac_word" >&5
3512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513if test "${ac_cv_prog_LEX+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515else
3516 if test -n "$LEX"; then
3517 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3518else
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_LEX="$ac_prog"
3527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530done
3531done
3532
3533fi
3534fi
3535LEX=$ac_cv_prog_LEX
3536if test -n "$LEX"; then
3537 echo "$as_me:$LINENO: result: $LEX" >&5
3538echo "${ECHO_T}$LEX" >&6
3539else
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
3542fi
3543
3544 test -n "$LEX" && break
3545done
3546test -n "$LEX" || LEX=":"
3547
3548if test -z "$LEXLIB"
3549then
3550 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3551echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3552if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555 ac_check_lib_save_LIBS=$LIBS
3556LIBS="-lfl $LIBS"
3557cat >conftest.$ac_ext <<_ACEOF
3558#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003559/* confdefs.h. */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003564
3565/* Override any gcc2 internal prototype to avoid an error. */
3566#ifdef __cplusplus
3567extern "C"
3568#endif
3569/* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3571char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003572int
3573main ()
3574{
3575yywrap ();
3576 ;
3577 return 0;
3578}
3579_ACEOF
3580rm -f conftest.$ac_objext conftest$ac_exeext
3581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3582 (eval $ac_link) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -s conftest$ac_exeext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_cv_lib_fl_yywrap=yes
3593else
3594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003595sed 's/^/| /' conftest.$ac_ext >&5
3596
John Criswell7a73b802003-06-30 21:59:07 +00003597ac_cv_lib_fl_yywrap=no
3598fi
3599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3600LIBS=$ac_check_lib_save_LIBS
3601fi
3602echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3603echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3604if test $ac_cv_lib_fl_yywrap = yes; then
3605 LEXLIB="-lfl"
3606else
3607 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3608echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3609if test "${ac_cv_lib_l_yywrap+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
3612 ac_check_lib_save_LIBS=$LIBS
3613LIBS="-ll $LIBS"
3614cat >conftest.$ac_ext <<_ACEOF
3615#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003616/* confdefs.h. */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3620/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003621
3622/* Override any gcc2 internal prototype to avoid an error. */
3623#ifdef __cplusplus
3624extern "C"
3625#endif
3626/* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3628char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003629int
3630main ()
3631{
3632yywrap ();
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637rm -f conftest.$ac_objext conftest$ac_exeext
3638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639 (eval $ac_link) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -s conftest$ac_exeext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_cv_lib_l_yywrap=yes
3650else
3651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003652sed 's/^/| /' conftest.$ac_ext >&5
3653
John Criswell7a73b802003-06-30 21:59:07 +00003654ac_cv_lib_l_yywrap=no
3655fi
3656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3657LIBS=$ac_check_lib_save_LIBS
3658fi
3659echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3660echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3661if test $ac_cv_lib_l_yywrap = yes; then
3662 LEXLIB="-ll"
3663fi
3664
3665fi
3666
3667fi
3668
3669if test "x$LEX" != "x:"; then
3670 echo "$as_me:$LINENO: checking lex output file root" >&5
3671echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3672if test "${ac_cv_prog_lex_root+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 # The minimal lex program is just a single line: %%. But some broken lexes
3676# (Solaris, I think it was) want two %% lines, so accommodate them.
3677cat >conftest.l <<_ACEOF
3678%%
3679%%
3680_ACEOF
3681{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3682 (eval $LEX conftest.l) 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }
3686if test -f lex.yy.c; then
3687 ac_cv_prog_lex_root=lex.yy
3688elif test -f lexyy.c; then
3689 ac_cv_prog_lex_root=lexyy
3690else
3691 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3692echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3693 { (exit 1); exit 1; }; }
3694fi
3695fi
3696echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3697echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3698rm -f conftest.l
3699LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3700
3701echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3702echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3703if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 # POSIX says lex can declare yytext either as a pointer or an array; the
3707# default is implementation-dependent. Figure out which it is, since
3708# not all implementations provide the %pointer and %array declarations.
3709ac_cv_prog_lex_yytext_pointer=no
3710echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3711ac_save_LIBS=$LIBS
3712LIBS="$LIBS $LEXLIB"
3713cat >conftest.$ac_ext <<_ACEOF
3714`cat $LEX_OUTPUT_ROOT.c`
3715_ACEOF
3716rm -f conftest.$ac_objext conftest$ac_exeext
3717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3718 (eval $ac_link) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -s conftest$ac_exeext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_prog_lex_yytext_pointer=yes
3729else
3730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003731sed 's/^/| /' conftest.$ac_ext >&5
3732
John Criswell7a73b802003-06-30 21:59:07 +00003733fi
3734rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3735LIBS=$ac_save_LIBS
3736rm -f "${LEX_OUTPUT_ROOT}.c"
3737
3738fi
3739echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3740echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3741if test $ac_cv_prog_lex_yytext_pointer = yes; then
3742
3743cat >>confdefs.h <<\_ACEOF
3744#define YYTEXT_POINTER 1
3745_ACEOF
3746
3747fi
3748
3749fi
3750
3751fi
3752echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3753echo "${ECHO_T}$ac_cv_has_flex" >&6
3754if test "$LEX" != "flex"; then
3755 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3756echo "$as_me: error: flex not found but required" >&2;}
3757 { (exit 1); exit 1; }; }
3758fi
3759
3760echo "$as_me:$LINENO: checking " >&5
3761echo $ECHO_N "checking ... $ECHO_C" >&6
3762if test "${ac_cv_has_bison+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765 for ac_prog in 'bison -y' byacc
3766do
3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
3768set dummy $ac_prog; ac_word=$2
3769echo "$as_me:$LINENO: checking for $ac_word" >&5
3770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771if test "${ac_cv_prog_YACC+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774 if test -n "$YACC"; then
3775 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3776else
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_YACC="$ac_prog"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788done
3789done
3790
3791fi
3792fi
3793YACC=$ac_cv_prog_YACC
3794if test -n "$YACC"; then
3795 echo "$as_me:$LINENO: result: $YACC" >&5
3796echo "${ECHO_T}$YACC" >&6
3797else
3798 echo "$as_me:$LINENO: result: no" >&5
3799echo "${ECHO_T}no" >&6
3800fi
3801
3802 test -n "$YACC" && break
3803done
3804test -n "$YACC" || YACC="yacc"
3805
3806
3807fi
3808echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3809echo "${ECHO_T}$ac_cv_has_bison" >&6
3810if test "$YACC" != "bison -y"; then
3811 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3812echo "$as_me: error: bison not found but required" >&2;}
3813 { (exit 1); exit 1; }; }
3814else
3815 YACC=bison
3816
3817fi
3818
3819
3820# Check whether --enable-shared or --disable-shared was given.
3821if test "${enable_shared+set}" = set; then
3822 enableval="$enable_shared"
3823 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003824 case $enableval in
3825 yes) enable_shared=yes ;;
3826 no) enable_shared=no ;;
3827 *)
3828 enable_shared=no
3829 # Look at the argument we got. We use all the common list separators.
3830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3831 for pkg in $enableval; do
3832 IFS="$lt_save_ifs"
3833 if test "X$pkg" = "X$p"; then
3834 enable_shared=yes
3835 fi
3836 done
3837 IFS="$lt_save_ifs"
3838 ;;
3839 esac
John Criswell7a73b802003-06-30 21:59:07 +00003840else
3841 enable_shared=yes
3842fi;
John Criswell47fdd832003-07-14 16:52:07 +00003843
John Criswell7a73b802003-06-30 21:59:07 +00003844# Check whether --enable-static or --disable-static was given.
3845if test "${enable_static+set}" = set; then
3846 enableval="$enable_static"
3847 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003848 case $enableval in
3849 yes) enable_static=yes ;;
3850 no) enable_static=no ;;
3851 *)
3852 enable_static=no
3853 # Look at the argument we got. We use all the common list separators.
3854 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3855 for pkg in $enableval; do
3856 IFS="$lt_save_ifs"
3857 if test "X$pkg" = "X$p"; then
3858 enable_static=yes
3859 fi
3860 done
3861 IFS="$lt_save_ifs"
3862 ;;
3863 esac
John Criswell7a73b802003-06-30 21:59:07 +00003864else
3865 enable_static=yes
3866fi;
John Criswell47fdd832003-07-14 16:52:07 +00003867
John Criswell7a73b802003-06-30 21:59:07 +00003868# Check whether --enable-fast-install or --disable-fast-install was given.
3869if test "${enable_fast_install+set}" = set; then
3870 enableval="$enable_fast_install"
3871 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003872 case $enableval in
3873 yes) enable_fast_install=yes ;;
3874 no) enable_fast_install=no ;;
3875 *)
3876 enable_fast_install=no
3877 # Look at the argument we got. We use all the common list separators.
3878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3879 for pkg in $enableval; do
3880 IFS="$lt_save_ifs"
3881 if test "X$pkg" = "X$p"; then
3882 enable_fast_install=yes
3883 fi
3884 done
3885 IFS="$lt_save_ifs"
3886 ;;
3887 esac
John Criswell7a73b802003-06-30 21:59:07 +00003888else
3889 enable_fast_install=yes
3890fi;
John Criswell47fdd832003-07-14 16:52:07 +00003891
3892echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3893echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3894if test "${lt_cv_path_SED+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897 # Loop through the user's path and test for sed and gsed.
3898# Then use that list of sed's as ones to test for truncation.
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for lt_ac_prog in sed gsed; do
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3907 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3908 fi
3909 done
3910 done
3911done
3912lt_ac_max=0
3913lt_ac_count=0
3914# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3915# along with /bin/sed that truncates output.
3916for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3917 test ! -f $lt_ac_sed && break
3918 cat /dev/null > conftest.in
3919 lt_ac_count=0
3920 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3921 # Check for GNU sed and select it if it is found.
3922 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3923 lt_cv_path_SED=$lt_ac_sed
3924 break
3925 fi
3926 while true; do
3927 cat conftest.in conftest.in >conftest.tmp
3928 mv conftest.tmp conftest.in
3929 cp conftest.in conftest.nl
3930 echo >>conftest.nl
3931 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3932 cmp -s conftest.out conftest.nl || break
3933 # 10000 chars as input seems more than enough
3934 test $lt_ac_count -gt 10 && break
3935 lt_ac_count=`expr $lt_ac_count + 1`
3936 if test $lt_ac_count -gt $lt_ac_max; then
3937 lt_ac_max=$lt_ac_count
3938 lt_cv_path_SED=$lt_ac_sed
3939 fi
3940 done
3941done
3942SED=$lt_cv_path_SED
3943
John Criswell7a73b802003-06-30 21:59:07 +00003944fi
3945
John Criswell47fdd832003-07-14 16:52:07 +00003946echo "$as_me:$LINENO: result: $SED" >&5
3947echo "${ECHO_T}$SED" >&6
3948
3949echo "$as_me:$LINENO: checking for egrep" >&5
3950echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3951if test "${ac_cv_prog_egrep+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953else
3954 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3955 then ac_cv_prog_egrep='grep -E'
3956 else ac_cv_prog_egrep='egrep'
3957 fi
3958fi
3959echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3960echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3961 EGREP=$ac_cv_prog_egrep
3962
3963
John Criswell7a73b802003-06-30 21:59:07 +00003964
3965# Check whether --with-gnu-ld or --without-gnu-ld was given.
3966if test "${with_gnu_ld+set}" = set; then
3967 withval="$with_gnu_ld"
3968 test "$withval" = no || with_gnu_ld=yes
3969else
3970 with_gnu_ld=no
3971fi;
3972ac_prog=ld
3973if test "$GCC" = yes; then
3974 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003975 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3976echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003977 case $host in
3978 *-*-mingw*)
3979 # gcc leaves a trailing carriage return which upsets mingw
3980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3981 *)
3982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3983 esac
3984 case $ac_prog in
3985 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003986 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003987 re_direlt='/[^/][^/]*/\.\./'
3988 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003989 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003990 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003991 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003992 done
3993 test -z "$LD" && LD="$ac_prog"
3994 ;;
3995 "")
3996 # If it fails, then pretend we aren't using GCC.
3997 ac_prog=ld
3998 ;;
3999 *)
4000 # If it is relative, then search for the first ld in PATH.
4001 with_gnu_ld=unknown
4002 ;;
4003 esac
4004elif test "$with_gnu_ld" = yes; then
4005 echo "$as_me:$LINENO: checking for GNU ld" >&5
4006echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4007else
4008 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4009echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4010fi
4011if test "${lt_cv_path_LD+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004016 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004017 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004018 test -z "$ac_dir" && ac_dir=.
4019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4020 lt_cv_path_LD="$ac_dir/$ac_prog"
4021 # Check to see if the program is GNU ld. I'd rather use --version,
4022 # but apparently some GNU ld's only accept -v.
4023 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4025 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004026 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004027 ;;
4028 *)
John Criswell7a73b802003-06-30 21:59:07 +00004029 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004030 ;;
4031 esac
John Criswell7a73b802003-06-30 21:59:07 +00004032 fi
4033 done
John Criswell47fdd832003-07-14 16:52:07 +00004034 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004035else
4036 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4037fi
4038fi
4039
4040LD="$lt_cv_path_LD"
4041if test -n "$LD"; then
4042 echo "$as_me:$LINENO: result: $LD" >&5
4043echo "${ECHO_T}$LD" >&6
4044else
4045 echo "$as_me:$LINENO: result: no" >&5
4046echo "${ECHO_T}no" >&6
4047fi
4048test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4049echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4050 { (exit 1); exit 1; }; }
4051echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4052echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4053if test "${lt_cv_prog_gnu_ld+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004057case `"$LD" -v 2>&1 </dev/null` in
4058*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004059 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004060 ;;
4061*)
John Criswell7a73b802003-06-30 21:59:07 +00004062 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004063 ;;
4064esac
John Criswell7a73b802003-06-30 21:59:07 +00004065fi
4066echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4067echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4068with_gnu_ld=$lt_cv_prog_gnu_ld
4069
4070
4071echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4072echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4073if test "${lt_cv_ld_reload_flag+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076 lt_cv_ld_reload_flag='-r'
4077fi
4078echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4079echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4080reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004081case $reload_flag in
4082"" | " "*) ;;
4083*) reload_flag=" $reload_flag" ;;
4084esac
4085reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004086
4087echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4088echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4089if test "${lt_cv_path_NM+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092 if test -n "$NM"; then
4093 # Let the user override the test.
4094 lt_cv_path_NM="$NM"
4095else
John Criswell47fdd832003-07-14 16:52:07 +00004096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004097 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004098 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004099 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004100 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4101 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004102 # Check to see if the nm accepts a BSD-compat flag.
4103 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4104 # nm: unknown option "B" ignored
4105 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004106 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4107 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004108 lt_cv_path_NM="$tmp_nm -B"
4109 break
John Criswell47fdd832003-07-14 16:52:07 +00004110 ;;
4111 *)
4112 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4113 */dev/null*)
4114 lt_cv_path_NM="$tmp_nm -p"
4115 break
4116 ;;
4117 *)
4118 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4119 continue # so that we can try to find one that supports BSD flags
4120 ;;
4121 esac
4122 esac
John Criswell7a73b802003-06-30 21:59:07 +00004123 fi
4124 done
John Criswell47fdd832003-07-14 16:52:07 +00004125 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004126 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4127fi
4128fi
John Criswell47fdd832003-07-14 16:52:07 +00004129echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4130echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004131NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004132
4133echo "$as_me:$LINENO: checking whether ln -s works" >&5
4134echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4135LN_S=$as_ln_s
4136if test "$LN_S" = "ln -s"; then
4137 echo "$as_me:$LINENO: result: yes" >&5
4138echo "${ECHO_T}yes" >&6
4139else
4140 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4141echo "${ECHO_T}no, using $LN_S" >&6
4142fi
4143
John Criswell47fdd832003-07-14 16:52:07 +00004144echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4145echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004146if test "${lt_cv_deplibs_check_method+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 lt_cv_file_magic_cmd='$MAGIC_CMD'
4150lt_cv_file_magic_test_file=
4151lt_cv_deplibs_check_method='unknown'
4152# Need to set the preceding variable on all platforms that support
4153# interlibrary dependencies.
4154# 'none' -- dependencies not supported.
4155# `unknown' -- same as none, but documents that we really don't know.
4156# 'pass_all' -- all dependencies passed with no checks.
4157# 'test_compile' -- check by making test program.
4158# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004159# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004160# If you have `file' or equivalent on your system and you're not sure
4161# whether `pass_all' will *always* work, you probably want this one.
4162
4163case $host_os in
4164aix4* | aix5*)
4165 lt_cv_deplibs_check_method=pass_all
4166 ;;
4167
4168beos*)
4169 lt_cv_deplibs_check_method=pass_all
4170 ;;
4171
4172bsdi4*)
4173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4174 lt_cv_file_magic_cmd='/usr/bin/file -L'
4175 lt_cv_file_magic_test_file=/shlib/libc.so
4176 ;;
4177
4178cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004179 # win32_libid is a shell function defined in ltmain.sh
4180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4181 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004182 ;;
4183
4184darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004185 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004186 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4187 lt_cv_file_magic_cmd='/usr/bin/file -L'
4188 case "$host_os" in
4189 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004190 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004191 ;;
4192 *) # Darwin 1.3 on
4193 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4194 ;;
4195 esac
John Criswell47fdd832003-07-14 16:52:07 +00004196 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004197 ;;
4198
4199freebsd*)
4200 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4201 case $host_cpu in
4202 i*86 )
4203 # Not sure whether the presence of OpenBSD here was a mistake.
4204 # Let's accept both of them until this is cleared up.
4205 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4206 lt_cv_file_magic_cmd=/usr/bin/file
4207 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4208 ;;
4209 esac
4210 else
4211 lt_cv_deplibs_check_method=pass_all
4212 fi
4213 ;;
4214
4215gnu*)
4216 lt_cv_deplibs_check_method=pass_all
4217 ;;
4218
John Criswell47fdd832003-07-14 16:52:07 +00004219hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004220 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004221 case "$host_cpu" in
4222 ia64*)
4223 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4224 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4225 ;;
4226 hppa*64*)
4227 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]'
4228 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4229 ;;
4230 *)
4231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4232 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4233 ;;
4234 esac
John Criswell7a73b802003-06-30 21:59:07 +00004235 ;;
4236
John Criswell47fdd832003-07-14 16:52:07 +00004237irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004238 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004239 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004240 # this will be overridden with pass_all, but let us keep it just in case
4241 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4242 ;;
4243 *)
4244 case $LD in
4245 *-32|*"-32 ") libmagic=32-bit;;
4246 *-n32|*"-n32 ") libmagic=N32;;
4247 *-64|*"-64 ") libmagic=64-bit;;
4248 *) libmagic=never-match;;
4249 esac
4250 # this will be overridden with pass_all, but let us keep it just in case
4251 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4252 ;;
4253 esac
4254 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4255 lt_cv_deplibs_check_method=pass_all
4256 ;;
4257
4258# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004259linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004260 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004261 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004262 lt_cv_deplibs_check_method=pass_all ;;
4263 *)
4264 # glibc up to 2.1.1 does not perform some relocations on ARM
4265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4266 esac
4267 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4268 ;;
4269
4270netbsd*)
4271 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004273 else
John Criswell47fdd832003-07-14 16:52:07 +00004274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004275 fi
4276 ;;
4277
4278newos6*)
4279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4280 lt_cv_file_magic_cmd=/usr/bin/file
4281 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4282 ;;
4283
John Criswell47fdd832003-07-14 16:52:07 +00004284nto-qnx)
4285 lt_cv_deplibs_check_method=unknown
4286 ;;
4287
John Criswell7a73b802003-06-30 21:59:07 +00004288openbsd*)
4289 lt_cv_file_magic_cmd=/usr/bin/file
4290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4293 else
4294 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4295 fi
4296 ;;
4297
4298osf3* | osf4* | osf5*)
4299 # this will be overridden with pass_all, but let us keep it just in case
4300 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4301 lt_cv_file_magic_test_file=/shlib/libc.so
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305sco3.2v5*)
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
4309solaris*)
4310 lt_cv_deplibs_check_method=pass_all
4311 lt_cv_file_magic_test_file=/lib/libc.so
4312 ;;
4313
John Criswell7a73b802003-06-30 21:59:07 +00004314sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4315 case $host_vendor in
4316 motorola)
4317 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]'
4318 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4319 ;;
4320 ncr)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323 sequent)
4324 lt_cv_file_magic_cmd='/bin/file'
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4326 ;;
4327 sni)
4328 lt_cv_file_magic_cmd='/bin/file'
4329 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4330 lt_cv_file_magic_test_file=/lib/libc.so
4331 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004332 siemens)
4333 lt_cv_deplibs_check_method=pass_all
4334 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004335 esac
4336 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004337
4338sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004341esac
4342
4343fi
4344echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4345echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4346file_magic_cmd=$lt_cv_file_magic_cmd
4347deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004348test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004349
4350
4351
4352
John Criswell47fdd832003-07-14 16:52:07 +00004353# If no C compiler was specified, use CC.
4354LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004355
John Criswell47fdd832003-07-14 16:52:07 +00004356# Allow CC to be a program name with arguments.
4357compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004358
John Criswell47fdd832003-07-14 16:52:07 +00004359# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4360if test "${enable_libtool_lock+set}" = set; then
4361 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004362
John Criswell47fdd832003-07-14 16:52:07 +00004363fi;
4364test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004365
John Criswell47fdd832003-07-14 16:52:07 +00004366# Some flags need to be propagated to the compiler or linker for good
4367# libtool support.
4368case $host in
4369ia64-*-hpux*)
4370 # Find out which ABI we are using.
4371 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004377 case `/usr/bin/file conftest.$ac_objext` in
4378 *ELF-32*)
4379 HPUX_IA64_MODE="32"
4380 ;;
4381 *ELF-64*)
4382 HPUX_IA64_MODE="64"
4383 ;;
4384 esac
4385 fi
4386 rm -rf conftest*
4387 ;;
4388*-*-irix6*)
4389 # Find out which ABI we are using.
John Criswell10708402003-09-15 20:12:48 +00004390 echo '#line 4390 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004395 (exit $ac_status); }; then
4396 if test "$lt_cv_prog_gnu_ld" = yes; then
4397 case `/usr/bin/file conftest.$ac_objext` in
4398 *32-bit*)
4399 LD="${LD-ld} -melf32bsmip"
4400 ;;
4401 *N32*)
4402 LD="${LD-ld} -melf32bmipn32"
4403 ;;
4404 *64-bit*)
4405 LD="${LD-ld} -melf64bmip"
4406 ;;
4407 esac
4408 else
4409 case `/usr/bin/file conftest.$ac_objext` in
4410 *32-bit*)
4411 LD="${LD-ld} -32"
4412 ;;
4413 *N32*)
4414 LD="${LD-ld} -n32"
4415 ;;
4416 *64-bit*)
4417 LD="${LD-ld} -64"
4418 ;;
4419 esac
4420 fi
4421 fi
4422 rm -rf conftest*
4423 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004424
John Criswell47fdd832003-07-14 16:52:07 +00004425x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4426 # Find out which ABI we are using.
4427 echo 'int i;' > conftest.$ac_ext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; then
4433 case "`/usr/bin/file conftest.o`" in
4434 *32-bit*)
4435 case $host in
4436 x86_64-*linux*)
4437 LD="${LD-ld} -m elf_i386"
4438 ;;
4439 ppc64-*linux*)
4440 LD="${LD-ld} -m elf32ppclinux"
4441 ;;
4442 s390x-*linux*)
4443 LD="${LD-ld} -m elf_s390"
4444 ;;
4445 sparc64-*linux*)
4446 LD="${LD-ld} -m elf32_sparc"
4447 ;;
4448 esac
4449 ;;
4450 *64-bit*)
4451 case $host in
4452 x86_64-*linux*)
4453 LD="${LD-ld} -m elf_x86_64"
4454 ;;
4455 ppc*-*linux*|powerpc*-*linux*)
4456 LD="${LD-ld} -m elf64ppc"
4457 ;;
4458 s390*-*linux*)
4459 LD="${LD-ld} -m elf64_s390"
4460 ;;
4461 sparc*-*linux*)
4462 LD="${LD-ld} -m elf64_sparc"
4463 ;;
4464 esac
4465 ;;
4466 esac
4467 fi
4468 rm -rf conftest*
4469 ;;
4470
4471*-*-sco3.2v5*)
4472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4473 SAVE_CFLAGS="$CFLAGS"
4474 CFLAGS="$CFLAGS -belf"
4475 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4476echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4477if test "${lt_cv_cc_needs_belf+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480 ac_ext=c
4481ac_cpp='$CPP $CPPFLAGS'
4482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486 cat >conftest.$ac_ext <<_ACEOF
4487#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004488/* confdefs.h. */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004493
John Criswell47fdd832003-07-14 16:52:07 +00004494int
4495main ()
John Criswell7a73b802003-06-30 21:59:07 +00004496{
John Criswell7a73b802003-06-30 21:59:07 +00004497
John Criswell47fdd832003-07-14 16:52:07 +00004498 ;
4499 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004500}
John Criswell47fdd832003-07-14 16:52:07 +00004501_ACEOF
4502rm -f conftest.$ac_objext conftest$ac_exeext
4503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004504 (eval $ac_link) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004507 (exit $ac_status); } &&
4508 { ac_try='test -s conftest$ac_exeext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004515else
John Criswell47fdd832003-07-14 16:52:07 +00004516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004517sed 's/^/| /' conftest.$ac_ext >&5
4518
John Criswell47fdd832003-07-14 16:52:07 +00004519lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004520fi
John Criswell47fdd832003-07-14 16:52:07 +00004521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4522 ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
John Criswell7a73b802003-06-30 21:59:07 +00004528fi
John Criswell47fdd832003-07-14 16:52:07 +00004529echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4530echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4533 CFLAGS="$SAVE_CFLAGS"
4534 fi
4535 ;;
4536
4537esac
4538
4539need_locks="$enable_libtool_lock"
4540
John Criswell7a73b802003-06-30 21:59:07 +00004541
4542
4543echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4544echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4545if test "${ac_cv_header_stdc+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548 cat >conftest.$ac_ext <<_ACEOF
4549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004550/* confdefs.h. */
4551_ACEOF
4552cat confdefs.h >>conftest.$ac_ext
4553cat >>conftest.$ac_ext <<_ACEOF
4554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004555#include <stdlib.h>
4556#include <stdarg.h>
4557#include <string.h>
4558#include <float.h>
4559
John Criswell0c38eaf2003-09-10 15:17:25 +00004560int
4561main ()
4562{
4563
4564 ;
4565 return 0;
4566}
John Criswell7a73b802003-06-30 21:59:07 +00004567_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004568rm -f conftest.$ac_objext
4569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004571 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004573 (exit $ac_status); } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004580 ac_cv_header_stdc=yes
4581else
4582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004586fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004587rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004588
4589if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat >conftest.$ac_ext <<_ACEOF
4592#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004593/* confdefs.h. */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004598#include <string.h>
4599
4600_ACEOF
4601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004602 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004603 :
4604else
4605 ac_cv_header_stdc=no
4606fi
4607rm -f conftest*
4608
4609fi
4610
4611if test $ac_cv_header_stdc = yes; then
4612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613 cat >conftest.$ac_ext <<_ACEOF
4614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004615/* confdefs.h. */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004620#include <stdlib.h>
4621
4622_ACEOF
4623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004624 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004625 :
4626else
4627 ac_cv_header_stdc=no
4628fi
4629rm -f conftest*
4630
4631fi
4632
4633if test $ac_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then
4636 :
4637else
4638 cat >conftest.$ac_ext <<_ACEOF
4639#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004640/* confdefs.h. */
4641_ACEOF
4642cat confdefs.h >>conftest.$ac_ext
4643cat >>conftest.$ac_ext <<_ACEOF
4644/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004645#include <ctype.h>
4646#if ((' ' & 0x0FF) == 0x020)
4647# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004650# define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4655#endif
4656
4657#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4658int
4659main ()
4660{
4661 int i;
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4665 exit(2);
4666 exit (0);
4667}
4668_ACEOF
4669rm -f conftest$ac_exeext
4670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671 (eval $ac_link) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4680 :
4681else
4682 echo "$as_me: program exited with status $ac_status" >&5
4683echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004684sed 's/^/| /' conftest.$ac_ext >&5
4685
John Criswell7a73b802003-06-30 21:59:07 +00004686( exit $ac_status )
4687ac_cv_header_stdc=no
4688fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004689rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004690fi
4691fi
4692fi
4693echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4694echo "${ECHO_T}$ac_cv_header_stdc" >&6
4695if test $ac_cv_header_stdc = yes; then
4696
4697cat >>confdefs.h <<\_ACEOF
4698#define STDC_HEADERS 1
4699_ACEOF
4700
4701fi
4702
4703# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4714 inttypes.h stdint.h unistd.h
4715do
4716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717echo "$as_me:$LINENO: checking for $ac_header" >&5
4718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4719if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722 cat >conftest.$ac_ext <<_ACEOF
4723#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004729$ac_includes_default
4730
4731#include <$ac_header>
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 eval "$as_ac_Header=yes"
4746else
4747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004748sed 's/^/| /' conftest.$ac_ext >&5
4749
John Criswell7a73b802003-06-30 21:59:07 +00004750eval "$as_ac_Header=no"
4751fi
4752rm -f conftest.$ac_objext conftest.$ac_ext
4753fi
4754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4756if test `eval echo '${'$as_ac_Header'}'` = yes; then
4757 cat >>confdefs.h <<_ACEOF
4758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4759_ACEOF
4760
4761fi
4762
4763done
4764
4765
4766
4767for ac_header in dlfcn.h
4768do
4769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4770if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771 echo "$as_me:$LINENO: checking for $ac_header" >&5
4772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775fi
4776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4778else
4779 # Is the header compilable?
4780echo "$as_me:$LINENO: checking $ac_header usability" >&5
4781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4782cat >conftest.$ac_ext <<_ACEOF
4783#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004789$ac_includes_default
4790#include <$ac_header>
4791_ACEOF
4792rm -f conftest.$ac_objext
4793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -s conftest.$ac_objext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 ac_header_compiler=yes
4805else
4806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004807sed 's/^/| /' conftest.$ac_ext >&5
4808
John Criswell7a73b802003-06-30 21:59:07 +00004809ac_header_compiler=no
4810fi
4811rm -f conftest.$ac_objext conftest.$ac_ext
4812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4813echo "${ECHO_T}$ac_header_compiler" >&6
4814
4815# Is the header present?
4816echo "$as_me:$LINENO: checking $ac_header presence" >&5
4817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4818cat >conftest.$ac_ext <<_ACEOF
4819#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004820/* confdefs.h. */
4821_ACEOF
4822cat confdefs.h >>conftest.$ac_ext
4823cat >>conftest.$ac_ext <<_ACEOF
4824/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004825#include <$ac_header>
4826_ACEOF
4827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004830 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null; then
4835 if test -s conftest.err; then
4836 ac_cpp_err=$ac_c_preproc_warn_flag
4837 else
4838 ac_cpp_err=
4839 fi
4840else
4841 ac_cpp_err=yes
4842fi
4843if test -z "$ac_cpp_err"; then
4844 ac_header_preproc=yes
4845else
4846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004847sed 's/^/| /' conftest.$ac_ext >&5
4848
John Criswell7a73b802003-06-30 21:59:07 +00004849 ac_header_preproc=no
4850fi
4851rm -f conftest.err conftest.$ac_ext
4852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4853echo "${ECHO_T}$ac_header_preproc" >&6
4854
4855# So? What about this header?
4856case $ac_header_compiler:$ac_header_preproc in
4857 yes:no )
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4862 (
4863 cat <<\_ASBOX
4864## ------------------------------------ ##
4865## Report this to bug-autoconf@gnu.org. ##
4866## ------------------------------------ ##
4867_ASBOX
4868 ) |
4869 sed "s/^/$as_me: WARNING: /" >&2
4870 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004871 no:yes )
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004877echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4878 (
4879 cat <<\_ASBOX
4880## ------------------------------------ ##
4881## Report this to bug-autoconf@gnu.org. ##
4882## ------------------------------------ ##
4883_ASBOX
4884 ) |
4885 sed "s/^/$as_me: WARNING: /" >&2
4886 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004887esac
4888echo "$as_me:$LINENO: checking for $ac_header" >&5
4889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893 eval "$as_ac_Header=$ac_header_preproc"
4894fi
4895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4897
4898fi
4899if test `eval echo '${'$as_ac_Header'}'` = yes; then
4900 cat >>confdefs.h <<_ACEOF
4901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4902_ACEOF
4903
4904fi
4905
4906done
4907
John Criswell47fdd832003-07-14 16:52:07 +00004908ac_ext=cc
4909ac_cpp='$CXXCPP $CPPFLAGS'
4910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4913echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4914echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4915if test -z "$CXXCPP"; then
4916 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
John Criswell47fdd832003-07-14 16:52:07 +00004919 # Double quotes because CXXCPP needs to be expanded
4920 for CXXCPP in "$CXX -E" "/lib/cpp"
4921 do
4922 ac_preproc_ok=false
4923for ac_cxx_preproc_warn_flag in '' yes
4924do
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat >conftest.$ac_ext <<_ACEOF
4932#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
4938#ifdef __STDC__
4939# include <limits.h>
4940#else
4941# include <assert.h>
4942#endif
John Criswell47fdd832003-07-14 16:52:07 +00004943 Syntax error
4944_ACEOF
4945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4947 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004948 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } >/dev/null; then
4953 if test -s conftest.err; then
4954 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004955 else
John Criswell47fdd832003-07-14 16:52:07 +00004956 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004957 fi
John Criswell47fdd832003-07-14 16:52:07 +00004958else
4959 ac_cpp_err=yes
4960fi
4961if test -z "$ac_cpp_err"; then
4962 :
4963else
4964 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004965sed 's/^/| /' conftest.$ac_ext >&5
4966
John Criswell47fdd832003-07-14 16:52:07 +00004967 # Broken: fails on valid input.
4968continue
4969fi
4970rm -f conftest.err conftest.$ac_ext
4971
4972 # OK, works on sane cases. Now check whether non-existent headers
4973 # can be detected and how.
4974 cat >conftest.$ac_ext <<_ACEOF
4975#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004986 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null; then
4991 if test -s conftest.err; then
4992 ac_cpp_err=$ac_cxx_preproc_warn_flag
4993 else
4994 ac_cpp_err=
4995 fi
4996else
4997 ac_cpp_err=yes
4998fi
4999if test -z "$ac_cpp_err"; then
5000 # Broken: success on invalid input.
5001continue
5002else
5003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005004sed 's/^/| /' conftest.$ac_ext >&5
5005
John Criswell47fdd832003-07-14 16:52:07 +00005006 # Passes both tests.
5007ac_preproc_ok=:
5008break
5009fi
5010rm -f conftest.err conftest.$ac_ext
5011
5012done
5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014rm -f conftest.err conftest.$ac_ext
5015if $ac_preproc_ok; then
5016 break
John Criswell7a73b802003-06-30 21:59:07 +00005017fi
5018
John Criswell47fdd832003-07-14 16:52:07 +00005019 done
5020 ac_cv_prog_CXXCPP=$CXXCPP
5021
5022fi
5023 CXXCPP=$ac_cv_prog_CXXCPP
5024else
5025 ac_cv_prog_CXXCPP=$CXXCPP
5026fi
5027echo "$as_me:$LINENO: result: $CXXCPP" >&5
5028echo "${ECHO_T}$CXXCPP" >&6
5029ac_preproc_ok=false
5030for ac_cxx_preproc_warn_flag in '' yes
5031do
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat >conftest.$ac_ext <<_ACEOF
5039#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005040/* confdefs.h. */
5041_ACEOF
5042cat confdefs.h >>conftest.$ac_ext
5043cat >>conftest.$ac_ext <<_ACEOF
5044/* end confdefs.h. */
5045#ifdef __STDC__
5046# include <limits.h>
5047#else
5048# include <assert.h>
5049#endif
John Criswell47fdd832003-07-14 16:52:07 +00005050 Syntax error
5051_ACEOF
5052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5054 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005055 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null; then
5060 if test -s conftest.err; then
5061 ac_cpp_err=$ac_cxx_preproc_warn_flag
5062 else
5063 ac_cpp_err=
5064 fi
5065else
5066 ac_cpp_err=yes
5067fi
5068if test -z "$ac_cpp_err"; then
5069 :
5070else
5071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005072sed 's/^/| /' conftest.$ac_ext >&5
5073
John Criswell47fdd832003-07-14 16:52:07 +00005074 # Broken: fails on valid input.
5075continue
5076fi
5077rm -f conftest.err conftest.$ac_ext
5078
5079 # OK, works on sane cases. Now check whether non-existent headers
5080 # can be detected and how.
5081 cat >conftest.$ac_ext <<_ACEOF
5082#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005083/* confdefs.h. */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005088#include <ac_nonexistent.h>
5089_ACEOF
5090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005093 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_cxx_preproc_warn_flag
5100 else
5101 ac_cpp_err=
5102 fi
5103else
5104 ac_cpp_err=yes
5105fi
5106if test -z "$ac_cpp_err"; then
5107 # Broken: success on invalid input.
5108continue
5109else
5110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005111sed 's/^/| /' conftest.$ac_ext >&5
5112
John Criswell47fdd832003-07-14 16:52:07 +00005113 # Passes both tests.
5114ac_preproc_ok=:
5115break
5116fi
5117rm -f conftest.err conftest.$ac_ext
5118
5119done
5120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121rm -f conftest.err conftest.$ac_ext
5122if $ac_preproc_ok; then
5123 :
5124else
John Criswell0c38eaf2003-09-10 15:17:25 +00005125 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126See \`config.log' for more details." >&5
5127echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5128See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005129 { (exit 1); exit 1; }; }
5130fi
5131
5132ac_ext=cc
5133ac_cpp='$CXXCPP $CPPFLAGS'
5134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137
5138
5139ac_ext=f
5140ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5141ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5143if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005144 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 +00005145 do
5146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5147set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5148echo "$as_me:$LINENO: checking for $ac_word" >&5
5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150if test "${ac_cv_prog_F77+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153 if test -n "$F77"; then
5154 ac_cv_prog_F77="$F77" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167done
5168done
5169
5170fi
5171fi
5172F77=$ac_cv_prog_F77
5173if test -n "$F77"; then
5174 echo "$as_me:$LINENO: result: $F77" >&5
5175echo "${ECHO_T}$F77" >&6
5176else
5177 echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179fi
5180
5181 test -n "$F77" && break
5182 done
5183fi
5184if test -z "$F77"; then
5185 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005186 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 +00005187do
5188 # Extract the first word of "$ac_prog", so it can be a program name with args.
5189set dummy $ac_prog; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 if test -n "$ac_ct_F77"; then
5196 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_F77="$ac_prog"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209done
5210done
5211
5212fi
5213fi
5214ac_ct_F77=$ac_cv_prog_ac_ct_F77
5215if test -n "$ac_ct_F77"; then
5216 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5217echo "${ECHO_T}$ac_ct_F77" >&6
5218else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221fi
5222
5223 test -n "$ac_ct_F77" && break
5224done
5225
5226 F77=$ac_ct_F77
5227fi
5228
5229
5230# Provide some information about the compiler.
John Criswell10708402003-09-15 20:12:48 +00005231echo "$as_me:5231:" \
John Criswell47fdd832003-07-14 16:52:07 +00005232 "checking for Fortran 77 compiler version" >&5
5233ac_compiler=`set X $ac_compile; echo $2`
5234{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5235 (eval $ac_compiler --version </dev/null >&5) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }
5239{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5240 (eval $ac_compiler -v </dev/null >&5) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }
5244{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5245 (eval $ac_compiler -V </dev/null >&5) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }
5249
5250# If we don't use `.F' as extension, the preprocessor is not run on the
5251# input file.
5252ac_save_ext=$ac_ext
5253ac_ext=F
5254echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5255echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5256if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259 cat >conftest.$ac_ext <<_ACEOF
5260 program main
5261#ifndef __GNUC__
5262 choke me
5263#endif
5264
5265 end
5266_ACEOF
5267rm -f conftest.$ac_objext
5268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269 (eval $ac_compile) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_compiler_gnu=yes
5280else
5281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005282sed 's/^/| /' conftest.$ac_ext >&5
5283
John Criswell47fdd832003-07-14 16:52:07 +00005284ac_compiler_gnu=no
5285fi
5286rm -f conftest.$ac_objext conftest.$ac_ext
5287ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5288
5289fi
5290echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5291echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5292ac_ext=$ac_save_ext
5293G77=`test $ac_compiler_gnu = yes && echo yes`
5294ac_test_FFLAGS=${FFLAGS+set}
5295ac_save_FFLAGS=$FFLAGS
5296FFLAGS=
5297echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5298echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5299if test "${ac_cv_prog_f77_g+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302 FFLAGS=-g
5303cat >conftest.$ac_ext <<_ACEOF
5304 program main
5305
5306 end
5307_ACEOF
5308rm -f conftest.$ac_objext
5309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_prog_f77_g=yes
5321else
5322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005323sed 's/^/| /' conftest.$ac_ext >&5
5324
John Criswell47fdd832003-07-14 16:52:07 +00005325ac_cv_prog_f77_g=no
5326fi
5327rm -f conftest.$ac_objext conftest.$ac_ext
5328
5329fi
5330echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5331echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5332if test "$ac_test_FFLAGS" = set; then
5333 FFLAGS=$ac_save_FFLAGS
5334elif test $ac_cv_prog_f77_g = yes; then
5335 if test "$G77" = yes; then
5336 FFLAGS="-g -O2"
5337 else
5338 FFLAGS="-g"
5339 fi
5340else
5341 if test "$G77" = yes; then
5342 FFLAGS="-O2"
5343 else
5344 FFLAGS=
5345 fi
5346fi
5347ac_ext=c
5348ac_cpp='$CPP $CPPFLAGS'
5349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352
5353
5354
5355# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5356
5357# find the maximum length of command line arguments
5358echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5359echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5360if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363 i=0
5364 testring="ABCD"
5365
5366 case $build_os in
5367 msdosdjgpp*)
5368 # On DJGPP, this test can blow up pretty badly due to problems in libc
5369 # (any single argument exceeding 2000 bytes causes a buffer overrun
5370 # during glob expansion). Even if it were fixed, the result of this
5371 # check would be larger than it should be.
5372 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5373 ;;
5374
5375 gnu*)
5376 # Under GNU Hurd, this test is not required because there is
5377 # no limit to the length of command line arguments.
5378 # Libtool will interpret -1 as no limit whatsoever
5379 lt_cv_sys_max_cmd_len=-1;
5380 ;;
5381
5382 cygwin* | mingw*)
5383 # On Win9x/ME, this test blows up -- it succeeds, but takes
5384 # about 5 minutes as the teststring grows exponentially.
5385 # Worse, since 9x/ME are not pre-emptively multitasking,
5386 # you end up with a "frozen" computer, even though with patience
5387 # the test eventually succeeds (with a max line length of 256k).
5388 # Instead, let's just punt: use the minimum linelength reported by
5389 # all of the supported platforms: 8192 (on NT/2K/XP).
5390 lt_cv_sys_max_cmd_len=8192;
5391 ;;
5392
5393 *)
5394 # If test is not a shell built-in, we'll probably end up computing a
5395 # maximum length that is only half of the actual maximum length, but
5396 # we can't tell.
5397 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5398 = "XX$testring") >/dev/null 2>&1 &&
5399 new_result=`expr "X$testring" : ".*" 2>&1` &&
5400 lt_cv_sys_max_cmd_len=$new_result &&
5401 test $i != 17 # 1/2 MB should be enough
5402 do
5403 i=`expr $i + 1`
5404 testring=$testring$testring
5405 done
5406 testring=
5407 # Add a significant safety factor because C++ compilers can tack on massive
5408 # amounts of additional arguments before passing them to the linker.
5409 # It appears as though 1/2 is a usable value.
5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5411 ;;
5412 esac
5413
5414fi
5415
5416if test -n $lt_cv_sys_max_cmd_len ; then
5417 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5418echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5419else
5420 echo "$as_me:$LINENO: result: none" >&5
5421echo "${ECHO_T}none" >&6
5422fi
5423
5424
5425
5426
5427# Check for command to grab the raw symbol name followed by C symbol from nm.
5428echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5429echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5430if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433
5434# These are sane defaults that work on at least a few old systems.
5435# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5436
5437# Character class describing NM global symbol codes.
5438symcode='[BCDEGRST]'
5439
5440# Regexp to match symbols that can be accessed directly from C.
5441sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5442
5443# Transform the above into a raw symbol and a C symbol.
5444symxfrm='\1 \2\3 \3'
5445
5446# Transform an extracted symbol line into a proper C declaration
5447lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5448
5449# Transform an extracted symbol line into symbol name and symbol address
5450lt_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'"
5451
5452# Define system-specific variables.
5453case $host_os in
5454aix*)
5455 symcode='[BCDT]'
5456 ;;
5457cygwin* | mingw* | pw32*)
5458 symcode='[ABCDGISTW]'
5459 ;;
5460hpux*) # Its linker distinguishes data from code symbols
5461 if test "$host_cpu" = ia64; then
5462 symcode='[ABCDEGRST]'
5463 fi
5464 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5465 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'"
5466 ;;
5467irix* | nonstopux*)
5468 symcode='[BCDEGRST]'
5469 ;;
5470osf*)
5471 symcode='[BCDEGQRST]'
5472 ;;
5473solaris* | sysv5*)
5474 symcode='[BDT]'
5475 ;;
5476sysv4)
5477 symcode='[DFNSTU]'
5478 ;;
5479esac
5480
5481# Handle CRLF in mingw tool chain
5482opt_cr=
5483case $build_os in
5484mingw*)
5485 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5486 ;;
5487esac
5488
5489# If we're using GNU nm, then use its standard symbol codes.
5490case `$NM -V 2>&1` in
5491*GNU* | *'with BFD'*)
5492 symcode='[ABCDGISTW]' ;;
5493esac
5494
5495# Try without a prefix undercore, then with it.
5496for ac_symprfx in "" "_"; do
5497
5498 # Write the raw and C identifiers.
5499 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5500
5501 # Check to see that the pipe works correctly.
5502 pipe_works=no
5503
5504 rm -f conftest*
5505 cat > conftest.$ac_ext <<EOF
5506#ifdef __cplusplus
5507extern "C" {
5508#endif
5509char nm_test_var;
5510void nm_test_func(){}
5511#ifdef __cplusplus
5512}
5513#endif
5514int main(){nm_test_var='a';nm_test_func();return(0);}
5515EOF
5516
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; then
5522 # Now try to grab the symbols.
5523 nlist=conftest.nm
5524 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5525 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && test -s "$nlist"; then
5529 # Try sorting and uniquifying the output.
5530 if sort "$nlist" | uniq > "$nlist"T; then
5531 mv -f "$nlist"T "$nlist"
5532 else
5533 rm -f "$nlist"T
5534 fi
5535
5536 # Make sure that we snagged all the symbols we need.
5537 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5538 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5539 cat <<EOF > conftest.$ac_ext
5540#ifdef __cplusplus
5541extern "C" {
5542#endif
5543
5544EOF
5545 # Now generate the symbol file.
5546 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5547
5548 cat <<EOF >> conftest.$ac_ext
5549#if defined (__STDC__) && __STDC__
5550# define lt_ptr_t void *
5551#else
5552# define lt_ptr_t char *
5553# define const
5554#endif
5555
5556/* The mapping between symbol names and symbols. */
5557const struct {
5558 const char *name;
5559 lt_ptr_t address;
5560}
5561lt_preloaded_symbols[] =
5562{
5563EOF
5564 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5565 cat <<\EOF >> conftest.$ac_ext
5566 {0, (lt_ptr_t) 0}
5567};
5568
5569#ifdef __cplusplus
5570}
5571#endif
5572EOF
5573 # Now try linking the two files.
5574 mv conftest.$ac_objext conftstm.$ac_objext
5575 lt_save_LIBS="$LIBS"
5576 lt_save_CFLAGS="$CFLAGS"
5577 LIBS="conftstm.$ac_objext"
5578 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5584 pipe_works=yes
5585 fi
5586 LIBS="$lt_save_LIBS"
5587 CFLAGS="$lt_save_CFLAGS"
5588 else
5589 echo "cannot find nm_test_func in $nlist" >&5
5590 fi
5591 else
5592 echo "cannot find nm_test_var in $nlist" >&5
5593 fi
5594 else
5595 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5596 fi
5597 else
5598 echo "$progname: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5600 fi
5601 rm -f conftest* conftst*
5602
5603 # Do not use the global_symbol_pipe unless it works.
5604 if test "$pipe_works" = yes; then
5605 break
5606 else
5607 lt_cv_sys_global_symbol_pipe=
5608 fi
5609done
5610
5611fi
5612
5613if test -z "$lt_cv_sys_global_symbol_pipe"; then
5614 lt_cv_sys_global_symbol_to_cdecl=
5615fi
5616if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5617 echo "$as_me:$LINENO: result: failed" >&5
5618echo "${ECHO_T}failed" >&6
5619else
5620 echo "$as_me:$LINENO: result: ok" >&5
5621echo "${ECHO_T}ok" >&6
5622fi
5623
5624echo "$as_me:$LINENO: checking for objdir" >&5
5625echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5626if test "${lt_cv_objdir+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629 rm -f .libs 2>/dev/null
5630mkdir .libs 2>/dev/null
5631if test -d .libs; then
5632 lt_cv_objdir=.libs
5633else
5634 # MS-DOS does not allow filenames that begin with a dot.
5635 lt_cv_objdir=_libs
5636fi
5637rmdir .libs 2>/dev/null
5638fi
5639echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5640echo "${ECHO_T}$lt_cv_objdir" >&6
5641objdir=$lt_cv_objdir
5642
5643
5644
5645
5646
5647case $host_os in
5648aix3*)
5649 # AIX sometimes has problems with the GCC collect2 program. For some
5650 # reason, if we set the COLLECT_NAMES environment variable, the problems
5651 # vanish in a puff of smoke.
5652 if test "X${COLLECT_NAMES+set}" != Xset; then
5653 COLLECT_NAMES=
5654 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005655 fi
5656 ;;
5657esac
5658
John Criswell47fdd832003-07-14 16:52:07 +00005659# Sed substitution that helps us do robust quoting. It backslashifies
5660# metacharacters that are still active within double-quoted strings.
5661Xsed='sed -e s/^X//'
5662sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5663
5664# Same as above, but do not quote variable references.
5665double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5666
5667# Sed substitution to delay expansion of an escaped shell variable in a
5668# double_quote_subst'ed string.
5669delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5670
5671# Sed substitution to avoid accidental globbing in evaled expressions
5672no_glob_subst='s/\*/\\\*/g'
5673
5674# Constants:
5675rm="rm -f"
5676
5677# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005678default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005679can_build_shared=yes
5680
5681# All known linkers require a `.a' archive for static linking (except M$VC,
5682# which needs '.lib').
5683libext=a
5684ltmain="$ac_aux_dir/ltmain.sh"
5685ofile="$default_ofile"
5686with_gnu_ld="$lt_cv_prog_gnu_ld"
5687
5688if test -n "$ac_tool_prefix"; then
5689 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5690set dummy ${ac_tool_prefix}ar; ac_word=$2
5691echo "$as_me:$LINENO: checking for $ac_word" >&5
5692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5693if test "${ac_cv_prog_AR+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696 if test -n "$AR"; then
5697 ac_cv_prog_AR="$AR" # Let the user override the test.
5698else
5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706 ac_cv_prog_AR="${ac_tool_prefix}ar"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710done
5711done
5712
5713fi
5714fi
5715AR=$ac_cv_prog_AR
5716if test -n "$AR"; then
5717 echo "$as_me:$LINENO: result: $AR" >&5
5718echo "${ECHO_T}$AR" >&6
5719else
5720 echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722fi
5723
5724fi
5725if test -z "$ac_cv_prog_AR"; then
5726 ac_ct_AR=$AR
5727 # Extract the first word of "ar", so it can be a program name with args.
5728set dummy ar; ac_word=$2
5729echo "$as_me:$LINENO: checking for $ac_word" >&5
5730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734 if test -n "$ac_ct_AR"; then
5735 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_ac_ct_AR="ar"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748done
5749done
5750
5751 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5752fi
5753fi
5754ac_ct_AR=$ac_cv_prog_ac_ct_AR
5755if test -n "$ac_ct_AR"; then
5756 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5757echo "${ECHO_T}$ac_ct_AR" >&6
5758else
5759 echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
5761fi
5762
5763 AR=$ac_ct_AR
5764else
5765 AR="$ac_cv_prog_AR"
5766fi
5767
John Criswell7a73b802003-06-30 21:59:07 +00005768if test -n "$ac_tool_prefix"; then
5769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5770set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5771echo "$as_me:$LINENO: checking for $ac_word" >&5
5772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773if test "${ac_cv_prog_RANLIB+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
5776 if test -n "$RANLIB"; then
5777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790done
5791done
5792
5793fi
5794fi
5795RANLIB=$ac_cv_prog_RANLIB
5796if test -n "$RANLIB"; then
5797 echo "$as_me:$LINENO: result: $RANLIB" >&5
5798echo "${ECHO_T}$RANLIB" >&6
5799else
5800 echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802fi
5803
5804fi
5805if test -z "$ac_cv_prog_RANLIB"; then
5806 ac_ct_RANLIB=$RANLIB
5807 # Extract the first word of "ranlib", so it can be a program name with args.
5808set dummy ranlib; ac_word=$2
5809echo "$as_me:$LINENO: checking for $ac_word" >&5
5810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813else
5814 if test -n "$ac_ct_RANLIB"; then
5815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_ac_ct_RANLIB="ranlib"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828done
5829done
5830
5831 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5832fi
5833fi
5834ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5835if test -n "$ac_ct_RANLIB"; then
5836 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5837echo "${ECHO_T}$ac_ct_RANLIB" >&6
5838else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841fi
5842
5843 RANLIB=$ac_ct_RANLIB
5844else
5845 RANLIB="$ac_cv_prog_RANLIB"
5846fi
5847
5848if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5850set dummy ${ac_tool_prefix}strip; ac_word=$2
5851echo "$as_me:$LINENO: checking for $ac_word" >&5
5852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853if test "${ac_cv_prog_STRIP+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856 if test -n "$STRIP"; then
5857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870done
5871done
5872
5873fi
5874fi
5875STRIP=$ac_cv_prog_STRIP
5876if test -n "$STRIP"; then
5877 echo "$as_me:$LINENO: result: $STRIP" >&5
5878echo "${ECHO_T}$STRIP" >&6
5879else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882fi
5883
5884fi
5885if test -z "$ac_cv_prog_STRIP"; then
5886 ac_ct_STRIP=$STRIP
5887 # Extract the first word of "strip", so it can be a program name with args.
5888set dummy strip; ac_word=$2
5889echo "$as_me:$LINENO: checking for $ac_word" >&5
5890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894 if test -n "$ac_ct_STRIP"; then
5895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_STRIP="strip"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908done
5909done
5910
5911 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5912fi
5913fi
5914ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5915if test -n "$ac_ct_STRIP"; then
5916 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5917echo "${ECHO_T}$ac_ct_STRIP" >&6
5918else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921fi
5922
5923 STRIP=$ac_ct_STRIP
5924else
5925 STRIP="$ac_cv_prog_STRIP"
5926fi
5927
5928
John Criswell7a73b802003-06-30 21:59:07 +00005929old_CC="$CC"
5930old_CFLAGS="$CFLAGS"
5931
5932# Set sane defaults for various variables
5933test -z "$AR" && AR=ar
5934test -z "$AR_FLAGS" && AR_FLAGS=cru
5935test -z "$AS" && AS=as
5936test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005937test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005938test -z "$DLLTOOL" && DLLTOOL=dlltool
5939test -z "$LD" && LD=ld
5940test -z "$LN_S" && LN_S="ln -s"
5941test -z "$MAGIC_CMD" && MAGIC_CMD=file
5942test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005943test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005944test -z "$OBJDUMP" && OBJDUMP=objdump
5945test -z "$RANLIB" && RANLIB=:
5946test -z "$STRIP" && STRIP=:
5947test -z "$ac_objext" && ac_objext=o
5948
John Criswell7a73b802003-06-30 21:59:07 +00005949# Determine commands to create old-style static archives.
5950old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5951old_postinstall_cmds='chmod 644 $oldlib'
5952old_postuninstall_cmds=
5953
5954if test -n "$RANLIB"; then
5955 case $host_os in
5956 openbsd*)
5957 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5958 ;;
5959 *)
5960 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5961 ;;
5962 esac
5963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5964fi
5965
John Criswell47fdd832003-07-14 16:52:07 +00005966# Only perform the check for file, if the check method requires it
5967case $deplibs_check_method in
5968file_magic*)
5969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5970 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5971echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5972if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005974else
John Criswell47fdd832003-07-14 16:52:07 +00005975 case $MAGIC_CMD in
5976[\\/*] | ?:[\\/]*)
5977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5978 ;;
5979*)
5980 lt_save_MAGIC_CMD="$MAGIC_CMD"
5981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5983 for ac_dir in $ac_dummy; do
5984 IFS="$lt_save_ifs"
5985 test -z "$ac_dir" && ac_dir=.
5986 if test -f $ac_dir/${ac_tool_prefix}file; then
5987 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5988 if test -n "$file_magic_test_file"; then
5989 case $deplibs_check_method in
5990 "file_magic "*)
5991 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5994 $EGREP "$file_magic_regex" > /dev/null; then
5995 :
5996 else
5997 cat <<EOF 1>&2
5998
5999*** Warning: the command libtool uses to detect shared libraries,
6000*** $file_magic_cmd, produces output that libtool cannot recognize.
6001*** The result is that libtool may fail to recognize shared libraries
6002*** as such. This will affect the creation of libtool libraries that
6003*** depend on shared libraries, but programs linked with such libtool
6004*** libraries will work regardless of this problem. Nevertheless, you
6005*** may want to report the problem to your system manager and/or to
6006*** bug-libtool@gnu.org
6007
6008EOF
6009 fi ;;
6010 esac
6011 fi
6012 break
6013 fi
6014 done
6015 IFS="$lt_save_ifs"
6016 MAGIC_CMD="$lt_save_MAGIC_CMD"
6017 ;;
6018esac
John Criswell7a73b802003-06-30 21:59:07 +00006019fi
John Criswell7a73b802003-06-30 21:59:07 +00006020
John Criswell47fdd832003-07-14 16:52:07 +00006021MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6022if test -n "$MAGIC_CMD"; then
6023 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6024echo "${ECHO_T}$MAGIC_CMD" >&6
6025else
6026 echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6
6028fi
John Criswell7a73b802003-06-30 21:59:07 +00006029
John Criswell47fdd832003-07-14 16:52:07 +00006030if test -z "$lt_cv_path_MAGIC_CMD"; then
6031 if test -n "$ac_tool_prefix"; then
6032 echo "$as_me:$LINENO: checking for file" >&5
6033echo $ECHO_N "checking for file... $ECHO_C" >&6
6034if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037 case $MAGIC_CMD in
6038[\\/*] | ?:[\\/]*)
6039 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6040 ;;
6041*)
6042 lt_save_MAGIC_CMD="$MAGIC_CMD"
6043 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6044 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6045 for ac_dir in $ac_dummy; do
6046 IFS="$lt_save_ifs"
6047 test -z "$ac_dir" && ac_dir=.
6048 if test -f $ac_dir/file; then
6049 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6050 if test -n "$file_magic_test_file"; then
6051 case $deplibs_check_method in
6052 "file_magic "*)
6053 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6055 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6056 $EGREP "$file_magic_regex" > /dev/null; then
6057 :
6058 else
6059 cat <<EOF 1>&2
6060
6061*** Warning: the command libtool uses to detect shared libraries,
6062*** $file_magic_cmd, produces output that libtool cannot recognize.
6063*** The result is that libtool may fail to recognize shared libraries
6064*** as such. This will affect the creation of libtool libraries that
6065*** depend on shared libraries, but programs linked with such libtool
6066*** libraries will work regardless of this problem. Nevertheless, you
6067*** may want to report the problem to your system manager and/or to
6068*** bug-libtool@gnu.org
6069
6070EOF
6071 fi ;;
6072 esac
6073 fi
6074 break
6075 fi
6076 done
6077 IFS="$lt_save_ifs"
6078 MAGIC_CMD="$lt_save_MAGIC_CMD"
6079 ;;
6080esac
6081fi
6082
6083MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6084if test -n "$MAGIC_CMD"; then
6085 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6086echo "${ECHO_T}$MAGIC_CMD" >&6
6087else
6088 echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6
6090fi
6091
6092 else
6093 MAGIC_CMD=:
6094 fi
6095fi
6096
6097 fi
6098 ;;
6099esac
6100
6101enable_dlopen=no
6102enable_win32_dll=no
6103
6104# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6105if test "${enable_libtool_lock+set}" = set; then
6106 enableval="$enable_libtool_lock"
6107
6108fi;
6109test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6110
John Criswell7a73b802003-06-30 21:59:07 +00006111
6112# Check whether --with-pic or --without-pic was given.
6113if test "${with_pic+set}" = set; then
6114 withval="$with_pic"
6115 pic_mode="$withval"
6116else
6117 pic_mode=default
6118fi;
6119test -z "$pic_mode" && pic_mode=default
6120
John Criswell47fdd832003-07-14 16:52:07 +00006121# Use C for the default configuration in the libtool script
6122tagname=
6123lt_save_CC="$CC"
6124ac_ext=c
6125ac_cpp='$CPP $CPPFLAGS'
6126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129
6130
6131# Source file extension for C test sources.
6132ac_ext=c
6133
6134# Object file extension for compiled C test sources.
6135objext=o
6136objext=$objext
6137
6138# Code to be used in simple compile tests
6139lt_simple_compile_test_code="int some_variable = 0;\n"
6140
6141# Code to be used in simple link tests
6142lt_simple_link_test_code='int main(){return(0);}\n'
6143
6144
6145# If no C compiler was specified, use CC.
6146LTCC=${LTCC-"$CC"}
6147
6148# Allow CC to be a program name with arguments.
6149compiler=$CC
6150
6151
6152#
6153# Check for any special shared library compilation flags.
6154#
6155lt_prog_cc_shlib=
6156if test "$GCC" = no; then
6157 case $host_os in
6158 sco3.2v5*)
6159 lt_prog_cc_shlib='-belf'
6160 ;;
6161 esac
6162fi
6163if test -n "$lt_prog_cc_shlib"; then
6164 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6165echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6166 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6167 else
6168 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6169echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6170 lt_cv_prog_cc_can_build_shared=no
6171 fi
6172fi
6173
6174
6175#
6176# Check to make sure the static flag actually works.
6177#
6178echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6179echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6180if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
John Criswell47fdd832003-07-14 16:52:07 +00006183 lt_prog_compiler_static_works=no
6184 save_LDFLAGS="$LDFLAGS"
6185 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6186 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6188 # The compiler can only warn and ignore the option if not recognized
6189 # So say no if there are warnings
6190 if test -s conftest.err; then
6191 # Append any errors to the config.log.
6192 cat conftest.err 1>&5
6193 else
6194 lt_prog_compiler_static_works=yes
6195 fi
6196 fi
6197 $rm conftest*
6198 LDFLAGS="$save_LDFLAGS"
6199
6200fi
6201echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6202echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6203
6204if test x"$lt_prog_compiler_static_works" = xyes; then
6205 :
6206else
6207 lt_prog_compiler_static=
6208fi
6209
6210
6211
6212## CAVEAT EMPTOR:
6213## There is no encapsulation within the following macros, do not change
6214## the running order or otherwise move them around unless you know exactly
6215## what you are doing...
6216
6217lt_prog_compiler_no_builtin_flag=
6218
6219if test "$GCC" = yes; then
6220 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6221
6222 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6223echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6224if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227 lt_cv_prog_compiler_rtti_exceptions=no
6228 ac_outfile=conftest.$ac_objext
6229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6230 lt_compiler_flag="-fno-rtti -fno-exceptions"
6231 # Insert the option either (1) after the last *FLAGS variable, or
6232 # (2) before a word containing "conftest.", or (3) at the end.
6233 # Note that $ac_compile itself does not contain backslashes and begins
6234 # with a dollar sign (not a hyphen), so the echo should work correctly.
6235 # The option is referenced via a variable to avoid confusing sed.
6236 lt_compile=`echo "$ac_compile" | $SED \
6237 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6239 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +00006240 (eval echo "\"\$as_me:6240: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006241 (eval "$lt_compile" 2>conftest.err)
6242 ac_status=$?
6243 cat conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +00006244 echo "$as_me:6244: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006245 if (exit $ac_status) && test -s "$ac_outfile"; then
6246 # The compiler can only warn and ignore the option if not recognized
6247 # So say no if there are warnings
6248 if test ! -s conftest.err; then
6249 lt_cv_prog_compiler_rtti_exceptions=yes
6250 fi
6251 fi
6252 $rm conftest*
6253
6254fi
6255echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6256echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6257
6258if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6259 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6260else
6261 :
6262fi
6263
6264fi
6265
6266lt_prog_compiler_wl=
6267lt_prog_compiler_pic=
6268lt_prog_compiler_static=
6269
6270echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6271echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006272
6273 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006274 lt_prog_compiler_wl='-Wl,'
6275 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006276
6277 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006278 aix*)
6279 # All AIX code is PIC.
6280 if test "$host_cpu" = ia64; then
6281 # AIX 5 now supports IA64 processor
6282 lt_prog_compiler_static='-Bstatic'
6283 fi
John Criswell7a73b802003-06-30 21:59:07 +00006284 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006285
John Criswell7a73b802003-06-30 21:59:07 +00006286 amigaos*)
6287 # FIXME: we need at least 68020 code to build shared libraries, but
6288 # adding the `-m68020' flag to GCC prevents building anything better,
6289 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006290 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006291 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006292
6293 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006294 # PIC is the default for these OSes.
6295 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006296
6297 mingw* | pw32* | os2*)
6298 # This hack is so that the source file can tell whether it is being
6299 # built for inclusion in a dll (and should export symbols for example).
6300 lt_prog_compiler_pic='-DDLL_EXPORT'
6301 ;;
6302
John Criswell7a73b802003-06-30 21:59:07 +00006303 darwin* | rhapsody*)
6304 # PIC is the default on this platform
6305 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006306 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006307 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006308
6309 msdosdjgpp*)
6310 # Just because we use GCC doesn't mean we suddenly get shared libraries
6311 # on systems that don't support them.
6312 lt_prog_compiler_can_build_shared=no
6313 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006314 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006315
John Criswell7a73b802003-06-30 21:59:07 +00006316 sysv4*MP*)
6317 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006318 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006319 fi
6320 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006321
6322 hpux*)
6323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6324 # not for PA HP-UX.
6325 case "$host_cpu" in
6326 hppa*64*|ia64*)
6327 # +Z the default
6328 ;;
6329 *)
6330 lt_prog_compiler_pic='-fPIC'
6331 ;;
6332 esac
6333 ;;
6334
John Criswell7a73b802003-06-30 21:59:07 +00006335 *)
John Criswell47fdd832003-07-14 16:52:07 +00006336 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006337 ;;
6338 esac
6339 else
John Criswell47fdd832003-07-14 16:52:07 +00006340 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006341 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006342 aix*)
6343 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006344 if test "$host_cpu" = ia64; then
6345 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006346 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006347 else
John Criswell47fdd832003-07-14 16:52:07 +00006348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006349 fi
6350 ;;
6351
John Criswell47fdd832003-07-14 16:52:07 +00006352 mingw* | pw32* | os2*)
6353 # This hack is so that the source file can tell whether it is being
6354 # built for inclusion in a dll (and should export symbols for example).
6355 lt_prog_compiler_pic='-DDLL_EXPORT'
6356 ;;
6357
John Criswell7a73b802003-06-30 21:59:07 +00006358 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006359 lt_prog_compiler_wl='-Wl,'
6360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6361 # not for PA HP-UX.
6362 case "$host_cpu" in
6363 hppa*64*|ia64*)
6364 # +Z the default
6365 ;;
6366 *)
6367 lt_prog_compiler_pic='+Z'
6368 ;;
6369 esac
6370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6371 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006372 ;;
6373
John Criswell47fdd832003-07-14 16:52:07 +00006374 irix5* | irix6* | nonstopux*)
6375 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006376 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006377 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006378 ;;
6379
6380 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006381 lt_prog_compiler_pic='-KPIC'
6382 lt_prog_compiler_static='-Bstatic'
6383 ;;
6384
6385 linux*)
6386 case $CC in
6387 icc|ecc)
6388 lt_prog_compiler_wl='-Wl,'
6389 lt_prog_compiler_pic='-KPIC'
6390 lt_prog_compiler_static='-static'
6391 ;;
6392 ccc)
6393 lt_prog_compiler_wl='-Wl,'
6394 # All Alpha code is PIC.
6395 lt_prog_compiler_static='-non_shared'
6396 ;;
6397 esac
John Criswell7a73b802003-06-30 21:59:07 +00006398 ;;
6399
6400 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006401 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006402 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006403 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006404 ;;
6405
6406 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006407 lt_prog_compiler_pic='-Kpic'
6408 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006409 ;;
6410
6411 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006412 lt_prog_compiler_wl='-Wl,'
6413 lt_prog_compiler_pic='-KPIC'
6414 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006415 ;;
6416
6417 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006418 lt_prog_compiler_wl='-Qoption ld '
6419 lt_prog_compiler_pic='-PIC'
6420 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006421 ;;
6422
6423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006424 lt_prog_compiler_wl='-Wl,'
6425 lt_prog_compiler_pic='-KPIC'
6426 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006427 ;;
6428
6429 sysv4*MP*)
6430 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006431 lt_prog_compiler_pic='-Kconform_pic'
6432 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006433 fi
6434 ;;
6435
John Criswell47fdd832003-07-14 16:52:07 +00006436 uts4*)
6437 lt_prog_compiler_pic='-pic'
6438 lt_prog_compiler_static='-Bstatic'
6439 ;;
6440
John Criswell7a73b802003-06-30 21:59:07 +00006441 *)
John Criswell47fdd832003-07-14 16:52:07 +00006442 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006443 ;;
6444 esac
6445 fi
6446
John Criswell47fdd832003-07-14 16:52:07 +00006447echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6448echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006449
John Criswell47fdd832003-07-14 16:52:07 +00006450#
6451# Check to make sure the PIC flag actually works.
6452#
6453if test -n "$lt_prog_compiler_pic"; then
6454 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6455echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6456if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
John Criswell47fdd832003-07-14 16:52:07 +00006459 lt_prog_compiler_pic_works=no
6460 ac_outfile=conftest.$ac_objext
6461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6462 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6463 # Insert the option either (1) after the last *FLAGS variable, or
6464 # (2) before a word containing "conftest.", or (3) at the end.
6465 # Note that $ac_compile itself does not contain backslashes and begins
6466 # with a dollar sign (not a hyphen), so the echo should work correctly.
6467 # The option is referenced via a variable to avoid confusing sed.
6468 lt_compile=`echo "$ac_compile" | $SED \
6469 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6471 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +00006472 (eval echo "\"\$as_me:6472: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006473 (eval "$lt_compile" 2>conftest.err)
6474 ac_status=$?
6475 cat conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +00006476 echo "$as_me:6476: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006477 if (exit $ac_status) && test -s "$ac_outfile"; then
6478 # The compiler can only warn and ignore the option if not recognized
6479 # So say no if there are warnings
6480 if test ! -s conftest.err; then
6481 lt_prog_compiler_pic_works=yes
6482 fi
6483 fi
6484 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006485
John Criswell47fdd832003-07-14 16:52:07 +00006486fi
6487echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6488echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006489
John Criswell47fdd832003-07-14 16:52:07 +00006490if test x"$lt_prog_compiler_pic_works" = xyes; then
6491 case $lt_prog_compiler_pic in
6492 "" | " "*) ;;
6493 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6494 esac
John Criswell7a73b802003-06-30 21:59:07 +00006495else
John Criswell47fdd832003-07-14 16:52:07 +00006496 lt_prog_compiler_pic=
6497 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006498fi
6499
John Criswell7a73b802003-06-30 21:59:07 +00006500fi
John Criswell47fdd832003-07-14 16:52:07 +00006501case "$host_os" in
6502 # For platforms which do not support PIC, -DPIC is meaningless:
6503 *djgpp*)
6504 lt_prog_compiler_pic=
6505 ;;
6506 *)
6507 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6508 ;;
6509esac
John Criswell7a73b802003-06-30 21:59:07 +00006510
John Criswell7a73b802003-06-30 21:59:07 +00006511echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6512echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006513if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515else
John Criswell47fdd832003-07-14 16:52:07 +00006516 lt_cv_prog_compiler_c_o=no
6517 $rm -r conftest 2>/dev/null
6518 mkdir conftest
6519 cd conftest
6520 mkdir out
6521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006522
John Criswell47fdd832003-07-14 16:52:07 +00006523 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6524 # that will create temporary files in the current directory regardless of
6525 # the output directory. Thus, making CWD read-only will cause this test
6526 # to fail, enabling locking or at least warning the user not to do parallel
6527 # builds.
6528 chmod -w .
6529
6530 lt_compiler_flag="-o out/conftest2.$ac_objext"
6531 # Insert the option either (1) after the last *FLAGS variable, or
6532 # (2) before a word containing "conftest.", or (3) at the end.
6533 # Note that $ac_compile itself does not contain backslashes and begins
6534 # with a dollar sign (not a hyphen), so the echo should work correctly.
6535 lt_compile=`echo "$ac_compile" | $SED \
6536 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6538 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +00006539 (eval echo "\"\$as_me:6539: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006540 (eval "$lt_compile" 2>out/conftest.err)
6541 ac_status=$?
6542 cat out/conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +00006543 echo "$as_me:6543: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6545 then
6546 # The compiler can only warn and ignore the option if not recognized
6547 # So say no if there are warnings
6548 if test ! -s out/conftest.err; then
6549 lt_cv_prog_compiler_c_o=yes
6550 fi
6551 fi
6552 chmod u+w .
6553 $rm conftest* out/*
6554 rmdir out
6555 cd ..
6556 rmdir conftest
6557 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006558
6559fi
John Criswell47fdd832003-07-14 16:52:07 +00006560echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6561echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006562
John Criswell7a73b802003-06-30 21:59:07 +00006563
John Criswell7a73b802003-06-30 21:59:07 +00006564hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006565if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006566 # do not overwrite the value of need_locks provided by the user
6567 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6568echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6569 hard_links=yes
6570 $rm conftest*
6571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6572 touch conftest.a
6573 ln conftest.a conftest.b 2>&5 || hard_links=no
6574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6575 echo "$as_me:$LINENO: result: $hard_links" >&5
6576echo "${ECHO_T}$hard_links" >&6
6577 if test "$hard_links" = no; then
6578 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6579echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6580 need_locks=warn
6581 fi
6582else
6583 need_locks=no
6584fi
John Criswell7a73b802003-06-30 21:59:07 +00006585
John Criswell47fdd832003-07-14 16:52:07 +00006586echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6587echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6588
6589 runpath_var=
6590 allow_undefined_flag=
6591 enable_shared_with_static_runtimes=no
6592 archive_cmds=
6593 archive_expsym_cmds=
6594 old_archive_From_new_cmds=
6595 old_archive_from_expsyms_cmds=
6596 export_dynamic_flag_spec=
6597 whole_archive_flag_spec=
6598 thread_safe_flag_spec=
6599 hardcode_libdir_flag_spec=
6600 hardcode_libdir_flag_spec_ld=
6601 hardcode_libdir_separator=
6602 hardcode_direct=no
6603 hardcode_minus_L=no
6604 hardcode_shlibpath_var=unsupported
6605 link_all_deplibs=unknown
6606 hardcode_automatic=no
6607 module_cmds=
6608 module_expsym_cmds=
6609 always_export_symbols=no
6610 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6611 # include_expsyms should be a list of space-separated symbols to be *always*
6612 # included in the symbol list
6613 include_expsyms=
6614 # exclude_expsyms can be an extended regexp of symbols to exclude
6615 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6616 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6617 # as well as any symbol that contains `d'.
6618 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6620 # platforms (ab)use it in PIC code, but their linkers get confused if
6621 # the symbol is explicitly referenced. Since portable code cannot
6622 # rely on this symbol name, it's probably fine to never include it in
6623 # preloaded symbol tables.
6624 extract_expsyms_cmds=
6625
6626 case $host_os in
6627 cygwin* | mingw* | pw32*)
6628 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6629 # When not using gcc, we currently assume that we are using
6630 # Microsoft Visual C++.
6631 if test "$GCC" != yes; then
6632 with_gnu_ld=no
6633 fi
6634 ;;
6635 openbsd*)
6636 with_gnu_ld=no
6637 ;;
6638 esac
6639
6640 ld_shlibs=yes
6641 if test "$with_gnu_ld" = yes; then
6642 # If archive_cmds runs LD, not CC, wlarc should be empty
6643 wlarc='${wl}'
6644
6645 # See if GNU ld supports shared libraries.
6646 case $host_os in
6647 aix3* | aix4* | aix5*)
6648 # On AIX/PPC, the GNU linker is very broken
6649 if test "$host_cpu" != ia64; then
6650 ld_shlibs=no
6651 cat <<EOF 1>&2
6652
6653*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6654*** to be unable to reliably create shared libraries on AIX.
6655*** Therefore, libtool is disabling shared libraries support. If you
6656*** really care for shared libraries, you may want to modify your PATH
6657*** so that a non-GNU linker is found, and then restart.
6658
6659EOF
6660 fi
6661 ;;
6662
6663 amigaos*)
6664 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)'
6665 hardcode_libdir_flag_spec='-L$libdir'
6666 hardcode_minus_L=yes
6667
6668 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6669 # that the semantics of dynamic libraries on AmigaOS, at least up
6670 # to version 4, is to share data among multiple programs linked
6671 # with the same dynamic library. Since this doesn't match the
6672 # behavior of shared libraries on other platforms, we can't use
6673 # them.
6674 ld_shlibs=no
6675 ;;
6676
6677 beos*)
6678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6679 allow_undefined_flag=unsupported
6680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6681 # support --undefined. This deserves some investigation. FIXME
6682 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6683 else
6684 ld_shlibs=no
6685 fi
6686 ;;
6687
6688 cygwin* | mingw* | pw32*)
6689 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6690 # as there is no search path for DLLs.
6691 hardcode_libdir_flag_spec='-L$libdir'
6692 allow_undefined_flag=unsupported
6693 always_export_symbols=no
6694 enable_shared_with_static_runtimes=yes
6695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6696
6697 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6699 # If the export-symbols file already is a .def file (1st line
6700 # is EXPORTS), use it as is; otherwise, prepend...
6701 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6702 cp $export_symbols $output_objdir/$soname.def;
6703 else
6704 echo EXPORTS > $output_objdir/$soname.def;
6705 cat $export_symbols >> $output_objdir/$soname.def;
6706 fi~
6707 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6708 else
6709 ld_shlibs=no
6710 fi
6711 ;;
6712
6713 netbsd*)
6714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6715 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6716 wlarc=
6717 else
6718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6720 fi
6721 ;;
6722
6723 solaris* | sysv5*)
6724 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6725 ld_shlibs=no
6726 cat <<EOF 1>&2
6727
6728*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6729*** create shared libraries on Solaris systems. Therefore, libtool
6730*** is disabling shared libraries support. We urge you to upgrade GNU
6731*** binutils to release 2.9.1 or newer. Another option is to modify
6732*** your PATH or compiler configuration so that the native linker is
6733*** used, and then restart.
6734
6735EOF
6736 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6739 else
6740 ld_shlibs=no
6741 fi
6742 ;;
6743
6744 sunos4*)
6745 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6746 wlarc=
6747 hardcode_direct=yes
6748 hardcode_shlibpath_var=no
6749 ;;
6750
6751 *)
6752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6755 else
6756 ld_shlibs=no
6757 fi
6758 ;;
6759 esac
6760
6761 if test "$ld_shlibs" = yes; then
6762 runpath_var=LD_RUN_PATH
6763 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6764 export_dynamic_flag_spec='${wl}--export-dynamic'
6765 # ancient GNU ld didn't support --whole-archive et. al.
6766 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6767 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6768 else
6769 whole_archive_flag_spec=
6770 fi
6771 fi
6772 else
6773 # PORTME fill in a description of your system's linker (not GNU ld)
6774 case $host_os in
6775 aix3*)
6776 allow_undefined_flag=unsupported
6777 always_export_symbols=yes
6778 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'
6779 # Note: this linker hardcodes the directories in LIBPATH if there
6780 # are no directories specified by -L.
6781 hardcode_minus_L=yes
6782 if test "$GCC" = yes && test -z "$link_static_flag"; then
6783 # Neither direct hardcoding nor static linking is supported with a
6784 # broken collect2.
6785 hardcode_direct=unsupported
6786 fi
6787 ;;
6788
6789 aix4* | aix5*)
6790 if test "$host_cpu" = ia64; then
6791 # On IA64, the linker does run time linking by default, so we don't
6792 # have to do anything special.
6793 aix_use_runtimelinking=no
6794 exp_sym_flag='-Bexport'
6795 no_entry_flag=""
6796 else
6797 # If we're using GNU nm, then we don't want the "-C" option.
6798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6799 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6800 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'
6801 else
6802 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'
6803 fi
6804 aix_use_runtimelinking=no
6805
6806 # Test if we are trying to use run time linking or normal
6807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6808 # need to do runtime linking.
6809 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6810 for ld_flag in $LDFLAGS; do
6811 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6812 aix_use_runtimelinking=yes
6813 break
6814 fi
6815 done
6816 esac
6817
6818 exp_sym_flag='-bexport'
6819 no_entry_flag='-bnoentry'
6820 fi
6821
6822 # When large executables or shared objects are built, AIX ld can
6823 # have problems creating the table of contents. If linking a library
6824 # or program results in "error TOC overflow" add -mminimal-toc to
6825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6827
6828 archive_cmds=''
6829 hardcode_direct=yes
6830 hardcode_libdir_separator=':'
6831 link_all_deplibs=yes
6832
6833 if test "$GCC" = yes; then
6834 case $host_os in aix4.012|aix4.012.*)
6835 # We only want to do this on AIX 4.2 and lower, the check
6836 # below for broken collect2 doesn't work under 4.3+
6837 collect2name=`${CC} -print-prog-name=collect2`
6838 if test -f "$collect2name" && \
6839 strings "$collect2name" | grep resolve_lib_name >/dev/null
6840 then
6841 # We have reworked collect2
6842 hardcode_direct=yes
6843 else
6844 # We have old collect2
6845 hardcode_direct=unsupported
6846 # It fails to find uninstalled libraries when the uninstalled
6847 # path is not listed in the libpath. Setting hardcode_minus_L
6848 # to unsupported forces relinking
6849 hardcode_minus_L=yes
6850 hardcode_libdir_flag_spec='-L$libdir'
6851 hardcode_libdir_separator=
6852 fi
6853 esac
6854 shared_flag='-shared'
6855 else
6856 # not using gcc
6857 if test "$host_cpu" = ia64; then
6858 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6859 # chokes on -Wl,-G. The following line is correct:
6860 shared_flag='-G'
6861 else
6862 if test "$aix_use_runtimelinking" = yes; then
6863 shared_flag='${wl}-G'
6864 else
6865 shared_flag='${wl}-bM:SRE'
6866 fi
6867 fi
6868 fi
6869
6870 # It seems that -bexpall does not export symbols beginning with
6871 # underscore (_), so it is better to generate a list of symbols to export.
6872 always_export_symbols=yes
6873 if test "$aix_use_runtimelinking" = yes; then
6874 # Warning - without using the other runtime loading flags (-brtl),
6875 # -berok will link without error, but may produce a broken library.
6876 allow_undefined_flag='-berok'
6877 # Determine the default libpath from the value encoded in an empty executable.
6878 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006879#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006885
John Criswell7a73b802003-06-30 21:59:07 +00006886int
6887main ()
6888{
John Criswell47fdd832003-07-14 16:52:07 +00006889
John Criswell7a73b802003-06-30 21:59:07 +00006890 ;
6891 return 0;
6892}
6893_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006894rm -f conftest.$ac_objext conftest$ac_exeext
6895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006900 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006906
John Criswell47fdd832003-07-14 16:52:07 +00006907aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6908}'`
6909# Check for a 64-bit object if we didn't find anything.
6910if 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; }
6911}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006912else
6913 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006914sed 's/^/| /' conftest.$ac_ext >&5
6915
John Criswell7a73b802003-06-30 21:59:07 +00006916fi
John Criswell47fdd832003-07-14 16:52:07 +00006917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6918if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006919
John Criswell47fdd832003-07-14 16:52:07 +00006920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6921 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"
6922 else
6923 if test "$host_cpu" = ia64; then
6924 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6925 allow_undefined_flag="-z nodefs"
6926 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"
6927 else
6928 # Determine the default libpath from the value encoded in an empty executable.
6929 cat >conftest.$ac_ext <<_ACEOF
6930#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006931/* confdefs.h. */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006936
John Criswell47fdd832003-07-14 16:52:07 +00006937int
6938main ()
6939{
John Criswell7a73b802003-06-30 21:59:07 +00006940
John Criswell47fdd832003-07-14 16:52:07 +00006941 ;
6942 return 0;
6943}
6944_ACEOF
6945rm -f conftest.$ac_objext conftest$ac_exeext
6946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -s conftest$ac_exeext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006957
John Criswell47fdd832003-07-14 16:52:07 +00006958aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6959}'`
6960# Check for a 64-bit object if we didn't find anything.
6961if 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; }
6962}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006963else
John Criswell47fdd832003-07-14 16:52:07 +00006964 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006965sed 's/^/| /' conftest.$ac_ext >&5
6966
John Criswell47fdd832003-07-14 16:52:07 +00006967fi
6968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6969if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006970
John Criswell47fdd832003-07-14 16:52:07 +00006971 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6972 # Warning - without using the other run time loading flags,
6973 # -berok will link without error, but may produce a broken library.
6974 no_undefined_flag=' ${wl}-bernotok'
6975 allow_undefined_flag=' ${wl}-berok'
6976 # -bexpall does not export symbols beginning with underscore (_)
6977 always_export_symbols=yes
6978 # Exported symbols can be pulled into shared objects from archives
6979 whole_archive_flag_spec=' '
6980 archive_cmds_need_lc=yes
6981 # This is similar to how AIX traditionally builds it's shared libraries.
6982 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 +00006983 fi
6984 fi
John Criswell7a73b802003-06-30 21:59:07 +00006985 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006986
6987 amigaos*)
6988 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)'
6989 hardcode_libdir_flag_spec='-L$libdir'
6990 hardcode_minus_L=yes
6991 # see comment about different semantics on the GNU ld section
6992 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006993 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006994
John Criswell47fdd832003-07-14 16:52:07 +00006995 bsdi4*)
6996 export_dynamic_flag_spec=-rdynamic
6997 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006998
John Criswell47fdd832003-07-14 16:52:07 +00006999 cygwin* | mingw* | pw32*)
7000 # When not using gcc, we currently assume that we are using
7001 # Microsoft Visual C++.
7002 # hardcode_libdir_flag_spec is actually meaningless, as there is
7003 # no search path for DLLs.
7004 hardcode_libdir_flag_spec=' '
7005 allow_undefined_flag=unsupported
7006 # Tell ltmain to make .lib files, not .a files.
7007 libext=lib
7008 # Tell ltmain to make .dll files, not .so files.
7009 shrext=".dll"
7010 # FIXME: Setting linknames here is a bad hack.
7011 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7012 # The linker will automatically build a .lib file if we build a DLL.
7013 old_archive_From_new_cmds='true'
7014 # FIXME: Should let the user specify the lib program.
7015 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7016 fix_srcfile_path='`cygpath -w "$srcfile"`'
7017 enable_shared_with_static_runtimes=yes
7018 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007019
John Criswell47fdd832003-07-14 16:52:07 +00007020 darwin* | rhapsody*)
7021 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7022 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007023 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007024 rhapsody* | darwin1.[012])
7025 allow_undefined_flag='-undefined suppress'
7026 ;;
7027 *) # Darwin 1.3 on
7028 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007029 ;;
7030 esac
John Criswell47fdd832003-07-14 16:52:07 +00007031 # FIXME: Relying on posixy $() will cause problems for
7032 # cross-compilation, but unfortunately the echo tests do not
7033 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7034 # `"' quotes if we put them in here... so don't!
7035 lt_int_apple_cc_single_mod=no
7036 output_verbose_link_cmd='echo'
7037 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7038 lt_int_apple_cc_single_mod=yes
7039 fi
7040 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7041 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7042 else
7043 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'
7044 fi
7045 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7047 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7048 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}'
7049 else
7050 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}'
7051 fi
7052 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}'
7053 hardcode_direct=no
7054 hardcode_automatic=yes
7055 hardcode_shlibpath_var=unsupported
7056 whole_archive_flag_spec='-all_load $convenience'
7057 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007058 fi
John Criswell47fdd832003-07-14 16:52:07 +00007059 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007060
John Criswell47fdd832003-07-14 16:52:07 +00007061 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007063 hardcode_libdir_flag_spec='-L$libdir'
7064 hardcode_shlibpath_var=no
7065 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007066
John Criswell47fdd832003-07-14 16:52:07 +00007067 freebsd1*)
7068 ld_shlibs=no
7069 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007070
John Criswell47fdd832003-07-14 16:52:07 +00007071 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7072 # support. Future versions do this automatically, but an explicit c++rt0.o
7073 # does not break anything, and helps significantly (at the cost of a little
7074 # extra space).
7075 freebsd2.2*)
7076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7077 hardcode_libdir_flag_spec='-R$libdir'
7078 hardcode_direct=yes
7079 hardcode_shlibpath_var=no
7080 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007081
John Criswell47fdd832003-07-14 16:52:07 +00007082 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7083 freebsd2*)
7084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7085 hardcode_direct=yes
7086 hardcode_minus_L=yes
7087 hardcode_shlibpath_var=no
7088 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007089
John Criswell47fdd832003-07-14 16:52:07 +00007090 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7091 freebsd*)
7092 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7093 hardcode_libdir_flag_spec='-R$libdir'
7094 hardcode_direct=yes
7095 hardcode_shlibpath_var=no
7096 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007097
John Criswell47fdd832003-07-14 16:52:07 +00007098 hpux9*)
7099 if test "$GCC" = yes; then
7100 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'
7101 else
7102 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'
7103 fi
7104 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7105 hardcode_libdir_separator=:
7106 hardcode_direct=yes
7107
7108 # hardcode_minus_L: Not really in the search PATH,
7109 # but as the default location of the library.
7110 hardcode_minus_L=yes
7111 export_dynamic_flag_spec='${wl}-E'
7112 ;;
7113
7114 hpux10* | hpux11*)
7115 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7116 case "$host_cpu" in
7117 hppa*64*|ia64*)
7118 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7119 ;;
7120 *)
7121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7122 ;;
7123 esac
7124 else
7125 case "$host_cpu" in
7126 hppa*64*|ia64*)
7127 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7128 ;;
7129 *)
7130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7131 ;;
7132 esac
7133 fi
7134 if test "$with_gnu_ld" = no; then
7135 case "$host_cpu" in
7136 hppa*64*)
7137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7138 hardcode_libdir_flag_spec_ld='+b $libdir'
7139 hardcode_libdir_separator=:
7140 hardcode_direct=no
7141 hardcode_shlibpath_var=no
7142 ;;
7143 ia64*)
7144 hardcode_libdir_flag_spec='-L$libdir'
7145 hardcode_direct=no
7146 hardcode_shlibpath_var=no
7147
7148 # hardcode_minus_L: Not really in the search PATH,
7149 # but as the default location of the library.
7150 hardcode_minus_L=yes
7151 ;;
7152 *)
7153 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7154 hardcode_libdir_separator=:
7155 hardcode_direct=yes
7156 export_dynamic_flag_spec='${wl}-E'
7157
7158 # hardcode_minus_L: Not really in the search PATH,
7159 # but as the default location of the library.
7160 hardcode_minus_L=yes
7161 ;;
7162 esac
7163 fi
7164 ;;
7165
7166 irix5* | irix6* | nonstopux*)
7167 if test "$GCC" = yes; then
7168 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'
7169 else
7170 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'
7171 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7172 fi
7173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7174 hardcode_libdir_separator=:
7175 link_all_deplibs=yes
7176 ;;
7177
7178 netbsd*)
7179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7181 else
7182 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7183 fi
7184 hardcode_libdir_flag_spec='-R$libdir'
7185 hardcode_direct=yes
7186 hardcode_shlibpath_var=no
7187 ;;
7188
7189 newsos6)
7190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7191 hardcode_direct=yes
7192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7193 hardcode_libdir_separator=:
7194 hardcode_shlibpath_var=no
7195 ;;
7196
7197 openbsd*)
7198 hardcode_direct=yes
7199 hardcode_shlibpath_var=no
7200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7203 export_dynamic_flag_spec='${wl}-E'
7204 else
7205 case $host_os in
7206 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7208 hardcode_libdir_flag_spec='-R$libdir'
7209 ;;
7210 *)
7211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7212 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7213 ;;
7214 esac
7215 fi
7216 ;;
7217
7218 os2*)
7219 hardcode_libdir_flag_spec='-L$libdir'
7220 hardcode_minus_L=yes
7221 allow_undefined_flag=unsupported
7222 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'
7223 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7224 ;;
7225
7226 osf3*)
7227 if test "$GCC" = yes; then
7228 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7229 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'
7230 else
7231 allow_undefined_flag=' -expect_unresolved \*'
7232 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'
7233 fi
7234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7235 hardcode_libdir_separator=:
7236 ;;
7237
7238 osf4* | osf5*) # as osf3* with the addition of -msym flag
7239 if test "$GCC" = yes; then
7240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7241 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'
7242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7243 else
7244 allow_undefined_flag=' -expect_unresolved \*'
7245 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'
7246 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7247 $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'
7248
7249 # Both c and cxx compiler support -rpath directly
7250 hardcode_libdir_flag_spec='-rpath $libdir'
7251 fi
7252 hardcode_libdir_separator=:
7253 ;;
7254
7255 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007258 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007259 runpath_var=LD_RUN_PATH
7260 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007261 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007262
John Criswell47fdd832003-07-14 16:52:07 +00007263 solaris*)
7264 no_undefined_flag=' -z text'
7265 if test "$GCC" = yes; then
7266 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7267 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7268 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7269 else
7270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7273 fi
7274 hardcode_libdir_flag_spec='-R$libdir'
7275 hardcode_shlibpath_var=no
7276 case $host_os in
7277 solaris2.[0-5] | solaris2.[0-5].*) ;;
7278 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7279 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7280 esac
7281 link_all_deplibs=yes
7282 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007283
John Criswell47fdd832003-07-14 16:52:07 +00007284 sunos4*)
7285 if test "x$host_vendor" = xsequent; then
7286 # Use $CC to link under sequent, because it throws in some extra .o
7287 # files that make .init and .fini sections work.
7288 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7289 else
7290 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7291 fi
7292 hardcode_libdir_flag_spec='-L$libdir'
7293 hardcode_direct=yes
7294 hardcode_minus_L=yes
7295 hardcode_shlibpath_var=no
7296 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007297
John Criswell47fdd832003-07-14 16:52:07 +00007298 sysv4)
7299 case $host_vendor in
7300 sni)
7301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7302 hardcode_direct=yes # is this really true???
7303 ;;
7304 siemens)
7305 ## LD is ld it makes a PLAMLIB
7306 ## CC just makes a GrossModule.
7307 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7308 reload_cmds='$CC -r -o $output$reload_objs'
7309 hardcode_direct=no
7310 ;;
7311 motorola)
7312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7314 ;;
7315 esac
7316 runpath_var='LD_RUN_PATH'
7317 hardcode_shlibpath_var=no
7318 ;;
7319
7320 sysv4.3*)
7321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7322 hardcode_shlibpath_var=no
7323 export_dynamic_flag_spec='-Bexport'
7324 ;;
7325
7326 sysv4*MP*)
7327 if test -d /usr/nec; then
7328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329 hardcode_shlibpath_var=no
7330 runpath_var=LD_RUN_PATH
7331 hardcode_runpath_var=yes
7332 ld_shlibs=yes
7333 fi
7334 ;;
7335
7336 sysv4.2uw2*)
7337 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7338 hardcode_direct=yes
7339 hardcode_minus_L=no
7340 hardcode_shlibpath_var=no
7341 hardcode_runpath_var=yes
7342 runpath_var=LD_RUN_PATH
7343 ;;
7344
7345 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7346 no_undefined_flag='${wl}-z ${wl}text'
7347 if test "$GCC" = yes; then
7348 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7349 else
7350 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7351 fi
7352 runpath_var='LD_RUN_PATH'
7353 hardcode_shlibpath_var=no
7354 ;;
7355
7356 sysv5*)
7357 no_undefined_flag=' -z text'
7358 # $CC -shared without GNU ld will not create a library from C++
7359 # object files and a static libstdc++, better avoid it by now
7360 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7361 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7362 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7363 hardcode_libdir_flag_spec=
7364 hardcode_shlibpath_var=no
7365 runpath_var='LD_RUN_PATH'
7366 ;;
7367
7368 uts4*)
7369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7370 hardcode_libdir_flag_spec='-L$libdir'
7371 hardcode_shlibpath_var=no
7372 ;;
7373
7374 *)
7375 ld_shlibs=no
7376 ;;
7377 esac
7378 fi
7379
John Criswell7a73b802003-06-30 21:59:07 +00007380echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7381echo "${ECHO_T}$ld_shlibs" >&6
7382test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007383
John Criswell47fdd832003-07-14 16:52:07 +00007384variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7385if test "$GCC" = yes; then
7386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7387fi
7388
7389#
7390# Do we need to explicitly link libc?
7391#
7392case "x$archive_cmds_need_lc" in
7393x|xyes)
7394 # Assume -lc should be added
7395 archive_cmds_need_lc=yes
7396
7397 if test "$enable_shared" = yes && test "$GCC" = yes; then
7398 case $archive_cmds in
7399 *'~'*)
7400 # FIXME: we may have to deal with multi-command sequences.
7401 ;;
7402 '$CC '*)
7403 # Test whether the compiler implicitly links with -lc since on some
7404 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7405 # to ld, don't add -lc before -lgcc.
7406 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7407echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7408 $rm conftest*
7409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7410
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412 (eval $ac_compile) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } 2>conftest.err; then
7416 soname=conftest
7417 lib=conftest
7418 libobjs=conftest.$ac_objext
7419 deplibs=
7420 wl=$lt_prog_compiler_wl
7421 compiler_flags=-v
7422 linker_flags=-v
7423 verstring=
7424 output_objdir=.
7425 libname=conftest
7426 lt_save_allow_undefined_flag=$allow_undefined_flag
7427 allow_undefined_flag=
7428 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7429 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }
7433 then
7434 archive_cmds_need_lc=no
7435 else
7436 archive_cmds_need_lc=yes
7437 fi
7438 allow_undefined_flag=$lt_save_allow_undefined_flag
7439 else
7440 cat conftest.err 1>&5
7441 fi
7442 $rm conftest*
7443 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7444echo "${ECHO_T}$archive_cmds_need_lc" >&6
7445 ;;
7446 esac
7447 fi
7448 ;;
7449esac
7450
John Criswell7a73b802003-06-30 21:59:07 +00007451echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7452echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7453hardcode_action=
7454if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007455 test -n "$runpath_var " || \
7456 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007457
7458 # We can hardcode non-existant directories.
7459 if test "$hardcode_direct" != no &&
7460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7461 # have to relink, otherwise we might link with an installed library
7462 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007463 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007464 test "$hardcode_minus_L" != no; then
7465 # Linking always hardcodes the temporary library directory.
7466 hardcode_action=relink
7467 else
7468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7469 hardcode_action=immediate
7470 fi
7471else
7472 # We cannot hardcode anything, or else we can only hardcode existing
7473 # directories.
7474 hardcode_action=unsupported
7475fi
7476echo "$as_me:$LINENO: result: $hardcode_action" >&5
7477echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007478
John Criswell47fdd832003-07-14 16:52:07 +00007479if test "$hardcode_action" = relink; then
7480 # Fast installation is not supported
7481 enable_fast_install=no
7482elif test "$shlibpath_overrides_runpath" = yes ||
7483 test "$enable_shared" = no; then
7484 # Fast installation is not necessary
7485 enable_fast_install=needless
7486fi
7487
John Criswell7a73b802003-06-30 21:59:07 +00007488striplib=
7489old_striplib=
7490echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7491echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7492if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7493 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7494 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7495 echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6
7497else
John Criswell47fdd832003-07-14 16:52:07 +00007498# FIXME - insert some real tests, host_os isn't really good enough
7499 case $host_os in
7500 darwin*)
7501 if test -n "$STRIP" ; then
7502 striplib="$STRIP -x"
7503 echo "$as_me:$LINENO: result: yes" >&5
7504echo "${ECHO_T}yes" >&6
7505 else
John Criswell7a73b802003-06-30 21:59:07 +00007506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508fi
John Criswell47fdd832003-07-14 16:52:07 +00007509 ;;
7510 *)
7511 echo "$as_me:$LINENO: result: no" >&5
7512echo "${ECHO_T}no" >&6
7513 ;;
7514 esac
7515fi
John Criswell7a73b802003-06-30 21:59:07 +00007516
John Criswell7a73b802003-06-30 21:59:07 +00007517echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7518echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7519library_names_spec=
7520libname_spec='lib$name'
7521soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007522shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007523postinstall_cmds=
7524postuninstall_cmds=
7525finish_cmds=
7526finish_eval=
7527shlibpath_var=
7528shlibpath_overrides_runpath=unknown
7529version_type=none
7530dynamic_linker="$host_os ld.so"
7531sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007532if test "$GCC" = yes; then
7533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7534 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7535 # if the path contains ";" then we assume it to be the separator
7536 # otherwise default to the standard path separator (i.e. ":") - it is
7537 # assumed that no part of a normal pathname contains ";" but that should
7538 # okay in the real world where ";" in dirpaths is itself problematic.
7539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7540 else
7541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7542 fi
7543else
7544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7545fi
7546need_lib_prefix=unknown
7547hardcode_into_libs=no
7548
7549# when you set need_version to no, make sure it does not cause -set_version
7550# flags to be left without arguments
7551need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007552
7553case $host_os in
7554aix3*)
7555 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007557 shlibpath_var=LIBPATH
7558
John Criswell47fdd832003-07-14 16:52:07 +00007559 # AIX 3 has no versioning support, so we append a major version to the name.
7560 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007561 ;;
7562
7563aix4* | aix5*)
7564 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007565 need_lib_prefix=no
7566 need_version=no
7567 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007568 if test "$host_cpu" = ia64; then
7569 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007571 shlibpath_var=LD_LIBRARY_PATH
7572 else
7573 # With GCC up to 2.95.x, collect2 would create an import file
7574 # for dependence libraries. The import file would start with
7575 # the line `#! .'. This would cause the generated library to
7576 # depend on `.', always an invalid library. This was fixed in
7577 # development snapshots of GCC prior to 3.0.
7578 case $host_os in
7579 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7581 echo ' yes '
7582 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7583 :
7584 else
7585 can_build_shared=no
7586 fi
7587 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007588 esac
John Criswell47fdd832003-07-14 16:52:07 +00007589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7590 # soname into executable. Probably we can add versioning support to
7591 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007592 if test "$aix_use_runtimelinking" = yes; then
7593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7594 # instead of lib<name>.a to let people know that these are not
7595 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007597 else
7598 # We preserve .a as extension for shared libraries through AIX4.2
7599 # and later when we are not doing run time linking.
7600 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007601 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007602 fi
7603 shlibpath_var=LIBPATH
7604 fi
7605 ;;
7606
7607amigaos*)
7608 library_names_spec='$libname.ixlibrary $libname.a'
7609 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7610 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'
7611 ;;
7612
7613beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007614 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007615 dynamic_linker="$host_os ld.so"
7616 shlibpath_var=LIBRARY_PATH
7617 ;;
7618
7619bsdi4*)
7620 version_type=linux
7621 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7623 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7625 shlibpath_var=LD_LIBRARY_PATH
7626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007628 # the default ld.so.conf also contains /usr/contrib/lib and
7629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7630 # libtool to hard-code these into programs
7631 ;;
7632
7633cygwin* | mingw* | pw32*)
7634 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007635 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007636 need_version=no
7637 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007638
John Criswell7a73b802003-06-30 21:59:07 +00007639 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007640 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007641 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7643 postinstall_cmds='base_file=`basename \${file}`~
7644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007645 dldir=$destdir/`dirname \$dlpath`~
7646 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007647 $install_prog $dir/$dlname \$dldir/$dlname'
7648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007649 dlpath=$dir/\$dldll~
7650 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007651 shlibpath_overrides_runpath=yes
7652
7653 case $host_os in
7654 cygwin*)
7655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7657 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7658 ;;
7659 mingw*)
7660 # MinGW DLLs use traditional 'lib' prefix
7661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7663 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7664 # It is most probably a Windows format PATH printed by
7665 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7666 # path with ; separators, and with drive letters. We can handle the
7667 # drive letters (cygwin fileutils understands them), so leave them,
7668 # especially as we might pass files found there to a mingw objdump,
7669 # which wouldn't understand a cygwinified path. Ahh.
7670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7671 else
7672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7673 fi
7674 ;;
7675 pw32*)
7676 # pw32 DLLs use 'pw' prefix rather than 'lib'
7677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7678 ;;
7679 esac
John Criswell7a73b802003-06-30 21:59:07 +00007680 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007681
John Criswell7a73b802003-06-30 21:59:07 +00007682 *)
John Criswell47fdd832003-07-14 16:52:07 +00007683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007684 ;;
7685 esac
7686 dynamic_linker='Win32 ld.exe'
7687 # FIXME: first we should search . and the directory the executable is in
7688 shlibpath_var=PATH
7689 ;;
7690
7691darwin* | rhapsody*)
7692 dynamic_linker="$host_os dyld"
7693 version_type=darwin
7694 need_lib_prefix=no
7695 need_version=no
7696 # FIXME: Relying on posixy $() will cause problems for
7697 # cross-compilation, but unfortunately the echo tests do not
7698 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7700 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007701 shlibpath_overrides_runpath=yes
7702 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007703 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7705 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7706 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"`
7707 fi
7708 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7709 ;;
7710
7711dgux*)
7712 version_type=linux
7713 need_lib_prefix=no
7714 need_version=no
7715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7716 soname_spec='${libname}${release}${shared_ext}$major'
7717 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007718 ;;
7719
7720freebsd1*)
7721 dynamic_linker=no
7722 ;;
7723
7724freebsd*)
7725 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7726 version_type=freebsd-$objformat
7727 case $version_type in
7728 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007730 need_version=no
7731 need_lib_prefix=no
7732 ;;
7733 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007735 need_version=yes
7736 ;;
7737 esac
7738 shlibpath_var=LD_LIBRARY_PATH
7739 case $host_os in
7740 freebsd2*)
7741 shlibpath_overrides_runpath=yes
7742 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007743 freebsd3.01* | freebsdelf3.01*)
7744 shlibpath_overrides_runpath=yes
7745 hardcode_into_libs=yes
7746 ;;
7747 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007748 shlibpath_overrides_runpath=no
7749 hardcode_into_libs=yes
7750 ;;
7751 esac
7752 ;;
7753
7754gnu*)
7755 version_type=linux
7756 need_lib_prefix=no
7757 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7759 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007760 shlibpath_var=LD_LIBRARY_PATH
7761 hardcode_into_libs=yes
7762 ;;
7763
7764hpux9* | hpux10* | hpux11*)
7765 # Give a soname corresponding to the major version so that dld.sl refuses to
7766 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007767 version_type=sunos
7768 need_lib_prefix=no
7769 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007770 case "$host_cpu" in
7771 ia64*)
7772 shrext='.so'
7773 hardcode_into_libs=yes
7774 dynamic_linker="$host_os dld.so"
7775 shlibpath_var=LD_LIBRARY_PATH
7776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7778 soname_spec='${libname}${release}${shared_ext}$major'
7779 if test "X$HPUX_IA64_MODE" = X32; then
7780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7781 else
7782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7783 fi
7784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7785 ;;
7786 hppa*64*)
7787 shrext='.sl'
7788 hardcode_into_libs=yes
7789 dynamic_linker="$host_os dld.sl"
7790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7793 soname_spec='${libname}${release}${shared_ext}$major'
7794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7796 ;;
7797 *)
7798 shrext='.sl'
7799 dynamic_linker="$host_os dld.sl"
7800 shlibpath_var=SHLIB_PATH
7801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7803 soname_spec='${libname}${release}${shared_ext}$major'
7804 ;;
7805 esac
John Criswell7a73b802003-06-30 21:59:07 +00007806 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7807 postinstall_cmds='chmod 555 $lib'
7808 ;;
7809
John Criswell47fdd832003-07-14 16:52:07 +00007810irix5* | irix6* | nonstopux*)
7811 case $host_os in
7812 nonstopux*) version_type=nonstopux ;;
7813 *)
7814 if test "$lt_cv_prog_gnu_ld" = yes; then
7815 version_type=linux
7816 else
7817 version_type=irix
7818 fi ;;
7819 esac
John Criswell7a73b802003-06-30 21:59:07 +00007820 need_lib_prefix=no
7821 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007822 soname_spec='${libname}${release}${shared_ext}$major'
7823 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 +00007824 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007825 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007826 libsuff= shlibsuff=
7827 ;;
7828 *)
7829 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7831 libsuff= shlibsuff= libmagic=32-bit;;
7832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7833 libsuff=32 shlibsuff=N32 libmagic=N32;;
7834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007836 *) libsuff= shlibsuff= libmagic=never-match;;
7837 esac
7838 ;;
7839 esac
7840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7841 shlibpath_overrides_runpath=no
7842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007844 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007845 ;;
7846
7847# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007848linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007849 dynamic_linker=no
7850 ;;
7851
7852# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007853linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007854 version_type=linux
7855 need_lib_prefix=no
7856 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7860 shlibpath_var=LD_LIBRARY_PATH
7861 shlibpath_overrides_runpath=no
7862 # This implies no fast_install, which is unacceptable.
7863 # Some rework will be needed to allow for fast_install
7864 # before this can be enabled.
7865 hardcode_into_libs=yes
7866
7867 # We used to test for /lib/ld.so.1 and disable shared libraries on
7868 # powerpc, because MkLinux only supported shared libraries with the
7869 # GNU dynamic linker. Since this was broken with cross compilers,
7870 # most powerpc-linux boxes support dynamic linking these days and
7871 # people can always --disable-shared, the test was removed, and we
7872 # assume the GNU/Linux dynamic linker is in use.
7873 dynamic_linker='GNU/Linux ld.so'
7874 ;;
7875
7876netbsd*)
7877 version_type=sunos
7878 need_lib_prefix=no
7879 need_version=no
7880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7883 dynamic_linker='NetBSD (a.out) ld.so'
7884 else
John Criswell47fdd832003-07-14 16:52:07 +00007885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7886 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007887 dynamic_linker='NetBSD ld.elf_so'
7888 fi
7889 shlibpath_var=LD_LIBRARY_PATH
7890 shlibpath_overrides_runpath=yes
7891 hardcode_into_libs=yes
7892 ;;
7893
7894newsos6)
7895 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897 shlibpath_var=LD_LIBRARY_PATH
7898 shlibpath_overrides_runpath=yes
7899 ;;
7900
7901nto-qnx)
7902 version_type=linux
7903 need_lib_prefix=no
7904 need_version=no
7905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007907 shlibpath_var=LD_LIBRARY_PATH
7908 shlibpath_overrides_runpath=yes
7909 ;;
7910
7911openbsd*)
7912 version_type=sunos
7913 need_lib_prefix=no
7914 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7917 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007918 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 +00007919 case $host_os in
7920 openbsd2.[89] | openbsd2.[89].*)
7921 shlibpath_overrides_runpath=no
7922 ;;
7923 *)
7924 shlibpath_overrides_runpath=yes
7925 ;;
7926 esac
John Criswell7a73b802003-06-30 21:59:07 +00007927 else
7928 shlibpath_overrides_runpath=yes
7929 fi
John Criswell7a73b802003-06-30 21:59:07 +00007930 ;;
7931
7932os2*)
7933 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007934 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007935 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007936 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007937 dynamic_linker='OS/2 ld.exe'
7938 shlibpath_var=LIBPATH
7939 ;;
7940
7941osf3* | osf4* | osf5*)
7942 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007943 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007944 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007945 soname_spec='${libname}${release}${shared_ext}$major'
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007947 shlibpath_var=LD_LIBRARY_PATH
7948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7950 ;;
7951
7952sco3.2v5*)
7953 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007954 soname_spec='${libname}${release}${shared_ext}$major'
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007956 shlibpath_var=LD_LIBRARY_PATH
7957 ;;
7958
7959solaris*)
7960 version_type=linux
7961 need_lib_prefix=no
7962 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7964 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007965 shlibpath_var=LD_LIBRARY_PATH
7966 shlibpath_overrides_runpath=yes
7967 hardcode_into_libs=yes
7968 # ldd complains unless libraries are executable
7969 postinstall_cmds='chmod +x $lib'
7970 ;;
7971
7972sunos4*)
7973 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7976 shlibpath_var=LD_LIBRARY_PATH
7977 shlibpath_overrides_runpath=yes
7978 if test "$with_gnu_ld" = yes; then
7979 need_lib_prefix=no
7980 fi
7981 need_version=yes
7982 ;;
7983
7984sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7985 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7987 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007988 shlibpath_var=LD_LIBRARY_PATH
7989 case $host_vendor in
7990 sni)
7991 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007992 need_lib_prefix=no
7993 export_dynamic_flag_spec='${wl}-Blargedynsym'
7994 runpath_var=LD_RUN_PATH
7995 ;;
7996 siemens)
7997 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007998 ;;
7999 motorola)
8000 need_lib_prefix=no
8001 need_version=no
8002 shlibpath_overrides_runpath=no
8003 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8004 ;;
8005 esac
8006 ;;
8007
John Criswell7a73b802003-06-30 21:59:07 +00008008sysv4*MP*)
8009 if test -d /usr/nec ;then
8010 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008011 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8012 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008013 shlibpath_var=LD_LIBRARY_PATH
8014 fi
8015 ;;
8016
John Criswell47fdd832003-07-14 16:52:07 +00008017uts4*)
8018 version_type=linux
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 soname_spec='${libname}${release}${shared_ext}$major'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 ;;
8023
John Criswell7a73b802003-06-30 21:59:07 +00008024*)
8025 dynamic_linker=no
8026 ;;
8027esac
8028echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8029echo "${ECHO_T}$dynamic_linker" >&6
8030test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008031
8032if test "x$enable_dlopen" != xyes; then
8033 enable_dlopen=unknown
8034 enable_dlopen_self=unknown
8035 enable_dlopen_self_static=unknown
8036else
8037 lt_cv_dlopen=no
8038 lt_cv_dlopen_libs=
8039
8040 case $host_os in
8041 beos*)
8042 lt_cv_dlopen="load_add_on"
8043 lt_cv_dlopen_libs=
8044 lt_cv_dlopen_self=yes
8045 ;;
8046
John Criswell47fdd832003-07-14 16:52:07 +00008047 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008048 lt_cv_dlopen="LoadLibrary"
8049 lt_cv_dlopen_libs=
8050 ;;
8051
John Criswell47fdd832003-07-14 16:52:07 +00008052 cygwin*)
8053 lt_cv_dlopen="dlopen"
8054 lt_cv_dlopen_libs=
8055 ;;
8056
8057 darwin*)
8058 # if libdl is installed we need to link against it
8059 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8060echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8061if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063else
8064 ac_check_lib_save_LIBS=$LIBS
8065LIBS="-ldl $LIBS"
8066cat >conftest.$ac_ext <<_ACEOF
8067#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008068/* confdefs.h. */
8069_ACEOF
8070cat confdefs.h >>conftest.$ac_ext
8071cat >>conftest.$ac_ext <<_ACEOF
8072/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008073
8074/* Override any gcc2 internal prototype to avoid an error. */
8075#ifdef __cplusplus
8076extern "C"
8077#endif
8078/* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8080char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008081int
8082main ()
8083{
8084dlopen ();
8085 ;
8086 return 0;
8087}
8088_ACEOF
8089rm -f conftest.$ac_objext conftest$ac_exeext
8090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -s conftest$ac_exeext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_cv_lib_dl_dlopen=yes
8102else
8103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008104sed 's/^/| /' conftest.$ac_ext >&5
8105
John Criswell47fdd832003-07-14 16:52:07 +00008106ac_cv_lib_dl_dlopen=no
8107fi
8108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8109LIBS=$ac_check_lib_save_LIBS
8110fi
8111echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8112echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8113if test $ac_cv_lib_dl_dlopen = yes; then
8114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8115else
8116
8117 lt_cv_dlopen="dyld"
8118 lt_cv_dlopen_libs=
8119 lt_cv_dlopen_self=yes
8120
8121fi
8122
8123 ;;
8124
John Criswell7a73b802003-06-30 21:59:07 +00008125 *)
8126 echo "$as_me:$LINENO: checking for shl_load" >&5
8127echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8128if test "${ac_cv_func_shl_load+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130else
8131 cat >conftest.$ac_ext <<_ACEOF
8132#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008133/* confdefs.h. */
8134_ACEOF
8135cat confdefs.h >>conftest.$ac_ext
8136cat >>conftest.$ac_ext <<_ACEOF
8137/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008138/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008139 which can conflict with char shl_load (); below.
8140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8141 <limits.h> exists even on freestanding compilers. */
8142#ifdef __STDC__
8143# include <limits.h>
8144#else
8145# include <assert.h>
8146#endif
John Criswell7a73b802003-06-30 21:59:07 +00008147/* Override any gcc2 internal prototype to avoid an error. */
8148#ifdef __cplusplus
8149extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008150{
John Criswell7a73b802003-06-30 21:59:07 +00008151#endif
8152/* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8154char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008155/* The GNU C library defines this for functions which it implements
8156 to always fail with ENOSYS. Some functions are actually named
8157 something starting with __ and the normal name is an alias. */
8158#if defined (__stub_shl_load) || defined (__stub___shl_load)
8159choke me
8160#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008161char (*f) () = shl_load;
8162#endif
8163#ifdef __cplusplus
8164}
John Criswell7a73b802003-06-30 21:59:07 +00008165#endif
8166
John Criswell0c38eaf2003-09-10 15:17:25 +00008167int
8168main ()
8169{
8170return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008171 ;
8172 return 0;
8173}
8174_ACEOF
8175rm -f conftest.$ac_objext conftest$ac_exeext
8176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -s conftest$ac_exeext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 ac_cv_func_shl_load=yes
8188else
8189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008190sed 's/^/| /' conftest.$ac_ext >&5
8191
John Criswell7a73b802003-06-30 21:59:07 +00008192ac_cv_func_shl_load=no
8193fi
8194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8195fi
8196echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8197echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8198if test $ac_cv_func_shl_load = yes; then
8199 lt_cv_dlopen="shl_load"
8200else
8201 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8202echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8203if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206 ac_check_lib_save_LIBS=$LIBS
8207LIBS="-ldld $LIBS"
8208cat >conftest.$ac_ext <<_ACEOF
8209#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008215
8216/* Override any gcc2 internal prototype to avoid an error. */
8217#ifdef __cplusplus
8218extern "C"
8219#endif
8220/* We use char because int might match the return type of a gcc2
8221 builtin and then its argument prototype would still apply. */
8222char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008223int
8224main ()
8225{
8226shl_load ();
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8233 (eval $ac_link) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_lib_dld_shl_load=yes
8244else
8245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008246sed 's/^/| /' conftest.$ac_ext >&5
8247
John Criswell7a73b802003-06-30 21:59:07 +00008248ac_cv_lib_dld_shl_load=no
8249fi
8250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8251LIBS=$ac_check_lib_save_LIBS
8252fi
8253echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8254echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8255if test $ac_cv_lib_dld_shl_load = yes; then
8256 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8257else
8258 echo "$as_me:$LINENO: checking for dlopen" >&5
8259echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8260if test "${ac_cv_func_dlopen+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262else
8263 cat >conftest.$ac_ext <<_ACEOF
8264#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008265/* confdefs.h. */
8266_ACEOF
8267cat confdefs.h >>conftest.$ac_ext
8268cat >>conftest.$ac_ext <<_ACEOF
8269/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008270/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008271 which can conflict with char dlopen (); below.
8272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8273 <limits.h> exists even on freestanding compilers. */
8274#ifdef __STDC__
8275# include <limits.h>
8276#else
8277# include <assert.h>
8278#endif
John Criswell7a73b802003-06-30 21:59:07 +00008279/* Override any gcc2 internal prototype to avoid an error. */
8280#ifdef __cplusplus
8281extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008282{
John Criswell7a73b802003-06-30 21:59:07 +00008283#endif
8284/* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8286char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008287/* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290#if defined (__stub_dlopen) || defined (__stub___dlopen)
8291choke me
8292#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008293char (*f) () = dlopen;
8294#endif
8295#ifdef __cplusplus
8296}
John Criswell7a73b802003-06-30 21:59:07 +00008297#endif
8298
John Criswell0c38eaf2003-09-10 15:17:25 +00008299int
8300main ()
8301{
8302return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008303 ;
8304 return 0;
8305}
8306_ACEOF
8307rm -f conftest.$ac_objext conftest$ac_exeext
8308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -s conftest$ac_exeext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_func_dlopen=yes
8320else
8321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008322sed 's/^/| /' conftest.$ac_ext >&5
8323
John Criswell7a73b802003-06-30 21:59:07 +00008324ac_cv_func_dlopen=no
8325fi
8326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327fi
8328echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8329echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8330if test $ac_cv_func_dlopen = yes; then
8331 lt_cv_dlopen="dlopen"
8332else
8333 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8334echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8335if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337else
8338 ac_check_lib_save_LIBS=$LIBS
8339LIBS="-ldl $LIBS"
8340cat >conftest.$ac_ext <<_ACEOF
8341#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008347
8348/* Override any gcc2 internal prototype to avoid an error. */
8349#ifdef __cplusplus
8350extern "C"
8351#endif
8352/* We use char because int might match the return type of a gcc2
8353 builtin and then its argument prototype would still apply. */
8354char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008355int
8356main ()
8357{
8358dlopen ();
8359 ;
8360 return 0;
8361}
8362_ACEOF
8363rm -f conftest.$ac_objext conftest$ac_exeext
8364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8365 (eval $ac_link) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 ac_cv_lib_dl_dlopen=yes
8376else
8377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008378sed 's/^/| /' conftest.$ac_ext >&5
8379
John Criswell7a73b802003-06-30 21:59:07 +00008380ac_cv_lib_dl_dlopen=no
8381fi
8382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8383LIBS=$ac_check_lib_save_LIBS
8384fi
8385echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8386echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8387if test $ac_cv_lib_dl_dlopen = yes; then
8388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8389else
8390 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8391echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8392if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394else
8395 ac_check_lib_save_LIBS=$LIBS
8396LIBS="-lsvld $LIBS"
8397cat >conftest.$ac_ext <<_ACEOF
8398#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008399/* confdefs.h. */
8400_ACEOF
8401cat confdefs.h >>conftest.$ac_ext
8402cat >>conftest.$ac_ext <<_ACEOF
8403/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008404
8405/* Override any gcc2 internal prototype to avoid an error. */
8406#ifdef __cplusplus
8407extern "C"
8408#endif
8409/* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */
8411char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008412int
8413main ()
8414{
8415dlopen ();
8416 ;
8417 return 0;
8418}
8419_ACEOF
8420rm -f conftest.$ac_objext conftest$ac_exeext
8421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_lib_svld_dlopen=yes
8433else
8434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008435sed 's/^/| /' conftest.$ac_ext >&5
8436
John Criswell7a73b802003-06-30 21:59:07 +00008437ac_cv_lib_svld_dlopen=no
8438fi
8439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8440LIBS=$ac_check_lib_save_LIBS
8441fi
8442echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8443echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8444if test $ac_cv_lib_svld_dlopen = yes; then
8445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8446else
8447 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8448echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8449if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451else
8452 ac_check_lib_save_LIBS=$LIBS
8453LIBS="-ldld $LIBS"
8454cat >conftest.$ac_ext <<_ACEOF
8455#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008456/* confdefs.h. */
8457_ACEOF
8458cat confdefs.h >>conftest.$ac_ext
8459cat >>conftest.$ac_ext <<_ACEOF
8460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008461
8462/* Override any gcc2 internal prototype to avoid an error. */
8463#ifdef __cplusplus
8464extern "C"
8465#endif
8466/* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8468char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008469int
8470main ()
8471{
8472dld_link ();
8473 ;
8474 return 0;
8475}
8476_ACEOF
8477rm -f conftest.$ac_objext conftest$ac_exeext
8478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -s conftest$ac_exeext'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 (eval $ac_try) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_cv_lib_dld_dld_link=yes
8490else
8491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008492sed 's/^/| /' conftest.$ac_ext >&5
8493
John Criswell7a73b802003-06-30 21:59:07 +00008494ac_cv_lib_dld_dld_link=no
8495fi
8496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8497LIBS=$ac_check_lib_save_LIBS
8498fi
8499echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8500echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8501if test $ac_cv_lib_dld_dld_link = yes; then
8502 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8503fi
8504
8505
8506fi
8507
8508
8509fi
8510
8511
8512fi
8513
8514
8515fi
8516
8517
8518fi
8519
8520 ;;
8521 esac
8522
8523 if test "x$lt_cv_dlopen" != xno; then
8524 enable_dlopen=yes
8525 else
8526 enable_dlopen=no
8527 fi
8528
8529 case $lt_cv_dlopen in
8530 dlopen)
8531 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008532 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008533
8534 save_LDFLAGS="$LDFLAGS"
8535 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8536
8537 save_LIBS="$LIBS"
8538 LIBS="$lt_cv_dlopen_libs $LIBS"
8539
8540 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8541echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8542if test "${lt_cv_dlopen_self+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544else
8545 if test "$cross_compiling" = yes; then :
8546 lt_cv_dlopen_self=cross
8547else
John Criswell47fdd832003-07-14 16:52:07 +00008548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008549 lt_status=$lt_dlunknown
8550 cat > conftest.$ac_ext <<EOF
John Criswell10708402003-09-15 20:12:48 +00008551#line 8551 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008552#include "confdefs.h"
8553
8554#if HAVE_DLFCN_H
8555#include <dlfcn.h>
8556#endif
8557
8558#include <stdio.h>
8559
8560#ifdef RTLD_GLOBAL
8561# define LT_DLGLOBAL RTLD_GLOBAL
8562#else
8563# ifdef DL_GLOBAL
8564# define LT_DLGLOBAL DL_GLOBAL
8565# else
8566# define LT_DLGLOBAL 0
8567# endif
8568#endif
8569
8570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8571 find out it does not work in some platform. */
8572#ifndef LT_DLLAZY_OR_NOW
8573# ifdef RTLD_LAZY
8574# define LT_DLLAZY_OR_NOW RTLD_LAZY
8575# else
8576# ifdef DL_LAZY
8577# define LT_DLLAZY_OR_NOW DL_LAZY
8578# else
8579# ifdef RTLD_NOW
8580# define LT_DLLAZY_OR_NOW RTLD_NOW
8581# else
8582# ifdef DL_NOW
8583# define LT_DLLAZY_OR_NOW DL_NOW
8584# else
8585# define LT_DLLAZY_OR_NOW 0
8586# endif
8587# endif
8588# endif
8589# endif
8590#endif
8591
8592#ifdef __cplusplus
8593extern "C" void exit (int);
8594#endif
8595
8596void fnord() { int i=42;}
8597int main ()
8598{
8599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8600 int status = $lt_dlunknown;
8601
8602 if (self)
8603 {
8604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8606 /* dlclose (self); */
8607 }
8608
8609 exit (status);
8610}
8611EOF
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8617 (./conftest; exit; ) 2>/dev/null
8618 lt_status=$?
8619 case x$lt_status in
8620 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8621 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8622 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8623 esac
8624 else :
8625 # compilation failed
8626 lt_cv_dlopen_self=no
8627 fi
8628fi
8629rm -fr conftest*
8630
8631
8632fi
8633echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8634echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8635
8636 if test "x$lt_cv_dlopen_self" = xyes; then
8637 LDFLAGS="$LDFLAGS $link_static_flag"
8638 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8639echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8640if test "${lt_cv_dlopen_self_static+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642else
8643 if test "$cross_compiling" = yes; then :
8644 lt_cv_dlopen_self_static=cross
8645else
John Criswell47fdd832003-07-14 16:52:07 +00008646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008647 lt_status=$lt_dlunknown
8648 cat > conftest.$ac_ext <<EOF
John Criswell10708402003-09-15 20:12:48 +00008649#line 8649 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008650#include "confdefs.h"
8651
8652#if HAVE_DLFCN_H
8653#include <dlfcn.h>
8654#endif
8655
8656#include <stdio.h>
8657
8658#ifdef RTLD_GLOBAL
8659# define LT_DLGLOBAL RTLD_GLOBAL
8660#else
8661# ifdef DL_GLOBAL
8662# define LT_DLGLOBAL DL_GLOBAL
8663# else
8664# define LT_DLGLOBAL 0
8665# endif
8666#endif
8667
8668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8669 find out it does not work in some platform. */
8670#ifndef LT_DLLAZY_OR_NOW
8671# ifdef RTLD_LAZY
8672# define LT_DLLAZY_OR_NOW RTLD_LAZY
8673# else
8674# ifdef DL_LAZY
8675# define LT_DLLAZY_OR_NOW DL_LAZY
8676# else
8677# ifdef RTLD_NOW
8678# define LT_DLLAZY_OR_NOW RTLD_NOW
8679# else
8680# ifdef DL_NOW
8681# define LT_DLLAZY_OR_NOW DL_NOW
8682# else
8683# define LT_DLLAZY_OR_NOW 0
8684# endif
8685# endif
8686# endif
8687# endif
8688#endif
8689
8690#ifdef __cplusplus
8691extern "C" void exit (int);
8692#endif
8693
8694void fnord() { int i=42;}
8695int main ()
8696{
8697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8698 int status = $lt_dlunknown;
8699
8700 if (self)
8701 {
8702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8704 /* dlclose (self); */
8705 }
8706
8707 exit (status);
8708}
8709EOF
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8715 (./conftest; exit; ) 2>/dev/null
8716 lt_status=$?
8717 case x$lt_status in
8718 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8719 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8720 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8721 esac
8722 else :
8723 # compilation failed
8724 lt_cv_dlopen_self_static=no
8725 fi
8726fi
8727rm -fr conftest*
8728
8729
8730fi
8731echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8732echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8733 fi
8734
8735 CPPFLAGS="$save_CPPFLAGS"
8736 LDFLAGS="$save_LDFLAGS"
8737 LIBS="$save_LIBS"
8738 ;;
8739 esac
8740
8741 case $lt_cv_dlopen_self in
8742 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8743 *) enable_dlopen_self=unknown ;;
8744 esac
8745
8746 case $lt_cv_dlopen_self_static in
8747 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8748 *) enable_dlopen_self_static=unknown ;;
8749 esac
8750fi
8751
8752
John Criswell47fdd832003-07-14 16:52:07 +00008753# Report which librarie types wil actually be built
8754echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8755echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8756echo "$as_me:$LINENO: result: $can_build_shared" >&5
8757echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008758
John Criswell47fdd832003-07-14 16:52:07 +00008759echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8760echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8761test "$can_build_shared" = "no" && enable_shared=no
8762
8763# On AIX, shared libraries and static libraries use the same namespace, and
8764# are all built from PIC.
8765case "$host_os" in
8766aix3*)
8767 test "$enable_shared" = yes && enable_static=no
8768 if test -n "$RANLIB"; then
8769 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8770 postinstall_cmds='$RANLIB $lib'
8771 fi
8772 ;;
8773
8774aix4*)
8775 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8776 test "$enable_shared" = yes && enable_static=no
8777 fi
8778 ;;
8779 darwin* | rhapsody*)
8780 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8781 archive_cmds_need_lc=no
8782 case "$host_os" in
8783 rhapsody* | darwin1.[012])
8784 allow_undefined_flag='-undefined suppress'
8785 ;;
8786 *) # Darwin 1.3 on
8787 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8788 ;;
8789 esac
8790 # FIXME: Relying on posixy $() will cause problems for
8791 # cross-compilation, but unfortunately the echo tests do not
8792 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8793 # `"' quotes if we put them in here... so don't!
8794 output_verbose_link_cmd='echo'
8795 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8796 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8797 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8798 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}'
8799 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}'
8800 hardcode_direct=no
8801 hardcode_automatic=yes
8802 hardcode_shlibpath_var=unsupported
8803 whole_archive_flag_spec='-all_load $convenience'
8804 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008805 fi
John Criswell7a73b802003-06-30 21:59:07 +00008806 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008807esac
8808echo "$as_me:$LINENO: result: $enable_shared" >&5
8809echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008810
John Criswell47fdd832003-07-14 16:52:07 +00008811echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8812echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8813# Make sure either enable_shared or enable_static is yes.
8814test "$enable_shared" = yes || enable_static=yes
8815echo "$as_me:$LINENO: result: $enable_static" >&5
8816echo "${ECHO_T}$enable_static" >&6
8817
8818# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008819# libtool distribution, otherwise you forgot to ship ltmain.sh
8820# with your package, and you will get complaints that there are
8821# no rules to generate ltmain.sh.
8822if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008823 # See if we are running on zsh, and set the options which allow our commands through
8824 # without removal of \ escapes.
8825 if test -n "${ZSH_VERSION+set}" ; then
8826 setopt NO_GLOB_SUBST
8827 fi
John Criswell7a73b802003-06-30 21:59:07 +00008828 # Now quote all the things that may contain metacharacters while being
8829 # careful not to overquote the AC_SUBSTed values. We take copies of the
8830 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008831 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8832 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8833 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8834 deplibs_check_method reload_flag reload_cmds need_locks \
8835 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8836 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008837 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008838 old_postinstall_cmds old_postuninstall_cmds \
8839 compiler \
8840 CC \
8841 LD \
8842 lt_prog_compiler_wl \
8843 lt_prog_compiler_pic \
8844 lt_prog_compiler_static \
8845 lt_prog_compiler_no_builtin_flag \
8846 export_dynamic_flag_spec \
8847 thread_safe_flag_spec \
8848 whole_archive_flag_spec \
8849 enable_shared_with_static_runtimes \
8850 old_archive_cmds \
8851 old_archive_from_new_cmds \
8852 predep_objects \
8853 postdep_objects \
8854 predeps \
8855 postdeps \
8856 compiler_lib_search_path \
8857 archive_cmds \
8858 archive_expsym_cmds \
8859 postinstall_cmds \
8860 postuninstall_cmds \
8861 old_archive_from_expsyms_cmds \
8862 allow_undefined_flag \
8863 no_undefined_flag \
8864 export_symbols_cmds \
8865 hardcode_libdir_flag_spec \
8866 hardcode_libdir_flag_spec_ld \
8867 hardcode_libdir_separator \
8868 hardcode_automatic \
8869 module_cmds \
8870 module_expsym_cmds \
8871 lt_cv_prog_compiler_c_o \
8872 exclude_expsyms \
8873 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008874
8875 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008876 old_archive_cmds | \
8877 old_archive_from_new_cmds | \
8878 archive_cmds | \
8879 archive_expsym_cmds | \
8880 module_cmds | \
8881 module_expsym_cmds | \
8882 old_archive_from_expsyms_cmds | \
8883 export_symbols_cmds | \
8884 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008885 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008886 old_postinstall_cmds | old_postuninstall_cmds | \
8887 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008888 # Double-quote double-evaled strings.
8889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8890 ;;
8891 *)
8892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8893 ;;
8894 esac
8895 done
8896
John Criswell47fdd832003-07-14 16:52:07 +00008897 case $lt_echo in
8898 *'\$0 --fallback-echo"')
8899 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8900 ;;
8901 esac
8902
8903cfgfile="${ofile}T"
8904 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8905 $rm -f "$cfgfile"
8906 { echo "$as_me:$LINENO: creating $ofile" >&5
8907echo "$as_me: creating $ofile" >&6;}
8908
8909 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008910#! $SHELL
8911
John Criswell47fdd832003-07-14 16:52:07 +00008912# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008913# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8914# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8915#
John Criswell47fdd832003-07-14 16:52:07 +00008916# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8917# Free Software Foundation, Inc.
8918#
8919# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008920# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8921#
8922# This program is free software; you can redistribute it and/or modify
8923# it under the terms of the GNU General Public License as published by
8924# the Free Software Foundation; either version 2 of the License, or
8925# (at your option) any later version.
8926#
8927# This program is distributed in the hope that it will be useful, but
8928# WITHOUT ANY WARRANTY; without even the implied warranty of
8929# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8930# General Public License for more details.
8931#
8932# You should have received a copy of the GNU General Public License
8933# along with this program; if not, write to the Free Software
8934# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8935#
8936# As a special exception to the GNU General Public License, if you
8937# distribute this file as part of a program that contains a
8938# configuration script generated by Autoconf, you may include it under
8939# the same distribution terms that you use for the rest of that program.
8940
John Criswell47fdd832003-07-14 16:52:07 +00008941# A sed program that does not truncate output.
8942SED=$lt_SED
8943
John Criswell7a73b802003-06-30 21:59:07 +00008944# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008945Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008946
8947# The HP-UX ksh and POSIX shell print the target directory to stdout
8948# if CDPATH is set.
8949if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8950
John Criswell47fdd832003-07-14 16:52:07 +00008951# The names of the tagged configurations supported by this script.
8952available_tags=
8953
John Criswell7a73b802003-06-30 21:59:07 +00008954# ### BEGIN LIBTOOL CONFIG
8955
8956# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8957
8958# Shell to use when invoking shell scripts.
8959SHELL=$lt_SHELL
8960
8961# Whether or not to build shared libraries.
8962build_libtool_libs=$enable_shared
8963
8964# Whether or not to build static libraries.
8965build_old_libs=$enable_static
8966
8967# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008968build_libtool_need_lc=$archive_cmds_need_lc
8969
8970# Whether or not to disallow shared libs when runtime libs are static
8971allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008972
8973# Whether or not to optimize for fast installation.
8974fast_install=$enable_fast_install
8975
8976# The host system.
8977host_alias=$host_alias
8978host=$host
8979
8980# An echo program that does not interpret backslashes.
8981echo=$lt_echo
8982
8983# The archiver.
8984AR=$lt_AR
8985AR_FLAGS=$lt_AR_FLAGS
8986
John Criswell47fdd832003-07-14 16:52:07 +00008987# A C compiler.
8988LTCC=$lt_LTCC
8989
8990# A language-specific compiler.
8991CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008992
8993# Is the compiler the GNU C compiler?
8994with_gcc=$GCC
8995
John Criswell47fdd832003-07-14 16:52:07 +00008996# An ERE matcher.
8997EGREP=$lt_EGREP
8998
John Criswell7a73b802003-06-30 21:59:07 +00008999# The linker used to build libraries.
9000LD=$lt_LD
9001
9002# Whether we need hard or soft links.
9003LN_S=$lt_LN_S
9004
9005# A BSD-compatible nm program.
9006NM=$lt_NM
9007
9008# A symbol stripping program
9009STRIP=$STRIP
9010
9011# Used to examine libraries when file_magic_cmd begins "file"
9012MAGIC_CMD=$MAGIC_CMD
9013
9014# Used on cygwin: DLL creation program.
9015DLLTOOL="$DLLTOOL"
9016
9017# Used on cygwin: object dumper.
9018OBJDUMP="$OBJDUMP"
9019
9020# Used on cygwin: assembler.
9021AS="$AS"
9022
9023# The name of the directory that contains temporary libtool files.
9024objdir=$objdir
9025
9026# How to create reloadable object files.
9027reload_flag=$lt_reload_flag
9028reload_cmds=$lt_reload_cmds
9029
9030# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009031wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009032
9033# Object file suffix (normally "o").
9034objext="$ac_objext"
9035
9036# Old archive suffix (normally "a").
9037libext="$libext"
9038
John Criswell47fdd832003-07-14 16:52:07 +00009039# Shared library suffix (normally ".so").
9040shrext='$shrext'
9041
John Criswell7a73b802003-06-30 21:59:07 +00009042# Executable file suffix (normally "").
9043exeext="$exeext"
9044
9045# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009046pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009047pic_mode=$pic_mode
9048
John Criswell47fdd832003-07-14 16:52:07 +00009049# What is the maximum length of a command?
9050max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009051
John Criswell47fdd832003-07-14 16:52:07 +00009052# Does compiler simultaneously support -c and -o options?
9053compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009054
9055# Must we lock files when doing compilation ?
9056need_locks=$lt_need_locks
9057
9058# Do we need the lib prefix for modules?
9059need_lib_prefix=$need_lib_prefix
9060
9061# Do we need a version for libraries?
9062need_version=$need_version
9063
9064# Whether dlopen is supported.
9065dlopen_support=$enable_dlopen
9066
9067# Whether dlopen of programs is supported.
9068dlopen_self=$enable_dlopen_self
9069
9070# Whether dlopen of statically linked programs is supported.
9071dlopen_self_static=$enable_dlopen_self_static
9072
9073# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009074link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009075
9076# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009077no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009078
9079# Compiler flag to allow reflexive dlopens.
9080export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9081
9082# Compiler flag to generate shared objects directly from archives.
9083whole_archive_flag_spec=$lt_whole_archive_flag_spec
9084
9085# Compiler flag to generate thread-safe objects.
9086thread_safe_flag_spec=$lt_thread_safe_flag_spec
9087
9088# Library versioning type.
9089version_type=$version_type
9090
9091# Format of library name prefix.
9092libname_spec=$lt_libname_spec
9093
9094# List of archive names. First name is the real one, the rest are links.
9095# The last name is the one that the linker finds with -lNAME.
9096library_names_spec=$lt_library_names_spec
9097
9098# The coded name of the library, if different from the real name.
9099soname_spec=$lt_soname_spec
9100
9101# Commands used to build and install an old-style archive.
9102RANLIB=$lt_RANLIB
9103old_archive_cmds=$lt_old_archive_cmds
9104old_postinstall_cmds=$lt_old_postinstall_cmds
9105old_postuninstall_cmds=$lt_old_postuninstall_cmds
9106
9107# Create an old-style archive from a shared archive.
9108old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9109
9110# Create a temporary old-style archive to link instead of a shared archive.
9111old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9112
9113# Commands used to build and install a shared archive.
9114archive_cmds=$lt_archive_cmds
9115archive_expsym_cmds=$lt_archive_expsym_cmds
9116postinstall_cmds=$lt_postinstall_cmds
9117postuninstall_cmds=$lt_postuninstall_cmds
9118
John Criswell47fdd832003-07-14 16:52:07 +00009119# Commands used to build a loadable module (assumed same as above if empty)
9120module_cmds=$lt_module_cmds
9121module_expsym_cmds=$lt_module_expsym_cmds
9122
John Criswell7a73b802003-06-30 21:59:07 +00009123# Commands to strip libraries.
9124old_striplib=$lt_old_striplib
9125striplib=$lt_striplib
9126
John Criswell47fdd832003-07-14 16:52:07 +00009127# Dependencies to place before the objects being linked to create a
9128# shared library.
9129predep_objects=$lt_predep_objects
9130
9131# Dependencies to place after the objects being linked to create a
9132# shared library.
9133postdep_objects=$lt_postdep_objects
9134
9135# Dependencies to place before the objects being linked to create a
9136# shared library.
9137predeps=$lt_predeps
9138
9139# Dependencies to place after the objects being linked to create a
9140# shared library.
9141postdeps=$lt_postdeps
9142
9143# The library search path used internally by the compiler when linking
9144# a shared library.
9145compiler_lib_search_path=$lt_compiler_lib_search_path
9146
John Criswell7a73b802003-06-30 21:59:07 +00009147# Method to check whether dependent libraries are shared objects.
9148deplibs_check_method=$lt_deplibs_check_method
9149
9150# Command to use when deplibs_check_method == file_magic.
9151file_magic_cmd=$lt_file_magic_cmd
9152
9153# Flag that allows shared libraries with undefined symbols to be built.
9154allow_undefined_flag=$lt_allow_undefined_flag
9155
9156# Flag that forces no undefined symbols.
9157no_undefined_flag=$lt_no_undefined_flag
9158
9159# Commands used to finish a libtool library installation in a directory.
9160finish_cmds=$lt_finish_cmds
9161
9162# Same as above, but a single script fragment to be evaled but not shown.
9163finish_eval=$lt_finish_eval
9164
9165# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009166global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009167
9168# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009169global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009170
9171# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009172global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009173
9174# This is the shared library runtime path variable.
9175runpath_var=$runpath_var
9176
9177# This is the shared library path variable.
9178shlibpath_var=$shlibpath_var
9179
9180# Is shlibpath searched before the hard-coded library search path?
9181shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9182
9183# How to hardcode a shared library path into an executable.
9184hardcode_action=$hardcode_action
9185
9186# Whether we should hardcode library paths into libraries.
9187hardcode_into_libs=$hardcode_into_libs
9188
9189# Flag to hardcode \$libdir into a binary during linking.
9190# This must work even if \$libdir does not exist.
9191hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9192
John Criswell47fdd832003-07-14 16:52:07 +00009193# If ld is used when linking, flag to hardcode \$libdir into
9194# a binary during linking. This must work even if \$libdir does
9195# not exist.
9196hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9197
John Criswell7a73b802003-06-30 21:59:07 +00009198# Whether we need a single -rpath flag with a separated argument.
9199hardcode_libdir_separator=$lt_hardcode_libdir_separator
9200
John Criswell47fdd832003-07-14 16:52:07 +00009201# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009202# resulting binary.
9203hardcode_direct=$hardcode_direct
9204
9205# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9206# resulting binary.
9207hardcode_minus_L=$hardcode_minus_L
9208
9209# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9210# the resulting binary.
9211hardcode_shlibpath_var=$hardcode_shlibpath_var
9212
John Criswell47fdd832003-07-14 16:52:07 +00009213# Set to yes if building a shared library automatically hardcodes DIR into the library
9214# and all subsequent libraries and executables linked against it.
9215hardcode_automatic=$hardcode_automatic
9216
John Criswell7a73b802003-06-30 21:59:07 +00009217# Variables whose values should be saved in libtool wrapper scripts and
9218# restored at relink time.
9219variables_saved_for_relink="$variables_saved_for_relink"
9220
9221# Whether libtool must link a program against all its dependency libraries.
9222link_all_deplibs=$link_all_deplibs
9223
9224# Compile-time system search path for libraries
9225sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9226
9227# Run-time system search path for libraries
9228sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9229
9230# Fix the shell variable \$srcfile for the compiler.
9231fix_srcfile_path="$fix_srcfile_path"
9232
9233# Set to yes if exported symbols are required.
9234always_export_symbols=$always_export_symbols
9235
9236# The commands to list exported symbols.
9237export_symbols_cmds=$lt_export_symbols_cmds
9238
9239# The commands to extract the exported symbol list from a shared archive.
9240extract_expsyms_cmds=$lt_extract_expsyms_cmds
9241
9242# Symbols that should not be listed in the preloaded symbols.
9243exclude_expsyms=$lt_exclude_expsyms
9244
9245# Symbols that must always be exported.
9246include_expsyms=$lt_include_expsyms
9247
9248# ### END LIBTOOL CONFIG
9249
9250__EOF__
9251
John Criswell47fdd832003-07-14 16:52:07 +00009252
John Criswell7a73b802003-06-30 21:59:07 +00009253 case $host_os in
9254 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009255 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009256
9257# AIX sometimes has problems with the GCC collect2 program. For some
9258# reason, if we set the COLLECT_NAMES environment variable, the problems
9259# vanish in a puff of smoke.
9260if test "X${COLLECT_NAMES+set}" != Xset; then
9261 COLLECT_NAMES=
9262 export COLLECT_NAMES
9263fi
9264EOF
9265 ;;
9266 esac
9267
John Criswell7a73b802003-06-30 21:59:07 +00009268 # We use sed instead of cat because bash on DJGPP gets confused if
9269 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9270 # text mode, it properly converts lines to CR/LF. This bash problem
9271 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009272 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009273
John Criswell47fdd832003-07-14 16:52:07 +00009274 mv -f "$cfgfile" "$ofile" || \
9275 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009276 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009277
9278else
9279 # If there is no Makefile yet, we rely on a make rule to execute
9280 # `config.status --recheck' to rerun these tests and create the
9281 # libtool script then.
9282 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009283fi
John Criswell7a73b802003-06-30 21:59:07 +00009284
9285
John Criswell47fdd832003-07-14 16:52:07 +00009286ac_ext=c
9287ac_cpp='$CPP $CPPFLAGS'
9288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9290ac_compiler_gnu=$ac_cv_c_compiler_gnu
9291
9292CC="$lt_save_CC"
9293
9294
9295# Check whether --with-tags or --without-tags was given.
9296if test "${with_tags+set}" = set; then
9297 withval="$with_tags"
9298 tagnames="$withval"
9299fi;
9300
9301if test -f "$ltmain" && test -n "$tagnames"; then
9302 if test ! -f "${ofile}"; then
9303 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9304echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9305 fi
9306
9307 if test -z "$LTCC"; then
9308 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9309 if test -z "$LTCC"; then
9310 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9311echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9312 else
9313 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9314echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9315 fi
9316 fi
9317
9318 # Extract list of available tagged configurations in $ofile.
9319 # Note that this assumes the entire list is on one line.
9320 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9321
9322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9323 for tagname in $tagnames; do
9324 IFS="$lt_save_ifs"
9325 # Check whether tagname contains only valid characters
9326 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9327 "") ;;
9328 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9329echo "$as_me: error: invalid tag name: $tagname" >&2;}
9330 { (exit 1); exit 1; }; }
9331 ;;
9332 esac
9333
9334 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9335 then
9336 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9337echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9338 { (exit 1); exit 1; }; }
9339 fi
9340
9341 # Update the list of available tags.
9342 if test -n "$tagname"; then
9343 echo appending configuration tag \"$tagname\" to $ofile
9344
9345 case $tagname in
9346 CXX)
9347 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9348 ac_ext=cc
9349ac_cpp='$CXXCPP $CPPFLAGS'
9350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9353
9354
9355
9356
9357archive_cmds_need_lc_CXX=no
9358allow_undefined_flag_CXX=
9359always_export_symbols_CXX=no
9360archive_expsym_cmds_CXX=
9361export_dynamic_flag_spec_CXX=
9362hardcode_direct_CXX=no
9363hardcode_libdir_flag_spec_CXX=
9364hardcode_libdir_flag_spec_ld_CXX=
9365hardcode_libdir_separator_CXX=
9366hardcode_minus_L_CXX=no
9367hardcode_automatic_CXX=no
9368module_cmds_CXX=
9369module_expsym_cmds_CXX=
9370link_all_deplibs_CXX=unknown
9371old_archive_cmds_CXX=$old_archive_cmds
9372no_undefined_flag_CXX=
9373whole_archive_flag_spec_CXX=
9374enable_shared_with_static_runtimes_CXX=no
9375
9376# Dependencies to place before and after the object being linked:
9377predep_objects_CXX=
9378postdep_objects_CXX=
9379predeps_CXX=
9380postdeps_CXX=
9381compiler_lib_search_path_CXX=
9382
9383# Source file extension for C++ test sources.
9384ac_ext=cc
9385
9386# Object file extension for compiled C++ test sources.
9387objext=o
9388objext_CXX=$objext
9389
9390# Code to be used in simple compile tests
9391lt_simple_compile_test_code="int some_variable = 0;\n"
9392
9393# Code to be used in simple link tests
9394lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9395
9396# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9397
9398# If no C compiler was specified, use CC.
9399LTCC=${LTCC-"$CC"}
9400
9401# Allow CC to be a program name with arguments.
9402compiler=$CC
9403
9404
9405# Allow CC to be a program name with arguments.
9406lt_save_CC=$CC
9407lt_save_LD=$LD
9408lt_save_GCC=$GCC
9409GCC=$GXX
9410lt_save_with_gnu_ld=$with_gnu_ld
9411lt_save_path_LD=$lt_cv_path_LD
9412if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9413 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9414else
9415 unset lt_cv_prog_gnu_ld
9416fi
9417if test -n "${lt_cv_path_LDCXX+set}"; then
9418 lt_cv_path_LD=$lt_cv_path_LDCXX
9419else
9420 unset lt_cv_path_LD
9421fi
9422test -z "${LDCXX+set}" || LD=$LDCXX
9423CC=${CXX-"c++"}
9424compiler=$CC
9425compiler_CXX=$CC
9426cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9427
9428# We don't want -fno-exception wen compiling C++ code, so set the
9429# no_builtin_flag separately
9430if test "$GXX" = yes; then
9431 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9432else
9433 lt_prog_compiler_no_builtin_flag_CXX=
9434fi
9435
9436if test "$GXX" = yes; then
9437 # Set up default GNU C++ configuration
9438
9439
9440# Check whether --with-gnu-ld or --without-gnu-ld was given.
9441if test "${with_gnu_ld+set}" = set; then
9442 withval="$with_gnu_ld"
9443 test "$withval" = no || with_gnu_ld=yes
9444else
9445 with_gnu_ld=no
9446fi;
9447ac_prog=ld
9448if test "$GCC" = yes; then
9449 # Check if gcc -print-prog-name=ld gives a path.
9450 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9451echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9452 case $host in
9453 *-*-mingw*)
9454 # gcc leaves a trailing carriage return which upsets mingw
9455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9456 *)
9457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9458 esac
9459 case $ac_prog in
9460 # Accept absolute paths.
9461 [\\/]* | ?:[\\/]*)
9462 re_direlt='/[^/][^/]*/\.\./'
9463 # Canonicalize the path of ld
9464 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9465 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9466 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9467 done
9468 test -z "$LD" && LD="$ac_prog"
9469 ;;
9470 "")
9471 # If it fails, then pretend we aren't using GCC.
9472 ac_prog=ld
9473 ;;
9474 *)
9475 # If it is relative, then search for the first ld in PATH.
9476 with_gnu_ld=unknown
9477 ;;
9478 esac
9479elif test "$with_gnu_ld" = yes; then
9480 echo "$as_me:$LINENO: checking for GNU ld" >&5
9481echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9482else
9483 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9484echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9485fi
9486if test "${lt_cv_path_LD+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489 if test -z "$LD"; then
9490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9491 for ac_dir in $PATH; do
9492 IFS="$lt_save_ifs"
9493 test -z "$ac_dir" && ac_dir=.
9494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9495 lt_cv_path_LD="$ac_dir/$ac_prog"
9496 # Check to see if the program is GNU ld. I'd rather use --version,
9497 # but apparently some GNU ld's only accept -v.
9498 # Break only if it was the GNU/non-GNU ld that we prefer.
9499 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9500 *GNU* | *'with BFD'*)
9501 test "$with_gnu_ld" != no && break
9502 ;;
9503 *)
9504 test "$with_gnu_ld" != yes && break
9505 ;;
9506 esac
9507 fi
9508 done
9509 IFS="$lt_save_ifs"
9510else
9511 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9512fi
9513fi
9514
9515LD="$lt_cv_path_LD"
9516if test -n "$LD"; then
9517 echo "$as_me:$LINENO: result: $LD" >&5
9518echo "${ECHO_T}$LD" >&6
9519else
9520 echo "$as_me:$LINENO: result: no" >&5
9521echo "${ECHO_T}no" >&6
9522fi
9523test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9524echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9525 { (exit 1); exit 1; }; }
9526echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9527echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9528if test "${lt_cv_prog_gnu_ld+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530else
9531 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9532case `"$LD" -v 2>&1 </dev/null` in
9533*GNU* | *'with BFD'*)
9534 lt_cv_prog_gnu_ld=yes
9535 ;;
9536*)
9537 lt_cv_prog_gnu_ld=no
9538 ;;
9539esac
9540fi
9541echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9542echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9543with_gnu_ld=$lt_cv_prog_gnu_ld
9544
9545
9546
9547 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9548 # archiving commands below assume that GNU ld is being used.
9549 if test "$with_gnu_ld" = yes; then
9550 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 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'
9552
9553 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9555
9556 # If archive_cmds runs LD, not CC, wlarc should be empty
9557 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9558 # investigate it a little bit more. (MM)
9559 wlarc='${wl}'
9560
9561 # ancient GNU ld didn't support --whole-archive et. al.
9562 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9563 grep 'no-whole-archive' > /dev/null; then
9564 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9565 else
9566 whole_archive_flag_spec_CXX=
9567 fi
9568 else
9569 with_gnu_ld=no
9570 wlarc=
9571
9572 # A generic and very simple default shared library creation
9573 # command for GNU C++ for the case where it uses the native
9574 # linker, instead of GNU ld. If possible, this setting should
9575 # overridden to take advantage of the native linker features on
9576 # the platform it is being used on.
9577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9578 fi
9579
9580 # Commands to make compiler produce verbose output that lists
9581 # what "hidden" libraries, object files and flags are used when
9582 # linking a shared library.
9583 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9584
9585else
9586 GXX=no
9587 with_gnu_ld=no
9588 wlarc=
9589fi
9590
9591# PORTME: fill in a description of your system's C++ link characteristics
9592echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9593echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9594ld_shlibs_CXX=yes
9595case $host_os in
9596 aix3*)
9597 # FIXME: insert proper C++ library support
9598 ld_shlibs_CXX=no
9599 ;;
9600 aix4* | aix5*)
9601 if test "$host_cpu" = ia64; then
9602 # On IA64, the linker does run time linking by default, so we don't
9603 # have to do anything special.
9604 aix_use_runtimelinking=no
9605 exp_sym_flag='-Bexport'
9606 no_entry_flag=""
9607 else
9608 aix_use_runtimelinking=no
9609
9610 # Test if we are trying to use run time linking or normal
9611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9612 # need to do runtime linking.
9613 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9614 for ld_flag in $LDFLAGS; do
9615 case $ld_flag in
9616 *-brtl*)
9617 aix_use_runtimelinking=yes
9618 break
9619 ;;
9620 esac
9621 done
9622 esac
9623
9624 exp_sym_flag='-bexport'
9625 no_entry_flag='-bnoentry'
9626 fi
9627
9628 # When large executables or shared objects are built, AIX ld can
9629 # have problems creating the table of contents. If linking a library
9630 # or program results in "error TOC overflow" add -mminimal-toc to
9631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9633
9634 archive_cmds_CXX=''
9635 hardcode_direct_CXX=yes
9636 hardcode_libdir_separator_CXX=':'
9637 link_all_deplibs_CXX=yes
9638
9639 if test "$GXX" = yes; then
9640 case $host_os in aix4.012|aix4.012.*)
9641 # We only want to do this on AIX 4.2 and lower, the check
9642 # below for broken collect2 doesn't work under 4.3+
9643 collect2name=`${CC} -print-prog-name=collect2`
9644 if test -f "$collect2name" && \
9645 strings "$collect2name" | grep resolve_lib_name >/dev/null
9646 then
9647 # We have reworked collect2
9648 hardcode_direct_CXX=yes
9649 else
9650 # We have old collect2
9651 hardcode_direct_CXX=unsupported
9652 # It fails to find uninstalled libraries when the uninstalled
9653 # path is not listed in the libpath. Setting hardcode_minus_L
9654 # to unsupported forces relinking
9655 hardcode_minus_L_CXX=yes
9656 hardcode_libdir_flag_spec_CXX='-L$libdir'
9657 hardcode_libdir_separator_CXX=
9658 fi
9659 esac
9660 shared_flag='-shared'
9661 else
9662 # not using gcc
9663 if test "$host_cpu" = ia64; then
9664 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9665 # chokes on -Wl,-G. The following line is correct:
9666 shared_flag='-G'
9667 else
9668 if test "$aix_use_runtimelinking" = yes; then
9669 shared_flag='${wl}-G'
9670 else
9671 shared_flag='${wl}-bM:SRE'
9672 fi
9673 fi
9674 fi
9675
9676 # It seems that -bexpall does not export symbols beginning with
9677 # underscore (_), so it is better to generate a list of symbols to export.
9678 always_export_symbols_CXX=yes
9679 if test "$aix_use_runtimelinking" = yes; then
9680 # Warning - without using the other runtime loading flags (-brtl),
9681 # -berok will link without error, but may produce a broken library.
9682 allow_undefined_flag_CXX='-berok'
9683 # Determine the default libpath from the value encoded in an empty executable.
9684 cat >conftest.$ac_ext <<_ACEOF
9685#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009691
John Criswell47fdd832003-07-14 16:52:07 +00009692int
9693main ()
9694{
9695
9696 ;
9697 return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext conftest$ac_exeext
9701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9702 (eval $ac_link) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -s conftest$ac_exeext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712
9713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9714}'`
9715# Check for a 64-bit object if we didn't find anything.
9716if 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; }
9717}'`; fi
9718else
9719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009720sed 's/^/| /' conftest.$ac_ext >&5
9721
John Criswell47fdd832003-07-14 16:52:07 +00009722fi
9723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9724if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9725
9726 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9727
9728 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"
9729 else
9730 if test "$host_cpu" = ia64; then
9731 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9732 allow_undefined_flag_CXX="-z nodefs"
9733 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"
9734 else
9735 # Determine the default libpath from the value encoded in an empty executable.
9736 cat >conftest.$ac_ext <<_ACEOF
9737#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009738/* confdefs.h. */
9739_ACEOF
9740cat confdefs.h >>conftest.$ac_ext
9741cat >>conftest.$ac_ext <<_ACEOF
9742/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009743
John Criswell47fdd832003-07-14 16:52:07 +00009744int
9745main ()
9746{
9747
9748 ;
9749 return 0;
9750}
9751_ACEOF
9752rm -f conftest.$ac_objext conftest$ac_exeext
9753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764
9765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9766}'`
9767# Check for a 64-bit object if we didn't find anything.
9768if 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; }
9769}'`; fi
9770else
9771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009772sed 's/^/| /' conftest.$ac_ext >&5
9773
John Criswell47fdd832003-07-14 16:52:07 +00009774fi
9775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9776if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9777
9778 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9779 # Warning - without using the other run time loading flags,
9780 # -berok will link without error, but may produce a broken library.
9781 no_undefined_flag_CXX=' ${wl}-bernotok'
9782 allow_undefined_flag_CXX=' ${wl}-berok'
9783 # -bexpall does not export symbols beginning with underscore (_)
9784 always_export_symbols_CXX=yes
9785 # Exported symbols can be pulled into shared objects from archives
9786 whole_archive_flag_spec_CXX=' '
9787 archive_cmds_need_lc_CXX=yes
9788 # This is similar to how AIX traditionally builds it's shared libraries.
9789 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'
9790 fi
9791 fi
9792 ;;
9793 chorus*)
9794 case $cc_basename in
9795 *)
9796 # FIXME: insert proper C++ library support
9797 ld_shlibs_CXX=no
9798 ;;
9799 esac
9800 ;;
9801
9802 cygwin* | mingw* | pw32*)
9803 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9804 # as there is no search path for DLLs.
9805 hardcode_libdir_flag_spec_CXX='-L$libdir'
9806 allow_undefined_flag_CXX=unsupported
9807 always_export_symbols_CXX=no
9808 enable_shared_with_static_runtimes_CXX=yes
9809
9810 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9811 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'
9812 # If the export-symbols file already is a .def file (1st line
9813 # is EXPORTS), use it as is; otherwise, prepend...
9814 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9815 cp $export_symbols $output_objdir/$soname.def;
9816 else
9817 echo EXPORTS > $output_objdir/$soname.def;
9818 cat $export_symbols >> $output_objdir/$soname.def;
9819 fi~
9820 $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'
9821 else
9822 ld_shlibs_CXX=no
9823 fi
9824 ;;
9825
9826 darwin* | rhapsody*)
9827 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9828 archive_cmds_need_lc_CXX=no
9829 case "$host_os" in
9830 rhapsody* | darwin1.[012])
9831 allow_undefined_flag_CXX='-undefined suppress'
9832 ;;
9833 *) # Darwin 1.3 on
9834 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9835 ;;
9836 esac
9837 lt_int_apple_cc_single_mod=no
9838 output_verbose_link_cmd='echo'
9839 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9840 lt_int_apple_cc_single_mod=yes
9841 fi
9842 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9843 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9844 else
9845 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'
9846 fi
9847 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9848
9849 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9850 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9851 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}'
9852 else
9853 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}'
9854 fi
9855 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}'
9856 hardcode_direct_CXX=no
9857 hardcode_automatic_CXX=yes
9858 hardcode_shlibpath_var_CXX=unsupported
9859 whole_archive_flag_spec_CXX='-all_load $convenience'
9860 link_all_deplibs_CXX=yes
9861 fi
9862 ;;
9863
9864 dgux*)
9865 case $cc_basename in
9866 ec++)
9867 # FIXME: insert proper C++ library support
9868 ld_shlibs_CXX=no
9869 ;;
9870 ghcx)
9871 # Green Hills C++ Compiler
9872 # FIXME: insert proper C++ library support
9873 ld_shlibs_CXX=no
9874 ;;
9875 *)
9876 # FIXME: insert proper C++ library support
9877 ld_shlibs_CXX=no
9878 ;;
9879 esac
9880 ;;
9881 freebsd12*)
9882 # C++ shared libraries reported to be fairly broken before switch to ELF
9883 ld_shlibs_CXX=no
9884 ;;
9885 freebsd-elf*)
9886 archive_cmds_need_lc_CXX=no
9887 ;;
9888 freebsd*)
9889 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9890 # conventions
9891 ld_shlibs_CXX=yes
9892 ;;
9893 gnu*)
9894 ;;
9895 hpux9*)
9896 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9897 hardcode_libdir_separator_CXX=:
9898 export_dynamic_flag_spec_CXX='${wl}-E'
9899 hardcode_direct_CXX=yes
9900 hardcode_minus_L_CXX=yes # Not in the search PATH,
9901 # but as the default
9902 # location of the library.
9903
9904 case $cc_basename in
9905 CC)
9906 # FIXME: insert proper C++ library support
9907 ld_shlibs_CXX=no
9908 ;;
9909 aCC)
9910 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'
9911 # Commands to make compiler produce verbose output that lists
9912 # what "hidden" libraries, object files and flags are used when
9913 # linking a shared library.
9914 #
9915 # There doesn't appear to be a way to prevent this compiler from
9916 # explicitly linking system object files so we need to strip them
9917 # from the output so that they don't get included in the library
9918 # dependencies.
9919 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'
9920 ;;
9921 *)
9922 if test "$GXX" = yes; then
9923 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'
9924 else
9925 # FIXME: insert proper C++ library support
9926 ld_shlibs_CXX=no
9927 fi
9928 ;;
9929 esac
9930 ;;
9931 hpux10*|hpux11*)
9932 if test $with_gnu_ld = no; then
9933 case "$host_cpu" in
9934 hppa*64*)
9935 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9936 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9937 hardcode_libdir_separator_CXX=:
9938 ;;
9939 ia64*)
9940 hardcode_libdir_flag_spec_CXX='-L$libdir'
9941 ;;
9942 *)
9943 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9944 hardcode_libdir_separator_CXX=:
9945 export_dynamic_flag_spec_CXX='${wl}-E'
9946 ;;
9947 esac
9948 fi
9949 case "$host_cpu" in
9950 hppa*64*)
9951 hardcode_direct_CXX=no
9952 hardcode_shlibpath_var_CXX=no
9953 ;;
9954 ia64*)
9955 hardcode_direct_CXX=no
9956 hardcode_shlibpath_var_CXX=no
9957 hardcode_minus_L_CXX=yes # Not in the search PATH,
9958 # but as the default
9959 # location of the library.
9960 ;;
9961 *)
9962 hardcode_direct_CXX=yes
9963 hardcode_minus_L_CXX=yes # Not in the search PATH,
9964 # but as the default
9965 # location of the library.
9966 ;;
9967 esac
9968
9969 case $cc_basename in
9970 CC)
9971 # FIXME: insert proper C++ library support
9972 ld_shlibs_CXX=no
9973 ;;
9974 aCC)
9975 case "$host_cpu" in
9976 hppa*64*|ia64*)
9977 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9978 ;;
9979 *)
9980 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9981 ;;
9982 esac
9983 # Commands to make compiler produce verbose output that lists
9984 # what "hidden" libraries, object files and flags are used when
9985 # linking a shared library.
9986 #
9987 # There doesn't appear to be a way to prevent this compiler from
9988 # explicitly linking system object files so we need to strip them
9989 # from the output so that they don't get included in the library
9990 # dependencies.
9991 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'
9992 ;;
9993 *)
9994 if test "$GXX" = yes; then
9995 if test $with_gnu_ld = no; then
9996 case "$host_cpu" in
9997 ia64*|hppa*64*)
9998 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9999 ;;
10000 *)
10001 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'
10002 ;;
10003 esac
10004 fi
10005 else
10006 # FIXME: insert proper C++ library support
10007 ld_shlibs_CXX=no
10008 fi
10009 ;;
10010 esac
10011 ;;
10012 irix5* | irix6*)
10013 case $cc_basename in
10014 CC)
10015 # SGI C++
10016 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'
10017
10018 # Archives containing C++ object files must be created using
10019 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10020 # necessary to make sure instantiated templates are included
10021 # in the archive.
10022 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10023 ;;
10024 *)
10025 if test "$GXX" = yes; then
10026 if test "$with_gnu_ld" = no; then
10027 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'
10028 else
10029 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'
10030 fi
10031 fi
10032 link_all_deplibs_CXX=yes
10033 ;;
10034 esac
10035 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10036 hardcode_libdir_separator_CXX=:
10037 ;;
10038 linux*)
10039 case $cc_basename in
10040 KCC)
10041 # Kuck and Associates, Inc. (KAI) C++ Compiler
10042
10043 # KCC will only create a shared library if the output file
10044 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10045 # to its proper name (with version) after linking.
10046 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'
10047 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'
10048 # Commands to make compiler produce verbose output that lists
10049 # what "hidden" libraries, object files and flags are used when
10050 # linking a shared library.
10051 #
10052 # There doesn't appear to be a way to prevent this compiler from
10053 # explicitly linking system object files so we need to strip them
10054 # from the output so that they don't get included in the library
10055 # dependencies.
10056 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'
10057
10058 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10060
10061 # Archives containing C++ object files must be created using
10062 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10063 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10064 ;;
10065 icpc)
10066 # Intel C++
10067 with_gnu_ld=yes
10068 archive_cmds_need_lc_CXX=no
10069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10070 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'
10071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10073 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10074 ;;
10075 cxx)
10076 # Compaq C++
10077 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10078 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'
10079
10080 runpath_var=LD_RUN_PATH
10081 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10082 hardcode_libdir_separator_CXX=:
10083
10084 # Commands to make compiler produce verbose output that lists
10085 # what "hidden" libraries, object files and flags are used when
10086 # linking a shared library.
10087 #
10088 # There doesn't appear to be a way to prevent this compiler from
10089 # explicitly linking system object files so we need to strip them
10090 # from the output so that they don't get included in the library
10091 # dependencies.
10092 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'
10093 ;;
10094 esac
10095 ;;
10096 lynxos*)
10097 # FIXME: insert proper C++ library support
10098 ld_shlibs_CXX=no
10099 ;;
10100 m88k*)
10101 # FIXME: insert proper C++ library support
10102 ld_shlibs_CXX=no
10103 ;;
10104 mvs*)
10105 case $cc_basename in
10106 cxx)
10107 # FIXME: insert proper C++ library support
10108 ld_shlibs_CXX=no
10109 ;;
10110 *)
10111 # FIXME: insert proper C++ library support
10112 ld_shlibs_CXX=no
10113 ;;
10114 esac
10115 ;;
10116 netbsd*)
10117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10118 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10119 wlarc=
10120 hardcode_libdir_flag_spec_CXX='-R$libdir'
10121 hardcode_direct_CXX=yes
10122 hardcode_shlibpath_var_CXX=no
10123 fi
10124 # Workaround some broken pre-1.5 toolchains
10125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10126 ;;
10127 osf3*)
10128 case $cc_basename in
10129 KCC)
10130 # Kuck and Associates, Inc. (KAI) C++ Compiler
10131
10132 # KCC will only create a shared library if the output file
10133 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10134 # to its proper name (with version) after linking.
10135 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'
10136
10137 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10138 hardcode_libdir_separator_CXX=:
10139
10140 # Archives containing C++ object files must be created using
10141 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10142 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10143
10144 ;;
10145 RCC)
10146 # Rational C++ 2.4.1
10147 # FIXME: insert proper C++ library support
10148 ld_shlibs_CXX=no
10149 ;;
10150 cxx)
10151 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10152 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'
10153
10154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10155 hardcode_libdir_separator_CXX=:
10156
10157 # Commands to make compiler produce verbose output that lists
10158 # what "hidden" libraries, object files and flags are used when
10159 # linking a shared library.
10160 #
10161 # There doesn't appear to be a way to prevent this compiler from
10162 # explicitly linking system object files so we need to strip them
10163 # from the output so that they don't get included in the library
10164 # dependencies.
10165 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'
10166 ;;
10167 *)
10168 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10169 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10170 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'
10171
10172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10173 hardcode_libdir_separator_CXX=:
10174
10175 # Commands to make compiler produce verbose output that lists
10176 # what "hidden" libraries, object files and flags are used when
10177 # linking a shared library.
10178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10179
10180 else
10181 # FIXME: insert proper C++ library support
10182 ld_shlibs_CXX=no
10183 fi
10184 ;;
10185 esac
10186 ;;
10187 osf4* | osf5*)
10188 case $cc_basename in
10189 KCC)
10190 # Kuck and Associates, Inc. (KAI) C++ Compiler
10191
10192 # KCC will only create a shared library if the output file
10193 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10194 # to its proper name (with version) after linking.
10195 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'
10196
10197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10198 hardcode_libdir_separator_CXX=:
10199
10200 # Archives containing C++ object files must be created using
10201 # the KAI C++ compiler.
10202 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10203 ;;
10204 RCC)
10205 # Rational C++ 2.4.1
10206 # FIXME: insert proper C++ library support
10207 ld_shlibs_CXX=no
10208 ;;
10209 cxx)
10210 allow_undefined_flag_CXX=' -expect_unresolved \*'
10211 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'
10212 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10213 echo "-hidden">> $lib.exp~
10214 $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~
10215 $rm $lib.exp'
10216
10217 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10218 hardcode_libdir_separator_CXX=:
10219
10220 # Commands to make compiler produce verbose output that lists
10221 # what "hidden" libraries, object files and flags are used when
10222 # linking a shared library.
10223 #
10224 # There doesn't appear to be a way to prevent this compiler from
10225 # explicitly linking system object files so we need to strip them
10226 # from the output so that they don't get included in the library
10227 # dependencies.
10228 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'
10229 ;;
10230 *)
10231 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10232 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10233 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'
10234
10235 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10236 hardcode_libdir_separator_CXX=:
10237
10238 # Commands to make compiler produce verbose output that lists
10239 # what "hidden" libraries, object files and flags are used when
10240 # linking a shared library.
10241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10242
10243 else
10244 # FIXME: insert proper C++ library support
10245 ld_shlibs_CXX=no
10246 fi
10247 ;;
10248 esac
10249 ;;
10250 psos*)
10251 # FIXME: insert proper C++ library support
10252 ld_shlibs_CXX=no
10253 ;;
10254 sco*)
10255 archive_cmds_need_lc_CXX=no
10256 case $cc_basename in
10257 CC)
10258 # FIXME: insert proper C++ library support
10259 ld_shlibs_CXX=no
10260 ;;
10261 *)
10262 # FIXME: insert proper C++ library support
10263 ld_shlibs_CXX=no
10264 ;;
10265 esac
10266 ;;
10267 sunos4*)
10268 case $cc_basename in
10269 CC)
10270 # Sun C++ 4.x
10271 # FIXME: insert proper C++ library support
10272 ld_shlibs_CXX=no
10273 ;;
10274 lcc)
10275 # Lucid
10276 # FIXME: insert proper C++ library support
10277 ld_shlibs_CXX=no
10278 ;;
10279 *)
10280 # FIXME: insert proper C++ library support
10281 ld_shlibs_CXX=no
10282 ;;
10283 esac
10284 ;;
10285 solaris*)
10286 case $cc_basename in
10287 CC)
10288 # Sun C++ 4.2, 5.x and Centerline C++
10289 no_undefined_flag_CXX=' -zdefs'
10290 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10291 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10292 $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'
10293
10294 hardcode_libdir_flag_spec_CXX='-R$libdir'
10295 hardcode_shlibpath_var_CXX=no
10296 case $host_os in
10297 solaris2.0-5 | solaris2.0-5.*) ;;
10298 *)
10299 # The C++ compiler is used as linker so we must use $wl
10300 # flag to pass the commands to the underlying system
10301 # linker.
10302 # Supported since Solaris 2.6 (maybe 2.5.1?)
10303 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10304 ;;
10305 esac
10306 link_all_deplibs_CXX=yes
10307
10308 # Commands to make compiler produce verbose output that lists
10309 # what "hidden" libraries, object files and flags are used when
10310 # linking a shared library.
10311 #
10312 # There doesn't appear to be a way to prevent this compiler from
10313 # explicitly linking system object files so we need to strip them
10314 # from the output so that they don't get included in the library
10315 # dependencies.
10316 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'
10317
10318 # Archives containing C++ object files must be created using
10319 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10320 # necessary to make sure instantiated templates are included
10321 # in the archive.
10322 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10323 ;;
10324 gcx)
10325 # Green Hills C++ Compiler
10326 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10327
10328 # The C++ compiler must be used to create the archive.
10329 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10330 ;;
10331 *)
10332 # GNU C++ compiler with Solaris linker
10333 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10334 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10335 if $CC --version | grep -v '^2\.7' > /dev/null; then
10336 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10337 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10338 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10339
10340 # Commands to make compiler produce verbose output that lists
10341 # what "hidden" libraries, object files and flags are used when
10342 # linking a shared library.
10343 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10344 else
10345 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10346 # platform.
10347 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10348 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10349 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10350
10351 # Commands to make compiler produce verbose output that lists
10352 # what "hidden" libraries, object files and flags are used when
10353 # linking a shared library.
10354 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10355 fi
10356
10357 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10358 fi
10359 ;;
10360 esac
10361 ;;
10362 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10363 archive_cmds_need_lc_CXX=no
10364 ;;
10365 tandem*)
10366 case $cc_basename in
10367 NCC)
10368 # NonStop-UX NCC 3.20
10369 # FIXME: insert proper C++ library support
10370 ld_shlibs_CXX=no
10371 ;;
10372 *)
10373 # FIXME: insert proper C++ library support
10374 ld_shlibs_CXX=no
10375 ;;
10376 esac
10377 ;;
10378 vxworks*)
10379 # FIXME: insert proper C++ library support
10380 ld_shlibs_CXX=no
10381 ;;
10382 *)
10383 # FIXME: insert proper C++ library support
10384 ld_shlibs_CXX=no
10385 ;;
10386esac
10387echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10388echo "${ECHO_T}$ld_shlibs_CXX" >&6
10389test "$ld_shlibs_CXX" = no && can_build_shared=no
10390
10391GCC_CXX="$GXX"
10392LD_CXX="$LD"
10393
10394## CAVEAT EMPTOR:
10395## There is no encapsulation within the following macros, do not change
10396## the running order or otherwise move them around unless you know exactly
10397## what you are doing...
10398
10399cat > conftest.$ac_ext <<EOF
10400class Foo
10401{
10402public:
10403 Foo (void) { a = 0; }
10404private:
10405 int a;
10406};
10407EOF
10408
10409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410 (eval $ac_compile) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; then
10414 # Parse the compiler output and extract the necessary
10415 # objects, libraries and library flags.
10416
10417 # Sentinel used to keep track of whether or not we are before
10418 # the conftest object file.
10419 pre_test_object_deps_done=no
10420
10421 # The `*' in the case matches for architectures that use `case' in
10422 # $output_verbose_cmd can trigger glob expansion during the loop
10423 # eval without this substitution.
10424 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10425
10426 for p in `eval $output_verbose_link_cmd`; do
10427 case $p in
10428
10429 -L* | -R* | -l*)
10430 # Some compilers place space between "-{L,R}" and the path.
10431 # Remove the space.
10432 if test $p = "-L" \
10433 || test $p = "-R"; then
10434 prev=$p
10435 continue
10436 else
10437 prev=
10438 fi
10439
10440 if test "$pre_test_object_deps_done" = no; then
10441 case $p in
10442 -L* | -R*)
10443 # Internal compiler library paths should come after those
10444 # provided the user. The postdeps already come after the
10445 # user supplied libs so there is no need to process them.
10446 if test -z "$compiler_lib_search_path_CXX"; then
10447 compiler_lib_search_path_CXX="${prev}${p}"
10448 else
10449 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10450 fi
10451 ;;
10452 # The "-l" case would never come before the object being
10453 # linked, so don't bother handling this case.
10454 esac
10455 else
10456 if test -z "$postdeps_CXX"; then
10457 postdeps_CXX="${prev}${p}"
10458 else
10459 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10460 fi
10461 fi
10462 ;;
10463
10464 *.$objext)
10465 # This assumes that the test object file only shows up
10466 # once in the compiler output.
10467 if test "$p" = "conftest.$objext"; then
10468 pre_test_object_deps_done=yes
10469 continue
10470 fi
10471
10472 if test "$pre_test_object_deps_done" = no; then
10473 if test -z "$predep_objects_CXX"; then
10474 predep_objects_CXX="$p"
10475 else
10476 predep_objects_CXX="$predep_objects_CXX $p"
10477 fi
10478 else
10479 if test -z "$postdep_objects_CXX"; then
10480 postdep_objects_CXX="$p"
10481 else
10482 postdep_objects_CXX="$postdep_objects_CXX $p"
10483 fi
10484 fi
10485 ;;
10486
10487 *) ;; # Ignore the rest.
10488
10489 esac
10490 done
10491
10492 # Clean up.
10493 rm -f a.out a.exe
10494else
10495 echo "libtool.m4: error: problem compiling CXX test program"
10496fi
10497
10498$rm -f confest.$objext
10499
10500case " $postdeps_CXX " in
10501*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10502esac
10503
10504lt_prog_compiler_wl_CXX=
10505lt_prog_compiler_pic_CXX=
10506lt_prog_compiler_static_CXX=
10507
10508echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10509echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10510
10511 # C++ specific cases for pic, static, wl, etc.
10512 if test "$GXX" = yes; then
10513 lt_prog_compiler_wl_CXX='-Wl,'
10514 lt_prog_compiler_static_CXX='-static'
10515
10516 case $host_os in
10517 aix*)
10518 # All AIX code is PIC.
10519 if test "$host_cpu" = ia64; then
10520 # AIX 5 now supports IA64 processor
10521 lt_prog_compiler_static_CXX='-Bstatic'
10522 fi
10523 ;;
10524 amigaos*)
10525 # FIXME: we need at least 68020 code to build shared libraries, but
10526 # adding the `-m68020' flag to GCC prevents building anything better,
10527 # like `-m68040'.
10528 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10529 ;;
10530 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10531 # PIC is the default for these OSes.
10532 ;;
10533 mingw* | os2* | pw32*)
10534 # This hack is so that the source file can tell whether it is being
10535 # built for inclusion in a dll (and should export symbols for example).
10536 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10537 ;;
10538 darwin* | rhapsody*)
10539 # PIC is the default on this platform
10540 # Common symbols not allowed in MH_DYLIB files
10541 lt_prog_compiler_pic_CXX='-fno-common'
10542 ;;
10543 *djgpp*)
10544 # DJGPP does not support shared libraries at all
10545 lt_prog_compiler_pic_CXX=
10546 ;;
10547 sysv4*MP*)
10548 if test -d /usr/nec; then
10549 lt_prog_compiler_pic_CXX=-Kconform_pic
10550 fi
10551 ;;
10552 hpux*)
10553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10554 # not for PA HP-UX.
10555 case "$host_cpu" in
10556 hppa*64*|ia64*)
10557 ;;
10558 *)
10559 lt_prog_compiler_pic_CXX='-fPIC'
10560 ;;
10561 esac
10562 ;;
10563 *)
10564 lt_prog_compiler_pic_CXX='-fPIC'
10565 ;;
10566 esac
10567 else
10568 case $host_os in
10569 aix4* | aix5*)
10570 # All AIX code is PIC.
10571 if test "$host_cpu" = ia64; then
10572 # AIX 5 now supports IA64 processor
10573 lt_prog_compiler_static_CXX='-Bstatic'
10574 else
10575 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10576 fi
10577 ;;
10578 chorus*)
10579 case $cc_basename in
10580 cxch68)
10581 # Green Hills C++ Compiler
10582 # _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"
10583 ;;
10584 esac
10585 ;;
10586 dgux*)
10587 case $cc_basename in
10588 ec++)
10589 lt_prog_compiler_pic_CXX='-KPIC'
10590 ;;
10591 ghcx)
10592 # Green Hills C++ Compiler
10593 lt_prog_compiler_pic_CXX='-pic'
10594 ;;
10595 *)
10596 ;;
10597 esac
10598 ;;
10599 freebsd*)
10600 # FreeBSD uses GNU C++
10601 ;;
10602 hpux9* | hpux10* | hpux11*)
10603 case $cc_basename in
10604 CC)
10605 lt_prog_compiler_wl_CXX='-Wl,'
10606 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10607 if test "$host_cpu" != ia64; then
10608 lt_prog_compiler_pic_CXX='+Z'
10609 fi
10610 ;;
10611 aCC)
10612 lt_prog_compiler_wl_CXX='-Wl,'
10613 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10614 case "$host_cpu" in
10615 hppa*64*|ia64*)
10616 # +Z the default
10617 ;;
10618 *)
10619 lt_prog_compiler_pic_CXX='+Z'
10620 ;;
10621 esac
10622 ;;
10623 *)
10624 ;;
10625 esac
10626 ;;
10627 irix5* | irix6* | nonstopux*)
10628 case $cc_basename in
10629 CC)
10630 lt_prog_compiler_wl_CXX='-Wl,'
10631 lt_prog_compiler_static_CXX='-non_shared'
10632 # CC pic flag -KPIC is the default.
10633 ;;
10634 *)
10635 ;;
10636 esac
10637 ;;
10638 linux*)
10639 case $cc_basename in
10640 KCC)
10641 # KAI C++ Compiler
10642 lt_prog_compiler_wl_CXX='--backend -Wl,'
10643 lt_prog_compiler_pic_CXX='-fPIC'
10644 ;;
10645 icpc)
10646 # Intel C++
10647 lt_prog_compiler_wl_CXX='-Wl,'
10648 lt_prog_compiler_pic_CXX='-KPIC'
10649 lt_prog_compiler_static_CXX='-static'
10650 ;;
10651 cxx)
10652 # Compaq C++
10653 # Make sure the PIC flag is empty. It appears that all Alpha
10654 # Linux and Compaq Tru64 Unix objects are PIC.
10655 lt_prog_compiler_pic_CXX=
10656 lt_prog_compiler_static_CXX='-non_shared'
10657 ;;
10658 *)
10659 ;;
10660 esac
10661 ;;
10662 lynxos*)
10663 ;;
10664 m88k*)
10665 ;;
10666 mvs*)
10667 case $cc_basename in
10668 cxx)
10669 lt_prog_compiler_pic_CXX='-W c,exportall'
10670 ;;
10671 *)
10672 ;;
10673 esac
10674 ;;
10675 netbsd*)
10676 ;;
10677 osf3* | osf4* | osf5*)
10678 case $cc_basename in
10679 KCC)
10680 lt_prog_compiler_wl_CXX='--backend -Wl,'
10681 ;;
10682 RCC)
10683 # Rational C++ 2.4.1
10684 lt_prog_compiler_pic_CXX='-pic'
10685 ;;
10686 cxx)
10687 # Digital/Compaq C++
10688 lt_prog_compiler_wl_CXX='-Wl,'
10689 # Make sure the PIC flag is empty. It appears that all Alpha
10690 # Linux and Compaq Tru64 Unix objects are PIC.
10691 lt_prog_compiler_pic_CXX=
10692 lt_prog_compiler_static_CXX='-non_shared'
10693 ;;
10694 *)
10695 ;;
10696 esac
10697 ;;
10698 psos*)
10699 ;;
10700 sco*)
10701 case $cc_basename in
10702 CC)
10703 lt_prog_compiler_pic_CXX='-fPIC'
10704 ;;
10705 *)
10706 ;;
10707 esac
10708 ;;
10709 solaris*)
10710 case $cc_basename in
10711 CC)
10712 # Sun C++ 4.2, 5.x and Centerline C++
10713 lt_prog_compiler_pic_CXX='-KPIC'
10714 lt_prog_compiler_static_CXX='-Bstatic'
10715 lt_prog_compiler_wl_CXX='-Qoption ld '
10716 ;;
10717 gcx)
10718 # Green Hills C++ Compiler
10719 lt_prog_compiler_pic_CXX='-PIC'
10720 ;;
10721 *)
10722 ;;
10723 esac
10724 ;;
10725 sunos4*)
10726 case $cc_basename in
10727 CC)
10728 # Sun C++ 4.x
10729 lt_prog_compiler_pic_CXX='-pic'
10730 lt_prog_compiler_static_CXX='-Bstatic'
10731 ;;
10732 lcc)
10733 # Lucid
10734 lt_prog_compiler_pic_CXX='-pic'
10735 ;;
10736 *)
10737 ;;
10738 esac
10739 ;;
10740 tandem*)
10741 case $cc_basename in
10742 NCC)
10743 # NonStop-UX NCC 3.20
10744 lt_prog_compiler_pic_CXX='-KPIC'
10745 ;;
10746 *)
10747 ;;
10748 esac
10749 ;;
10750 unixware*)
10751 ;;
10752 vxworks*)
10753 ;;
10754 *)
10755 lt_prog_compiler_can_build_shared_CXX=no
10756 ;;
10757 esac
10758 fi
10759
10760echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10761echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10762
10763#
10764# Check to make sure the PIC flag actually works.
10765#
10766if test -n "$lt_prog_compiler_pic_CXX"; then
10767 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10768echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10769if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771else
10772 lt_prog_compiler_pic_works_CXX=no
10773 ac_outfile=conftest.$ac_objext
10774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10775 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10776 # Insert the option either (1) after the last *FLAGS variable, or
10777 # (2) before a word containing "conftest.", or (3) at the end.
10778 # Note that $ac_compile itself does not contain backslashes and begins
10779 # with a dollar sign (not a hyphen), so the echo should work correctly.
10780 # The option is referenced via a variable to avoid confusing sed.
10781 lt_compile=`echo "$ac_compile" | $SED \
10782 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10784 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +000010785 (eval echo "\"\$as_me:10785: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010786 (eval "$lt_compile" 2>conftest.err)
10787 ac_status=$?
10788 cat conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +000010789 echo "$as_me:10789: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010790 if (exit $ac_status) && test -s "$ac_outfile"; then
10791 # The compiler can only warn and ignore the option if not recognized
10792 # So say no if there are warnings
10793 if test ! -s conftest.err; then
10794 lt_prog_compiler_pic_works_CXX=yes
10795 fi
10796 fi
10797 $rm conftest*
10798
10799fi
10800echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10801echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10802
10803if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10804 case $lt_prog_compiler_pic_CXX in
10805 "" | " "*) ;;
10806 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10807 esac
10808else
10809 lt_prog_compiler_pic_CXX=
10810 lt_prog_compiler_can_build_shared_CXX=no
10811fi
10812
10813fi
10814case "$host_os" in
10815 # For platforms which do not support PIC, -DPIC is meaningless:
10816 *djgpp*)
10817 lt_prog_compiler_pic_CXX=
10818 ;;
10819 *)
10820 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10821 ;;
10822esac
10823
10824echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10825echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10826if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829 lt_cv_prog_compiler_c_o_CXX=no
10830 $rm -r conftest 2>/dev/null
10831 mkdir conftest
10832 cd conftest
10833 mkdir out
10834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10835
10836 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10837 # that will create temporary files in the current directory regardless of
10838 # the output directory. Thus, making CWD read-only will cause this test
10839 # to fail, enabling locking or at least warning the user not to do parallel
10840 # builds.
10841 chmod -w .
10842
10843 lt_compiler_flag="-o out/conftest2.$ac_objext"
10844 # Insert the option either (1) after the last *FLAGS variable, or
10845 # (2) before a word containing "conftest.", or (3) at the end.
10846 # Note that $ac_compile itself does not contain backslashes and begins
10847 # with a dollar sign (not a hyphen), so the echo should work correctly.
10848 lt_compile=`echo "$ac_compile" | $SED \
10849 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10851 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +000010852 (eval echo "\"\$as_me:10852: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010853 (eval "$lt_compile" 2>out/conftest.err)
10854 ac_status=$?
10855 cat out/conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +000010856 echo "$as_me:10856: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10858 then
10859 # The compiler can only warn and ignore the option if not recognized
10860 # So say no if there are warnings
10861 if test ! -s out/conftest.err; then
10862 lt_cv_prog_compiler_c_o_CXX=yes
10863 fi
10864 fi
10865 chmod u+w .
10866 $rm conftest* out/*
10867 rmdir out
10868 cd ..
10869 rmdir conftest
10870 $rm conftest*
10871
10872fi
10873echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10874echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10875
10876
10877hard_links="nottested"
10878if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10879 # do not overwrite the value of need_locks provided by the user
10880 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10881echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10882 hard_links=yes
10883 $rm conftest*
10884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10885 touch conftest.a
10886 ln conftest.a conftest.b 2>&5 || hard_links=no
10887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10888 echo "$as_me:$LINENO: result: $hard_links" >&5
10889echo "${ECHO_T}$hard_links" >&6
10890 if test "$hard_links" = no; then
10891 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10892echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10893 need_locks=warn
10894 fi
10895else
10896 need_locks=no
10897fi
10898
10899echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10900echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10901
10902 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10903 case $host_os in
10904 aix4* | aix5*)
10905 # If we're using GNU nm, then we don't want the "-C" option.
10906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10907 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10908 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'
10909 else
10910 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'
10911 fi
10912 ;;
10913 pw32*)
10914 export_symbols_cmds_CXX="$ltdll_cmds"
10915 ;;
10916 cygwin* | mingw*)
10917 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10918 ;;
10919 *)
10920 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10921 ;;
10922 esac
10923
10924echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10925echo "${ECHO_T}$ld_shlibs_CXX" >&6
10926test "$ld_shlibs_CXX" = no && can_build_shared=no
10927
10928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10929if test "$GCC" = yes; then
10930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10931fi
10932
10933#
10934# Do we need to explicitly link libc?
10935#
10936case "x$archive_cmds_need_lc_CXX" in
10937x|xyes)
10938 # Assume -lc should be added
10939 archive_cmds_need_lc_CXX=yes
10940
10941 if test "$enable_shared" = yes && test "$GCC" = yes; then
10942 case $archive_cmds_CXX in
10943 *'~'*)
10944 # FIXME: we may have to deal with multi-command sequences.
10945 ;;
10946 '$CC '*)
10947 # Test whether the compiler implicitly links with -lc since on some
10948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10949 # to ld, don't add -lc before -lgcc.
10950 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10951echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10952 $rm conftest*
10953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10954
10955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } 2>conftest.err; then
10960 soname=conftest
10961 lib=conftest
10962 libobjs=conftest.$ac_objext
10963 deplibs=
10964 wl=$lt_prog_compiler_wl_CXX
10965 compiler_flags=-v
10966 linker_flags=-v
10967 verstring=
10968 output_objdir=.
10969 libname=conftest
10970 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10971 allow_undefined_flag_CXX=
10972 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10973 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }
10977 then
10978 archive_cmds_need_lc_CXX=no
10979 else
10980 archive_cmds_need_lc_CXX=yes
10981 fi
10982 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10983 else
10984 cat conftest.err 1>&5
10985 fi
10986 $rm conftest*
10987 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10988echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10989 ;;
10990 esac
10991 fi
10992 ;;
10993esac
10994
10995echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10996echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10997hardcode_action_CXX=
10998if test -n "$hardcode_libdir_flag_spec_CXX" || \
10999 test -n "$runpath_var CXX" || \
11000 test "X$hardcode_automatic_CXX"="Xyes" ; then
11001
11002 # We can hardcode non-existant directories.
11003 if test "$hardcode_direct_CXX" != no &&
11004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11005 # have to relink, otherwise we might link with an installed library
11006 # when we should be linking with a yet-to-be-installed one
11007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11008 test "$hardcode_minus_L_CXX" != no; then
11009 # Linking always hardcodes the temporary library directory.
11010 hardcode_action_CXX=relink
11011 else
11012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11013 hardcode_action_CXX=immediate
11014 fi
11015else
11016 # We cannot hardcode anything, or else we can only hardcode existing
11017 # directories.
11018 hardcode_action_CXX=unsupported
11019fi
11020echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11021echo "${ECHO_T}$hardcode_action_CXX" >&6
11022
11023if test "$hardcode_action_CXX" = relink; then
11024 # Fast installation is not supported
11025 enable_fast_install=no
11026elif test "$shlibpath_overrides_runpath" = yes ||
11027 test "$enable_shared" = no; then
11028 # Fast installation is not necessary
11029 enable_fast_install=needless
11030fi
11031
11032striplib=
11033old_striplib=
11034echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11035echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11036if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11037 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11038 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11039 echo "$as_me:$LINENO: result: yes" >&5
11040echo "${ECHO_T}yes" >&6
11041else
11042# FIXME - insert some real tests, host_os isn't really good enough
11043 case $host_os in
11044 darwin*)
11045 if test -n "$STRIP" ; then
11046 striplib="$STRIP -x"
11047 echo "$as_me:$LINENO: result: yes" >&5
11048echo "${ECHO_T}yes" >&6
11049 else
11050 echo "$as_me:$LINENO: result: no" >&5
11051echo "${ECHO_T}no" >&6
11052fi
11053 ;;
11054 *)
11055 echo "$as_me:$LINENO: result: no" >&5
11056echo "${ECHO_T}no" >&6
11057 ;;
11058 esac
11059fi
11060
11061echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11062echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11063library_names_spec=
11064libname_spec='lib$name'
11065soname_spec=
11066shrext=".so"
11067postinstall_cmds=
11068postuninstall_cmds=
11069finish_cmds=
11070finish_eval=
11071shlibpath_var=
11072shlibpath_overrides_runpath=unknown
11073version_type=none
11074dynamic_linker="$host_os ld.so"
11075sys_lib_dlsearch_path_spec="/lib /usr/lib"
11076if test "$GCC" = yes; then
11077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11078 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11079 # if the path contains ";" then we assume it to be the separator
11080 # otherwise default to the standard path separator (i.e. ":") - it is
11081 # assumed that no part of a normal pathname contains ";" but that should
11082 # okay in the real world where ";" in dirpaths is itself problematic.
11083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11084 else
11085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11086 fi
11087else
11088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11089fi
11090need_lib_prefix=unknown
11091hardcode_into_libs=no
11092
11093# when you set need_version to no, make sure it does not cause -set_version
11094# flags to be left without arguments
11095need_version=unknown
11096
11097case $host_os in
11098aix3*)
11099 version_type=linux
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11101 shlibpath_var=LIBPATH
11102
11103 # AIX 3 has no versioning support, so we append a major version to the name.
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 ;;
11106
11107aix4* | aix5*)
11108 version_type=linux
11109 need_lib_prefix=no
11110 need_version=no
11111 hardcode_into_libs=yes
11112 if test "$host_cpu" = ia64; then
11113 # AIX 5 supports IA64
11114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 else
11117 # With GCC up to 2.95.x, collect2 would create an import file
11118 # for dependence libraries. The import file would start with
11119 # the line `#! .'. This would cause the generated library to
11120 # depend on `.', always an invalid library. This was fixed in
11121 # development snapshots of GCC prior to 3.0.
11122 case $host_os in
11123 aix4 | aix4.[01] | aix4.[01].*)
11124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11125 echo ' yes '
11126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11127 :
11128 else
11129 can_build_shared=no
11130 fi
11131 ;;
11132 esac
11133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11134 # soname into executable. Probably we can add versioning support to
11135 # collect2, so additional links can be useful in future.
11136 if test "$aix_use_runtimelinking" = yes; then
11137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11138 # instead of lib<name>.a to let people know that these are not
11139 # typical AIX shared libraries.
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 else
11142 # We preserve .a as extension for shared libraries through AIX4.2
11143 # and later when we are not doing run time linking.
11144 library_names_spec='${libname}${release}.a $libname.a'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 fi
11147 shlibpath_var=LIBPATH
11148 fi
11149 ;;
11150
11151amigaos*)
11152 library_names_spec='$libname.ixlibrary $libname.a'
11153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11154 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'
11155 ;;
11156
11157beos*)
11158 library_names_spec='${libname}${shared_ext}'
11159 dynamic_linker="$host_os ld.so"
11160 shlibpath_var=LIBRARY_PATH
11161 ;;
11162
11163bsdi4*)
11164 version_type=linux
11165 need_version=no
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11172 # the default ld.so.conf also contains /usr/contrib/lib and
11173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11174 # libtool to hard-code these into programs
11175 ;;
11176
11177cygwin* | mingw* | pw32*)
11178 version_type=windows
11179 shrext=".dll"
11180 need_version=no
11181 need_lib_prefix=no
11182
11183 case $GCC,$host_os in
11184 yes,cygwin* | yes,mingw* | yes,pw32*)
11185 library_names_spec='$libname.dll.a'
11186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11187 postinstall_cmds='base_file=`basename \${file}`~
11188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11189 dldir=$destdir/`dirname \$dlpath`~
11190 test -d \$dldir || mkdir -p \$dldir~
11191 $install_prog $dir/$dlname \$dldir/$dlname'
11192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11193 dlpath=$dir/\$dldll~
11194 $rm \$dlpath'
11195 shlibpath_overrides_runpath=yes
11196
11197 case $host_os in
11198 cygwin*)
11199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11201 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11202 ;;
11203 mingw*)
11204 # MinGW DLLs use traditional 'lib' prefix
11205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11206 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11207 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11208 # It is most probably a Windows format PATH printed by
11209 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11210 # path with ; separators, and with drive letters. We can handle the
11211 # drive letters (cygwin fileutils understands them), so leave them,
11212 # especially as we might pass files found there to a mingw objdump,
11213 # which wouldn't understand a cygwinified path. Ahh.
11214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11215 else
11216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11217 fi
11218 ;;
11219 pw32*)
11220 # pw32 DLLs use 'pw' prefix rather than 'lib'
11221 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11222 ;;
11223 esac
11224 ;;
11225
11226 *)
11227 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11228 ;;
11229 esac
11230 dynamic_linker='Win32 ld.exe'
11231 # FIXME: first we should search . and the directory the executable is in
11232 shlibpath_var=PATH
11233 ;;
11234
11235darwin* | rhapsody*)
11236 dynamic_linker="$host_os dyld"
11237 version_type=darwin
11238 need_lib_prefix=no
11239 need_version=no
11240 # FIXME: Relying on posixy $() will cause problems for
11241 # cross-compilation, but unfortunately the echo tests do not
11242 # yet detect zsh echo's removal of \ escapes.
11243 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11244 soname_spec='${libname}${release}${major}$shared_ext'
11245 shlibpath_overrides_runpath=yes
11246 shlibpath_var=DYLD_LIBRARY_PATH
11247 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11248 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11249 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11250 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"`
11251 fi
11252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11253 ;;
11254
11255dgux*)
11256 version_type=linux
11257 need_lib_prefix=no
11258 need_version=no
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 ;;
11263
11264freebsd1*)
11265 dynamic_linker=no
11266 ;;
11267
11268freebsd*)
11269 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11270 version_type=freebsd-$objformat
11271 case $version_type in
11272 freebsd-elf*)
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11274 need_version=no
11275 need_lib_prefix=no
11276 ;;
11277 freebsd-*)
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11279 need_version=yes
11280 ;;
11281 esac
11282 shlibpath_var=LD_LIBRARY_PATH
11283 case $host_os in
11284 freebsd2*)
11285 shlibpath_overrides_runpath=yes
11286 ;;
11287 freebsd3.01* | freebsdelf3.01*)
11288 shlibpath_overrides_runpath=yes
11289 hardcode_into_libs=yes
11290 ;;
11291 *) # from 3.2 on
11292 shlibpath_overrides_runpath=no
11293 hardcode_into_libs=yes
11294 ;;
11295 esac
11296 ;;
11297
11298gnu*)
11299 version_type=linux
11300 need_lib_prefix=no
11301 need_version=no
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 hardcode_into_libs=yes
11306 ;;
11307
11308hpux9* | hpux10* | hpux11*)
11309 # Give a soname corresponding to the major version so that dld.sl refuses to
11310 # link against other versions.
11311 version_type=sunos
11312 need_lib_prefix=no
11313 need_version=no
11314 case "$host_cpu" in
11315 ia64*)
11316 shrext='.so'
11317 hardcode_into_libs=yes
11318 dynamic_linker="$host_os dld.so"
11319 shlibpath_var=LD_LIBRARY_PATH
11320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 if test "X$HPUX_IA64_MODE" = X32; then
11324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11325 else
11326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11327 fi
11328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11329 ;;
11330 hppa*64*)
11331 shrext='.sl'
11332 hardcode_into_libs=yes
11333 dynamic_linker="$host_os dld.sl"
11334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11340 ;;
11341 *)
11342 shrext='.sl'
11343 dynamic_linker="$host_os dld.sl"
11344 shlibpath_var=SHLIB_PATH
11345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 ;;
11349 esac
11350 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11351 postinstall_cmds='chmod 555 $lib'
11352 ;;
11353
11354irix5* | irix6* | nonstopux*)
11355 case $host_os in
11356 nonstopux*) version_type=nonstopux ;;
11357 *)
11358 if test "$lt_cv_prog_gnu_ld" = yes; then
11359 version_type=linux
11360 else
11361 version_type=irix
11362 fi ;;
11363 esac
11364 need_lib_prefix=no
11365 need_version=no
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11368 case $host_os in
11369 irix5* | nonstopux*)
11370 libsuff= shlibsuff=
11371 ;;
11372 *)
11373 case $LD in # libtool.m4 will add one of these switches to LD
11374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11375 libsuff= shlibsuff= libmagic=32-bit;;
11376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11377 libsuff=32 shlibsuff=N32 libmagic=N32;;
11378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11380 *) libsuff= shlibsuff= libmagic=never-match;;
11381 esac
11382 ;;
11383 esac
11384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11385 shlibpath_overrides_runpath=no
11386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11388 hardcode_into_libs=yes
11389 ;;
11390
11391# No shared lib support for Linux oldld, aout, or coff.
11392linux*oldld* | linux*aout* | linux*coff*)
11393 dynamic_linker=no
11394 ;;
11395
11396# This must be Linux ELF.
11397linux*)
11398 version_type=linux
11399 need_lib_prefix=no
11400 need_version=no
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=no
11406 # This implies no fast_install, which is unacceptable.
11407 # Some rework will be needed to allow for fast_install
11408 # before this can be enabled.
11409 hardcode_into_libs=yes
11410
11411 # We used to test for /lib/ld.so.1 and disable shared libraries on
11412 # powerpc, because MkLinux only supported shared libraries with the
11413 # GNU dynamic linker. Since this was broken with cross compilers,
11414 # most powerpc-linux boxes support dynamic linking these days and
11415 # people can always --disable-shared, the test was removed, and we
11416 # assume the GNU/Linux dynamic linker is in use.
11417 dynamic_linker='GNU/Linux ld.so'
11418 ;;
11419
11420netbsd*)
11421 version_type=sunos
11422 need_lib_prefix=no
11423 need_version=no
11424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11427 dynamic_linker='NetBSD (a.out) ld.so'
11428 else
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11430 soname_spec='${libname}${release}${shared_ext}$major'
11431 dynamic_linker='NetBSD ld.elf_so'
11432 fi
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes
11435 hardcode_into_libs=yes
11436 ;;
11437
11438newsos6)
11439 version_type=linux
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=yes
11443 ;;
11444
11445nto-qnx)
11446 version_type=linux
11447 need_lib_prefix=no
11448 need_version=no
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 shlibpath_overrides_runpath=yes
11453 ;;
11454
11455openbsd*)
11456 version_type=sunos
11457 need_lib_prefix=no
11458 need_version=no
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11463 case $host_os in
11464 openbsd2.[89] | openbsd2.[89].*)
11465 shlibpath_overrides_runpath=no
11466 ;;
11467 *)
11468 shlibpath_overrides_runpath=yes
11469 ;;
11470 esac
11471 else
11472 shlibpath_overrides_runpath=yes
11473 fi
11474 ;;
11475
11476os2*)
11477 libname_spec='$name'
11478 shrext=".dll"
11479 need_lib_prefix=no
11480 library_names_spec='$libname${shared_ext} $libname.a'
11481 dynamic_linker='OS/2 ld.exe'
11482 shlibpath_var=LIBPATH
11483 ;;
11484
11485osf3* | osf4* | osf5*)
11486 version_type=osf
11487 need_lib_prefix=no
11488 need_version=no
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11494 ;;
11495
11496sco3.2v5*)
11497 version_type=osf
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 ;;
11502
11503solaris*)
11504 version_type=linux
11505 need_lib_prefix=no
11506 need_version=no
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 soname_spec='${libname}${release}${shared_ext}$major'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11512 # ldd complains unless libraries are executable
11513 postinstall_cmds='chmod +x $lib'
11514 ;;
11515
11516sunos4*)
11517 version_type=sunos
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 shlibpath_overrides_runpath=yes
11522 if test "$with_gnu_ld" = yes; then
11523 need_lib_prefix=no
11524 fi
11525 need_version=yes
11526 ;;
11527
11528sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11529 version_type=linux
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 case $host_vendor in
11534 sni)
11535 shlibpath_overrides_runpath=no
11536 need_lib_prefix=no
11537 export_dynamic_flag_spec='${wl}-Blargedynsym'
11538 runpath_var=LD_RUN_PATH
11539 ;;
11540 siemens)
11541 need_lib_prefix=no
11542 ;;
11543 motorola)
11544 need_lib_prefix=no
11545 need_version=no
11546 shlibpath_overrides_runpath=no
11547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11548 ;;
11549 esac
11550 ;;
11551
11552sysv4*MP*)
11553 if test -d /usr/nec ;then
11554 version_type=linux
11555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11556 soname_spec='$libname${shared_ext}.$major'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 fi
11559 ;;
11560
11561uts4*)
11562 version_type=linux
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 ;;
11567
11568*)
11569 dynamic_linker=no
11570 ;;
11571esac
11572echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11573echo "${ECHO_T}$dynamic_linker" >&6
11574test "$dynamic_linker" = no && can_build_shared=no
11575
11576if test "x$enable_dlopen" != xyes; then
11577 enable_dlopen=unknown
11578 enable_dlopen_self=unknown
11579 enable_dlopen_self_static=unknown
11580else
11581 lt_cv_dlopen=no
11582 lt_cv_dlopen_libs=
11583
11584 case $host_os in
11585 beos*)
11586 lt_cv_dlopen="load_add_on"
11587 lt_cv_dlopen_libs=
11588 lt_cv_dlopen_self=yes
11589 ;;
11590
11591 mingw* | pw32*)
11592 lt_cv_dlopen="LoadLibrary"
11593 lt_cv_dlopen_libs=
11594 ;;
11595
11596 cygwin*)
11597 lt_cv_dlopen="dlopen"
11598 lt_cv_dlopen_libs=
11599 ;;
11600
11601 darwin*)
11602 # if libdl is installed we need to link against it
11603 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11604echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11605if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607else
11608 ac_check_lib_save_LIBS=$LIBS
11609LIBS="-ldl $LIBS"
11610cat >conftest.$ac_ext <<_ACEOF
11611#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011612/* confdefs.h. */
11613_ACEOF
11614cat confdefs.h >>conftest.$ac_ext
11615cat >>conftest.$ac_ext <<_ACEOF
11616/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011617
11618/* Override any gcc2 internal prototype to avoid an error. */
11619#ifdef __cplusplus
11620extern "C"
11621#endif
11622/* We use char because int might match the return type of a gcc2
11623 builtin and then its argument prototype would still apply. */
11624char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011625int
11626main ()
11627{
11628dlopen ();
11629 ;
11630 return 0;
11631}
11632_ACEOF
11633rm -f conftest.$ac_objext conftest$ac_exeext
11634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635 (eval $ac_link) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 ac_cv_lib_dl_dlopen=yes
11646else
11647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011648sed 's/^/| /' conftest.$ac_ext >&5
11649
John Criswell47fdd832003-07-14 16:52:07 +000011650ac_cv_lib_dl_dlopen=no
11651fi
11652rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11653LIBS=$ac_check_lib_save_LIBS
11654fi
11655echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11656echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11657if test $ac_cv_lib_dl_dlopen = yes; then
11658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11659else
11660
11661 lt_cv_dlopen="dyld"
11662 lt_cv_dlopen_libs=
11663 lt_cv_dlopen_self=yes
11664
11665fi
11666
11667 ;;
11668
11669 *)
11670 echo "$as_me:$LINENO: checking for shl_load" >&5
11671echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11672if test "${ac_cv_func_shl_load+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674else
11675 cat >conftest.$ac_ext <<_ACEOF
11676#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011682/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011683 which can conflict with char shl_load (); below.
11684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11685 <limits.h> exists even on freestanding compilers. */
11686#ifdef __STDC__
11687# include <limits.h>
11688#else
11689# include <assert.h>
11690#endif
John Criswell47fdd832003-07-14 16:52:07 +000011691/* Override any gcc2 internal prototype to avoid an error. */
11692#ifdef __cplusplus
11693extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011694{
John Criswell47fdd832003-07-14 16:52:07 +000011695#endif
11696/* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011699/* The GNU C library defines this for functions which it implements
11700 to always fail with ENOSYS. Some functions are actually named
11701 something starting with __ and the normal name is an alias. */
11702#if defined (__stub_shl_load) || defined (__stub___shl_load)
11703choke me
11704#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011705char (*f) () = shl_load;
11706#endif
11707#ifdef __cplusplus
11708}
John Criswell47fdd832003-07-14 16:52:07 +000011709#endif
11710
John Criswell0c38eaf2003-09-10 15:17:25 +000011711int
11712main ()
11713{
11714return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011715 ;
11716 return 0;
11717}
11718_ACEOF
11719rm -f conftest.$ac_objext conftest$ac_exeext
11720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -s conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_func_shl_load=yes
11732else
11733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011734sed 's/^/| /' conftest.$ac_ext >&5
11735
John Criswell47fdd832003-07-14 16:52:07 +000011736ac_cv_func_shl_load=no
11737fi
11738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11739fi
11740echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11741echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11742if test $ac_cv_func_shl_load = yes; then
11743 lt_cv_dlopen="shl_load"
11744else
11745 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11746echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11747if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749else
11750 ac_check_lib_save_LIBS=$LIBS
11751LIBS="-ldld $LIBS"
11752cat >conftest.$ac_ext <<_ACEOF
11753#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011754/* confdefs.h. */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011759
11760/* Override any gcc2 internal prototype to avoid an error. */
11761#ifdef __cplusplus
11762extern "C"
11763#endif
11764/* We use char because int might match the return type of a gcc2
11765 builtin and then its argument prototype would still apply. */
11766char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011767int
11768main ()
11769{
11770shl_load ();
11771 ;
11772 return 0;
11773}
11774_ACEOF
11775rm -f conftest.$ac_objext conftest$ac_exeext
11776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777 (eval $ac_link) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -s conftest$ac_exeext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_lib_dld_shl_load=yes
11788else
11789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011790sed 's/^/| /' conftest.$ac_ext >&5
11791
John Criswell47fdd832003-07-14 16:52:07 +000011792ac_cv_lib_dld_shl_load=no
11793fi
11794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11795LIBS=$ac_check_lib_save_LIBS
11796fi
11797echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11798echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11799if test $ac_cv_lib_dld_shl_load = yes; then
11800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11801else
11802 echo "$as_me:$LINENO: checking for dlopen" >&5
11803echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11804if test "${ac_cv_func_dlopen+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806else
11807 cat >conftest.$ac_ext <<_ACEOF
11808#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011814/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011815 which can conflict with char dlopen (); below.
11816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11817 <limits.h> exists even on freestanding compilers. */
11818#ifdef __STDC__
11819# include <limits.h>
11820#else
11821# include <assert.h>
11822#endif
John Criswell47fdd832003-07-14 16:52:07 +000011823/* Override any gcc2 internal prototype to avoid an error. */
11824#ifdef __cplusplus
11825extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011826{
John Criswell47fdd832003-07-14 16:52:07 +000011827#endif
11828/* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11830char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011831/* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834#if defined (__stub_dlopen) || defined (__stub___dlopen)
11835choke me
11836#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011837char (*f) () = dlopen;
11838#endif
11839#ifdef __cplusplus
11840}
John Criswell47fdd832003-07-14 16:52:07 +000011841#endif
11842
John Criswell0c38eaf2003-09-10 15:17:25 +000011843int
11844main ()
11845{
11846return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011847 ;
11848 return 0;
11849}
11850_ACEOF
11851rm -f conftest.$ac_objext conftest$ac_exeext
11852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 ac_cv_func_dlopen=yes
11864else
11865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011866sed 's/^/| /' conftest.$ac_ext >&5
11867
John Criswell47fdd832003-07-14 16:52:07 +000011868ac_cv_func_dlopen=no
11869fi
11870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871fi
11872echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11873echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11874if test $ac_cv_func_dlopen = yes; then
11875 lt_cv_dlopen="dlopen"
11876else
11877 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11878echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11879if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 ac_check_lib_save_LIBS=$LIBS
11883LIBS="-ldl $LIBS"
11884cat >conftest.$ac_ext <<_ACEOF
11885#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011891
11892/* Override any gcc2 internal prototype to avoid an error. */
11893#ifdef __cplusplus
11894extern "C"
11895#endif
11896/* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11898char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011899int
11900main ()
11901{
11902dlopen ();
11903 ;
11904 return 0;
11905}
11906_ACEOF
11907rm -f conftest.$ac_objext conftest$ac_exeext
11908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -s conftest$ac_exeext'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919 ac_cv_lib_dl_dlopen=yes
11920else
11921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011922sed 's/^/| /' conftest.$ac_ext >&5
11923
John Criswell47fdd832003-07-14 16:52:07 +000011924ac_cv_lib_dl_dlopen=no
11925fi
11926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11927LIBS=$ac_check_lib_save_LIBS
11928fi
11929echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11930echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11931if test $ac_cv_lib_dl_dlopen = yes; then
11932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11933else
11934 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11935echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11936if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938else
11939 ac_check_lib_save_LIBS=$LIBS
11940LIBS="-lsvld $LIBS"
11941cat >conftest.$ac_ext <<_ACEOF
11942#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011948
11949/* Override any gcc2 internal prototype to avoid an error. */
11950#ifdef __cplusplus
11951extern "C"
11952#endif
11953/* We use char because int might match the return type of a gcc2
11954 builtin and then its argument prototype would still apply. */
11955char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011956int
11957main ()
11958{
11959dlopen ();
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964rm -f conftest.$ac_objext conftest$ac_exeext
11965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966 (eval $ac_link) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -s conftest$ac_exeext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_lib_svld_dlopen=yes
11977else
11978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011979sed 's/^/| /' conftest.$ac_ext >&5
11980
John Criswell47fdd832003-07-14 16:52:07 +000011981ac_cv_lib_svld_dlopen=no
11982fi
11983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11984LIBS=$ac_check_lib_save_LIBS
11985fi
11986echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11987echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11988if test $ac_cv_lib_svld_dlopen = yes; then
11989 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11990else
11991 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11992echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11993if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11995else
11996 ac_check_lib_save_LIBS=$LIBS
11997LIBS="-ldld $LIBS"
11998cat >conftest.$ac_ext <<_ACEOF
11999#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012005
12006/* Override any gcc2 internal prototype to avoid an error. */
12007#ifdef __cplusplus
12008extern "C"
12009#endif
12010/* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012013int
12014main ()
12015{
12016dld_link ();
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext conftest$ac_exeext
12022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -s conftest$ac_exeext'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 ac_cv_lib_dld_dld_link=yes
12034else
12035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012036sed 's/^/| /' conftest.$ac_ext >&5
12037
John Criswell47fdd832003-07-14 16:52:07 +000012038ac_cv_lib_dld_dld_link=no
12039fi
12040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12041LIBS=$ac_check_lib_save_LIBS
12042fi
12043echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12044echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12045if test $ac_cv_lib_dld_dld_link = yes; then
12046 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12047fi
12048
12049
12050fi
12051
12052
12053fi
12054
12055
12056fi
12057
12058
12059fi
12060
12061
12062fi
12063
12064 ;;
12065 esac
12066
12067 if test "x$lt_cv_dlopen" != xno; then
12068 enable_dlopen=yes
12069 else
12070 enable_dlopen=no
12071 fi
12072
12073 case $lt_cv_dlopen in
12074 dlopen)
12075 save_CPPFLAGS="$CPPFLAGS"
12076 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12077
12078 save_LDFLAGS="$LDFLAGS"
12079 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12080
12081 save_LIBS="$LIBS"
12082 LIBS="$lt_cv_dlopen_libs $LIBS"
12083
12084 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12085echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12086if test "${lt_cv_dlopen_self+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088else
12089 if test "$cross_compiling" = yes; then :
12090 lt_cv_dlopen_self=cross
12091else
12092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12093 lt_status=$lt_dlunknown
12094 cat > conftest.$ac_ext <<EOF
John Criswell10708402003-09-15 20:12:48 +000012095#line 12095 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012096#include "confdefs.h"
12097
12098#if HAVE_DLFCN_H
12099#include <dlfcn.h>
12100#endif
12101
12102#include <stdio.h>
12103
12104#ifdef RTLD_GLOBAL
12105# define LT_DLGLOBAL RTLD_GLOBAL
12106#else
12107# ifdef DL_GLOBAL
12108# define LT_DLGLOBAL DL_GLOBAL
12109# else
12110# define LT_DLGLOBAL 0
12111# endif
12112#endif
12113
12114/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12115 find out it does not work in some platform. */
12116#ifndef LT_DLLAZY_OR_NOW
12117# ifdef RTLD_LAZY
12118# define LT_DLLAZY_OR_NOW RTLD_LAZY
12119# else
12120# ifdef DL_LAZY
12121# define LT_DLLAZY_OR_NOW DL_LAZY
12122# else
12123# ifdef RTLD_NOW
12124# define LT_DLLAZY_OR_NOW RTLD_NOW
12125# else
12126# ifdef DL_NOW
12127# define LT_DLLAZY_OR_NOW DL_NOW
12128# else
12129# define LT_DLLAZY_OR_NOW 0
12130# endif
12131# endif
12132# endif
12133# endif
12134#endif
12135
12136#ifdef __cplusplus
12137extern "C" void exit (int);
12138#endif
12139
12140void fnord() { int i=42;}
12141int main ()
12142{
12143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12144 int status = $lt_dlunknown;
12145
12146 if (self)
12147 {
12148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12149 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12150 /* dlclose (self); */
12151 }
12152
12153 exit (status);
12154}
12155EOF
12156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12157 (eval $ac_link) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12161 (./conftest; exit; ) 2>/dev/null
12162 lt_status=$?
12163 case x$lt_status in
12164 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12165 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12166 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12167 esac
12168 else :
12169 # compilation failed
12170 lt_cv_dlopen_self=no
12171 fi
12172fi
12173rm -fr conftest*
12174
12175
12176fi
12177echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12178echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12179
12180 if test "x$lt_cv_dlopen_self" = xyes; then
12181 LDFLAGS="$LDFLAGS $link_static_flag"
12182 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12183echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12184if test "${lt_cv_dlopen_self_static+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187 if test "$cross_compiling" = yes; then :
12188 lt_cv_dlopen_self_static=cross
12189else
12190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12191 lt_status=$lt_dlunknown
12192 cat > conftest.$ac_ext <<EOF
John Criswell10708402003-09-15 20:12:48 +000012193#line 12193 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012194#include "confdefs.h"
12195
12196#if HAVE_DLFCN_H
12197#include <dlfcn.h>
12198#endif
12199
12200#include <stdio.h>
12201
12202#ifdef RTLD_GLOBAL
12203# define LT_DLGLOBAL RTLD_GLOBAL
12204#else
12205# ifdef DL_GLOBAL
12206# define LT_DLGLOBAL DL_GLOBAL
12207# else
12208# define LT_DLGLOBAL 0
12209# endif
12210#endif
12211
12212/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12213 find out it does not work in some platform. */
12214#ifndef LT_DLLAZY_OR_NOW
12215# ifdef RTLD_LAZY
12216# define LT_DLLAZY_OR_NOW RTLD_LAZY
12217# else
12218# ifdef DL_LAZY
12219# define LT_DLLAZY_OR_NOW DL_LAZY
12220# else
12221# ifdef RTLD_NOW
12222# define LT_DLLAZY_OR_NOW RTLD_NOW
12223# else
12224# ifdef DL_NOW
12225# define LT_DLLAZY_OR_NOW DL_NOW
12226# else
12227# define LT_DLLAZY_OR_NOW 0
12228# endif
12229# endif
12230# endif
12231# endif
12232#endif
12233
12234#ifdef __cplusplus
12235extern "C" void exit (int);
12236#endif
12237
12238void fnord() { int i=42;}
12239int main ()
12240{
12241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12242 int status = $lt_dlunknown;
12243
12244 if (self)
12245 {
12246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12247 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12248 /* dlclose (self); */
12249 }
12250
12251 exit (status);
12252}
12253EOF
12254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12255 (eval $ac_link) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12259 (./conftest; exit; ) 2>/dev/null
12260 lt_status=$?
12261 case x$lt_status in
12262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12264 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12265 esac
12266 else :
12267 # compilation failed
12268 lt_cv_dlopen_self_static=no
12269 fi
12270fi
12271rm -fr conftest*
12272
12273
12274fi
12275echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12276echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12277 fi
12278
12279 CPPFLAGS="$save_CPPFLAGS"
12280 LDFLAGS="$save_LDFLAGS"
12281 LIBS="$save_LIBS"
12282 ;;
12283 esac
12284
12285 case $lt_cv_dlopen_self in
12286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12287 *) enable_dlopen_self=unknown ;;
12288 esac
12289
12290 case $lt_cv_dlopen_self_static in
12291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12292 *) enable_dlopen_self_static=unknown ;;
12293 esac
12294fi
12295
12296
12297# The else clause should only fire when bootstrapping the
12298# libtool distribution, otherwise you forgot to ship ltmain.sh
12299# with your package, and you will get complaints that there are
12300# no rules to generate ltmain.sh.
12301if test -f "$ltmain"; then
12302 # See if we are running on zsh, and set the options which allow our commands through
12303 # without removal of \ escapes.
12304 if test -n "${ZSH_VERSION+set}" ; then
12305 setopt NO_GLOB_SUBST
12306 fi
12307 # Now quote all the things that may contain metacharacters while being
12308 # careful not to overquote the AC_SUBSTed values. We take copies of the
12309 # variables and quote the copies for generation of the libtool script.
12310 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12313 deplibs_check_method reload_flag reload_cmds need_locks \
12314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12315 lt_cv_sys_global_symbol_to_c_name_address \
12316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12317 old_postinstall_cmds old_postuninstall_cmds \
12318 compiler_CXX \
12319 CC_CXX \
12320 LD_CXX \
12321 lt_prog_compiler_wl_CXX \
12322 lt_prog_compiler_pic_CXX \
12323 lt_prog_compiler_static_CXX \
12324 lt_prog_compiler_no_builtin_flag_CXX \
12325 export_dynamic_flag_spec_CXX \
12326 thread_safe_flag_spec_CXX \
12327 whole_archive_flag_spec_CXX \
12328 enable_shared_with_static_runtimes_CXX \
12329 old_archive_cmds_CXX \
12330 old_archive_from_new_cmds_CXX \
12331 predep_objects_CXX \
12332 postdep_objects_CXX \
12333 predeps_CXX \
12334 postdeps_CXX \
12335 compiler_lib_search_path_CXX \
12336 archive_cmds_CXX \
12337 archive_expsym_cmds_CXX \
12338 postinstall_cmds_CXX \
12339 postuninstall_cmds_CXX \
12340 old_archive_from_expsyms_cmds_CXX \
12341 allow_undefined_flag_CXX \
12342 no_undefined_flag_CXX \
12343 export_symbols_cmds_CXX \
12344 hardcode_libdir_flag_spec_CXX \
12345 hardcode_libdir_flag_spec_ld_CXX \
12346 hardcode_libdir_separator_CXX \
12347 hardcode_automatic_CXX \
12348 module_cmds_CXX \
12349 module_expsym_cmds_CXX \
12350 lt_cv_prog_compiler_c_o_CXX \
12351 exclude_expsyms_CXX \
12352 include_expsyms_CXX; do
12353
12354 case $var in
12355 old_archive_cmds_CXX | \
12356 old_archive_from_new_cmds_CXX | \
12357 archive_cmds_CXX | \
12358 archive_expsym_cmds_CXX | \
12359 module_cmds_CXX | \
12360 module_expsym_cmds_CXX | \
12361 old_archive_from_expsyms_cmds_CXX | \
12362 export_symbols_cmds_CXX | \
12363 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12364 postinstall_cmds | postuninstall_cmds | \
12365 old_postinstall_cmds | old_postuninstall_cmds | \
12366 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12367 # Double-quote double-evaled strings.
12368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12369 ;;
12370 *)
12371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12372 ;;
12373 esac
12374 done
12375
12376 case $lt_echo in
12377 *'\$0 --fallback-echo"')
12378 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12379 ;;
12380 esac
12381
12382cfgfile="$ofile"
12383
12384 cat <<__EOF__ >> "$cfgfile"
12385# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12386
12387# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12388
12389# Shell to use when invoking shell scripts.
12390SHELL=$lt_SHELL
12391
12392# Whether or not to build shared libraries.
12393build_libtool_libs=$enable_shared
12394
12395# Whether or not to build static libraries.
12396build_old_libs=$enable_static
12397
12398# Whether or not to add -lc for building shared libraries.
12399build_libtool_need_lc=$archive_cmds_need_lc_CXX
12400
12401# Whether or not to disallow shared libs when runtime libs are static
12402allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12403
12404# Whether or not to optimize for fast installation.
12405fast_install=$enable_fast_install
12406
12407# The host system.
12408host_alias=$host_alias
12409host=$host
12410
12411# An echo program that does not interpret backslashes.
12412echo=$lt_echo
12413
12414# The archiver.
12415AR=$lt_AR
12416AR_FLAGS=$lt_AR_FLAGS
12417
12418# A C compiler.
12419LTCC=$lt_LTCC
12420
12421# A language-specific compiler.
12422CC=$lt_compiler_CXX
12423
12424# Is the compiler the GNU C compiler?
12425with_gcc=$GCC_CXX
12426
12427# An ERE matcher.
12428EGREP=$lt_EGREP
12429
12430# The linker used to build libraries.
12431LD=$lt_LD_CXX
12432
12433# Whether we need hard or soft links.
12434LN_S=$lt_LN_S
12435
12436# A BSD-compatible nm program.
12437NM=$lt_NM
12438
12439# A symbol stripping program
12440STRIP=$STRIP
12441
12442# Used to examine libraries when file_magic_cmd begins "file"
12443MAGIC_CMD=$MAGIC_CMD
12444
12445# Used on cygwin: DLL creation program.
12446DLLTOOL="$DLLTOOL"
12447
12448# Used on cygwin: object dumper.
12449OBJDUMP="$OBJDUMP"
12450
12451# Used on cygwin: assembler.
12452AS="$AS"
12453
12454# The name of the directory that contains temporary libtool files.
12455objdir=$objdir
12456
12457# How to create reloadable object files.
12458reload_flag=$lt_reload_flag
12459reload_cmds=$lt_reload_cmds
12460
12461# How to pass a linker flag through the compiler.
12462wl=$lt_lt_prog_compiler_wl_CXX
12463
12464# Object file suffix (normally "o").
12465objext="$ac_objext"
12466
12467# Old archive suffix (normally "a").
12468libext="$libext"
12469
12470# Shared library suffix (normally ".so").
12471shrext='$shrext'
12472
12473# Executable file suffix (normally "").
12474exeext="$exeext"
12475
12476# Additional compiler flags for building library objects.
12477pic_flag=$lt_lt_prog_compiler_pic_CXX
12478pic_mode=$pic_mode
12479
12480# What is the maximum length of a command?
12481max_cmd_len=$lt_cv_sys_max_cmd_len
12482
12483# Does compiler simultaneously support -c and -o options?
12484compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12485
12486# Must we lock files when doing compilation ?
12487need_locks=$lt_need_locks
12488
12489# Do we need the lib prefix for modules?
12490need_lib_prefix=$need_lib_prefix
12491
12492# Do we need a version for libraries?
12493need_version=$need_version
12494
12495# Whether dlopen is supported.
12496dlopen_support=$enable_dlopen
12497
12498# Whether dlopen of programs is supported.
12499dlopen_self=$enable_dlopen_self
12500
12501# Whether dlopen of statically linked programs is supported.
12502dlopen_self_static=$enable_dlopen_self_static
12503
12504# Compiler flag to prevent dynamic linking.
12505link_static_flag=$lt_lt_prog_compiler_static_CXX
12506
12507# Compiler flag to turn off builtin functions.
12508no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12509
12510# Compiler flag to allow reflexive dlopens.
12511export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12512
12513# Compiler flag to generate shared objects directly from archives.
12514whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12515
12516# Compiler flag to generate thread-safe objects.
12517thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12518
12519# Library versioning type.
12520version_type=$version_type
12521
12522# Format of library name prefix.
12523libname_spec=$lt_libname_spec
12524
12525# List of archive names. First name is the real one, the rest are links.
12526# The last name is the one that the linker finds with -lNAME.
12527library_names_spec=$lt_library_names_spec
12528
12529# The coded name of the library, if different from the real name.
12530soname_spec=$lt_soname_spec
12531
12532# Commands used to build and install an old-style archive.
12533RANLIB=$lt_RANLIB
12534old_archive_cmds=$lt_old_archive_cmds_CXX
12535old_postinstall_cmds=$lt_old_postinstall_cmds
12536old_postuninstall_cmds=$lt_old_postuninstall_cmds
12537
12538# Create an old-style archive from a shared archive.
12539old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12540
12541# Create a temporary old-style archive to link instead of a shared archive.
12542old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12543
12544# Commands used to build and install a shared archive.
12545archive_cmds=$lt_archive_cmds_CXX
12546archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12547postinstall_cmds=$lt_postinstall_cmds
12548postuninstall_cmds=$lt_postuninstall_cmds
12549
12550# Commands used to build a loadable module (assumed same as above if empty)
12551module_cmds=$lt_module_cmds_CXX
12552module_expsym_cmds=$lt_module_expsym_cmds_CXX
12553
12554# Commands to strip libraries.
12555old_striplib=$lt_old_striplib
12556striplib=$lt_striplib
12557
12558# Dependencies to place before the objects being linked to create a
12559# shared library.
12560predep_objects=$lt_predep_objects_CXX
12561
12562# Dependencies to place after the objects being linked to create a
12563# shared library.
12564postdep_objects=$lt_postdep_objects_CXX
12565
12566# Dependencies to place before the objects being linked to create a
12567# shared library.
12568predeps=$lt_predeps_CXX
12569
12570# Dependencies to place after the objects being linked to create a
12571# shared library.
12572postdeps=$lt_postdeps_CXX
12573
12574# The library search path used internally by the compiler when linking
12575# a shared library.
12576compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12577
12578# Method to check whether dependent libraries are shared objects.
12579deplibs_check_method=$lt_deplibs_check_method
12580
12581# Command to use when deplibs_check_method == file_magic.
12582file_magic_cmd=$lt_file_magic_cmd
12583
12584# Flag that allows shared libraries with undefined symbols to be built.
12585allow_undefined_flag=$lt_allow_undefined_flag_CXX
12586
12587# Flag that forces no undefined symbols.
12588no_undefined_flag=$lt_no_undefined_flag_CXX
12589
12590# Commands used to finish a libtool library installation in a directory.
12591finish_cmds=$lt_finish_cmds
12592
12593# Same as above, but a single script fragment to be evaled but not shown.
12594finish_eval=$lt_finish_eval
12595
12596# Take the output of nm and produce a listing of raw symbols and C names.
12597global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12598
12599# Transform the output of nm in a proper C declaration
12600global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12601
12602# Transform the output of nm in a C name address pair
12603global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12604
12605# This is the shared library runtime path variable.
12606runpath_var=$runpath_var
12607
12608# This is the shared library path variable.
12609shlibpath_var=$shlibpath_var
12610
12611# Is shlibpath searched before the hard-coded library search path?
12612shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12613
12614# How to hardcode a shared library path into an executable.
12615hardcode_action=$hardcode_action_CXX
12616
12617# Whether we should hardcode library paths into libraries.
12618hardcode_into_libs=$hardcode_into_libs
12619
12620# Flag to hardcode \$libdir into a binary during linking.
12621# This must work even if \$libdir does not exist.
12622hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12623
12624# If ld is used when linking, flag to hardcode \$libdir into
12625# a binary during linking. This must work even if \$libdir does
12626# not exist.
12627hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12628
12629# Whether we need a single -rpath flag with a separated argument.
12630hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12631
12632# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12633# resulting binary.
12634hardcode_direct=$hardcode_direct_CXX
12635
12636# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12637# resulting binary.
12638hardcode_minus_L=$hardcode_minus_L_CXX
12639
12640# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12641# the resulting binary.
12642hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12643
12644# Set to yes if building a shared library automatically hardcodes DIR into the library
12645# and all subsequent libraries and executables linked against it.
12646hardcode_automatic=$hardcode_automatic_CXX
12647
12648# Variables whose values should be saved in libtool wrapper scripts and
12649# restored at relink time.
12650variables_saved_for_relink="$variables_saved_for_relink"
12651
12652# Whether libtool must link a program against all its dependency libraries.
12653link_all_deplibs=$link_all_deplibs_CXX
12654
12655# Compile-time system search path for libraries
12656sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12657
12658# Run-time system search path for libraries
12659sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12660
12661# Fix the shell variable \$srcfile for the compiler.
12662fix_srcfile_path="$fix_srcfile_path_CXX"
12663
12664# Set to yes if exported symbols are required.
12665always_export_symbols=$always_export_symbols_CXX
12666
12667# The commands to list exported symbols.
12668export_symbols_cmds=$lt_export_symbols_cmds_CXX
12669
12670# The commands to extract the exported symbol list from a shared archive.
12671extract_expsyms_cmds=$lt_extract_expsyms_cmds
12672
12673# Symbols that should not be listed in the preloaded symbols.
12674exclude_expsyms=$lt_exclude_expsyms_CXX
12675
12676# Symbols that must always be exported.
12677include_expsyms=$lt_include_expsyms_CXX
12678
12679# ### END LIBTOOL TAG CONFIG: $tagname
12680
12681__EOF__
12682
12683
12684else
12685 # If there is no Makefile yet, we rely on a make rule to execute
12686 # `config.status --recheck' to rerun these tests and create the
12687 # libtool script then.
12688 test -f Makefile && make "$ltmain"
12689fi
12690
12691
12692ac_ext=c
12693ac_cpp='$CPP $CPPFLAGS'
12694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12696ac_compiler_gnu=$ac_cv_c_compiler_gnu
12697
12698CC=$lt_save_CC
12699LDCXX=$LD
12700LD=$lt_save_LD
12701GCC=$lt_save_GCC
12702with_gnu_ldcxx=$with_gnu_ld
12703with_gnu_ld=$lt_save_with_gnu_ld
12704lt_cv_path_LDCXX=$lt_cv_path_LD
12705lt_cv_path_LD=$lt_save_path_LD
12706lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12707lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12708
12709 else
12710 tagname=""
12711 fi
12712 ;;
12713
12714 F77)
12715 if test -n "$F77" && test "X$F77" != "Xno"; then
12716
12717ac_ext=f
12718ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12719ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12721
12722
12723archive_cmds_need_lc_F77=no
12724allow_undefined_flag_F77=
12725always_export_symbols_F77=no
12726archive_expsym_cmds_F77=
12727export_dynamic_flag_spec_F77=
12728hardcode_direct_F77=no
12729hardcode_libdir_flag_spec_F77=
12730hardcode_libdir_flag_spec_ld_F77=
12731hardcode_libdir_separator_F77=
12732hardcode_minus_L_F77=no
12733hardcode_automatic_F77=no
12734module_cmds_F77=
12735module_expsym_cmds_F77=
12736link_all_deplibs_F77=unknown
12737old_archive_cmds_F77=$old_archive_cmds
12738no_undefined_flag_F77=
12739whole_archive_flag_spec_F77=
12740enable_shared_with_static_runtimes_F77=no
12741
12742# Source file extension for f77 test sources.
12743ac_ext=f
12744
12745# Object file extension for compiled f77 test sources.
12746objext=o
12747objext_F77=$objext
12748
12749# Code to be used in simple compile tests
12750lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12751
12752# Code to be used in simple link tests
12753lt_simple_link_test_code=" program t\n end\n"
12754
12755# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12756
12757# If no C compiler was specified, use CC.
12758LTCC=${LTCC-"$CC"}
12759
12760# Allow CC to be a program name with arguments.
12761compiler=$CC
12762
12763
12764# Allow CC to be a program name with arguments.
12765lt_save_CC="$CC"
12766CC=${F77-"f77"}
12767compiler=$CC
12768compiler_F77=$CC
12769cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12770
12771echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12772echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12773echo "$as_me:$LINENO: result: $can_build_shared" >&5
12774echo "${ECHO_T}$can_build_shared" >&6
12775
12776echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12777echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12778test "$can_build_shared" = "no" && enable_shared=no
12779
12780# On AIX, shared libraries and static libraries use the same namespace, and
12781# are all built from PIC.
12782case "$host_os" in
12783aix3*)
12784 test "$enable_shared" = yes && enable_static=no
12785 if test -n "$RANLIB"; then
12786 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12787 postinstall_cmds='$RANLIB $lib'
12788 fi
12789 ;;
12790aix4*)
12791 test "$enable_shared" = yes && enable_static=no
12792 ;;
12793esac
12794echo "$as_me:$LINENO: result: $enable_shared" >&5
12795echo "${ECHO_T}$enable_shared" >&6
12796
12797echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12798echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12799# Make sure either enable_shared or enable_static is yes.
12800test "$enable_shared" = yes || enable_static=yes
12801echo "$as_me:$LINENO: result: $enable_static" >&5
12802echo "${ECHO_T}$enable_static" >&6
12803
12804test "$ld_shlibs_F77" = no && can_build_shared=no
12805
12806GCC_F77="$G77"
12807LD_F77="$LD"
12808
12809lt_prog_compiler_wl_F77=
12810lt_prog_compiler_pic_F77=
12811lt_prog_compiler_static_F77=
12812
12813echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12814echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12815
12816 if test "$GCC" = yes; then
12817 lt_prog_compiler_wl_F77='-Wl,'
12818 lt_prog_compiler_static_F77='-static'
12819
12820 case $host_os in
12821 aix*)
12822 # All AIX code is PIC.
12823 if test "$host_cpu" = ia64; then
12824 # AIX 5 now supports IA64 processor
12825 lt_prog_compiler_static_F77='-Bstatic'
12826 fi
12827 ;;
12828
12829 amigaos*)
12830 # FIXME: we need at least 68020 code to build shared libraries, but
12831 # adding the `-m68020' flag to GCC prevents building anything better,
12832 # like `-m68040'.
12833 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12834 ;;
12835
12836 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12837 # PIC is the default for these OSes.
12838 ;;
12839
12840 mingw* | pw32* | os2*)
12841 # This hack is so that the source file can tell whether it is being
12842 # built for inclusion in a dll (and should export symbols for example).
12843 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12844 ;;
12845
12846 darwin* | rhapsody*)
12847 # PIC is the default on this platform
12848 # Common symbols not allowed in MH_DYLIB files
12849 lt_prog_compiler_pic_F77='-fno-common'
12850 ;;
12851
12852 msdosdjgpp*)
12853 # Just because we use GCC doesn't mean we suddenly get shared libraries
12854 # on systems that don't support them.
12855 lt_prog_compiler_can_build_shared_F77=no
12856 enable_shared=no
12857 ;;
12858
12859 sysv4*MP*)
12860 if test -d /usr/nec; then
12861 lt_prog_compiler_pic_F77=-Kconform_pic
12862 fi
12863 ;;
12864
12865 hpux*)
12866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12867 # not for PA HP-UX.
12868 case "$host_cpu" in
12869 hppa*64*|ia64*)
12870 # +Z the default
12871 ;;
12872 *)
12873 lt_prog_compiler_pic_F77='-fPIC'
12874 ;;
12875 esac
12876 ;;
12877
12878 *)
12879 lt_prog_compiler_pic_F77='-fPIC'
12880 ;;
12881 esac
12882 else
12883 # PORTME Check for flag to pass linker flags through the system compiler.
12884 case $host_os in
12885 aix*)
12886 lt_prog_compiler_wl_F77='-Wl,'
12887 if test "$host_cpu" = ia64; then
12888 # AIX 5 now supports IA64 processor
12889 lt_prog_compiler_static_F77='-Bstatic'
12890 else
12891 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12892 fi
12893 ;;
12894
12895 mingw* | pw32* | os2*)
12896 # This hack is so that the source file can tell whether it is being
12897 # built for inclusion in a dll (and should export symbols for example).
12898 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12899 ;;
12900
12901 hpux9* | hpux10* | hpux11*)
12902 lt_prog_compiler_wl_F77='-Wl,'
12903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12904 # not for PA HP-UX.
12905 case "$host_cpu" in
12906 hppa*64*|ia64*)
12907 # +Z the default
12908 ;;
12909 *)
12910 lt_prog_compiler_pic_F77='+Z'
12911 ;;
12912 esac
12913 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12914 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12915 ;;
12916
12917 irix5* | irix6* | nonstopux*)
12918 lt_prog_compiler_wl_F77='-Wl,'
12919 # PIC (with -KPIC) is the default.
12920 lt_prog_compiler_static_F77='-non_shared'
12921 ;;
12922
12923 newsos6)
12924 lt_prog_compiler_pic_F77='-KPIC'
12925 lt_prog_compiler_static_F77='-Bstatic'
12926 ;;
12927
12928 linux*)
12929 case $CC in
12930 icc|ecc)
12931 lt_prog_compiler_wl_F77='-Wl,'
12932 lt_prog_compiler_pic_F77='-KPIC'
12933 lt_prog_compiler_static_F77='-static'
12934 ;;
12935 ccc)
12936 lt_prog_compiler_wl_F77='-Wl,'
12937 # All Alpha code is PIC.
12938 lt_prog_compiler_static_F77='-non_shared'
12939 ;;
12940 esac
12941 ;;
12942
12943 osf3* | osf4* | osf5*)
12944 lt_prog_compiler_wl_F77='-Wl,'
12945 # All OSF/1 code is PIC.
12946 lt_prog_compiler_static_F77='-non_shared'
12947 ;;
12948
12949 sco3.2v5*)
12950 lt_prog_compiler_pic_F77='-Kpic'
12951 lt_prog_compiler_static_F77='-dn'
12952 ;;
12953
12954 solaris*)
12955 lt_prog_compiler_wl_F77='-Wl,'
12956 lt_prog_compiler_pic_F77='-KPIC'
12957 lt_prog_compiler_static_F77='-Bstatic'
12958 ;;
12959
12960 sunos4*)
12961 lt_prog_compiler_wl_F77='-Qoption ld '
12962 lt_prog_compiler_pic_F77='-PIC'
12963 lt_prog_compiler_static_F77='-Bstatic'
12964 ;;
12965
12966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12967 lt_prog_compiler_wl_F77='-Wl,'
12968 lt_prog_compiler_pic_F77='-KPIC'
12969 lt_prog_compiler_static_F77='-Bstatic'
12970 ;;
12971
12972 sysv4*MP*)
12973 if test -d /usr/nec ;then
12974 lt_prog_compiler_pic_F77='-Kconform_pic'
12975 lt_prog_compiler_static_F77='-Bstatic'
12976 fi
12977 ;;
12978
12979 uts4*)
12980 lt_prog_compiler_pic_F77='-pic'
12981 lt_prog_compiler_static_F77='-Bstatic'
12982 ;;
12983
12984 *)
12985 lt_prog_compiler_can_build_shared_F77=no
12986 ;;
12987 esac
12988 fi
12989
12990echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12991echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12992
12993#
12994# Check to make sure the PIC flag actually works.
12995#
12996if test -n "$lt_prog_compiler_pic_F77"; then
12997 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12998echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12999if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001else
13002 lt_prog_compiler_pic_works_F77=no
13003 ac_outfile=conftest.$ac_objext
13004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13005 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13006 # Insert the option either (1) after the last *FLAGS variable, or
13007 # (2) before a word containing "conftest.", or (3) at the end.
13008 # Note that $ac_compile itself does not contain backslashes and begins
13009 # with a dollar sign (not a hyphen), so the echo should work correctly.
13010 # The option is referenced via a variable to avoid confusing sed.
13011 lt_compile=`echo "$ac_compile" | $SED \
13012 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13014 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +000013015 (eval echo "\"\$as_me:13015: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013016 (eval "$lt_compile" 2>conftest.err)
13017 ac_status=$?
13018 cat conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +000013019 echo "$as_me:13019: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013020 if (exit $ac_status) && test -s "$ac_outfile"; then
13021 # The compiler can only warn and ignore the option if not recognized
13022 # So say no if there are warnings
13023 if test ! -s conftest.err; then
13024 lt_prog_compiler_pic_works_F77=yes
13025 fi
13026 fi
13027 $rm conftest*
13028
13029fi
13030echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13031echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13032
13033if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13034 case $lt_prog_compiler_pic_F77 in
13035 "" | " "*) ;;
13036 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13037 esac
13038else
13039 lt_prog_compiler_pic_F77=
13040 lt_prog_compiler_can_build_shared_F77=no
13041fi
13042
13043fi
13044case "$host_os" in
13045 # For platforms which do not support PIC, -DPIC is meaningless:
13046 *djgpp*)
13047 lt_prog_compiler_pic_F77=
13048 ;;
13049 *)
13050 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13051 ;;
13052esac
13053
13054echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13055echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13056if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13058else
13059 lt_cv_prog_compiler_c_o_F77=no
13060 $rm -r conftest 2>/dev/null
13061 mkdir conftest
13062 cd conftest
13063 mkdir out
13064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13065
13066 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13067 # that will create temporary files in the current directory regardless of
13068 # the output directory. Thus, making CWD read-only will cause this test
13069 # to fail, enabling locking or at least warning the user not to do parallel
13070 # builds.
13071 chmod -w .
13072
13073 lt_compiler_flag="-o out/conftest2.$ac_objext"
13074 # Insert the option either (1) after the last *FLAGS variable, or
13075 # (2) before a word containing "conftest.", or (3) at the end.
13076 # Note that $ac_compile itself does not contain backslashes and begins
13077 # with a dollar sign (not a hyphen), so the echo should work correctly.
13078 lt_compile=`echo "$ac_compile" | $SED \
13079 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13081 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +000013082 (eval echo "\"\$as_me:13082: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013083 (eval "$lt_compile" 2>out/conftest.err)
13084 ac_status=$?
13085 cat out/conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +000013086 echo "$as_me:13086: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13088 then
13089 # The compiler can only warn and ignore the option if not recognized
13090 # So say no if there are warnings
13091 if test ! -s out/conftest.err; then
13092 lt_cv_prog_compiler_c_o_F77=yes
13093 fi
13094 fi
13095 chmod u+w .
13096 $rm conftest* out/*
13097 rmdir out
13098 cd ..
13099 rmdir conftest
13100 $rm conftest*
13101
13102fi
13103echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13104echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13105
13106
13107hard_links="nottested"
13108if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13109 # do not overwrite the value of need_locks provided by the user
13110 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13111echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13112 hard_links=yes
13113 $rm conftest*
13114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13115 touch conftest.a
13116 ln conftest.a conftest.b 2>&5 || hard_links=no
13117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118 echo "$as_me:$LINENO: result: $hard_links" >&5
13119echo "${ECHO_T}$hard_links" >&6
13120 if test "$hard_links" = no; then
13121 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13122echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13123 need_locks=warn
13124 fi
13125else
13126 need_locks=no
13127fi
13128
13129echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13131
13132 runpath_var=
13133 allow_undefined_flag_F77=
13134 enable_shared_with_static_runtimes_F77=no
13135 archive_cmds_F77=
13136 archive_expsym_cmds_F77=
13137 old_archive_From_new_cmds_F77=
13138 old_archive_from_expsyms_cmds_F77=
13139 export_dynamic_flag_spec_F77=
13140 whole_archive_flag_spec_F77=
13141 thread_safe_flag_spec_F77=
13142 hardcode_libdir_flag_spec_F77=
13143 hardcode_libdir_flag_spec_ld_F77=
13144 hardcode_libdir_separator_F77=
13145 hardcode_direct_F77=no
13146 hardcode_minus_L_F77=no
13147 hardcode_shlibpath_var_F77=unsupported
13148 link_all_deplibs_F77=unknown
13149 hardcode_automatic_F77=no
13150 module_cmds_F77=
13151 module_expsym_cmds_F77=
13152 always_export_symbols_F77=no
13153 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13154 # include_expsyms should be a list of space-separated symbols to be *always*
13155 # included in the symbol list
13156 include_expsyms_F77=
13157 # exclude_expsyms can be an extended regexp of symbols to exclude
13158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13160 # as well as any symbol that contains `d'.
13161 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13163 # platforms (ab)use it in PIC code, but their linkers get confused if
13164 # the symbol is explicitly referenced. Since portable code cannot
13165 # rely on this symbol name, it's probably fine to never include it in
13166 # preloaded symbol tables.
13167 extract_expsyms_cmds=
13168
13169 case $host_os in
13170 cygwin* | mingw* | pw32*)
13171 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13172 # When not using gcc, we currently assume that we are using
13173 # Microsoft Visual C++.
13174 if test "$GCC" != yes; then
13175 with_gnu_ld=no
13176 fi
13177 ;;
13178 openbsd*)
13179 with_gnu_ld=no
13180 ;;
13181 esac
13182
13183 ld_shlibs_F77=yes
13184 if test "$with_gnu_ld" = yes; then
13185 # If archive_cmds runs LD, not CC, wlarc should be empty
13186 wlarc='${wl}'
13187
13188 # See if GNU ld supports shared libraries.
13189 case $host_os in
13190 aix3* | aix4* | aix5*)
13191 # On AIX/PPC, the GNU linker is very broken
13192 if test "$host_cpu" != ia64; then
13193 ld_shlibs_F77=no
13194 cat <<EOF 1>&2
13195
13196*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13197*** to be unable to reliably create shared libraries on AIX.
13198*** Therefore, libtool is disabling shared libraries support. If you
13199*** really care for shared libraries, you may want to modify your PATH
13200*** so that a non-GNU linker is found, and then restart.
13201
13202EOF
13203 fi
13204 ;;
13205
13206 amigaos*)
13207 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)'
13208 hardcode_libdir_flag_spec_F77='-L$libdir'
13209 hardcode_minus_L_F77=yes
13210
13211 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13212 # that the semantics of dynamic libraries on AmigaOS, at least up
13213 # to version 4, is to share data among multiple programs linked
13214 # with the same dynamic library. Since this doesn't match the
13215 # behavior of shared libraries on other platforms, we can't use
13216 # them.
13217 ld_shlibs_F77=no
13218 ;;
13219
13220 beos*)
13221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13222 allow_undefined_flag_F77=unsupported
13223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13224 # support --undefined. This deserves some investigation. FIXME
13225 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226 else
13227 ld_shlibs_F77=no
13228 fi
13229 ;;
13230
13231 cygwin* | mingw* | pw32*)
13232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13233 # as there is no search path for DLLs.
13234 hardcode_libdir_flag_spec_F77='-L$libdir'
13235 allow_undefined_flag_F77=unsupported
13236 always_export_symbols_F77=no
13237 enable_shared_with_static_runtimes_F77=yes
13238 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13239
13240 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13241 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13242 # If the export-symbols file already is a .def file (1st line
13243 # is EXPORTS), use it as is; otherwise, prepend...
13244 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13245 cp $export_symbols $output_objdir/$soname.def;
13246 else
13247 echo EXPORTS > $output_objdir/$soname.def;
13248 cat $export_symbols >> $output_objdir/$soname.def;
13249 fi~
13250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13251 else
13252 ld_shlibs=no
13253 fi
13254 ;;
13255
13256 netbsd*)
13257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13258 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13259 wlarc=
13260 else
13261 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13263 fi
13264 ;;
13265
13266 solaris* | sysv5*)
13267 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13268 ld_shlibs_F77=no
13269 cat <<EOF 1>&2
13270
13271*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13272*** create shared libraries on Solaris systems. Therefore, libtool
13273*** is disabling shared libraries support. We urge you to upgrade GNU
13274*** binutils to release 2.9.1 or newer. Another option is to modify
13275*** your PATH or compiler configuration so that the native linker is
13276*** used, and then restart.
13277
13278EOF
13279 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13280 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13281 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13282 else
13283 ld_shlibs_F77=no
13284 fi
13285 ;;
13286
13287 sunos4*)
13288 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13289 wlarc=
13290 hardcode_direct_F77=yes
13291 hardcode_shlibpath_var_F77=no
13292 ;;
13293
13294 *)
13295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13296 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13298 else
13299 ld_shlibs_F77=no
13300 fi
13301 ;;
13302 esac
13303
13304 if test "$ld_shlibs_F77" = yes; then
13305 runpath_var=LD_RUN_PATH
13306 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13307 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13308 # ancient GNU ld didn't support --whole-archive et. al.
13309 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13310 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13311 else
13312 whole_archive_flag_spec_F77=
13313 fi
13314 fi
13315 else
13316 # PORTME fill in a description of your system's linker (not GNU ld)
13317 case $host_os in
13318 aix3*)
13319 allow_undefined_flag_F77=unsupported
13320 always_export_symbols_F77=yes
13321 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'
13322 # Note: this linker hardcodes the directories in LIBPATH if there
13323 # are no directories specified by -L.
13324 hardcode_minus_L_F77=yes
13325 if test "$GCC" = yes && test -z "$link_static_flag"; then
13326 # Neither direct hardcoding nor static linking is supported with a
13327 # broken collect2.
13328 hardcode_direct_F77=unsupported
13329 fi
13330 ;;
13331
13332 aix4* | aix5*)
13333 if test "$host_cpu" = ia64; then
13334 # On IA64, the linker does run time linking by default, so we don't
13335 # have to do anything special.
13336 aix_use_runtimelinking=no
13337 exp_sym_flag='-Bexport'
13338 no_entry_flag=""
13339 else
13340 # If we're using GNU nm, then we don't want the "-C" option.
13341 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13342 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13343 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'
13344 else
13345 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'
13346 fi
13347 aix_use_runtimelinking=no
13348
13349 # Test if we are trying to use run time linking or normal
13350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13351 # need to do runtime linking.
13352 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13353 for ld_flag in $LDFLAGS; do
13354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13355 aix_use_runtimelinking=yes
13356 break
13357 fi
13358 done
13359 esac
13360
13361 exp_sym_flag='-bexport'
13362 no_entry_flag='-bnoentry'
13363 fi
13364
13365 # When large executables or shared objects are built, AIX ld can
13366 # have problems creating the table of contents. If linking a library
13367 # or program results in "error TOC overflow" add -mminimal-toc to
13368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13370
13371 archive_cmds_F77=''
13372 hardcode_direct_F77=yes
13373 hardcode_libdir_separator_F77=':'
13374 link_all_deplibs_F77=yes
13375
13376 if test "$GCC" = yes; then
13377 case $host_os in aix4.012|aix4.012.*)
13378 # We only want to do this on AIX 4.2 and lower, the check
13379 # below for broken collect2 doesn't work under 4.3+
13380 collect2name=`${CC} -print-prog-name=collect2`
13381 if test -f "$collect2name" && \
13382 strings "$collect2name" | grep resolve_lib_name >/dev/null
13383 then
13384 # We have reworked collect2
13385 hardcode_direct_F77=yes
13386 else
13387 # We have old collect2
13388 hardcode_direct_F77=unsupported
13389 # It fails to find uninstalled libraries when the uninstalled
13390 # path is not listed in the libpath. Setting hardcode_minus_L
13391 # to unsupported forces relinking
13392 hardcode_minus_L_F77=yes
13393 hardcode_libdir_flag_spec_F77='-L$libdir'
13394 hardcode_libdir_separator_F77=
13395 fi
13396 esac
13397 shared_flag='-shared'
13398 else
13399 # not using gcc
13400 if test "$host_cpu" = ia64; then
13401 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13402 # chokes on -Wl,-G. The following line is correct:
13403 shared_flag='-G'
13404 else
13405 if test "$aix_use_runtimelinking" = yes; then
13406 shared_flag='${wl}-G'
13407 else
13408 shared_flag='${wl}-bM:SRE'
13409 fi
13410 fi
13411 fi
13412
13413 # It seems that -bexpall does not export symbols beginning with
13414 # underscore (_), so it is better to generate a list of symbols to export.
13415 always_export_symbols_F77=yes
13416 if test "$aix_use_runtimelinking" = yes; then
13417 # Warning - without using the other runtime loading flags (-brtl),
13418 # -berok will link without error, but may produce a broken library.
13419 allow_undefined_flag_F77='-berok'
13420 # Determine the default libpath from the value encoded in an empty executable.
13421 cat >conftest.$ac_ext <<_ACEOF
13422 program main
13423
13424 end
13425_ACEOF
13426rm -f conftest.$ac_objext conftest$ac_exeext
13427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -s conftest$ac_exeext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438
13439aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13440}'`
13441# Check for a 64-bit object if we didn't find anything.
13442if 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; }
13443}'`; fi
13444else
13445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013446sed 's/^/| /' conftest.$ac_ext >&5
13447
John Criswell47fdd832003-07-14 16:52:07 +000013448fi
13449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13450if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13451
13452 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13453 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"
13454 else
13455 if test "$host_cpu" = ia64; then
13456 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13457 allow_undefined_flag_F77="-z nodefs"
13458 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"
13459 else
13460 # Determine the default libpath from the value encoded in an empty executable.
13461 cat >conftest.$ac_ext <<_ACEOF
13462 program main
13463
13464 end
13465_ACEOF
13466rm -f conftest.$ac_objext conftest$ac_exeext
13467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468 (eval $ac_link) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -s conftest$ac_exeext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478
13479aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13480}'`
13481# Check for a 64-bit object if we didn't find anything.
13482if 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; }
13483}'`; fi
13484else
13485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013486sed 's/^/| /' conftest.$ac_ext >&5
13487
John Criswell47fdd832003-07-14 16:52:07 +000013488fi
13489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13490if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13491
13492 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13493 # Warning - without using the other run time loading flags,
13494 # -berok will link without error, but may produce a broken library.
13495 no_undefined_flag_F77=' ${wl}-bernotok'
13496 allow_undefined_flag_F77=' ${wl}-berok'
13497 # -bexpall does not export symbols beginning with underscore (_)
13498 always_export_symbols_F77=yes
13499 # Exported symbols can be pulled into shared objects from archives
13500 whole_archive_flag_spec_F77=' '
13501 archive_cmds_need_lc_F77=yes
13502 # This is similar to how AIX traditionally builds it's shared libraries.
13503 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'
13504 fi
13505 fi
13506 ;;
13507
13508 amigaos*)
13509 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)'
13510 hardcode_libdir_flag_spec_F77='-L$libdir'
13511 hardcode_minus_L_F77=yes
13512 # see comment about different semantics on the GNU ld section
13513 ld_shlibs_F77=no
13514 ;;
13515
13516 bsdi4*)
13517 export_dynamic_flag_spec_F77=-rdynamic
13518 ;;
13519
13520 cygwin* | mingw* | pw32*)
13521 # When not using gcc, we currently assume that we are using
13522 # Microsoft Visual C++.
13523 # hardcode_libdir_flag_spec is actually meaningless, as there is
13524 # no search path for DLLs.
13525 hardcode_libdir_flag_spec_F77=' '
13526 allow_undefined_flag_F77=unsupported
13527 # Tell ltmain to make .lib files, not .a files.
13528 libext=lib
13529 # Tell ltmain to make .dll files, not .so files.
13530 shrext=".dll"
13531 # FIXME: Setting linknames here is a bad hack.
13532 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13533 # The linker will automatically build a .lib file if we build a DLL.
13534 old_archive_From_new_cmds_F77='true'
13535 # FIXME: Should let the user specify the lib program.
13536 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13537 fix_srcfile_path='`cygpath -w "$srcfile"`'
13538 enable_shared_with_static_runtimes_F77=yes
13539 ;;
13540
13541 darwin* | rhapsody*)
13542 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13543 archive_cmds_need_lc_F77=no
13544 case "$host_os" in
13545 rhapsody* | darwin1.[012])
13546 allow_undefined_flag_F77='-undefined suppress'
13547 ;;
13548 *) # Darwin 1.3 on
13549 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13550 ;;
13551 esac
13552 # FIXME: Relying on posixy $() will cause problems for
13553 # cross-compilation, but unfortunately the echo tests do not
13554 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13555 # `"' quotes if we put them in here... so don't!
13556 lt_int_apple_cc_single_mod=no
13557 output_verbose_link_cmd='echo'
13558 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13559 lt_int_apple_cc_single_mod=yes
13560 fi
13561 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13562 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13563 else
13564 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'
13565 fi
13566 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13569 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}'
13570 else
13571 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}'
13572 fi
13573 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}'
13574 hardcode_direct_F77=no
13575 hardcode_automatic_F77=yes
13576 hardcode_shlibpath_var_F77=unsupported
13577 whole_archive_flag_spec_F77='-all_load $convenience'
13578 link_all_deplibs_F77=yes
13579 fi
13580 ;;
13581
13582 dgux*)
13583 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13584 hardcode_libdir_flag_spec_F77='-L$libdir'
13585 hardcode_shlibpath_var_F77=no
13586 ;;
13587
13588 freebsd1*)
13589 ld_shlibs_F77=no
13590 ;;
13591
13592 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13593 # support. Future versions do this automatically, but an explicit c++rt0.o
13594 # does not break anything, and helps significantly (at the cost of a little
13595 # extra space).
13596 freebsd2.2*)
13597 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13598 hardcode_libdir_flag_spec_F77='-R$libdir'
13599 hardcode_direct_F77=yes
13600 hardcode_shlibpath_var_F77=no
13601 ;;
13602
13603 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13604 freebsd2*)
13605 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13606 hardcode_direct_F77=yes
13607 hardcode_minus_L_F77=yes
13608 hardcode_shlibpath_var_F77=no
13609 ;;
13610
13611 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13612 freebsd*)
13613 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13614 hardcode_libdir_flag_spec_F77='-R$libdir'
13615 hardcode_direct_F77=yes
13616 hardcode_shlibpath_var_F77=no
13617 ;;
13618
13619 hpux9*)
13620 if test "$GCC" = yes; then
13621 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'
13622 else
13623 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'
13624 fi
13625 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13626 hardcode_libdir_separator_F77=:
13627 hardcode_direct_F77=yes
13628
13629 # hardcode_minus_L: Not really in the search PATH,
13630 # but as the default location of the library.
13631 hardcode_minus_L_F77=yes
13632 export_dynamic_flag_spec_F77='${wl}-E'
13633 ;;
13634
13635 hpux10* | hpux11*)
13636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13637 case "$host_cpu" in
13638 hppa*64*|ia64*)
13639 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13640 ;;
13641 *)
13642 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13643 ;;
13644 esac
13645 else
13646 case "$host_cpu" in
13647 hppa*64*|ia64*)
13648 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13649 ;;
13650 *)
13651 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13652 ;;
13653 esac
13654 fi
13655 if test "$with_gnu_ld" = no; then
13656 case "$host_cpu" in
13657 hppa*64*)
13658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13659 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13660 hardcode_libdir_separator_F77=:
13661 hardcode_direct_F77=no
13662 hardcode_shlibpath_var_F77=no
13663 ;;
13664 ia64*)
13665 hardcode_libdir_flag_spec_F77='-L$libdir'
13666 hardcode_direct_F77=no
13667 hardcode_shlibpath_var_F77=no
13668
13669 # hardcode_minus_L: Not really in the search PATH,
13670 # but as the default location of the library.
13671 hardcode_minus_L_F77=yes
13672 ;;
13673 *)
13674 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13675 hardcode_libdir_separator_F77=:
13676 hardcode_direct_F77=yes
13677 export_dynamic_flag_spec_F77='${wl}-E'
13678
13679 # hardcode_minus_L: Not really in the search PATH,
13680 # but as the default location of the library.
13681 hardcode_minus_L_F77=yes
13682 ;;
13683 esac
13684 fi
13685 ;;
13686
13687 irix5* | irix6* | nonstopux*)
13688 if test "$GCC" = yes; then
13689 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'
13690 else
13691 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'
13692 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13693 fi
13694 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13695 hardcode_libdir_separator_F77=:
13696 link_all_deplibs_F77=yes
13697 ;;
13698
13699 netbsd*)
13700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13701 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13702 else
13703 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13704 fi
13705 hardcode_libdir_flag_spec_F77='-R$libdir'
13706 hardcode_direct_F77=yes
13707 hardcode_shlibpath_var_F77=no
13708 ;;
13709
13710 newsos6)
13711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13712 hardcode_direct_F77=yes
13713 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13714 hardcode_libdir_separator_F77=:
13715 hardcode_shlibpath_var_F77=no
13716 ;;
13717
13718 openbsd*)
13719 hardcode_direct_F77=yes
13720 hardcode_shlibpath_var_F77=no
13721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13722 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13723 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13724 export_dynamic_flag_spec_F77='${wl}-E'
13725 else
13726 case $host_os in
13727 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13728 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13729 hardcode_libdir_flag_spec_F77='-R$libdir'
13730 ;;
13731 *)
13732 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13733 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13734 ;;
13735 esac
13736 fi
13737 ;;
13738
13739 os2*)
13740 hardcode_libdir_flag_spec_F77='-L$libdir'
13741 hardcode_minus_L_F77=yes
13742 allow_undefined_flag_F77=unsupported
13743 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'
13744 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13745 ;;
13746
13747 osf3*)
13748 if test "$GCC" = yes; then
13749 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13750 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'
13751 else
13752 allow_undefined_flag_F77=' -expect_unresolved \*'
13753 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'
13754 fi
13755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13756 hardcode_libdir_separator_F77=:
13757 ;;
13758
13759 osf4* | osf5*) # as osf3* with the addition of -msym flag
13760 if test "$GCC" = yes; then
13761 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13762 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'
13763 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13764 else
13765 allow_undefined_flag_F77=' -expect_unresolved \*'
13766 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'
13767 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~
13768 $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'
13769
13770 # Both c and cxx compiler support -rpath directly
13771 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13772 fi
13773 hardcode_libdir_separator_F77=:
13774 ;;
13775
13776 sco3.2v5*)
13777 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_shlibpath_var_F77=no
13779 export_dynamic_flag_spec_F77='${wl}-Bexport'
13780 runpath_var=LD_RUN_PATH
13781 hardcode_runpath_var=yes
13782 ;;
13783
13784 solaris*)
13785 no_undefined_flag_F77=' -z text'
13786 if test "$GCC" = yes; then
13787 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13789 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13790 else
13791 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13794 fi
13795 hardcode_libdir_flag_spec_F77='-R$libdir'
13796 hardcode_shlibpath_var_F77=no
13797 case $host_os in
13798 solaris2.[0-5] | solaris2.[0-5].*) ;;
13799 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13800 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13801 esac
13802 link_all_deplibs_F77=yes
13803 ;;
13804
13805 sunos4*)
13806 if test "x$host_vendor" = xsequent; then
13807 # Use $CC to link under sequent, because it throws in some extra .o
13808 # files that make .init and .fini sections work.
13809 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13810 else
13811 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13812 fi
13813 hardcode_libdir_flag_spec_F77='-L$libdir'
13814 hardcode_direct_F77=yes
13815 hardcode_minus_L_F77=yes
13816 hardcode_shlibpath_var_F77=no
13817 ;;
13818
13819 sysv4)
13820 case $host_vendor in
13821 sni)
13822 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13823 hardcode_direct_F77=yes # is this really true???
13824 ;;
13825 siemens)
13826 ## LD is ld it makes a PLAMLIB
13827 ## CC just makes a GrossModule.
13828 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13829 reload_cmds_F77='$CC -r -o $output$reload_objs'
13830 hardcode_direct_F77=no
13831 ;;
13832 motorola)
13833 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13834 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13835 ;;
13836 esac
13837 runpath_var='LD_RUN_PATH'
13838 hardcode_shlibpath_var_F77=no
13839 ;;
13840
13841 sysv4.3*)
13842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13843 hardcode_shlibpath_var_F77=no
13844 export_dynamic_flag_spec_F77='-Bexport'
13845 ;;
13846
13847 sysv4*MP*)
13848 if test -d /usr/nec; then
13849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13850 hardcode_shlibpath_var_F77=no
13851 runpath_var=LD_RUN_PATH
13852 hardcode_runpath_var=yes
13853 ld_shlibs_F77=yes
13854 fi
13855 ;;
13856
13857 sysv4.2uw2*)
13858 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13859 hardcode_direct_F77=yes
13860 hardcode_minus_L_F77=no
13861 hardcode_shlibpath_var_F77=no
13862 hardcode_runpath_var=yes
13863 runpath_var=LD_RUN_PATH
13864 ;;
13865
13866 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13867 no_undefined_flag_F77='${wl}-z ${wl}text'
13868 if test "$GCC" = yes; then
13869 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13870 else
13871 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13872 fi
13873 runpath_var='LD_RUN_PATH'
13874 hardcode_shlibpath_var_F77=no
13875 ;;
13876
13877 sysv5*)
13878 no_undefined_flag_F77=' -z text'
13879 # $CC -shared without GNU ld will not create a library from C++
13880 # object files and a static libstdc++, better avoid it by now
13881 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13884 hardcode_libdir_flag_spec_F77=
13885 hardcode_shlibpath_var_F77=no
13886 runpath_var='LD_RUN_PATH'
13887 ;;
13888
13889 uts4*)
13890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891 hardcode_libdir_flag_spec_F77='-L$libdir'
13892 hardcode_shlibpath_var_F77=no
13893 ;;
13894
13895 *)
13896 ld_shlibs_F77=no
13897 ;;
13898 esac
13899 fi
13900
13901echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13902echo "${ECHO_T}$ld_shlibs_F77" >&6
13903test "$ld_shlibs_F77" = no && can_build_shared=no
13904
13905variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13906if test "$GCC" = yes; then
13907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13908fi
13909
13910#
13911# Do we need to explicitly link libc?
13912#
13913case "x$archive_cmds_need_lc_F77" in
13914x|xyes)
13915 # Assume -lc should be added
13916 archive_cmds_need_lc_F77=yes
13917
13918 if test "$enable_shared" = yes && test "$GCC" = yes; then
13919 case $archive_cmds_F77 in
13920 *'~'*)
13921 # FIXME: we may have to deal with multi-command sequences.
13922 ;;
13923 '$CC '*)
13924 # Test whether the compiler implicitly links with -lc since on some
13925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13926 # to ld, don't add -lc before -lgcc.
13927 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13928echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13929 $rm conftest*
13930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13931
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } 2>conftest.err; then
13937 soname=conftest
13938 lib=conftest
13939 libobjs=conftest.$ac_objext
13940 deplibs=
13941 wl=$lt_prog_compiler_wl_F77
13942 compiler_flags=-v
13943 linker_flags=-v
13944 verstring=
13945 output_objdir=.
13946 libname=conftest
13947 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13948 allow_undefined_flag_F77=
13949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13950 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }
13954 then
13955 archive_cmds_need_lc_F77=no
13956 else
13957 archive_cmds_need_lc_F77=yes
13958 fi
13959 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13960 else
13961 cat conftest.err 1>&5
13962 fi
13963 $rm conftest*
13964 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13965echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13966 ;;
13967 esac
13968 fi
13969 ;;
13970esac
13971
13972echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13973echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13974hardcode_action_F77=
13975if test -n "$hardcode_libdir_flag_spec_F77" || \
13976 test -n "$runpath_var F77" || \
13977 test "X$hardcode_automatic_F77"="Xyes" ; then
13978
13979 # We can hardcode non-existant directories.
13980 if test "$hardcode_direct_F77" != no &&
13981 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13982 # have to relink, otherwise we might link with an installed library
13983 # when we should be linking with a yet-to-be-installed one
13984 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13985 test "$hardcode_minus_L_F77" != no; then
13986 # Linking always hardcodes the temporary library directory.
13987 hardcode_action_F77=relink
13988 else
13989 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13990 hardcode_action_F77=immediate
13991 fi
13992else
13993 # We cannot hardcode anything, or else we can only hardcode existing
13994 # directories.
13995 hardcode_action_F77=unsupported
13996fi
13997echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13998echo "${ECHO_T}$hardcode_action_F77" >&6
13999
14000if test "$hardcode_action_F77" = relink; then
14001 # Fast installation is not supported
14002 enable_fast_install=no
14003elif test "$shlibpath_overrides_runpath" = yes ||
14004 test "$enable_shared" = no; then
14005 # Fast installation is not necessary
14006 enable_fast_install=needless
14007fi
14008
14009striplib=
14010old_striplib=
14011echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14012echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14013if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14014 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14015 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14016 echo "$as_me:$LINENO: result: yes" >&5
14017echo "${ECHO_T}yes" >&6
14018else
14019# FIXME - insert some real tests, host_os isn't really good enough
14020 case $host_os in
14021 darwin*)
14022 if test -n "$STRIP" ; then
14023 striplib="$STRIP -x"
14024 echo "$as_me:$LINENO: result: yes" >&5
14025echo "${ECHO_T}yes" >&6
14026 else
14027 echo "$as_me:$LINENO: result: no" >&5
14028echo "${ECHO_T}no" >&6
14029fi
14030 ;;
14031 *)
14032 echo "$as_me:$LINENO: result: no" >&5
14033echo "${ECHO_T}no" >&6
14034 ;;
14035 esac
14036fi
14037
14038echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14039echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14040library_names_spec=
14041libname_spec='lib$name'
14042soname_spec=
14043shrext=".so"
14044postinstall_cmds=
14045postuninstall_cmds=
14046finish_cmds=
14047finish_eval=
14048shlibpath_var=
14049shlibpath_overrides_runpath=unknown
14050version_type=none
14051dynamic_linker="$host_os ld.so"
14052sys_lib_dlsearch_path_spec="/lib /usr/lib"
14053if test "$GCC" = yes; then
14054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14056 # if the path contains ";" then we assume it to be the separator
14057 # otherwise default to the standard path separator (i.e. ":") - it is
14058 # assumed that no part of a normal pathname contains ";" but that should
14059 # okay in the real world where ";" in dirpaths is itself problematic.
14060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14061 else
14062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14063 fi
14064else
14065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14066fi
14067need_lib_prefix=unknown
14068hardcode_into_libs=no
14069
14070# when you set need_version to no, make sure it does not cause -set_version
14071# flags to be left without arguments
14072need_version=unknown
14073
14074case $host_os in
14075aix3*)
14076 version_type=linux
14077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14078 shlibpath_var=LIBPATH
14079
14080 # AIX 3 has no versioning support, so we append a major version to the name.
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 ;;
14083
14084aix4* | aix5*)
14085 version_type=linux
14086 need_lib_prefix=no
14087 need_version=no
14088 hardcode_into_libs=yes
14089 if test "$host_cpu" = ia64; then
14090 # AIX 5 supports IA64
14091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 else
14094 # With GCC up to 2.95.x, collect2 would create an import file
14095 # for dependence libraries. The import file would start with
14096 # the line `#! .'. This would cause the generated library to
14097 # depend on `.', always an invalid library. This was fixed in
14098 # development snapshots of GCC prior to 3.0.
14099 case $host_os in
14100 aix4 | aix4.[01] | aix4.[01].*)
14101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14102 echo ' yes '
14103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14104 :
14105 else
14106 can_build_shared=no
14107 fi
14108 ;;
14109 esac
14110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14111 # soname into executable. Probably we can add versioning support to
14112 # collect2, so additional links can be useful in future.
14113 if test "$aix_use_runtimelinking" = yes; then
14114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14115 # instead of lib<name>.a to let people know that these are not
14116 # typical AIX shared libraries.
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118 else
14119 # We preserve .a as extension for shared libraries through AIX4.2
14120 # and later when we are not doing run time linking.
14121 library_names_spec='${libname}${release}.a $libname.a'
14122 soname_spec='${libname}${release}${shared_ext}$major'
14123 fi
14124 shlibpath_var=LIBPATH
14125 fi
14126 ;;
14127
14128amigaos*)
14129 library_names_spec='$libname.ixlibrary $libname.a'
14130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14131 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'
14132 ;;
14133
14134beos*)
14135 library_names_spec='${libname}${shared_ext}'
14136 dynamic_linker="$host_os ld.so"
14137 shlibpath_var=LIBRARY_PATH
14138 ;;
14139
14140bsdi4*)
14141 version_type=linux
14142 need_version=no
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144 soname_spec='${libname}${release}${shared_ext}$major'
14145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14146 shlibpath_var=LD_LIBRARY_PATH
14147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14149 # the default ld.so.conf also contains /usr/contrib/lib and
14150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14151 # libtool to hard-code these into programs
14152 ;;
14153
14154cygwin* | mingw* | pw32*)
14155 version_type=windows
14156 shrext=".dll"
14157 need_version=no
14158 need_lib_prefix=no
14159
14160 case $GCC,$host_os in
14161 yes,cygwin* | yes,mingw* | yes,pw32*)
14162 library_names_spec='$libname.dll.a'
14163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14164 postinstall_cmds='base_file=`basename \${file}`~
14165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14166 dldir=$destdir/`dirname \$dlpath`~
14167 test -d \$dldir || mkdir -p \$dldir~
14168 $install_prog $dir/$dlname \$dldir/$dlname'
14169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14170 dlpath=$dir/\$dldll~
14171 $rm \$dlpath'
14172 shlibpath_overrides_runpath=yes
14173
14174 case $host_os in
14175 cygwin*)
14176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14178 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14179 ;;
14180 mingw*)
14181 # MinGW DLLs use traditional 'lib' prefix
14182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14185 # It is most probably a Windows format PATH printed by
14186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14187 # path with ; separators, and with drive letters. We can handle the
14188 # drive letters (cygwin fileutils understands them), so leave them,
14189 # especially as we might pass files found there to a mingw objdump,
14190 # which wouldn't understand a cygwinified path. Ahh.
14191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14192 else
14193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14194 fi
14195 ;;
14196 pw32*)
14197 # pw32 DLLs use 'pw' prefix rather than 'lib'
14198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14199 ;;
14200 esac
14201 ;;
14202
14203 *)
14204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14205 ;;
14206 esac
14207 dynamic_linker='Win32 ld.exe'
14208 # FIXME: first we should search . and the directory the executable is in
14209 shlibpath_var=PATH
14210 ;;
14211
14212darwin* | rhapsody*)
14213 dynamic_linker="$host_os dyld"
14214 version_type=darwin
14215 need_lib_prefix=no
14216 need_version=no
14217 # FIXME: Relying on posixy $() will cause problems for
14218 # cross-compilation, but unfortunately the echo tests do not
14219 # yet detect zsh echo's removal of \ escapes.
14220 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14221 soname_spec='${libname}${release}${major}$shared_ext'
14222 shlibpath_overrides_runpath=yes
14223 shlibpath_var=DYLD_LIBRARY_PATH
14224 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14225 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14226 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14227 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"`
14228 fi
14229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14230 ;;
14231
14232dgux*)
14233 version_type=linux
14234 need_lib_prefix=no
14235 need_version=no
14236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14237 soname_spec='${libname}${release}${shared_ext}$major'
14238 shlibpath_var=LD_LIBRARY_PATH
14239 ;;
14240
14241freebsd1*)
14242 dynamic_linker=no
14243 ;;
14244
14245freebsd*)
14246 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14247 version_type=freebsd-$objformat
14248 case $version_type in
14249 freebsd-elf*)
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14251 need_version=no
14252 need_lib_prefix=no
14253 ;;
14254 freebsd-*)
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14256 need_version=yes
14257 ;;
14258 esac
14259 shlibpath_var=LD_LIBRARY_PATH
14260 case $host_os in
14261 freebsd2*)
14262 shlibpath_overrides_runpath=yes
14263 ;;
14264 freebsd3.01* | freebsdelf3.01*)
14265 shlibpath_overrides_runpath=yes
14266 hardcode_into_libs=yes
14267 ;;
14268 *) # from 3.2 on
14269 shlibpath_overrides_runpath=no
14270 hardcode_into_libs=yes
14271 ;;
14272 esac
14273 ;;
14274
14275gnu*)
14276 version_type=linux
14277 need_lib_prefix=no
14278 need_version=no
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14280 soname_spec='${libname}${release}${shared_ext}$major'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 hardcode_into_libs=yes
14283 ;;
14284
14285hpux9* | hpux10* | hpux11*)
14286 # Give a soname corresponding to the major version so that dld.sl refuses to
14287 # link against other versions.
14288 version_type=sunos
14289 need_lib_prefix=no
14290 need_version=no
14291 case "$host_cpu" in
14292 ia64*)
14293 shrext='.so'
14294 hardcode_into_libs=yes
14295 dynamic_linker="$host_os dld.so"
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299 soname_spec='${libname}${release}${shared_ext}$major'
14300 if test "X$HPUX_IA64_MODE" = X32; then
14301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14302 else
14303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14304 fi
14305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14306 ;;
14307 hppa*64*)
14308 shrext='.sl'
14309 hardcode_into_libs=yes
14310 dynamic_linker="$host_os dld.sl"
14311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314 soname_spec='${libname}${release}${shared_ext}$major'
14315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14317 ;;
14318 *)
14319 shrext='.sl'
14320 dynamic_linker="$host_os dld.sl"
14321 shlibpath_var=SHLIB_PATH
14322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 ;;
14326 esac
14327 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14328 postinstall_cmds='chmod 555 $lib'
14329 ;;
14330
14331irix5* | irix6* | nonstopux*)
14332 case $host_os in
14333 nonstopux*) version_type=nonstopux ;;
14334 *)
14335 if test "$lt_cv_prog_gnu_ld" = yes; then
14336 version_type=linux
14337 else
14338 version_type=irix
14339 fi ;;
14340 esac
14341 need_lib_prefix=no
14342 need_version=no
14343 soname_spec='${libname}${release}${shared_ext}$major'
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14345 case $host_os in
14346 irix5* | nonstopux*)
14347 libsuff= shlibsuff=
14348 ;;
14349 *)
14350 case $LD in # libtool.m4 will add one of these switches to LD
14351 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14352 libsuff= shlibsuff= libmagic=32-bit;;
14353 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14354 libsuff=32 shlibsuff=N32 libmagic=N32;;
14355 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14356 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14357 *) libsuff= shlibsuff= libmagic=never-match;;
14358 esac
14359 ;;
14360 esac
14361 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14362 shlibpath_overrides_runpath=no
14363 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14364 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14365 hardcode_into_libs=yes
14366 ;;
14367
14368# No shared lib support for Linux oldld, aout, or coff.
14369linux*oldld* | linux*aout* | linux*coff*)
14370 dynamic_linker=no
14371 ;;
14372
14373# This must be Linux ELF.
14374linux*)
14375 version_type=linux
14376 need_lib_prefix=no
14377 need_version=no
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 shlibpath_overrides_runpath=no
14383 # This implies no fast_install, which is unacceptable.
14384 # Some rework will be needed to allow for fast_install
14385 # before this can be enabled.
14386 hardcode_into_libs=yes
14387
14388 # We used to test for /lib/ld.so.1 and disable shared libraries on
14389 # powerpc, because MkLinux only supported shared libraries with the
14390 # GNU dynamic linker. Since this was broken with cross compilers,
14391 # most powerpc-linux boxes support dynamic linking these days and
14392 # people can always --disable-shared, the test was removed, and we
14393 # assume the GNU/Linux dynamic linker is in use.
14394 dynamic_linker='GNU/Linux ld.so'
14395 ;;
14396
14397netbsd*)
14398 version_type=sunos
14399 need_lib_prefix=no
14400 need_version=no
14401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14404 dynamic_linker='NetBSD (a.out) ld.so'
14405 else
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14408 dynamic_linker='NetBSD ld.elf_so'
14409 fi
14410 shlibpath_var=LD_LIBRARY_PATH
14411 shlibpath_overrides_runpath=yes
14412 hardcode_into_libs=yes
14413 ;;
14414
14415newsos6)
14416 version_type=linux
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 shlibpath_overrides_runpath=yes
14420 ;;
14421
14422nto-qnx)
14423 version_type=linux
14424 need_lib_prefix=no
14425 need_version=no
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427 soname_spec='${libname}${release}${shared_ext}$major'
14428 shlibpath_var=LD_LIBRARY_PATH
14429 shlibpath_overrides_runpath=yes
14430 ;;
14431
14432openbsd*)
14433 version_type=sunos
14434 need_lib_prefix=no
14435 need_version=no
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14440 case $host_os in
14441 openbsd2.[89] | openbsd2.[89].*)
14442 shlibpath_overrides_runpath=no
14443 ;;
14444 *)
14445 shlibpath_overrides_runpath=yes
14446 ;;
14447 esac
14448 else
14449 shlibpath_overrides_runpath=yes
14450 fi
14451 ;;
14452
14453os2*)
14454 libname_spec='$name'
14455 shrext=".dll"
14456 need_lib_prefix=no
14457 library_names_spec='$libname${shared_ext} $libname.a'
14458 dynamic_linker='OS/2 ld.exe'
14459 shlibpath_var=LIBPATH
14460 ;;
14461
14462osf3* | osf4* | osf5*)
14463 version_type=osf
14464 need_lib_prefix=no
14465 need_version=no
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 shlibpath_var=LD_LIBRARY_PATH
14469 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14470 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14471 ;;
14472
14473sco3.2v5*)
14474 version_type=osf
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 ;;
14479
14480solaris*)
14481 version_type=linux
14482 need_lib_prefix=no
14483 need_version=no
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=yes
14488 hardcode_into_libs=yes
14489 # ldd complains unless libraries are executable
14490 postinstall_cmds='chmod +x $lib'
14491 ;;
14492
14493sunos4*)
14494 version_type=sunos
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14496 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 shlibpath_overrides_runpath=yes
14499 if test "$with_gnu_ld" = yes; then
14500 need_lib_prefix=no
14501 fi
14502 need_version=yes
14503 ;;
14504
14505sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14506 version_type=linux
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 case $host_vendor in
14511 sni)
14512 shlibpath_overrides_runpath=no
14513 need_lib_prefix=no
14514 export_dynamic_flag_spec='${wl}-Blargedynsym'
14515 runpath_var=LD_RUN_PATH
14516 ;;
14517 siemens)
14518 need_lib_prefix=no
14519 ;;
14520 motorola)
14521 need_lib_prefix=no
14522 need_version=no
14523 shlibpath_overrides_runpath=no
14524 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14525 ;;
14526 esac
14527 ;;
14528
14529sysv4*MP*)
14530 if test -d /usr/nec ;then
14531 version_type=linux
14532 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14533 soname_spec='$libname${shared_ext}.$major'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 fi
14536 ;;
14537
14538uts4*)
14539 version_type=linux
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 ;;
14544
14545*)
14546 dynamic_linker=no
14547 ;;
14548esac
14549echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14550echo "${ECHO_T}$dynamic_linker" >&6
14551test "$dynamic_linker" = no && can_build_shared=no
14552
14553
14554# The else clause should only fire when bootstrapping the
14555# libtool distribution, otherwise you forgot to ship ltmain.sh
14556# with your package, and you will get complaints that there are
14557# no rules to generate ltmain.sh.
14558if test -f "$ltmain"; then
14559 # See if we are running on zsh, and set the options which allow our commands through
14560 # without removal of \ escapes.
14561 if test -n "${ZSH_VERSION+set}" ; then
14562 setopt NO_GLOB_SUBST
14563 fi
14564 # Now quote all the things that may contain metacharacters while being
14565 # careful not to overquote the AC_SUBSTed values. We take copies of the
14566 # variables and quote the copies for generation of the libtool script.
14567 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14570 deplibs_check_method reload_flag reload_cmds need_locks \
14571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14572 lt_cv_sys_global_symbol_to_c_name_address \
14573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14574 old_postinstall_cmds old_postuninstall_cmds \
14575 compiler_F77 \
14576 CC_F77 \
14577 LD_F77 \
14578 lt_prog_compiler_wl_F77 \
14579 lt_prog_compiler_pic_F77 \
14580 lt_prog_compiler_static_F77 \
14581 lt_prog_compiler_no_builtin_flag_F77 \
14582 export_dynamic_flag_spec_F77 \
14583 thread_safe_flag_spec_F77 \
14584 whole_archive_flag_spec_F77 \
14585 enable_shared_with_static_runtimes_F77 \
14586 old_archive_cmds_F77 \
14587 old_archive_from_new_cmds_F77 \
14588 predep_objects_F77 \
14589 postdep_objects_F77 \
14590 predeps_F77 \
14591 postdeps_F77 \
14592 compiler_lib_search_path_F77 \
14593 archive_cmds_F77 \
14594 archive_expsym_cmds_F77 \
14595 postinstall_cmds_F77 \
14596 postuninstall_cmds_F77 \
14597 old_archive_from_expsyms_cmds_F77 \
14598 allow_undefined_flag_F77 \
14599 no_undefined_flag_F77 \
14600 export_symbols_cmds_F77 \
14601 hardcode_libdir_flag_spec_F77 \
14602 hardcode_libdir_flag_spec_ld_F77 \
14603 hardcode_libdir_separator_F77 \
14604 hardcode_automatic_F77 \
14605 module_cmds_F77 \
14606 module_expsym_cmds_F77 \
14607 lt_cv_prog_compiler_c_o_F77 \
14608 exclude_expsyms_F77 \
14609 include_expsyms_F77; do
14610
14611 case $var in
14612 old_archive_cmds_F77 | \
14613 old_archive_from_new_cmds_F77 | \
14614 archive_cmds_F77 | \
14615 archive_expsym_cmds_F77 | \
14616 module_cmds_F77 | \
14617 module_expsym_cmds_F77 | \
14618 old_archive_from_expsyms_cmds_F77 | \
14619 export_symbols_cmds_F77 | \
14620 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14621 postinstall_cmds | postuninstall_cmds | \
14622 old_postinstall_cmds | old_postuninstall_cmds | \
14623 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14624 # Double-quote double-evaled strings.
14625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14626 ;;
14627 *)
14628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14629 ;;
14630 esac
14631 done
14632
14633 case $lt_echo in
14634 *'\$0 --fallback-echo"')
14635 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14636 ;;
14637 esac
14638
14639cfgfile="$ofile"
14640
14641 cat <<__EOF__ >> "$cfgfile"
14642# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14643
14644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14645
14646# Shell to use when invoking shell scripts.
14647SHELL=$lt_SHELL
14648
14649# Whether or not to build shared libraries.
14650build_libtool_libs=$enable_shared
14651
14652# Whether or not to build static libraries.
14653build_old_libs=$enable_static
14654
14655# Whether or not to add -lc for building shared libraries.
14656build_libtool_need_lc=$archive_cmds_need_lc_F77
14657
14658# Whether or not to disallow shared libs when runtime libs are static
14659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14660
14661# Whether or not to optimize for fast installation.
14662fast_install=$enable_fast_install
14663
14664# The host system.
14665host_alias=$host_alias
14666host=$host
14667
14668# An echo program that does not interpret backslashes.
14669echo=$lt_echo
14670
14671# The archiver.
14672AR=$lt_AR
14673AR_FLAGS=$lt_AR_FLAGS
14674
14675# A C compiler.
14676LTCC=$lt_LTCC
14677
14678# A language-specific compiler.
14679CC=$lt_compiler_F77
14680
14681# Is the compiler the GNU C compiler?
14682with_gcc=$GCC_F77
14683
14684# An ERE matcher.
14685EGREP=$lt_EGREP
14686
14687# The linker used to build libraries.
14688LD=$lt_LD_F77
14689
14690# Whether we need hard or soft links.
14691LN_S=$lt_LN_S
14692
14693# A BSD-compatible nm program.
14694NM=$lt_NM
14695
14696# A symbol stripping program
14697STRIP=$STRIP
14698
14699# Used to examine libraries when file_magic_cmd begins "file"
14700MAGIC_CMD=$MAGIC_CMD
14701
14702# Used on cygwin: DLL creation program.
14703DLLTOOL="$DLLTOOL"
14704
14705# Used on cygwin: object dumper.
14706OBJDUMP="$OBJDUMP"
14707
14708# Used on cygwin: assembler.
14709AS="$AS"
14710
14711# The name of the directory that contains temporary libtool files.
14712objdir=$objdir
14713
14714# How to create reloadable object files.
14715reload_flag=$lt_reload_flag
14716reload_cmds=$lt_reload_cmds
14717
14718# How to pass a linker flag through the compiler.
14719wl=$lt_lt_prog_compiler_wl_F77
14720
14721# Object file suffix (normally "o").
14722objext="$ac_objext"
14723
14724# Old archive suffix (normally "a").
14725libext="$libext"
14726
14727# Shared library suffix (normally ".so").
14728shrext='$shrext'
14729
14730# Executable file suffix (normally "").
14731exeext="$exeext"
14732
14733# Additional compiler flags for building library objects.
14734pic_flag=$lt_lt_prog_compiler_pic_F77
14735pic_mode=$pic_mode
14736
14737# What is the maximum length of a command?
14738max_cmd_len=$lt_cv_sys_max_cmd_len
14739
14740# Does compiler simultaneously support -c and -o options?
14741compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14742
14743# Must we lock files when doing compilation ?
14744need_locks=$lt_need_locks
14745
14746# Do we need the lib prefix for modules?
14747need_lib_prefix=$need_lib_prefix
14748
14749# Do we need a version for libraries?
14750need_version=$need_version
14751
14752# Whether dlopen is supported.
14753dlopen_support=$enable_dlopen
14754
14755# Whether dlopen of programs is supported.
14756dlopen_self=$enable_dlopen_self
14757
14758# Whether dlopen of statically linked programs is supported.
14759dlopen_self_static=$enable_dlopen_self_static
14760
14761# Compiler flag to prevent dynamic linking.
14762link_static_flag=$lt_lt_prog_compiler_static_F77
14763
14764# Compiler flag to turn off builtin functions.
14765no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14766
14767# Compiler flag to allow reflexive dlopens.
14768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14769
14770# Compiler flag to generate shared objects directly from archives.
14771whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14772
14773# Compiler flag to generate thread-safe objects.
14774thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14775
14776# Library versioning type.
14777version_type=$version_type
14778
14779# Format of library name prefix.
14780libname_spec=$lt_libname_spec
14781
14782# List of archive names. First name is the real one, the rest are links.
14783# The last name is the one that the linker finds with -lNAME.
14784library_names_spec=$lt_library_names_spec
14785
14786# The coded name of the library, if different from the real name.
14787soname_spec=$lt_soname_spec
14788
14789# Commands used to build and install an old-style archive.
14790RANLIB=$lt_RANLIB
14791old_archive_cmds=$lt_old_archive_cmds_F77
14792old_postinstall_cmds=$lt_old_postinstall_cmds
14793old_postuninstall_cmds=$lt_old_postuninstall_cmds
14794
14795# Create an old-style archive from a shared archive.
14796old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14797
14798# Create a temporary old-style archive to link instead of a shared archive.
14799old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14800
14801# Commands used to build and install a shared archive.
14802archive_cmds=$lt_archive_cmds_F77
14803archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14804postinstall_cmds=$lt_postinstall_cmds
14805postuninstall_cmds=$lt_postuninstall_cmds
14806
14807# Commands used to build a loadable module (assumed same as above if empty)
14808module_cmds=$lt_module_cmds_F77
14809module_expsym_cmds=$lt_module_expsym_cmds_F77
14810
14811# Commands to strip libraries.
14812old_striplib=$lt_old_striplib
14813striplib=$lt_striplib
14814
14815# Dependencies to place before the objects being linked to create a
14816# shared library.
14817predep_objects=$lt_predep_objects_F77
14818
14819# Dependencies to place after the objects being linked to create a
14820# shared library.
14821postdep_objects=$lt_postdep_objects_F77
14822
14823# Dependencies to place before the objects being linked to create a
14824# shared library.
14825predeps=$lt_predeps_F77
14826
14827# Dependencies to place after the objects being linked to create a
14828# shared library.
14829postdeps=$lt_postdeps_F77
14830
14831# The library search path used internally by the compiler when linking
14832# a shared library.
14833compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14834
14835# Method to check whether dependent libraries are shared objects.
14836deplibs_check_method=$lt_deplibs_check_method
14837
14838# Command to use when deplibs_check_method == file_magic.
14839file_magic_cmd=$lt_file_magic_cmd
14840
14841# Flag that allows shared libraries with undefined symbols to be built.
14842allow_undefined_flag=$lt_allow_undefined_flag_F77
14843
14844# Flag that forces no undefined symbols.
14845no_undefined_flag=$lt_no_undefined_flag_F77
14846
14847# Commands used to finish a libtool library installation in a directory.
14848finish_cmds=$lt_finish_cmds
14849
14850# Same as above, but a single script fragment to be evaled but not shown.
14851finish_eval=$lt_finish_eval
14852
14853# Take the output of nm and produce a listing of raw symbols and C names.
14854global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14855
14856# Transform the output of nm in a proper C declaration
14857global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14858
14859# Transform the output of nm in a C name address pair
14860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14861
14862# This is the shared library runtime path variable.
14863runpath_var=$runpath_var
14864
14865# This is the shared library path variable.
14866shlibpath_var=$shlibpath_var
14867
14868# Is shlibpath searched before the hard-coded library search path?
14869shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14870
14871# How to hardcode a shared library path into an executable.
14872hardcode_action=$hardcode_action_F77
14873
14874# Whether we should hardcode library paths into libraries.
14875hardcode_into_libs=$hardcode_into_libs
14876
14877# Flag to hardcode \$libdir into a binary during linking.
14878# This must work even if \$libdir does not exist.
14879hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14880
14881# If ld is used when linking, flag to hardcode \$libdir into
14882# a binary during linking. This must work even if \$libdir does
14883# not exist.
14884hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14885
14886# Whether we need a single -rpath flag with a separated argument.
14887hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14888
14889# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14890# resulting binary.
14891hardcode_direct=$hardcode_direct_F77
14892
14893# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14894# resulting binary.
14895hardcode_minus_L=$hardcode_minus_L_F77
14896
14897# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14898# the resulting binary.
14899hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14900
14901# Set to yes if building a shared library automatically hardcodes DIR into the library
14902# and all subsequent libraries and executables linked against it.
14903hardcode_automatic=$hardcode_automatic_F77
14904
14905# Variables whose values should be saved in libtool wrapper scripts and
14906# restored at relink time.
14907variables_saved_for_relink="$variables_saved_for_relink"
14908
14909# Whether libtool must link a program against all its dependency libraries.
14910link_all_deplibs=$link_all_deplibs_F77
14911
14912# Compile-time system search path for libraries
14913sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14914
14915# Run-time system search path for libraries
14916sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14917
14918# Fix the shell variable \$srcfile for the compiler.
14919fix_srcfile_path="$fix_srcfile_path_F77"
14920
14921# Set to yes if exported symbols are required.
14922always_export_symbols=$always_export_symbols_F77
14923
14924# The commands to list exported symbols.
14925export_symbols_cmds=$lt_export_symbols_cmds_F77
14926
14927# The commands to extract the exported symbol list from a shared archive.
14928extract_expsyms_cmds=$lt_extract_expsyms_cmds
14929
14930# Symbols that should not be listed in the preloaded symbols.
14931exclude_expsyms=$lt_exclude_expsyms_F77
14932
14933# Symbols that must always be exported.
14934include_expsyms=$lt_include_expsyms_F77
14935
14936# ### END LIBTOOL TAG CONFIG: $tagname
14937
14938__EOF__
14939
14940
14941else
14942 # If there is no Makefile yet, we rely on a make rule to execute
14943 # `config.status --recheck' to rerun these tests and create the
14944 # libtool script then.
14945 test -f Makefile && make "$ltmain"
14946fi
14947
14948
14949ac_ext=c
14950ac_cpp='$CPP $CPPFLAGS'
14951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14953ac_compiler_gnu=$ac_cv_c_compiler_gnu
14954
14955CC="$lt_save_CC"
14956
14957 else
14958 tagname=""
14959 fi
14960 ;;
14961
14962 GCJ)
14963 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14964
14965
14966
14967# Source file extension for Java test sources.
14968ac_ext=java
14969
14970# Object file extension for compiled Java test sources.
14971objext=o
14972objext_GCJ=$objext
14973
14974# Code to be used in simple compile tests
14975lt_simple_compile_test_code="class foo {}\n"
14976
14977# Code to be used in simple link tests
14978lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14979
14980# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14981
14982# If no C compiler was specified, use CC.
14983LTCC=${LTCC-"$CC"}
14984
14985# Allow CC to be a program name with arguments.
14986compiler=$CC
14987
14988
14989# Allow CC to be a program name with arguments.
14990lt_save_CC="$CC"
14991CC=${GCJ-"gcj"}
14992compiler=$CC
14993compiler_GCJ=$CC
14994
14995# GCJ did not exist at the time GCC didn't implicitly link libc in.
14996archive_cmds_need_lc_GCJ=no
14997
14998## CAVEAT EMPTOR:
14999## There is no encapsulation within the following macros, do not change
15000## the running order or otherwise move them around unless you know exactly
15001## what you are doing...
15002
15003lt_prog_compiler_no_builtin_flag_GCJ=
15004
15005if test "$GCC" = yes; then
15006 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15007
15008 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15009echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15010if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012else
15013 lt_cv_prog_compiler_rtti_exceptions=no
15014 ac_outfile=conftest.$ac_objext
15015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15016 lt_compiler_flag="-fno-rtti -fno-exceptions"
15017 # Insert the option either (1) after the last *FLAGS variable, or
15018 # (2) before a word containing "conftest.", or (3) at the end.
15019 # Note that $ac_compile itself does not contain backslashes and begins
15020 # with a dollar sign (not a hyphen), so the echo should work correctly.
15021 # The option is referenced via a variable to avoid confusing sed.
15022 lt_compile=`echo "$ac_compile" | $SED \
15023 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15025 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +000015026 (eval echo "\"\$as_me:15026: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015027 (eval "$lt_compile" 2>conftest.err)
15028 ac_status=$?
15029 cat conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +000015030 echo "$as_me:15030: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015031 if (exit $ac_status) && test -s "$ac_outfile"; then
15032 # The compiler can only warn and ignore the option if not recognized
15033 # So say no if there are warnings
15034 if test ! -s conftest.err; then
15035 lt_cv_prog_compiler_rtti_exceptions=yes
15036 fi
15037 fi
15038 $rm conftest*
15039
15040fi
15041echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15042echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15043
15044if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15045 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15046else
15047 :
15048fi
15049
15050fi
15051
15052lt_prog_compiler_wl_GCJ=
15053lt_prog_compiler_pic_GCJ=
15054lt_prog_compiler_static_GCJ=
15055
15056echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15057echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15058
15059 if test "$GCC" = yes; then
15060 lt_prog_compiler_wl_GCJ='-Wl,'
15061 lt_prog_compiler_static_GCJ='-static'
15062
15063 case $host_os in
15064 aix*)
15065 # All AIX code is PIC.
15066 if test "$host_cpu" = ia64; then
15067 # AIX 5 now supports IA64 processor
15068 lt_prog_compiler_static_GCJ='-Bstatic'
15069 fi
15070 ;;
15071
15072 amigaos*)
15073 # FIXME: we need at least 68020 code to build shared libraries, but
15074 # adding the `-m68020' flag to GCC prevents building anything better,
15075 # like `-m68040'.
15076 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15077 ;;
15078
15079 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15080 # PIC is the default for these OSes.
15081 ;;
15082
15083 mingw* | pw32* | os2*)
15084 # This hack is so that the source file can tell whether it is being
15085 # built for inclusion in a dll (and should export symbols for example).
15086 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15087 ;;
15088
15089 darwin* | rhapsody*)
15090 # PIC is the default on this platform
15091 # Common symbols not allowed in MH_DYLIB files
15092 lt_prog_compiler_pic_GCJ='-fno-common'
15093 ;;
15094
15095 msdosdjgpp*)
15096 # Just because we use GCC doesn't mean we suddenly get shared libraries
15097 # on systems that don't support them.
15098 lt_prog_compiler_can_build_shared_GCJ=no
15099 enable_shared=no
15100 ;;
15101
15102 sysv4*MP*)
15103 if test -d /usr/nec; then
15104 lt_prog_compiler_pic_GCJ=-Kconform_pic
15105 fi
15106 ;;
15107
15108 hpux*)
15109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15110 # not for PA HP-UX.
15111 case "$host_cpu" in
15112 hppa*64*|ia64*)
15113 # +Z the default
15114 ;;
15115 *)
15116 lt_prog_compiler_pic_GCJ='-fPIC'
15117 ;;
15118 esac
15119 ;;
15120
15121 *)
15122 lt_prog_compiler_pic_GCJ='-fPIC'
15123 ;;
15124 esac
15125 else
15126 # PORTME Check for flag to pass linker flags through the system compiler.
15127 case $host_os in
15128 aix*)
15129 lt_prog_compiler_wl_GCJ='-Wl,'
15130 if test "$host_cpu" = ia64; then
15131 # AIX 5 now supports IA64 processor
15132 lt_prog_compiler_static_GCJ='-Bstatic'
15133 else
15134 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15135 fi
15136 ;;
15137
15138 mingw* | pw32* | os2*)
15139 # This hack is so that the source file can tell whether it is being
15140 # built for inclusion in a dll (and should export symbols for example).
15141 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15142 ;;
15143
15144 hpux9* | hpux10* | hpux11*)
15145 lt_prog_compiler_wl_GCJ='-Wl,'
15146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15147 # not for PA HP-UX.
15148 case "$host_cpu" in
15149 hppa*64*|ia64*)
15150 # +Z the default
15151 ;;
15152 *)
15153 lt_prog_compiler_pic_GCJ='+Z'
15154 ;;
15155 esac
15156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15157 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15158 ;;
15159
15160 irix5* | irix6* | nonstopux*)
15161 lt_prog_compiler_wl_GCJ='-Wl,'
15162 # PIC (with -KPIC) is the default.
15163 lt_prog_compiler_static_GCJ='-non_shared'
15164 ;;
15165
15166 newsos6)
15167 lt_prog_compiler_pic_GCJ='-KPIC'
15168 lt_prog_compiler_static_GCJ='-Bstatic'
15169 ;;
15170
15171 linux*)
15172 case $CC in
15173 icc|ecc)
15174 lt_prog_compiler_wl_GCJ='-Wl,'
15175 lt_prog_compiler_pic_GCJ='-KPIC'
15176 lt_prog_compiler_static_GCJ='-static'
15177 ;;
15178 ccc)
15179 lt_prog_compiler_wl_GCJ='-Wl,'
15180 # All Alpha code is PIC.
15181 lt_prog_compiler_static_GCJ='-non_shared'
15182 ;;
15183 esac
15184 ;;
15185
15186 osf3* | osf4* | osf5*)
15187 lt_prog_compiler_wl_GCJ='-Wl,'
15188 # All OSF/1 code is PIC.
15189 lt_prog_compiler_static_GCJ='-non_shared'
15190 ;;
15191
15192 sco3.2v5*)
15193 lt_prog_compiler_pic_GCJ='-Kpic'
15194 lt_prog_compiler_static_GCJ='-dn'
15195 ;;
15196
15197 solaris*)
15198 lt_prog_compiler_wl_GCJ='-Wl,'
15199 lt_prog_compiler_pic_GCJ='-KPIC'
15200 lt_prog_compiler_static_GCJ='-Bstatic'
15201 ;;
15202
15203 sunos4*)
15204 lt_prog_compiler_wl_GCJ='-Qoption ld '
15205 lt_prog_compiler_pic_GCJ='-PIC'
15206 lt_prog_compiler_static_GCJ='-Bstatic'
15207 ;;
15208
15209 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15210 lt_prog_compiler_wl_GCJ='-Wl,'
15211 lt_prog_compiler_pic_GCJ='-KPIC'
15212 lt_prog_compiler_static_GCJ='-Bstatic'
15213 ;;
15214
15215 sysv4*MP*)
15216 if test -d /usr/nec ;then
15217 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15218 lt_prog_compiler_static_GCJ='-Bstatic'
15219 fi
15220 ;;
15221
15222 uts4*)
15223 lt_prog_compiler_pic_GCJ='-pic'
15224 lt_prog_compiler_static_GCJ='-Bstatic'
15225 ;;
15226
15227 *)
15228 lt_prog_compiler_can_build_shared_GCJ=no
15229 ;;
15230 esac
15231 fi
15232
15233echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15234echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15235
15236#
15237# Check to make sure the PIC flag actually works.
15238#
15239if test -n "$lt_prog_compiler_pic_GCJ"; then
15240 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15241echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15242if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244else
15245 lt_prog_compiler_pic_works_GCJ=no
15246 ac_outfile=conftest.$ac_objext
15247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15248 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15249 # Insert the option either (1) after the last *FLAGS variable, or
15250 # (2) before a word containing "conftest.", or (3) at the end.
15251 # Note that $ac_compile itself does not contain backslashes and begins
15252 # with a dollar sign (not a hyphen), so the echo should work correctly.
15253 # The option is referenced via a variable to avoid confusing sed.
15254 lt_compile=`echo "$ac_compile" | $SED \
15255 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15257 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +000015258 (eval echo "\"\$as_me:15258: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015259 (eval "$lt_compile" 2>conftest.err)
15260 ac_status=$?
15261 cat conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +000015262 echo "$as_me:15262: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015263 if (exit $ac_status) && test -s "$ac_outfile"; then
15264 # The compiler can only warn and ignore the option if not recognized
15265 # So say no if there are warnings
15266 if test ! -s conftest.err; then
15267 lt_prog_compiler_pic_works_GCJ=yes
15268 fi
15269 fi
15270 $rm conftest*
15271
15272fi
15273echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15274echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15275
15276if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15277 case $lt_prog_compiler_pic_GCJ in
15278 "" | " "*) ;;
15279 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15280 esac
15281else
15282 lt_prog_compiler_pic_GCJ=
15283 lt_prog_compiler_can_build_shared_GCJ=no
15284fi
15285
15286fi
15287case "$host_os" in
15288 # For platforms which do not support PIC, -DPIC is meaningless:
15289 *djgpp*)
15290 lt_prog_compiler_pic_GCJ=
15291 ;;
15292 *)
15293 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15294 ;;
15295esac
15296
15297echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15298echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15299if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301else
15302 lt_cv_prog_compiler_c_o_GCJ=no
15303 $rm -r conftest 2>/dev/null
15304 mkdir conftest
15305 cd conftest
15306 mkdir out
15307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15308
15309 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15310 # that will create temporary files in the current directory regardless of
15311 # the output directory. Thus, making CWD read-only will cause this test
15312 # to fail, enabling locking or at least warning the user not to do parallel
15313 # builds.
15314 chmod -w .
15315
15316 lt_compiler_flag="-o out/conftest2.$ac_objext"
15317 # Insert the option either (1) after the last *FLAGS variable, or
15318 # (2) before a word containing "conftest.", or (3) at the end.
15319 # Note that $ac_compile itself does not contain backslashes and begins
15320 # with a dollar sign (not a hyphen), so the echo should work correctly.
15321 lt_compile=`echo "$ac_compile" | $SED \
15322 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15324 -e 's:$: $lt_compiler_flag:'`
John Criswell10708402003-09-15 20:12:48 +000015325 (eval echo "\"\$as_me:15325: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015326 (eval "$lt_compile" 2>out/conftest.err)
15327 ac_status=$?
15328 cat out/conftest.err >&5
John Criswell10708402003-09-15 20:12:48 +000015329 echo "$as_me:15329: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015330 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15331 then
15332 # The compiler can only warn and ignore the option if not recognized
15333 # So say no if there are warnings
15334 if test ! -s out/conftest.err; then
15335 lt_cv_prog_compiler_c_o_GCJ=yes
15336 fi
15337 fi
15338 chmod u+w .
15339 $rm conftest* out/*
15340 rmdir out
15341 cd ..
15342 rmdir conftest
15343 $rm conftest*
15344
15345fi
15346echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15347echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15348
15349
15350hard_links="nottested"
15351if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15352 # do not overwrite the value of need_locks provided by the user
15353 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15354echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15355 hard_links=yes
15356 $rm conftest*
15357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15358 touch conftest.a
15359 ln conftest.a conftest.b 2>&5 || hard_links=no
15360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361 echo "$as_me:$LINENO: result: $hard_links" >&5
15362echo "${ECHO_T}$hard_links" >&6
15363 if test "$hard_links" = no; then
15364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15365echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15366 need_locks=warn
15367 fi
15368else
15369 need_locks=no
15370fi
15371
15372echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15373echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15374
15375 runpath_var=
15376 allow_undefined_flag_GCJ=
15377 enable_shared_with_static_runtimes_GCJ=no
15378 archive_cmds_GCJ=
15379 archive_expsym_cmds_GCJ=
15380 old_archive_From_new_cmds_GCJ=
15381 old_archive_from_expsyms_cmds_GCJ=
15382 export_dynamic_flag_spec_GCJ=
15383 whole_archive_flag_spec_GCJ=
15384 thread_safe_flag_spec_GCJ=
15385 hardcode_libdir_flag_spec_GCJ=
15386 hardcode_libdir_flag_spec_ld_GCJ=
15387 hardcode_libdir_separator_GCJ=
15388 hardcode_direct_GCJ=no
15389 hardcode_minus_L_GCJ=no
15390 hardcode_shlibpath_var_GCJ=unsupported
15391 link_all_deplibs_GCJ=unknown
15392 hardcode_automatic_GCJ=no
15393 module_cmds_GCJ=
15394 module_expsym_cmds_GCJ=
15395 always_export_symbols_GCJ=no
15396 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397 # include_expsyms should be a list of space-separated symbols to be *always*
15398 # included in the symbol list
15399 include_expsyms_GCJ=
15400 # exclude_expsyms can be an extended regexp of symbols to exclude
15401 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15402 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15403 # as well as any symbol that contains `d'.
15404 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15406 # platforms (ab)use it in PIC code, but their linkers get confused if
15407 # the symbol is explicitly referenced. Since portable code cannot
15408 # rely on this symbol name, it's probably fine to never include it in
15409 # preloaded symbol tables.
15410 extract_expsyms_cmds=
15411
15412 case $host_os in
15413 cygwin* | mingw* | pw32*)
15414 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15415 # When not using gcc, we currently assume that we are using
15416 # Microsoft Visual C++.
15417 if test "$GCC" != yes; then
15418 with_gnu_ld=no
15419 fi
15420 ;;
15421 openbsd*)
15422 with_gnu_ld=no
15423 ;;
15424 esac
15425
15426 ld_shlibs_GCJ=yes
15427 if test "$with_gnu_ld" = yes; then
15428 # If archive_cmds runs LD, not CC, wlarc should be empty
15429 wlarc='${wl}'
15430
15431 # See if GNU ld supports shared libraries.
15432 case $host_os in
15433 aix3* | aix4* | aix5*)
15434 # On AIX/PPC, the GNU linker is very broken
15435 if test "$host_cpu" != ia64; then
15436 ld_shlibs_GCJ=no
15437 cat <<EOF 1>&2
15438
15439*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15440*** to be unable to reliably create shared libraries on AIX.
15441*** Therefore, libtool is disabling shared libraries support. If you
15442*** really care for shared libraries, you may want to modify your PATH
15443*** so that a non-GNU linker is found, and then restart.
15444
15445EOF
15446 fi
15447 ;;
15448
15449 amigaos*)
15450 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)'
15451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15452 hardcode_minus_L_GCJ=yes
15453
15454 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15455 # that the semantics of dynamic libraries on AmigaOS, at least up
15456 # to version 4, is to share data among multiple programs linked
15457 # with the same dynamic library. Since this doesn't match the
15458 # behavior of shared libraries on other platforms, we can't use
15459 # them.
15460 ld_shlibs_GCJ=no
15461 ;;
15462
15463 beos*)
15464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15465 allow_undefined_flag_GCJ=unsupported
15466 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15467 # support --undefined. This deserves some investigation. FIXME
15468 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15469 else
15470 ld_shlibs_GCJ=no
15471 fi
15472 ;;
15473
15474 cygwin* | mingw* | pw32*)
15475 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15476 # as there is no search path for DLLs.
15477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15478 allow_undefined_flag_GCJ=unsupported
15479 always_export_symbols_GCJ=no
15480 enable_shared_with_static_runtimes_GCJ=yes
15481 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15482
15483 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15485 # If the export-symbols file already is a .def file (1st line
15486 # is EXPORTS), use it as is; otherwise, prepend...
15487 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15488 cp $export_symbols $output_objdir/$soname.def;
15489 else
15490 echo EXPORTS > $output_objdir/$soname.def;
15491 cat $export_symbols >> $output_objdir/$soname.def;
15492 fi~
15493 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15494 else
15495 ld_shlibs=no
15496 fi
15497 ;;
15498
15499 netbsd*)
15500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15501 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15502 wlarc=
15503 else
15504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15506 fi
15507 ;;
15508
15509 solaris* | sysv5*)
15510 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15511 ld_shlibs_GCJ=no
15512 cat <<EOF 1>&2
15513
15514*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15515*** create shared libraries on Solaris systems. Therefore, libtool
15516*** is disabling shared libraries support. We urge you to upgrade GNU
15517*** binutils to release 2.9.1 or newer. Another option is to modify
15518*** your PATH or compiler configuration so that the native linker is
15519*** used, and then restart.
15520
15521EOF
15522 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15523 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15524 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15525 else
15526 ld_shlibs_GCJ=no
15527 fi
15528 ;;
15529
15530 sunos4*)
15531 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15532 wlarc=
15533 hardcode_direct_GCJ=yes
15534 hardcode_shlibpath_var_GCJ=no
15535 ;;
15536
15537 *)
15538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15539 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15540 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15541 else
15542 ld_shlibs_GCJ=no
15543 fi
15544 ;;
15545 esac
15546
15547 if test "$ld_shlibs_GCJ" = yes; then
15548 runpath_var=LD_RUN_PATH
15549 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15550 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15551 # ancient GNU ld didn't support --whole-archive et. al.
15552 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15553 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15554 else
15555 whole_archive_flag_spec_GCJ=
15556 fi
15557 fi
15558 else
15559 # PORTME fill in a description of your system's linker (not GNU ld)
15560 case $host_os in
15561 aix3*)
15562 allow_undefined_flag_GCJ=unsupported
15563 always_export_symbols_GCJ=yes
15564 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'
15565 # Note: this linker hardcodes the directories in LIBPATH if there
15566 # are no directories specified by -L.
15567 hardcode_minus_L_GCJ=yes
15568 if test "$GCC" = yes && test -z "$link_static_flag"; then
15569 # Neither direct hardcoding nor static linking is supported with a
15570 # broken collect2.
15571 hardcode_direct_GCJ=unsupported
15572 fi
15573 ;;
15574
15575 aix4* | aix5*)
15576 if test "$host_cpu" = ia64; then
15577 # On IA64, the linker does run time linking by default, so we don't
15578 # have to do anything special.
15579 aix_use_runtimelinking=no
15580 exp_sym_flag='-Bexport'
15581 no_entry_flag=""
15582 else
15583 # If we're using GNU nm, then we don't want the "-C" option.
15584 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15585 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15586 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'
15587 else
15588 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'
15589 fi
15590 aix_use_runtimelinking=no
15591
15592 # Test if we are trying to use run time linking or normal
15593 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15594 # need to do runtime linking.
15595 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15596 for ld_flag in $LDFLAGS; do
15597 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15598 aix_use_runtimelinking=yes
15599 break
15600 fi
15601 done
15602 esac
15603
15604 exp_sym_flag='-bexport'
15605 no_entry_flag='-bnoentry'
15606 fi
15607
15608 # When large executables or shared objects are built, AIX ld can
15609 # have problems creating the table of contents. If linking a library
15610 # or program results in "error TOC overflow" add -mminimal-toc to
15611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15613
15614 archive_cmds_GCJ=''
15615 hardcode_direct_GCJ=yes
15616 hardcode_libdir_separator_GCJ=':'
15617 link_all_deplibs_GCJ=yes
15618
15619 if test "$GCC" = yes; then
15620 case $host_os in aix4.012|aix4.012.*)
15621 # We only want to do this on AIX 4.2 and lower, the check
15622 # below for broken collect2 doesn't work under 4.3+
15623 collect2name=`${CC} -print-prog-name=collect2`
15624 if test -f "$collect2name" && \
15625 strings "$collect2name" | grep resolve_lib_name >/dev/null
15626 then
15627 # We have reworked collect2
15628 hardcode_direct_GCJ=yes
15629 else
15630 # We have old collect2
15631 hardcode_direct_GCJ=unsupported
15632 # It fails to find uninstalled libraries when the uninstalled
15633 # path is not listed in the libpath. Setting hardcode_minus_L
15634 # to unsupported forces relinking
15635 hardcode_minus_L_GCJ=yes
15636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15637 hardcode_libdir_separator_GCJ=
15638 fi
15639 esac
15640 shared_flag='-shared'
15641 else
15642 # not using gcc
15643 if test "$host_cpu" = ia64; then
15644 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15645 # chokes on -Wl,-G. The following line is correct:
15646 shared_flag='-G'
15647 else
15648 if test "$aix_use_runtimelinking" = yes; then
15649 shared_flag='${wl}-G'
15650 else
15651 shared_flag='${wl}-bM:SRE'
15652 fi
15653 fi
15654 fi
15655
15656 # It seems that -bexpall does not export symbols beginning with
15657 # underscore (_), so it is better to generate a list of symbols to export.
15658 always_export_symbols_GCJ=yes
15659 if test "$aix_use_runtimelinking" = yes; then
15660 # Warning - without using the other runtime loading flags (-brtl),
15661 # -berok will link without error, but may produce a broken library.
15662 allow_undefined_flag_GCJ='-berok'
15663 # Determine the default libpath from the value encoded in an empty executable.
15664 cat >conftest.$ac_ext <<_ACEOF
15665#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015666/* confdefs.h. */
15667_ACEOF
15668cat confdefs.h >>conftest.$ac_ext
15669cat >>conftest.$ac_ext <<_ACEOF
15670/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015671
John Criswell47fdd832003-07-14 16:52:07 +000015672int
15673main ()
15674{
15675
15676 ;
15677 return 0;
15678}
15679_ACEOF
15680rm -f conftest.$ac_objext conftest$ac_exeext
15681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682 (eval $ac_link) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -s conftest$ac_exeext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692
15693aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15694}'`
15695# Check for a 64-bit object if we didn't find anything.
15696if 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; }
15697}'`; fi
15698else
15699 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015700sed 's/^/| /' conftest.$ac_ext >&5
15701
John Criswell47fdd832003-07-14 16:52:07 +000015702fi
15703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15704if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15705
15706 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15707 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"
15708 else
15709 if test "$host_cpu" = ia64; then
15710 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15711 allow_undefined_flag_GCJ="-z nodefs"
15712 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"
15713 else
15714 # Determine the default libpath from the value encoded in an empty executable.
15715 cat >conftest.$ac_ext <<_ACEOF
15716#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015722
John Criswell47fdd832003-07-14 16:52:07 +000015723int
15724main ()
15725{
15726
15727 ;
15728 return 0;
15729}
15730_ACEOF
15731rm -f conftest.$ac_objext conftest$ac_exeext
15732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743
15744aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15745}'`
15746# Check for a 64-bit object if we didn't find anything.
15747if 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; }
15748}'`; fi
15749else
15750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015751sed 's/^/| /' conftest.$ac_ext >&5
15752
John Criswell47fdd832003-07-14 16:52:07 +000015753fi
15754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15755if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15756
15757 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15758 # Warning - without using the other run time loading flags,
15759 # -berok will link without error, but may produce a broken library.
15760 no_undefined_flag_GCJ=' ${wl}-bernotok'
15761 allow_undefined_flag_GCJ=' ${wl}-berok'
15762 # -bexpall does not export symbols beginning with underscore (_)
15763 always_export_symbols_GCJ=yes
15764 # Exported symbols can be pulled into shared objects from archives
15765 whole_archive_flag_spec_GCJ=' '
15766 archive_cmds_need_lc_GCJ=yes
15767 # This is similar to how AIX traditionally builds it's shared libraries.
15768 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'
15769 fi
15770 fi
15771 ;;
15772
15773 amigaos*)
15774 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)'
15775 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15776 hardcode_minus_L_GCJ=yes
15777 # see comment about different semantics on the GNU ld section
15778 ld_shlibs_GCJ=no
15779 ;;
15780
15781 bsdi4*)
15782 export_dynamic_flag_spec_GCJ=-rdynamic
15783 ;;
15784
15785 cygwin* | mingw* | pw32*)
15786 # When not using gcc, we currently assume that we are using
15787 # Microsoft Visual C++.
15788 # hardcode_libdir_flag_spec is actually meaningless, as there is
15789 # no search path for DLLs.
15790 hardcode_libdir_flag_spec_GCJ=' '
15791 allow_undefined_flag_GCJ=unsupported
15792 # Tell ltmain to make .lib files, not .a files.
15793 libext=lib
15794 # Tell ltmain to make .dll files, not .so files.
15795 shrext=".dll"
15796 # FIXME: Setting linknames here is a bad hack.
15797 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15798 # The linker will automatically build a .lib file if we build a DLL.
15799 old_archive_From_new_cmds_GCJ='true'
15800 # FIXME: Should let the user specify the lib program.
15801 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15802 fix_srcfile_path='`cygpath -w "$srcfile"`'
15803 enable_shared_with_static_runtimes_GCJ=yes
15804 ;;
15805
15806 darwin* | rhapsody*)
15807 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15808 archive_cmds_need_lc_GCJ=no
15809 case "$host_os" in
15810 rhapsody* | darwin1.[012])
15811 allow_undefined_flag_GCJ='-undefined suppress'
15812 ;;
15813 *) # Darwin 1.3 on
15814 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15815 ;;
15816 esac
15817 # FIXME: Relying on posixy $() will cause problems for
15818 # cross-compilation, but unfortunately the echo tests do not
15819 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15820 # `"' quotes if we put them in here... so don't!
15821 lt_int_apple_cc_single_mod=no
15822 output_verbose_link_cmd='echo'
15823 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15824 lt_int_apple_cc_single_mod=yes
15825 fi
15826 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15827 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15828 else
15829 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'
15830 fi
15831 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15832 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15833 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15834 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}'
15835 else
15836 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}'
15837 fi
15838 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}'
15839 hardcode_direct_GCJ=no
15840 hardcode_automatic_GCJ=yes
15841 hardcode_shlibpath_var_GCJ=unsupported
15842 whole_archive_flag_spec_GCJ='-all_load $convenience'
15843 link_all_deplibs_GCJ=yes
15844 fi
15845 ;;
15846
15847 dgux*)
15848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15850 hardcode_shlibpath_var_GCJ=no
15851 ;;
15852
15853 freebsd1*)
15854 ld_shlibs_GCJ=no
15855 ;;
15856
15857 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15858 # support. Future versions do this automatically, but an explicit c++rt0.o
15859 # does not break anything, and helps significantly (at the cost of a little
15860 # extra space).
15861 freebsd2.2*)
15862 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15863 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15864 hardcode_direct_GCJ=yes
15865 hardcode_shlibpath_var_GCJ=no
15866 ;;
15867
15868 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15869 freebsd2*)
15870 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15871 hardcode_direct_GCJ=yes
15872 hardcode_minus_L_GCJ=yes
15873 hardcode_shlibpath_var_GCJ=no
15874 ;;
15875
15876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15877 freebsd*)
15878 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15879 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15880 hardcode_direct_GCJ=yes
15881 hardcode_shlibpath_var_GCJ=no
15882 ;;
15883
15884 hpux9*)
15885 if test "$GCC" = yes; then
15886 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'
15887 else
15888 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'
15889 fi
15890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15891 hardcode_libdir_separator_GCJ=:
15892 hardcode_direct_GCJ=yes
15893
15894 # hardcode_minus_L: Not really in the search PATH,
15895 # but as the default location of the library.
15896 hardcode_minus_L_GCJ=yes
15897 export_dynamic_flag_spec_GCJ='${wl}-E'
15898 ;;
15899
15900 hpux10* | hpux11*)
15901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15902 case "$host_cpu" in
15903 hppa*64*|ia64*)
15904 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 ;;
15906 *)
15907 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15908 ;;
15909 esac
15910 else
15911 case "$host_cpu" in
15912 hppa*64*|ia64*)
15913 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15914 ;;
15915 *)
15916 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15917 ;;
15918 esac
15919 fi
15920 if test "$with_gnu_ld" = no; then
15921 case "$host_cpu" in
15922 hppa*64*)
15923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15924 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15925 hardcode_libdir_separator_GCJ=:
15926 hardcode_direct_GCJ=no
15927 hardcode_shlibpath_var_GCJ=no
15928 ;;
15929 ia64*)
15930 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15931 hardcode_direct_GCJ=no
15932 hardcode_shlibpath_var_GCJ=no
15933
15934 # hardcode_minus_L: Not really in the search PATH,
15935 # but as the default location of the library.
15936 hardcode_minus_L_GCJ=yes
15937 ;;
15938 *)
15939 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15940 hardcode_libdir_separator_GCJ=:
15941 hardcode_direct_GCJ=yes
15942 export_dynamic_flag_spec_GCJ='${wl}-E'
15943
15944 # hardcode_minus_L: Not really in the search PATH,
15945 # but as the default location of the library.
15946 hardcode_minus_L_GCJ=yes
15947 ;;
15948 esac
15949 fi
15950 ;;
15951
15952 irix5* | irix6* | nonstopux*)
15953 if test "$GCC" = yes; then
15954 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'
15955 else
15956 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'
15957 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15958 fi
15959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15960 hardcode_libdir_separator_GCJ=:
15961 link_all_deplibs_GCJ=yes
15962 ;;
15963
15964 netbsd*)
15965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15966 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15967 else
15968 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15969 fi
15970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15971 hardcode_direct_GCJ=yes
15972 hardcode_shlibpath_var_GCJ=no
15973 ;;
15974
15975 newsos6)
15976 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15977 hardcode_direct_GCJ=yes
15978 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15979 hardcode_libdir_separator_GCJ=:
15980 hardcode_shlibpath_var_GCJ=no
15981 ;;
15982
15983 openbsd*)
15984 hardcode_direct_GCJ=yes
15985 hardcode_shlibpath_var_GCJ=no
15986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15987 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15988 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15989 export_dynamic_flag_spec_GCJ='${wl}-E'
15990 else
15991 case $host_os in
15992 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15993 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15994 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15995 ;;
15996 *)
15997 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15999 ;;
16000 esac
16001 fi
16002 ;;
16003
16004 os2*)
16005 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16006 hardcode_minus_L_GCJ=yes
16007 allow_undefined_flag_GCJ=unsupported
16008 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'
16009 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16010 ;;
16011
16012 osf3*)
16013 if test "$GCC" = yes; then
16014 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16015 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'
16016 else
16017 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16018 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'
16019 fi
16020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16021 hardcode_libdir_separator_GCJ=:
16022 ;;
16023
16024 osf4* | osf5*) # as osf3* with the addition of -msym flag
16025 if test "$GCC" = yes; then
16026 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16027 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'
16028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16029 else
16030 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16031 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'
16032 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~
16033 $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'
16034
16035 # Both c and cxx compiler support -rpath directly
16036 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16037 fi
16038 hardcode_libdir_separator_GCJ=:
16039 ;;
16040
16041 sco3.2v5*)
16042 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16043 hardcode_shlibpath_var_GCJ=no
16044 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16045 runpath_var=LD_RUN_PATH
16046 hardcode_runpath_var=yes
16047 ;;
16048
16049 solaris*)
16050 no_undefined_flag_GCJ=' -z text'
16051 if test "$GCC" = yes; then
16052 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16053 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16054 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16055 else
16056 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16057 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16058 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16059 fi
16060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16061 hardcode_shlibpath_var_GCJ=no
16062 case $host_os in
16063 solaris2.[0-5] | solaris2.[0-5].*) ;;
16064 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16065 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16066 esac
16067 link_all_deplibs_GCJ=yes
16068 ;;
16069
16070 sunos4*)
16071 if test "x$host_vendor" = xsequent; then
16072 # Use $CC to link under sequent, because it throws in some extra .o
16073 # files that make .init and .fini sections work.
16074 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16075 else
16076 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16077 fi
16078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16079 hardcode_direct_GCJ=yes
16080 hardcode_minus_L_GCJ=yes
16081 hardcode_shlibpath_var_GCJ=no
16082 ;;
16083
16084 sysv4)
16085 case $host_vendor in
16086 sni)
16087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16088 hardcode_direct_GCJ=yes # is this really true???
16089 ;;
16090 siemens)
16091 ## LD is ld it makes a PLAMLIB
16092 ## CC just makes a GrossModule.
16093 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16094 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16095 hardcode_direct_GCJ=no
16096 ;;
16097 motorola)
16098 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16100 ;;
16101 esac
16102 runpath_var='LD_RUN_PATH'
16103 hardcode_shlibpath_var_GCJ=no
16104 ;;
16105
16106 sysv4.3*)
16107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_shlibpath_var_GCJ=no
16109 export_dynamic_flag_spec_GCJ='-Bexport'
16110 ;;
16111
16112 sysv4*MP*)
16113 if test -d /usr/nec; then
16114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_shlibpath_var_GCJ=no
16116 runpath_var=LD_RUN_PATH
16117 hardcode_runpath_var=yes
16118 ld_shlibs_GCJ=yes
16119 fi
16120 ;;
16121
16122 sysv4.2uw2*)
16123 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_direct_GCJ=yes
16125 hardcode_minus_L_GCJ=no
16126 hardcode_shlibpath_var_GCJ=no
16127 hardcode_runpath_var=yes
16128 runpath_var=LD_RUN_PATH
16129 ;;
16130
16131 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16132 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16133 if test "$GCC" = yes; then
16134 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 else
16136 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 fi
16138 runpath_var='LD_RUN_PATH'
16139 hardcode_shlibpath_var_GCJ=no
16140 ;;
16141
16142 sysv5*)
16143 no_undefined_flag_GCJ=' -z text'
16144 # $CC -shared without GNU ld will not create a library from C++
16145 # object files and a static libstdc++, better avoid it by now
16146 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16148 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16149 hardcode_libdir_flag_spec_GCJ=
16150 hardcode_shlibpath_var_GCJ=no
16151 runpath_var='LD_RUN_PATH'
16152 ;;
16153
16154 uts4*)
16155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16157 hardcode_shlibpath_var_GCJ=no
16158 ;;
16159
16160 *)
16161 ld_shlibs_GCJ=no
16162 ;;
16163 esac
16164 fi
16165
16166echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16167echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16168test "$ld_shlibs_GCJ" = no && can_build_shared=no
16169
16170variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16171if test "$GCC" = yes; then
16172 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16173fi
16174
16175#
16176# Do we need to explicitly link libc?
16177#
16178case "x$archive_cmds_need_lc_GCJ" in
16179x|xyes)
16180 # Assume -lc should be added
16181 archive_cmds_need_lc_GCJ=yes
16182
16183 if test "$enable_shared" = yes && test "$GCC" = yes; then
16184 case $archive_cmds_GCJ in
16185 *'~'*)
16186 # FIXME: we may have to deal with multi-command sequences.
16187 ;;
16188 '$CC '*)
16189 # Test whether the compiler implicitly links with -lc since on some
16190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16191 # to ld, don't add -lc before -lgcc.
16192 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16193echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16194 $rm conftest*
16195 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16196
16197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16198 (eval $ac_compile) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } 2>conftest.err; then
16202 soname=conftest
16203 lib=conftest
16204 libobjs=conftest.$ac_objext
16205 deplibs=
16206 wl=$lt_prog_compiler_wl_GCJ
16207 compiler_flags=-v
16208 linker_flags=-v
16209 verstring=
16210 output_objdir=.
16211 libname=conftest
16212 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16213 allow_undefined_flag_GCJ=
16214 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16215 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }
16219 then
16220 archive_cmds_need_lc_GCJ=no
16221 else
16222 archive_cmds_need_lc_GCJ=yes
16223 fi
16224 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16225 else
16226 cat conftest.err 1>&5
16227 fi
16228 $rm conftest*
16229 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16230echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16231 ;;
16232 esac
16233 fi
16234 ;;
16235esac
16236
16237echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16238echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16239hardcode_action_GCJ=
16240if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16241 test -n "$runpath_var GCJ" || \
16242 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16243
16244 # We can hardcode non-existant directories.
16245 if test "$hardcode_direct_GCJ" != no &&
16246 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16247 # have to relink, otherwise we might link with an installed library
16248 # when we should be linking with a yet-to-be-installed one
16249 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16250 test "$hardcode_minus_L_GCJ" != no; then
16251 # Linking always hardcodes the temporary library directory.
16252 hardcode_action_GCJ=relink
16253 else
16254 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16255 hardcode_action_GCJ=immediate
16256 fi
16257else
16258 # We cannot hardcode anything, or else we can only hardcode existing
16259 # directories.
16260 hardcode_action_GCJ=unsupported
16261fi
16262echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16263echo "${ECHO_T}$hardcode_action_GCJ" >&6
16264
16265if test "$hardcode_action_GCJ" = relink; then
16266 # Fast installation is not supported
16267 enable_fast_install=no
16268elif test "$shlibpath_overrides_runpath" = yes ||
16269 test "$enable_shared" = no; then
16270 # Fast installation is not necessary
16271 enable_fast_install=needless
16272fi
16273
16274striplib=
16275old_striplib=
16276echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16277echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16278if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16280 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16281 echo "$as_me:$LINENO: result: yes" >&5
16282echo "${ECHO_T}yes" >&6
16283else
16284# FIXME - insert some real tests, host_os isn't really good enough
16285 case $host_os in
16286 darwin*)
16287 if test -n "$STRIP" ; then
16288 striplib="$STRIP -x"
16289 echo "$as_me:$LINENO: result: yes" >&5
16290echo "${ECHO_T}yes" >&6
16291 else
16292 echo "$as_me:$LINENO: result: no" >&5
16293echo "${ECHO_T}no" >&6
16294fi
16295 ;;
16296 *)
16297 echo "$as_me:$LINENO: result: no" >&5
16298echo "${ECHO_T}no" >&6
16299 ;;
16300 esac
16301fi
16302
16303echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16304echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16305library_names_spec=
16306libname_spec='lib$name'
16307soname_spec=
16308shrext=".so"
16309postinstall_cmds=
16310postuninstall_cmds=
16311finish_cmds=
16312finish_eval=
16313shlibpath_var=
16314shlibpath_overrides_runpath=unknown
16315version_type=none
16316dynamic_linker="$host_os ld.so"
16317sys_lib_dlsearch_path_spec="/lib /usr/lib"
16318if test "$GCC" = yes; then
16319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16320 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16321 # if the path contains ";" then we assume it to be the separator
16322 # otherwise default to the standard path separator (i.e. ":") - it is
16323 # assumed that no part of a normal pathname contains ";" but that should
16324 # okay in the real world where ";" in dirpaths is itself problematic.
16325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16326 else
16327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16328 fi
16329else
16330 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16331fi
16332need_lib_prefix=unknown
16333hardcode_into_libs=no
16334
16335# when you set need_version to no, make sure it does not cause -set_version
16336# flags to be left without arguments
16337need_version=unknown
16338
16339case $host_os in
16340aix3*)
16341 version_type=linux
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16343 shlibpath_var=LIBPATH
16344
16345 # AIX 3 has no versioning support, so we append a major version to the name.
16346 soname_spec='${libname}${release}${shared_ext}$major'
16347 ;;
16348
16349aix4* | aix5*)
16350 version_type=linux
16351 need_lib_prefix=no
16352 need_version=no
16353 hardcode_into_libs=yes
16354 if test "$host_cpu" = ia64; then
16355 # AIX 5 supports IA64
16356 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16357 shlibpath_var=LD_LIBRARY_PATH
16358 else
16359 # With GCC up to 2.95.x, collect2 would create an import file
16360 # for dependence libraries. The import file would start with
16361 # the line `#! .'. This would cause the generated library to
16362 # depend on `.', always an invalid library. This was fixed in
16363 # development snapshots of GCC prior to 3.0.
16364 case $host_os in
16365 aix4 | aix4.[01] | aix4.[01].*)
16366 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16367 echo ' yes '
16368 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16369 :
16370 else
16371 can_build_shared=no
16372 fi
16373 ;;
16374 esac
16375 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16376 # soname into executable. Probably we can add versioning support to
16377 # collect2, so additional links can be useful in future.
16378 if test "$aix_use_runtimelinking" = yes; then
16379 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16380 # instead of lib<name>.a to let people know that these are not
16381 # typical AIX shared libraries.
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 else
16384 # We preserve .a as extension for shared libraries through AIX4.2
16385 # and later when we are not doing run time linking.
16386 library_names_spec='${libname}${release}.a $libname.a'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 fi
16389 shlibpath_var=LIBPATH
16390 fi
16391 ;;
16392
16393amigaos*)
16394 library_names_spec='$libname.ixlibrary $libname.a'
16395 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16396 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'
16397 ;;
16398
16399beos*)
16400 library_names_spec='${libname}${shared_ext}'
16401 dynamic_linker="$host_os ld.so"
16402 shlibpath_var=LIBRARY_PATH
16403 ;;
16404
16405bsdi4*)
16406 version_type=linux
16407 need_version=no
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 soname_spec='${libname}${release}${shared_ext}$major'
16410 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16413 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16414 # the default ld.so.conf also contains /usr/contrib/lib and
16415 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16416 # libtool to hard-code these into programs
16417 ;;
16418
16419cygwin* | mingw* | pw32*)
16420 version_type=windows
16421 shrext=".dll"
16422 need_version=no
16423 need_lib_prefix=no
16424
16425 case $GCC,$host_os in
16426 yes,cygwin* | yes,mingw* | yes,pw32*)
16427 library_names_spec='$libname.dll.a'
16428 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16429 postinstall_cmds='base_file=`basename \${file}`~
16430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16431 dldir=$destdir/`dirname \$dlpath`~
16432 test -d \$dldir || mkdir -p \$dldir~
16433 $install_prog $dir/$dlname \$dldir/$dlname'
16434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16435 dlpath=$dir/\$dldll~
16436 $rm \$dlpath'
16437 shlibpath_overrides_runpath=yes
16438
16439 case $host_os in
16440 cygwin*)
16441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16443 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16444 ;;
16445 mingw*)
16446 # MinGW DLLs use traditional 'lib' prefix
16447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16449 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16450 # It is most probably a Windows format PATH printed by
16451 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16452 # path with ; separators, and with drive letters. We can handle the
16453 # drive letters (cygwin fileutils understands them), so leave them,
16454 # especially as we might pass files found there to a mingw objdump,
16455 # which wouldn't understand a cygwinified path. Ahh.
16456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16457 else
16458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16459 fi
16460 ;;
16461 pw32*)
16462 # pw32 DLLs use 'pw' prefix rather than 'lib'
16463 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16464 ;;
16465 esac
16466 ;;
16467
16468 *)
16469 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16470 ;;
16471 esac
16472 dynamic_linker='Win32 ld.exe'
16473 # FIXME: first we should search . and the directory the executable is in
16474 shlibpath_var=PATH
16475 ;;
16476
16477darwin* | rhapsody*)
16478 dynamic_linker="$host_os dyld"
16479 version_type=darwin
16480 need_lib_prefix=no
16481 need_version=no
16482 # FIXME: Relying on posixy $() will cause problems for
16483 # cross-compilation, but unfortunately the echo tests do not
16484 # yet detect zsh echo's removal of \ escapes.
16485 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16486 soname_spec='${libname}${release}${major}$shared_ext'
16487 shlibpath_overrides_runpath=yes
16488 shlibpath_var=DYLD_LIBRARY_PATH
16489 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16490 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16491 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16492 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"`
16493 fi
16494 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16495 ;;
16496
16497dgux*)
16498 version_type=linux
16499 need_lib_prefix=no
16500 need_version=no
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 ;;
16505
16506freebsd1*)
16507 dynamic_linker=no
16508 ;;
16509
16510freebsd*)
16511 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16512 version_type=freebsd-$objformat
16513 case $version_type in
16514 freebsd-elf*)
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16516 need_version=no
16517 need_lib_prefix=no
16518 ;;
16519 freebsd-*)
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16521 need_version=yes
16522 ;;
16523 esac
16524 shlibpath_var=LD_LIBRARY_PATH
16525 case $host_os in
16526 freebsd2*)
16527 shlibpath_overrides_runpath=yes
16528 ;;
16529 freebsd3.01* | freebsdelf3.01*)
16530 shlibpath_overrides_runpath=yes
16531 hardcode_into_libs=yes
16532 ;;
16533 *) # from 3.2 on
16534 shlibpath_overrides_runpath=no
16535 hardcode_into_libs=yes
16536 ;;
16537 esac
16538 ;;
16539
16540gnu*)
16541 version_type=linux
16542 need_lib_prefix=no
16543 need_version=no
16544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16545 soname_spec='${libname}${release}${shared_ext}$major'
16546 shlibpath_var=LD_LIBRARY_PATH
16547 hardcode_into_libs=yes
16548 ;;
16549
16550hpux9* | hpux10* | hpux11*)
16551 # Give a soname corresponding to the major version so that dld.sl refuses to
16552 # link against other versions.
16553 version_type=sunos
16554 need_lib_prefix=no
16555 need_version=no
16556 case "$host_cpu" in
16557 ia64*)
16558 shrext='.so'
16559 hardcode_into_libs=yes
16560 dynamic_linker="$host_os dld.so"
16561 shlibpath_var=LD_LIBRARY_PATH
16562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 if test "X$HPUX_IA64_MODE" = X32; then
16566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16567 else
16568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16569 fi
16570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16571 ;;
16572 hppa*64*)
16573 shrext='.sl'
16574 hardcode_into_libs=yes
16575 dynamic_linker="$host_os dld.sl"
16576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16582 ;;
16583 *)
16584 shrext='.sl'
16585 dynamic_linker="$host_os dld.sl"
16586 shlibpath_var=SHLIB_PATH
16587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589 soname_spec='${libname}${release}${shared_ext}$major'
16590 ;;
16591 esac
16592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16593 postinstall_cmds='chmod 555 $lib'
16594 ;;
16595
16596irix5* | irix6* | nonstopux*)
16597 case $host_os in
16598 nonstopux*) version_type=nonstopux ;;
16599 *)
16600 if test "$lt_cv_prog_gnu_ld" = yes; then
16601 version_type=linux
16602 else
16603 version_type=irix
16604 fi ;;
16605 esac
16606 need_lib_prefix=no
16607 need_version=no
16608 soname_spec='${libname}${release}${shared_ext}$major'
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16610 case $host_os in
16611 irix5* | nonstopux*)
16612 libsuff= shlibsuff=
16613 ;;
16614 *)
16615 case $LD in # libtool.m4 will add one of these switches to LD
16616 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16617 libsuff= shlibsuff= libmagic=32-bit;;
16618 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16619 libsuff=32 shlibsuff=N32 libmagic=N32;;
16620 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16621 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16622 *) libsuff= shlibsuff= libmagic=never-match;;
16623 esac
16624 ;;
16625 esac
16626 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16627 shlibpath_overrides_runpath=no
16628 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16629 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16630 hardcode_into_libs=yes
16631 ;;
16632
16633# No shared lib support for Linux oldld, aout, or coff.
16634linux*oldld* | linux*aout* | linux*coff*)
16635 dynamic_linker=no
16636 ;;
16637
16638# This must be Linux ELF.
16639linux*)
16640 version_type=linux
16641 need_lib_prefix=no
16642 need_version=no
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644 soname_spec='${libname}${release}${shared_ext}$major'
16645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16646 shlibpath_var=LD_LIBRARY_PATH
16647 shlibpath_overrides_runpath=no
16648 # This implies no fast_install, which is unacceptable.
16649 # Some rework will be needed to allow for fast_install
16650 # before this can be enabled.
16651 hardcode_into_libs=yes
16652
16653 # We used to test for /lib/ld.so.1 and disable shared libraries on
16654 # powerpc, because MkLinux only supported shared libraries with the
16655 # GNU dynamic linker. Since this was broken with cross compilers,
16656 # most powerpc-linux boxes support dynamic linking these days and
16657 # people can always --disable-shared, the test was removed, and we
16658 # assume the GNU/Linux dynamic linker is in use.
16659 dynamic_linker='GNU/Linux ld.so'
16660 ;;
16661
16662netbsd*)
16663 version_type=sunos
16664 need_lib_prefix=no
16665 need_version=no
16666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16669 dynamic_linker='NetBSD (a.out) ld.so'
16670 else
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 dynamic_linker='NetBSD ld.elf_so'
16674 fi
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=yes
16677 hardcode_into_libs=yes
16678 ;;
16679
16680newsos6)
16681 version_type=linux
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 shlibpath_overrides_runpath=yes
16685 ;;
16686
16687nto-qnx)
16688 version_type=linux
16689 need_lib_prefix=no
16690 need_version=no
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 shlibpath_overrides_runpath=yes
16695 ;;
16696
16697openbsd*)
16698 version_type=sunos
16699 need_lib_prefix=no
16700 need_version=no
16701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16703 shlibpath_var=LD_LIBRARY_PATH
16704 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16705 case $host_os in
16706 openbsd2.[89] | openbsd2.[89].*)
16707 shlibpath_overrides_runpath=no
16708 ;;
16709 *)
16710 shlibpath_overrides_runpath=yes
16711 ;;
16712 esac
16713 else
16714 shlibpath_overrides_runpath=yes
16715 fi
16716 ;;
16717
16718os2*)
16719 libname_spec='$name'
16720 shrext=".dll"
16721 need_lib_prefix=no
16722 library_names_spec='$libname${shared_ext} $libname.a'
16723 dynamic_linker='OS/2 ld.exe'
16724 shlibpath_var=LIBPATH
16725 ;;
16726
16727osf3* | osf4* | osf5*)
16728 version_type=osf
16729 need_lib_prefix=no
16730 need_version=no
16731 soname_spec='${libname}${release}${shared_ext}$major'
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733 shlibpath_var=LD_LIBRARY_PATH
16734 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16735 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16736 ;;
16737
16738sco3.2v5*)
16739 version_type=osf
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 ;;
16744
16745solaris*)
16746 version_type=linux
16747 need_lib_prefix=no
16748 need_version=no
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=yes
16753 hardcode_into_libs=yes
16754 # ldd complains unless libraries are executable
16755 postinstall_cmds='chmod +x $lib'
16756 ;;
16757
16758sunos4*)
16759 version_type=sunos
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 shlibpath_overrides_runpath=yes
16764 if test "$with_gnu_ld" = yes; then
16765 need_lib_prefix=no
16766 fi
16767 need_version=yes
16768 ;;
16769
16770sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16771 version_type=linux
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 case $host_vendor in
16776 sni)
16777 shlibpath_overrides_runpath=no
16778 need_lib_prefix=no
16779 export_dynamic_flag_spec='${wl}-Blargedynsym'
16780 runpath_var=LD_RUN_PATH
16781 ;;
16782 siemens)
16783 need_lib_prefix=no
16784 ;;
16785 motorola)
16786 need_lib_prefix=no
16787 need_version=no
16788 shlibpath_overrides_runpath=no
16789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16790 ;;
16791 esac
16792 ;;
16793
16794sysv4*MP*)
16795 if test -d /usr/nec ;then
16796 version_type=linux
16797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16798 soname_spec='$libname${shared_ext}.$major'
16799 shlibpath_var=LD_LIBRARY_PATH
16800 fi
16801 ;;
16802
16803uts4*)
16804 version_type=linux
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 ;;
16809
16810*)
16811 dynamic_linker=no
16812 ;;
16813esac
16814echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16815echo "${ECHO_T}$dynamic_linker" >&6
16816test "$dynamic_linker" = no && can_build_shared=no
16817
16818if test "x$enable_dlopen" != xyes; then
16819 enable_dlopen=unknown
16820 enable_dlopen_self=unknown
16821 enable_dlopen_self_static=unknown
16822else
16823 lt_cv_dlopen=no
16824 lt_cv_dlopen_libs=
16825
16826 case $host_os in
16827 beos*)
16828 lt_cv_dlopen="load_add_on"
16829 lt_cv_dlopen_libs=
16830 lt_cv_dlopen_self=yes
16831 ;;
16832
16833 mingw* | pw32*)
16834 lt_cv_dlopen="LoadLibrary"
16835 lt_cv_dlopen_libs=
16836 ;;
16837
16838 cygwin*)
16839 lt_cv_dlopen="dlopen"
16840 lt_cv_dlopen_libs=
16841 ;;
16842
16843 darwin*)
16844 # if libdl is installed we need to link against it
16845 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16846echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16847if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849else
16850 ac_check_lib_save_LIBS=$LIBS
16851LIBS="-ldl $LIBS"
16852cat >conftest.$ac_ext <<_ACEOF
16853#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016854/* confdefs.h. */
16855_ACEOF
16856cat confdefs.h >>conftest.$ac_ext
16857cat >>conftest.$ac_ext <<_ACEOF
16858/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016859
16860/* Override any gcc2 internal prototype to avoid an error. */
16861#ifdef __cplusplus
16862extern "C"
16863#endif
16864/* We use char because int might match the return type of a gcc2
16865 builtin and then its argument prototype would still apply. */
16866char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016867int
16868main ()
16869{
16870dlopen ();
16871 ;
16872 return 0;
16873}
16874_ACEOF
16875rm -f conftest.$ac_objext conftest$ac_exeext
16876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877 (eval $ac_link) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
16881 { ac_try='test -s conftest$ac_exeext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_cv_lib_dl_dlopen=yes
16888else
16889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016890sed 's/^/| /' conftest.$ac_ext >&5
16891
John Criswell47fdd832003-07-14 16:52:07 +000016892ac_cv_lib_dl_dlopen=no
16893fi
16894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16895LIBS=$ac_check_lib_save_LIBS
16896fi
16897echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16898echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16899if test $ac_cv_lib_dl_dlopen = yes; then
16900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16901else
16902
16903 lt_cv_dlopen="dyld"
16904 lt_cv_dlopen_libs=
16905 lt_cv_dlopen_self=yes
16906
16907fi
16908
16909 ;;
16910
16911 *)
16912 echo "$as_me:$LINENO: checking for shl_load" >&5
16913echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16914if test "${ac_cv_func_shl_load+set}" = set; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16916else
16917 cat >conftest.$ac_ext <<_ACEOF
16918#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016919/* confdefs.h. */
16920_ACEOF
16921cat confdefs.h >>conftest.$ac_ext
16922cat >>conftest.$ac_ext <<_ACEOF
16923/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016924/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016925 which can conflict with char shl_load (); below.
16926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927 <limits.h> exists even on freestanding compilers. */
16928#ifdef __STDC__
16929# include <limits.h>
16930#else
16931# include <assert.h>
16932#endif
John Criswell47fdd832003-07-14 16:52:07 +000016933/* Override any gcc2 internal prototype to avoid an error. */
16934#ifdef __cplusplus
16935extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016936{
John Criswell47fdd832003-07-14 16:52:07 +000016937#endif
16938/* We use char because int might match the return type of a gcc2
16939 builtin and then its argument prototype would still apply. */
16940char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016941/* The GNU C library defines this for functions which it implements
16942 to always fail with ENOSYS. Some functions are actually named
16943 something starting with __ and the normal name is an alias. */
16944#if defined (__stub_shl_load) || defined (__stub___shl_load)
16945choke me
16946#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016947char (*f) () = shl_load;
16948#endif
16949#ifdef __cplusplus
16950}
John Criswell47fdd832003-07-14 16:52:07 +000016951#endif
16952
John Criswell0c38eaf2003-09-10 15:17:25 +000016953int
16954main ()
16955{
16956return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016957 ;
16958 return 0;
16959}
16960_ACEOF
16961rm -f conftest.$ac_objext conftest$ac_exeext
16962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16963 (eval $ac_link) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } &&
16967 { ac_try='test -s conftest$ac_exeext'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_cv_func_shl_load=yes
16974else
16975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016976sed 's/^/| /' conftest.$ac_ext >&5
16977
John Criswell47fdd832003-07-14 16:52:07 +000016978ac_cv_func_shl_load=no
16979fi
16980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16981fi
16982echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16983echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16984if test $ac_cv_func_shl_load = yes; then
16985 lt_cv_dlopen="shl_load"
16986else
16987 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16988echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16989if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991else
16992 ac_check_lib_save_LIBS=$LIBS
16993LIBS="-ldld $LIBS"
16994cat >conftest.$ac_ext <<_ACEOF
16995#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016996/* confdefs.h. */
16997_ACEOF
16998cat confdefs.h >>conftest.$ac_ext
16999cat >>conftest.$ac_ext <<_ACEOF
17000/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017001
17002/* Override any gcc2 internal prototype to avoid an error. */
17003#ifdef __cplusplus
17004extern "C"
17005#endif
17006/* We use char because int might match the return type of a gcc2
17007 builtin and then its argument prototype would still apply. */
17008char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017009int
17010main ()
17011{
17012shl_load ();
17013 ;
17014 return 0;
17015}
17016_ACEOF
17017rm -f conftest.$ac_objext conftest$ac_exeext
17018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019 (eval $ac_link) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_lib_dld_shl_load=yes
17030else
17031 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017032sed 's/^/| /' conftest.$ac_ext >&5
17033
John Criswell47fdd832003-07-14 16:52:07 +000017034ac_cv_lib_dld_shl_load=no
17035fi
17036rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17037LIBS=$ac_check_lib_save_LIBS
17038fi
17039echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17040echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17041if test $ac_cv_lib_dld_shl_load = yes; then
17042 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17043else
17044 echo "$as_me:$LINENO: checking for dlopen" >&5
17045echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17046if test "${ac_cv_func_dlopen+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048else
17049 cat >conftest.$ac_ext <<_ACEOF
17050#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017051/* confdefs.h. */
17052_ACEOF
17053cat confdefs.h >>conftest.$ac_ext
17054cat >>conftest.$ac_ext <<_ACEOF
17055/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017056/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017057 which can conflict with char dlopen (); below.
17058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17059 <limits.h> exists even on freestanding compilers. */
17060#ifdef __STDC__
17061# include <limits.h>
17062#else
17063# include <assert.h>
17064#endif
John Criswell47fdd832003-07-14 16:52:07 +000017065/* Override any gcc2 internal prototype to avoid an error. */
17066#ifdef __cplusplus
17067extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017068{
John Criswell47fdd832003-07-14 16:52:07 +000017069#endif
17070/* We use char because int might match the return type of a gcc2
17071 builtin and then its argument prototype would still apply. */
17072char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017073/* The GNU C library defines this for functions which it implements
17074 to always fail with ENOSYS. Some functions are actually named
17075 something starting with __ and the normal name is an alias. */
17076#if defined (__stub_dlopen) || defined (__stub___dlopen)
17077choke me
17078#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017079char (*f) () = dlopen;
17080#endif
17081#ifdef __cplusplus
17082}
John Criswell47fdd832003-07-14 16:52:07 +000017083#endif
17084
John Criswell0c38eaf2003-09-10 15:17:25 +000017085int
17086main ()
17087{
17088return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017089 ;
17090 return 0;
17091}
17092_ACEOF
17093rm -f conftest.$ac_objext conftest$ac_exeext
17094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17095 (eval $ac_link) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -s conftest$ac_exeext'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_func_dlopen=yes
17106else
17107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017108sed 's/^/| /' conftest.$ac_ext >&5
17109
John Criswell47fdd832003-07-14 16:52:07 +000017110ac_cv_func_dlopen=no
17111fi
17112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17113fi
17114echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17115echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17116if test $ac_cv_func_dlopen = yes; then
17117 lt_cv_dlopen="dlopen"
17118else
17119 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17120echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17121if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123else
17124 ac_check_lib_save_LIBS=$LIBS
17125LIBS="-ldl $LIBS"
17126cat >conftest.$ac_ext <<_ACEOF
17127#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017128/* confdefs.h. */
17129_ACEOF
17130cat confdefs.h >>conftest.$ac_ext
17131cat >>conftest.$ac_ext <<_ACEOF
17132/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017133
17134/* Override any gcc2 internal prototype to avoid an error. */
17135#ifdef __cplusplus
17136extern "C"
17137#endif
17138/* We use char because int might match the return type of a gcc2
17139 builtin and then its argument prototype would still apply. */
17140char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017141int
17142main ()
17143{
17144dlopen ();
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext conftest$ac_exeext
17150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151 (eval $ac_link) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -s conftest$ac_exeext'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17161 ac_cv_lib_dl_dlopen=yes
17162else
17163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017164sed 's/^/| /' conftest.$ac_ext >&5
17165
John Criswell47fdd832003-07-14 16:52:07 +000017166ac_cv_lib_dl_dlopen=no
17167fi
17168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17169LIBS=$ac_check_lib_save_LIBS
17170fi
17171echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17172echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17173if test $ac_cv_lib_dl_dlopen = yes; then
17174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17175else
17176 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17177echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17178if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17180else
17181 ac_check_lib_save_LIBS=$LIBS
17182LIBS="-lsvld $LIBS"
17183cat >conftest.$ac_ext <<_ACEOF
17184#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017185/* confdefs.h. */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017190
17191/* Override any gcc2 internal prototype to avoid an error. */
17192#ifdef __cplusplus
17193extern "C"
17194#endif
17195/* We use char because int might match the return type of a gcc2
17196 builtin and then its argument prototype would still apply. */
17197char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017198int
17199main ()
17200{
17201dlopen ();
17202 ;
17203 return 0;
17204}
17205_ACEOF
17206rm -f conftest.$ac_objext conftest$ac_exeext
17207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208 (eval $ac_link) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -s conftest$ac_exeext'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_cv_lib_svld_dlopen=yes
17219else
17220 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017221sed 's/^/| /' conftest.$ac_ext >&5
17222
John Criswell47fdd832003-07-14 16:52:07 +000017223ac_cv_lib_svld_dlopen=no
17224fi
17225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17226LIBS=$ac_check_lib_save_LIBS
17227fi
17228echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17229echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17230if test $ac_cv_lib_svld_dlopen = yes; then
17231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17232else
17233 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17234echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17235if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17237else
17238 ac_check_lib_save_LIBS=$LIBS
17239LIBS="-ldld $LIBS"
17240cat >conftest.$ac_ext <<_ACEOF
17241#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017242/* confdefs.h. */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017247
17248/* Override any gcc2 internal prototype to avoid an error. */
17249#ifdef __cplusplus
17250extern "C"
17251#endif
17252/* We use char because int might match the return type of a gcc2
17253 builtin and then its argument prototype would still apply. */
17254char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017255int
17256main ()
17257{
17258dld_link ();
17259 ;
17260 return 0;
17261}
17262_ACEOF
17263rm -f conftest.$ac_objext conftest$ac_exeext
17264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265 (eval $ac_link) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -s conftest$ac_exeext'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 ac_cv_lib_dld_dld_link=yes
17276else
17277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017278sed 's/^/| /' conftest.$ac_ext >&5
17279
John Criswell47fdd832003-07-14 16:52:07 +000017280ac_cv_lib_dld_dld_link=no
17281fi
17282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17283LIBS=$ac_check_lib_save_LIBS
17284fi
17285echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17286echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17287if test $ac_cv_lib_dld_dld_link = yes; then
17288 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17289fi
17290
17291
17292fi
17293
17294
17295fi
17296
17297
17298fi
17299
17300
17301fi
17302
17303
17304fi
17305
17306 ;;
17307 esac
17308
17309 if test "x$lt_cv_dlopen" != xno; then
17310 enable_dlopen=yes
17311 else
17312 enable_dlopen=no
17313 fi
17314
17315 case $lt_cv_dlopen in
17316 dlopen)
17317 save_CPPFLAGS="$CPPFLAGS"
17318 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17319
17320 save_LDFLAGS="$LDFLAGS"
17321 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17322
17323 save_LIBS="$LIBS"
17324 LIBS="$lt_cv_dlopen_libs $LIBS"
17325
17326 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17327echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17328if test "${lt_cv_dlopen_self+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330else
17331 if test "$cross_compiling" = yes; then :
17332 lt_cv_dlopen_self=cross
17333else
17334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17335 lt_status=$lt_dlunknown
17336 cat > conftest.$ac_ext <<EOF
John Criswell10708402003-09-15 20:12:48 +000017337#line 17337 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017338#include "confdefs.h"
17339
17340#if HAVE_DLFCN_H
17341#include <dlfcn.h>
17342#endif
17343
17344#include <stdio.h>
17345
17346#ifdef RTLD_GLOBAL
17347# define LT_DLGLOBAL RTLD_GLOBAL
17348#else
17349# ifdef DL_GLOBAL
17350# define LT_DLGLOBAL DL_GLOBAL
17351# else
17352# define LT_DLGLOBAL 0
17353# endif
17354#endif
17355
17356/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17357 find out it does not work in some platform. */
17358#ifndef LT_DLLAZY_OR_NOW
17359# ifdef RTLD_LAZY
17360# define LT_DLLAZY_OR_NOW RTLD_LAZY
17361# else
17362# ifdef DL_LAZY
17363# define LT_DLLAZY_OR_NOW DL_LAZY
17364# else
17365# ifdef RTLD_NOW
17366# define LT_DLLAZY_OR_NOW RTLD_NOW
17367# else
17368# ifdef DL_NOW
17369# define LT_DLLAZY_OR_NOW DL_NOW
17370# else
17371# define LT_DLLAZY_OR_NOW 0
17372# endif
17373# endif
17374# endif
17375# endif
17376#endif
17377
17378#ifdef __cplusplus
17379extern "C" void exit (int);
17380#endif
17381
17382void fnord() { int i=42;}
17383int main ()
17384{
17385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17386 int status = $lt_dlunknown;
17387
17388 if (self)
17389 {
17390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17391 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17392 /* dlclose (self); */
17393 }
17394
17395 exit (status);
17396}
17397EOF
17398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17399 (eval $ac_link) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17403 (./conftest; exit; ) 2>/dev/null
17404 lt_status=$?
17405 case x$lt_status in
17406 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17407 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17408 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17409 esac
17410 else :
17411 # compilation failed
17412 lt_cv_dlopen_self=no
17413 fi
17414fi
17415rm -fr conftest*
17416
17417
17418fi
17419echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17420echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17421
17422 if test "x$lt_cv_dlopen_self" = xyes; then
17423 LDFLAGS="$LDFLAGS $link_static_flag"
17424 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17425echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17426if test "${lt_cv_dlopen_self_static+set}" = set; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17428else
17429 if test "$cross_compiling" = yes; then :
17430 lt_cv_dlopen_self_static=cross
17431else
17432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17433 lt_status=$lt_dlunknown
17434 cat > conftest.$ac_ext <<EOF
John Criswell10708402003-09-15 20:12:48 +000017435#line 17435 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017436#include "confdefs.h"
17437
17438#if HAVE_DLFCN_H
17439#include <dlfcn.h>
17440#endif
17441
17442#include <stdio.h>
17443
17444#ifdef RTLD_GLOBAL
17445# define LT_DLGLOBAL RTLD_GLOBAL
17446#else
17447# ifdef DL_GLOBAL
17448# define LT_DLGLOBAL DL_GLOBAL
17449# else
17450# define LT_DLGLOBAL 0
17451# endif
17452#endif
17453
17454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17455 find out it does not work in some platform. */
17456#ifndef LT_DLLAZY_OR_NOW
17457# ifdef RTLD_LAZY
17458# define LT_DLLAZY_OR_NOW RTLD_LAZY
17459# else
17460# ifdef DL_LAZY
17461# define LT_DLLAZY_OR_NOW DL_LAZY
17462# else
17463# ifdef RTLD_NOW
17464# define LT_DLLAZY_OR_NOW RTLD_NOW
17465# else
17466# ifdef DL_NOW
17467# define LT_DLLAZY_OR_NOW DL_NOW
17468# else
17469# define LT_DLLAZY_OR_NOW 0
17470# endif
17471# endif
17472# endif
17473# endif
17474#endif
17475
17476#ifdef __cplusplus
17477extern "C" void exit (int);
17478#endif
17479
17480void fnord() { int i=42;}
17481int main ()
17482{
17483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17484 int status = $lt_dlunknown;
17485
17486 if (self)
17487 {
17488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17489 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17490 /* dlclose (self); */
17491 }
17492
17493 exit (status);
17494}
17495EOF
17496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17497 (eval $ac_link) 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17501 (./conftest; exit; ) 2>/dev/null
17502 lt_status=$?
17503 case x$lt_status in
17504 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17505 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17506 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17507 esac
17508 else :
17509 # compilation failed
17510 lt_cv_dlopen_self_static=no
17511 fi
17512fi
17513rm -fr conftest*
17514
17515
17516fi
17517echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17518echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17519 fi
17520
17521 CPPFLAGS="$save_CPPFLAGS"
17522 LDFLAGS="$save_LDFLAGS"
17523 LIBS="$save_LIBS"
17524 ;;
17525 esac
17526
17527 case $lt_cv_dlopen_self in
17528 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17529 *) enable_dlopen_self=unknown ;;
17530 esac
17531
17532 case $lt_cv_dlopen_self_static in
17533 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17534 *) enable_dlopen_self_static=unknown ;;
17535 esac
17536fi
17537
17538
17539# The else clause should only fire when bootstrapping the
17540# libtool distribution, otherwise you forgot to ship ltmain.sh
17541# with your package, and you will get complaints that there are
17542# no rules to generate ltmain.sh.
17543if test -f "$ltmain"; then
17544 # See if we are running on zsh, and set the options which allow our commands through
17545 # without removal of \ escapes.
17546 if test -n "${ZSH_VERSION+set}" ; then
17547 setopt NO_GLOB_SUBST
17548 fi
17549 # Now quote all the things that may contain metacharacters while being
17550 # careful not to overquote the AC_SUBSTed values. We take copies of the
17551 # variables and quote the copies for generation of the libtool script.
17552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17553 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17554 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17555 deplibs_check_method reload_flag reload_cmds need_locks \
17556 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17557 lt_cv_sys_global_symbol_to_c_name_address \
17558 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17559 old_postinstall_cmds old_postuninstall_cmds \
17560 compiler_GCJ \
17561 CC_GCJ \
17562 LD_GCJ \
17563 lt_prog_compiler_wl_GCJ \
17564 lt_prog_compiler_pic_GCJ \
17565 lt_prog_compiler_static_GCJ \
17566 lt_prog_compiler_no_builtin_flag_GCJ \
17567 export_dynamic_flag_spec_GCJ \
17568 thread_safe_flag_spec_GCJ \
17569 whole_archive_flag_spec_GCJ \
17570 enable_shared_with_static_runtimes_GCJ \
17571 old_archive_cmds_GCJ \
17572 old_archive_from_new_cmds_GCJ \
17573 predep_objects_GCJ \
17574 postdep_objects_GCJ \
17575 predeps_GCJ \
17576 postdeps_GCJ \
17577 compiler_lib_search_path_GCJ \
17578 archive_cmds_GCJ \
17579 archive_expsym_cmds_GCJ \
17580 postinstall_cmds_GCJ \
17581 postuninstall_cmds_GCJ \
17582 old_archive_from_expsyms_cmds_GCJ \
17583 allow_undefined_flag_GCJ \
17584 no_undefined_flag_GCJ \
17585 export_symbols_cmds_GCJ \
17586 hardcode_libdir_flag_spec_GCJ \
17587 hardcode_libdir_flag_spec_ld_GCJ \
17588 hardcode_libdir_separator_GCJ \
17589 hardcode_automatic_GCJ \
17590 module_cmds_GCJ \
17591 module_expsym_cmds_GCJ \
17592 lt_cv_prog_compiler_c_o_GCJ \
17593 exclude_expsyms_GCJ \
17594 include_expsyms_GCJ; do
17595
17596 case $var in
17597 old_archive_cmds_GCJ | \
17598 old_archive_from_new_cmds_GCJ | \
17599 archive_cmds_GCJ | \
17600 archive_expsym_cmds_GCJ | \
17601 module_cmds_GCJ | \
17602 module_expsym_cmds_GCJ | \
17603 old_archive_from_expsyms_cmds_GCJ | \
17604 export_symbols_cmds_GCJ | \
17605 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17606 postinstall_cmds | postuninstall_cmds | \
17607 old_postinstall_cmds | old_postuninstall_cmds | \
17608 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17609 # Double-quote double-evaled strings.
17610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17611 ;;
17612 *)
17613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17614 ;;
17615 esac
17616 done
17617
17618 case $lt_echo in
17619 *'\$0 --fallback-echo"')
17620 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17621 ;;
17622 esac
17623
17624cfgfile="$ofile"
17625
17626 cat <<__EOF__ >> "$cfgfile"
17627# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17628
17629# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17630
17631# Shell to use when invoking shell scripts.
17632SHELL=$lt_SHELL
17633
17634# Whether or not to build shared libraries.
17635build_libtool_libs=$enable_shared
17636
17637# Whether or not to build static libraries.
17638build_old_libs=$enable_static
17639
17640# Whether or not to add -lc for building shared libraries.
17641build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17642
17643# Whether or not to disallow shared libs when runtime libs are static
17644allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17645
17646# Whether or not to optimize for fast installation.
17647fast_install=$enable_fast_install
17648
17649# The host system.
17650host_alias=$host_alias
17651host=$host
17652
17653# An echo program that does not interpret backslashes.
17654echo=$lt_echo
17655
17656# The archiver.
17657AR=$lt_AR
17658AR_FLAGS=$lt_AR_FLAGS
17659
17660# A C compiler.
17661LTCC=$lt_LTCC
17662
17663# A language-specific compiler.
17664CC=$lt_compiler_GCJ
17665
17666# Is the compiler the GNU C compiler?
17667with_gcc=$GCC_GCJ
17668
17669# An ERE matcher.
17670EGREP=$lt_EGREP
17671
17672# The linker used to build libraries.
17673LD=$lt_LD_GCJ
17674
17675# Whether we need hard or soft links.
17676LN_S=$lt_LN_S
17677
17678# A BSD-compatible nm program.
17679NM=$lt_NM
17680
17681# A symbol stripping program
17682STRIP=$STRIP
17683
17684# Used to examine libraries when file_magic_cmd begins "file"
17685MAGIC_CMD=$MAGIC_CMD
17686
17687# Used on cygwin: DLL creation program.
17688DLLTOOL="$DLLTOOL"
17689
17690# Used on cygwin: object dumper.
17691OBJDUMP="$OBJDUMP"
17692
17693# Used on cygwin: assembler.
17694AS="$AS"
17695
17696# The name of the directory that contains temporary libtool files.
17697objdir=$objdir
17698
17699# How to create reloadable object files.
17700reload_flag=$lt_reload_flag
17701reload_cmds=$lt_reload_cmds
17702
17703# How to pass a linker flag through the compiler.
17704wl=$lt_lt_prog_compiler_wl_GCJ
17705
17706# Object file suffix (normally "o").
17707objext="$ac_objext"
17708
17709# Old archive suffix (normally "a").
17710libext="$libext"
17711
17712# Shared library suffix (normally ".so").
17713shrext='$shrext'
17714
17715# Executable file suffix (normally "").
17716exeext="$exeext"
17717
17718# Additional compiler flags for building library objects.
17719pic_flag=$lt_lt_prog_compiler_pic_GCJ
17720pic_mode=$pic_mode
17721
17722# What is the maximum length of a command?
17723max_cmd_len=$lt_cv_sys_max_cmd_len
17724
17725# Does compiler simultaneously support -c and -o options?
17726compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17727
17728# Must we lock files when doing compilation ?
17729need_locks=$lt_need_locks
17730
17731# Do we need the lib prefix for modules?
17732need_lib_prefix=$need_lib_prefix
17733
17734# Do we need a version for libraries?
17735need_version=$need_version
17736
17737# Whether dlopen is supported.
17738dlopen_support=$enable_dlopen
17739
17740# Whether dlopen of programs is supported.
17741dlopen_self=$enable_dlopen_self
17742
17743# Whether dlopen of statically linked programs is supported.
17744dlopen_self_static=$enable_dlopen_self_static
17745
17746# Compiler flag to prevent dynamic linking.
17747link_static_flag=$lt_lt_prog_compiler_static_GCJ
17748
17749# Compiler flag to turn off builtin functions.
17750no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17751
17752# Compiler flag to allow reflexive dlopens.
17753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17754
17755# Compiler flag to generate shared objects directly from archives.
17756whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17757
17758# Compiler flag to generate thread-safe objects.
17759thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17760
17761# Library versioning type.
17762version_type=$version_type
17763
17764# Format of library name prefix.
17765libname_spec=$lt_libname_spec
17766
17767# List of archive names. First name is the real one, the rest are links.
17768# The last name is the one that the linker finds with -lNAME.
17769library_names_spec=$lt_library_names_spec
17770
17771# The coded name of the library, if different from the real name.
17772soname_spec=$lt_soname_spec
17773
17774# Commands used to build and install an old-style archive.
17775RANLIB=$lt_RANLIB
17776old_archive_cmds=$lt_old_archive_cmds_GCJ
17777old_postinstall_cmds=$lt_old_postinstall_cmds
17778old_postuninstall_cmds=$lt_old_postuninstall_cmds
17779
17780# Create an old-style archive from a shared archive.
17781old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17782
17783# Create a temporary old-style archive to link instead of a shared archive.
17784old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17785
17786# Commands used to build and install a shared archive.
17787archive_cmds=$lt_archive_cmds_GCJ
17788archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17789postinstall_cmds=$lt_postinstall_cmds
17790postuninstall_cmds=$lt_postuninstall_cmds
17791
17792# Commands used to build a loadable module (assumed same as above if empty)
17793module_cmds=$lt_module_cmds_GCJ
17794module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17795
17796# Commands to strip libraries.
17797old_striplib=$lt_old_striplib
17798striplib=$lt_striplib
17799
17800# Dependencies to place before the objects being linked to create a
17801# shared library.
17802predep_objects=$lt_predep_objects_GCJ
17803
17804# Dependencies to place after the objects being linked to create a
17805# shared library.
17806postdep_objects=$lt_postdep_objects_GCJ
17807
17808# Dependencies to place before the objects being linked to create a
17809# shared library.
17810predeps=$lt_predeps_GCJ
17811
17812# Dependencies to place after the objects being linked to create a
17813# shared library.
17814postdeps=$lt_postdeps_GCJ
17815
17816# The library search path used internally by the compiler when linking
17817# a shared library.
17818compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17819
17820# Method to check whether dependent libraries are shared objects.
17821deplibs_check_method=$lt_deplibs_check_method
17822
17823# Command to use when deplibs_check_method == file_magic.
17824file_magic_cmd=$lt_file_magic_cmd
17825
17826# Flag that allows shared libraries with undefined symbols to be built.
17827allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17828
17829# Flag that forces no undefined symbols.
17830no_undefined_flag=$lt_no_undefined_flag_GCJ
17831
17832# Commands used to finish a libtool library installation in a directory.
17833finish_cmds=$lt_finish_cmds
17834
17835# Same as above, but a single script fragment to be evaled but not shown.
17836finish_eval=$lt_finish_eval
17837
17838# Take the output of nm and produce a listing of raw symbols and C names.
17839global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17840
17841# Transform the output of nm in a proper C declaration
17842global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17843
17844# Transform the output of nm in a C name address pair
17845global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17846
17847# This is the shared library runtime path variable.
17848runpath_var=$runpath_var
17849
17850# This is the shared library path variable.
17851shlibpath_var=$shlibpath_var
17852
17853# Is shlibpath searched before the hard-coded library search path?
17854shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17855
17856# How to hardcode a shared library path into an executable.
17857hardcode_action=$hardcode_action_GCJ
17858
17859# Whether we should hardcode library paths into libraries.
17860hardcode_into_libs=$hardcode_into_libs
17861
17862# Flag to hardcode \$libdir into a binary during linking.
17863# This must work even if \$libdir does not exist.
17864hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17865
17866# If ld is used when linking, flag to hardcode \$libdir into
17867# a binary during linking. This must work even if \$libdir does
17868# not exist.
17869hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17870
17871# Whether we need a single -rpath flag with a separated argument.
17872hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17873
17874# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17875# resulting binary.
17876hardcode_direct=$hardcode_direct_GCJ
17877
17878# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17879# resulting binary.
17880hardcode_minus_L=$hardcode_minus_L_GCJ
17881
17882# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17883# the resulting binary.
17884hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17885
17886# Set to yes if building a shared library automatically hardcodes DIR into the library
17887# and all subsequent libraries and executables linked against it.
17888hardcode_automatic=$hardcode_automatic_GCJ
17889
17890# Variables whose values should be saved in libtool wrapper scripts and
17891# restored at relink time.
17892variables_saved_for_relink="$variables_saved_for_relink"
17893
17894# Whether libtool must link a program against all its dependency libraries.
17895link_all_deplibs=$link_all_deplibs_GCJ
17896
17897# Compile-time system search path for libraries
17898sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17899
17900# Run-time system search path for libraries
17901sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17902
17903# Fix the shell variable \$srcfile for the compiler.
17904fix_srcfile_path="$fix_srcfile_path_GCJ"
17905
17906# Set to yes if exported symbols are required.
17907always_export_symbols=$always_export_symbols_GCJ
17908
17909# The commands to list exported symbols.
17910export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17911
17912# The commands to extract the exported symbol list from a shared archive.
17913extract_expsyms_cmds=$lt_extract_expsyms_cmds
17914
17915# Symbols that should not be listed in the preloaded symbols.
17916exclude_expsyms=$lt_exclude_expsyms_GCJ
17917
17918# Symbols that must always be exported.
17919include_expsyms=$lt_include_expsyms_GCJ
17920
17921# ### END LIBTOOL TAG CONFIG: $tagname
17922
17923__EOF__
17924
17925
17926else
17927 # If there is no Makefile yet, we rely on a make rule to execute
17928 # `config.status --recheck' to rerun these tests and create the
17929 # libtool script then.
17930 test -f Makefile && make "$ltmain"
17931fi
17932
17933
17934ac_ext=c
17935ac_cpp='$CPP $CPPFLAGS'
17936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17938ac_compiler_gnu=$ac_cv_c_compiler_gnu
17939
17940CC="$lt_save_CC"
17941
17942 else
17943 tagname=""
17944 fi
17945 ;;
17946
17947 RC)
17948
17949
17950
17951# Source file extension for RC test sources.
17952ac_ext=rc
17953
17954# Object file extension for compiled RC test sources.
17955objext=o
17956objext_RC=$objext
17957
17958# Code to be used in simple compile tests
17959lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17960
17961# Code to be used in simple link tests
17962lt_simple_link_test_code="$lt_simple_compile_test_code"
17963
17964# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17965
17966# If no C compiler was specified, use CC.
17967LTCC=${LTCC-"$CC"}
17968
17969# Allow CC to be a program name with arguments.
17970compiler=$CC
17971
17972
17973# Allow CC to be a program name with arguments.
17974lt_save_CC="$CC"
17975CC=${RC-"windres"}
17976compiler=$CC
17977compiler_RC=$CC
17978lt_cv_prog_compiler_c_o_RC=yes
17979
17980# The else clause should only fire when bootstrapping the
17981# libtool distribution, otherwise you forgot to ship ltmain.sh
17982# with your package, and you will get complaints that there are
17983# no rules to generate ltmain.sh.
17984if test -f "$ltmain"; then
17985 # See if we are running on zsh, and set the options which allow our commands through
17986 # without removal of \ escapes.
17987 if test -n "${ZSH_VERSION+set}" ; then
17988 setopt NO_GLOB_SUBST
17989 fi
17990 # Now quote all the things that may contain metacharacters while being
17991 # careful not to overquote the AC_SUBSTed values. We take copies of the
17992 # variables and quote the copies for generation of the libtool script.
17993 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17994 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17995 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17996 deplibs_check_method reload_flag reload_cmds need_locks \
17997 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17998 lt_cv_sys_global_symbol_to_c_name_address \
17999 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18000 old_postinstall_cmds old_postuninstall_cmds \
18001 compiler_RC \
18002 CC_RC \
18003 LD_RC \
18004 lt_prog_compiler_wl_RC \
18005 lt_prog_compiler_pic_RC \
18006 lt_prog_compiler_static_RC \
18007 lt_prog_compiler_no_builtin_flag_RC \
18008 export_dynamic_flag_spec_RC \
18009 thread_safe_flag_spec_RC \
18010 whole_archive_flag_spec_RC \
18011 enable_shared_with_static_runtimes_RC \
18012 old_archive_cmds_RC \
18013 old_archive_from_new_cmds_RC \
18014 predep_objects_RC \
18015 postdep_objects_RC \
18016 predeps_RC \
18017 postdeps_RC \
18018 compiler_lib_search_path_RC \
18019 archive_cmds_RC \
18020 archive_expsym_cmds_RC \
18021 postinstall_cmds_RC \
18022 postuninstall_cmds_RC \
18023 old_archive_from_expsyms_cmds_RC \
18024 allow_undefined_flag_RC \
18025 no_undefined_flag_RC \
18026 export_symbols_cmds_RC \
18027 hardcode_libdir_flag_spec_RC \
18028 hardcode_libdir_flag_spec_ld_RC \
18029 hardcode_libdir_separator_RC \
18030 hardcode_automatic_RC \
18031 module_cmds_RC \
18032 module_expsym_cmds_RC \
18033 lt_cv_prog_compiler_c_o_RC \
18034 exclude_expsyms_RC \
18035 include_expsyms_RC; do
18036
18037 case $var in
18038 old_archive_cmds_RC | \
18039 old_archive_from_new_cmds_RC | \
18040 archive_cmds_RC | \
18041 archive_expsym_cmds_RC | \
18042 module_cmds_RC | \
18043 module_expsym_cmds_RC | \
18044 old_archive_from_expsyms_cmds_RC | \
18045 export_symbols_cmds_RC | \
18046 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18047 postinstall_cmds | postuninstall_cmds | \
18048 old_postinstall_cmds | old_postuninstall_cmds | \
18049 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18050 # Double-quote double-evaled strings.
18051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18052 ;;
18053 *)
18054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18055 ;;
18056 esac
18057 done
18058
18059 case $lt_echo in
18060 *'\$0 --fallback-echo"')
18061 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18062 ;;
18063 esac
18064
18065cfgfile="$ofile"
18066
18067 cat <<__EOF__ >> "$cfgfile"
18068# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18069
18070# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18071
18072# Shell to use when invoking shell scripts.
18073SHELL=$lt_SHELL
18074
18075# Whether or not to build shared libraries.
18076build_libtool_libs=$enable_shared
18077
18078# Whether or not to build static libraries.
18079build_old_libs=$enable_static
18080
18081# Whether or not to add -lc for building shared libraries.
18082build_libtool_need_lc=$archive_cmds_need_lc_RC
18083
18084# Whether or not to disallow shared libs when runtime libs are static
18085allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18086
18087# Whether or not to optimize for fast installation.
18088fast_install=$enable_fast_install
18089
18090# The host system.
18091host_alias=$host_alias
18092host=$host
18093
18094# An echo program that does not interpret backslashes.
18095echo=$lt_echo
18096
18097# The archiver.
18098AR=$lt_AR
18099AR_FLAGS=$lt_AR_FLAGS
18100
18101# A C compiler.
18102LTCC=$lt_LTCC
18103
18104# A language-specific compiler.
18105CC=$lt_compiler_RC
18106
18107# Is the compiler the GNU C compiler?
18108with_gcc=$GCC_RC
18109
18110# An ERE matcher.
18111EGREP=$lt_EGREP
18112
18113# The linker used to build libraries.
18114LD=$lt_LD_RC
18115
18116# Whether we need hard or soft links.
18117LN_S=$lt_LN_S
18118
18119# A BSD-compatible nm program.
18120NM=$lt_NM
18121
18122# A symbol stripping program
18123STRIP=$STRIP
18124
18125# Used to examine libraries when file_magic_cmd begins "file"
18126MAGIC_CMD=$MAGIC_CMD
18127
18128# Used on cygwin: DLL creation program.
18129DLLTOOL="$DLLTOOL"
18130
18131# Used on cygwin: object dumper.
18132OBJDUMP="$OBJDUMP"
18133
18134# Used on cygwin: assembler.
18135AS="$AS"
18136
18137# The name of the directory that contains temporary libtool files.
18138objdir=$objdir
18139
18140# How to create reloadable object files.
18141reload_flag=$lt_reload_flag
18142reload_cmds=$lt_reload_cmds
18143
18144# How to pass a linker flag through the compiler.
18145wl=$lt_lt_prog_compiler_wl_RC
18146
18147# Object file suffix (normally "o").
18148objext="$ac_objext"
18149
18150# Old archive suffix (normally "a").
18151libext="$libext"
18152
18153# Shared library suffix (normally ".so").
18154shrext='$shrext'
18155
18156# Executable file suffix (normally "").
18157exeext="$exeext"
18158
18159# Additional compiler flags for building library objects.
18160pic_flag=$lt_lt_prog_compiler_pic_RC
18161pic_mode=$pic_mode
18162
18163# What is the maximum length of a command?
18164max_cmd_len=$lt_cv_sys_max_cmd_len
18165
18166# Does compiler simultaneously support -c and -o options?
18167compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18168
18169# Must we lock files when doing compilation ?
18170need_locks=$lt_need_locks
18171
18172# Do we need the lib prefix for modules?
18173need_lib_prefix=$need_lib_prefix
18174
18175# Do we need a version for libraries?
18176need_version=$need_version
18177
18178# Whether dlopen is supported.
18179dlopen_support=$enable_dlopen
18180
18181# Whether dlopen of programs is supported.
18182dlopen_self=$enable_dlopen_self
18183
18184# Whether dlopen of statically linked programs is supported.
18185dlopen_self_static=$enable_dlopen_self_static
18186
18187# Compiler flag to prevent dynamic linking.
18188link_static_flag=$lt_lt_prog_compiler_static_RC
18189
18190# Compiler flag to turn off builtin functions.
18191no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18192
18193# Compiler flag to allow reflexive dlopens.
18194export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18195
18196# Compiler flag to generate shared objects directly from archives.
18197whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18198
18199# Compiler flag to generate thread-safe objects.
18200thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18201
18202# Library versioning type.
18203version_type=$version_type
18204
18205# Format of library name prefix.
18206libname_spec=$lt_libname_spec
18207
18208# List of archive names. First name is the real one, the rest are links.
18209# The last name is the one that the linker finds with -lNAME.
18210library_names_spec=$lt_library_names_spec
18211
18212# The coded name of the library, if different from the real name.
18213soname_spec=$lt_soname_spec
18214
18215# Commands used to build and install an old-style archive.
18216RANLIB=$lt_RANLIB
18217old_archive_cmds=$lt_old_archive_cmds_RC
18218old_postinstall_cmds=$lt_old_postinstall_cmds
18219old_postuninstall_cmds=$lt_old_postuninstall_cmds
18220
18221# Create an old-style archive from a shared archive.
18222old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18223
18224# Create a temporary old-style archive to link instead of a shared archive.
18225old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18226
18227# Commands used to build and install a shared archive.
18228archive_cmds=$lt_archive_cmds_RC
18229archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18230postinstall_cmds=$lt_postinstall_cmds
18231postuninstall_cmds=$lt_postuninstall_cmds
18232
18233# Commands used to build a loadable module (assumed same as above if empty)
18234module_cmds=$lt_module_cmds_RC
18235module_expsym_cmds=$lt_module_expsym_cmds_RC
18236
18237# Commands to strip libraries.
18238old_striplib=$lt_old_striplib
18239striplib=$lt_striplib
18240
18241# Dependencies to place before the objects being linked to create a
18242# shared library.
18243predep_objects=$lt_predep_objects_RC
18244
18245# Dependencies to place after the objects being linked to create a
18246# shared library.
18247postdep_objects=$lt_postdep_objects_RC
18248
18249# Dependencies to place before the objects being linked to create a
18250# shared library.
18251predeps=$lt_predeps_RC
18252
18253# Dependencies to place after the objects being linked to create a
18254# shared library.
18255postdeps=$lt_postdeps_RC
18256
18257# The library search path used internally by the compiler when linking
18258# a shared library.
18259compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18260
18261# Method to check whether dependent libraries are shared objects.
18262deplibs_check_method=$lt_deplibs_check_method
18263
18264# Command to use when deplibs_check_method == file_magic.
18265file_magic_cmd=$lt_file_magic_cmd
18266
18267# Flag that allows shared libraries with undefined symbols to be built.
18268allow_undefined_flag=$lt_allow_undefined_flag_RC
18269
18270# Flag that forces no undefined symbols.
18271no_undefined_flag=$lt_no_undefined_flag_RC
18272
18273# Commands used to finish a libtool library installation in a directory.
18274finish_cmds=$lt_finish_cmds
18275
18276# Same as above, but a single script fragment to be evaled but not shown.
18277finish_eval=$lt_finish_eval
18278
18279# Take the output of nm and produce a listing of raw symbols and C names.
18280global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18281
18282# Transform the output of nm in a proper C declaration
18283global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18284
18285# Transform the output of nm in a C name address pair
18286global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18287
18288# This is the shared library runtime path variable.
18289runpath_var=$runpath_var
18290
18291# This is the shared library path variable.
18292shlibpath_var=$shlibpath_var
18293
18294# Is shlibpath searched before the hard-coded library search path?
18295shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18296
18297# How to hardcode a shared library path into an executable.
18298hardcode_action=$hardcode_action_RC
18299
18300# Whether we should hardcode library paths into libraries.
18301hardcode_into_libs=$hardcode_into_libs
18302
18303# Flag to hardcode \$libdir into a binary during linking.
18304# This must work even if \$libdir does not exist.
18305hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18306
18307# If ld is used when linking, flag to hardcode \$libdir into
18308# a binary during linking. This must work even if \$libdir does
18309# not exist.
18310hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18311
18312# Whether we need a single -rpath flag with a separated argument.
18313hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18314
18315# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18316# resulting binary.
18317hardcode_direct=$hardcode_direct_RC
18318
18319# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18320# resulting binary.
18321hardcode_minus_L=$hardcode_minus_L_RC
18322
18323# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18324# the resulting binary.
18325hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18326
18327# Set to yes if building a shared library automatically hardcodes DIR into the library
18328# and all subsequent libraries and executables linked against it.
18329hardcode_automatic=$hardcode_automatic_RC
18330
18331# Variables whose values should be saved in libtool wrapper scripts and
18332# restored at relink time.
18333variables_saved_for_relink="$variables_saved_for_relink"
18334
18335# Whether libtool must link a program against all its dependency libraries.
18336link_all_deplibs=$link_all_deplibs_RC
18337
18338# Compile-time system search path for libraries
18339sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18340
18341# Run-time system search path for libraries
18342sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18343
18344# Fix the shell variable \$srcfile for the compiler.
18345fix_srcfile_path="$fix_srcfile_path_RC"
18346
18347# Set to yes if exported symbols are required.
18348always_export_symbols=$always_export_symbols_RC
18349
18350# The commands to list exported symbols.
18351export_symbols_cmds=$lt_export_symbols_cmds_RC
18352
18353# The commands to extract the exported symbol list from a shared archive.
18354extract_expsyms_cmds=$lt_extract_expsyms_cmds
18355
18356# Symbols that should not be listed in the preloaded symbols.
18357exclude_expsyms=$lt_exclude_expsyms_RC
18358
18359# Symbols that must always be exported.
18360include_expsyms=$lt_include_expsyms_RC
18361
18362# ### END LIBTOOL TAG CONFIG: $tagname
18363
18364__EOF__
18365
18366
18367else
18368 # If there is no Makefile yet, we rely on a make rule to execute
18369 # `config.status --recheck' to rerun these tests and create the
18370 # libtool script then.
18371 test -f Makefile && make "$ltmain"
18372fi
18373
18374
18375ac_ext=c
18376ac_cpp='$CPP $CPPFLAGS'
18377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379ac_compiler_gnu=$ac_cv_c_compiler_gnu
18380
18381CC="$lt_save_CC"
18382
18383 ;;
18384
18385 *)
18386 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18387echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18388 { (exit 1); exit 1; }; }
18389 ;;
18390 esac
18391
18392 # Append the new tag name to the list of available tags.
18393 if test -n "$tagname" ; then
18394 available_tags="$available_tags $tagname"
18395 fi
18396 fi
18397 done
18398 IFS="$lt_save_ifs"
18399
18400 # Now substitute the updated list of available tags.
18401 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18402 mv "${ofile}T" "$ofile"
18403 chmod +x "$ofile"
18404 else
18405 rm -f "${ofile}T"
18406 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18407echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18408 { (exit 1); exit 1; }; }
18409 fi
18410fi
John Criswell7a73b802003-06-30 21:59:07 +000018411
18412
18413
18414# This can be used to rebuild libtool when needed
18415LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18416
18417# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018418LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018419
18420# Prevent multiple expansion
18421
18422
18423
John Criswell47fdd832003-07-14 16:52:07 +000018424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
John Criswellde00db22003-08-25 16:49:54 +000018442# Extract the first word of "pwd", so it can be a program name with args.
18443set dummy pwd; ac_word=$2
18444echo "$as_me:$LINENO: checking for $ac_word" >&5
18445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18446if test "${ac_cv_path_RPWD+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448else
18449 case $RPWD in
18450 [\\/]* | ?:[\\/]*)
18451 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18452 ;;
18453 *)
18454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18455for as_dir in $PATH
18456do
18457 IFS=$as_save_IFS
18458 test -z "$as_dir" && as_dir=.
18459 for ac_exec_ext in '' $ac_executable_extensions; do
18460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18461 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18463 break 2
18464 fi
18465done
18466done
18467
18468 ;;
18469esac
18470fi
18471RPWD=$ac_cv_path_RPWD
18472
18473if test -n "$RPWD"; then
18474 echo "$as_me:$LINENO: result: $RPWD" >&5
18475echo "${ECHO_T}$RPWD" >&6
18476else
18477 echo "$as_me:$LINENO: result: no" >&5
18478echo "${ECHO_T}no" >&6
18479fi
18480
John Criswell7a73b802003-06-30 21:59:07 +000018481# Extract the first word of "ar", so it can be a program name with args.
18482set dummy ar; ac_word=$2
18483echo "$as_me:$LINENO: checking for $ac_word" >&5
18484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18485if test "${ac_cv_path_AR+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488 case $AR in
18489 [\\/]* | ?:[\\/]*)
18490 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18491 ;;
18492 *)
18493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494for as_dir in $PATH
18495do
18496 IFS=$as_save_IFS
18497 test -z "$as_dir" && as_dir=.
18498 for ac_exec_ext in '' $ac_executable_extensions; do
18499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18500 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18502 break 2
18503 fi
18504done
18505done
18506
18507 ;;
18508esac
18509fi
18510AR=$ac_cv_path_AR
18511
18512if test -n "$AR"; then
18513 echo "$as_me:$LINENO: result: $AR" >&5
18514echo "${ECHO_T}$AR" >&6
18515else
18516 echo "$as_me:$LINENO: result: no" >&5
18517echo "${ECHO_T}no" >&6
18518fi
18519
18520# Extract the first word of "sed", so it can be a program name with args.
18521set dummy sed; ac_word=$2
18522echo "$as_me:$LINENO: checking for $ac_word" >&5
18523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18524if test "${ac_cv_path_SED+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526else
18527 case $SED in
18528 [\\/]* | ?:[\\/]*)
18529 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18530 ;;
18531 *)
18532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18533for as_dir in $PATH
18534do
18535 IFS=$as_save_IFS
18536 test -z "$as_dir" && as_dir=.
18537 for ac_exec_ext in '' $ac_executable_extensions; do
18538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18539 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18541 break 2
18542 fi
18543done
18544done
18545
18546 ;;
18547esac
18548fi
18549SED=$ac_cv_path_SED
18550
18551if test -n "$SED"; then
18552 echo "$as_me:$LINENO: result: $SED" >&5
18553echo "${ECHO_T}$SED" >&6
18554else
18555 echo "$as_me:$LINENO: result: no" >&5
18556echo "${ECHO_T}no" >&6
18557fi
18558
18559# Extract the first word of "rm", so it can be a program name with args.
18560set dummy rm; ac_word=$2
18561echo "$as_me:$LINENO: checking for $ac_word" >&5
18562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18563if test "${ac_cv_path_RM+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565else
18566 case $RM in
18567 [\\/]* | ?:[\\/]*)
18568 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18569 ;;
18570 *)
18571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18572for as_dir in $PATH
18573do
18574 IFS=$as_save_IFS
18575 test -z "$as_dir" && as_dir=.
18576 for ac_exec_ext in '' $ac_executable_extensions; do
18577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18578 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18580 break 2
18581 fi
18582done
18583done
18584
18585 ;;
18586esac
18587fi
18588RM=$ac_cv_path_RM
18589
18590if test -n "$RM"; then
18591 echo "$as_me:$LINENO: result: $RM" >&5
18592echo "${ECHO_T}$RM" >&6
18593else
18594 echo "$as_me:$LINENO: result: no" >&5
18595echo "${ECHO_T}no" >&6
18596fi
18597
18598# Extract the first word of "echo", so it can be a program name with args.
18599set dummy echo; ac_word=$2
18600echo "$as_me:$LINENO: checking for $ac_word" >&5
18601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18602if test "${ac_cv_path_ECHO+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604else
18605 case $ECHO in
18606 [\\/]* | ?:[\\/]*)
18607 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18608 ;;
18609 *)
18610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18611for as_dir in $PATH
18612do
18613 IFS=$as_save_IFS
18614 test -z "$as_dir" && as_dir=.
18615 for ac_exec_ext in '' $ac_executable_extensions; do
18616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18617 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18619 break 2
18620 fi
18621done
18622done
18623
18624 ;;
18625esac
18626fi
18627ECHO=$ac_cv_path_ECHO
18628
18629if test -n "$ECHO"; then
18630 echo "$as_me:$LINENO: result: $ECHO" >&5
18631echo "${ECHO_T}$ECHO" >&6
18632else
18633 echo "$as_me:$LINENO: result: no" >&5
18634echo "${ECHO_T}no" >&6
18635fi
18636
18637# Extract the first word of "mkdir", so it can be a program name with args.
18638set dummy mkdir; ac_word=$2
18639echo "$as_me:$LINENO: checking for $ac_word" >&5
18640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18641if test "${ac_cv_path_MKDIR+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643else
18644 case $MKDIR in
18645 [\\/]* | ?:[\\/]*)
18646 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18647 ;;
18648 *)
18649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650for as_dir in $PATH
18651do
18652 IFS=$as_save_IFS
18653 test -z "$as_dir" && as_dir=.
18654 for ac_exec_ext in '' $ac_executable_extensions; do
18655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18658 break 2
18659 fi
18660done
18661done
18662
18663 ;;
18664esac
18665fi
18666MKDIR=$ac_cv_path_MKDIR
18667
18668if test -n "$MKDIR"; then
18669 echo "$as_me:$LINENO: result: $MKDIR" >&5
18670echo "${ECHO_T}$MKDIR" >&6
18671else
18672 echo "$as_me:$LINENO: result: no" >&5
18673echo "${ECHO_T}no" >&6
18674fi
18675
18676# Extract the first word of "date", so it can be a program name with args.
18677set dummy date; ac_word=$2
18678echo "$as_me:$LINENO: checking for $ac_word" >&5
18679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18680if test "${ac_cv_path_DATE+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18682else
18683 case $DATE in
18684 [\\/]* | ?:[\\/]*)
18685 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18686 ;;
18687 *)
18688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689for as_dir in $PATH
18690do
18691 IFS=$as_save_IFS
18692 test -z "$as_dir" && as_dir=.
18693 for ac_exec_ext in '' $ac_executable_extensions; do
18694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18695 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18697 break 2
18698 fi
18699done
18700done
18701
18702 ;;
18703esac
18704fi
18705DATE=$ac_cv_path_DATE
18706
18707if test -n "$DATE"; then
18708 echo "$as_me:$LINENO: result: $DATE" >&5
18709echo "${ECHO_T}$DATE" >&6
18710else
18711 echo "$as_me:$LINENO: result: no" >&5
18712echo "${ECHO_T}no" >&6
18713fi
18714
18715# Extract the first word of "mv", so it can be a program name with args.
18716set dummy mv; ac_word=$2
18717echo "$as_me:$LINENO: checking for $ac_word" >&5
18718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18719if test "${ac_cv_path_MV+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18721else
18722 case $MV in
18723 [\\/]* | ?:[\\/]*)
18724 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18725 ;;
18726 *)
18727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18728for as_dir in $PATH
18729do
18730 IFS=$as_save_IFS
18731 test -z "$as_dir" && as_dir=.
18732 for ac_exec_ext in '' $ac_executable_extensions; do
18733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18734 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18736 break 2
18737 fi
18738done
18739done
18740
18741 ;;
18742esac
18743fi
18744MV=$ac_cv_path_MV
18745
18746if test -n "$MV"; then
18747 echo "$as_me:$LINENO: result: $MV" >&5
18748echo "${ECHO_T}$MV" >&6
18749else
18750 echo "$as_me:$LINENO: result: no" >&5
18751echo "${ECHO_T}no" >&6
18752fi
18753
18754# Extract the first word of "dot", so it can be a program name with args.
18755set dummy dot; ac_word=$2
18756echo "$as_me:$LINENO: checking for $ac_word" >&5
18757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18758if test "${ac_cv_path_DOT+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18760else
18761 case $DOT in
18762 [\\/]* | ?:[\\/]*)
18763 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18764 ;;
18765 *)
18766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18767for as_dir in $PATH
18768do
18769 IFS=$as_save_IFS
18770 test -z "$as_dir" && as_dir=.
18771 for ac_exec_ext in '' $ac_executable_extensions; do
18772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18773 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18775 break 2
18776 fi
18777done
18778done
18779
18780 ;;
18781esac
18782fi
18783DOT=$ac_cv_path_DOT
18784
18785if test -n "$DOT"; then
18786 echo "$as_me:$LINENO: result: $DOT" >&5
18787echo "${ECHO_T}$DOT" >&6
18788else
18789 echo "$as_me:$LINENO: result: no" >&5
18790echo "${ECHO_T}no" >&6
18791fi
18792
18793# Extract the first word of "etags", so it can be a program name with args.
18794set dummy etags; ac_word=$2
18795echo "$as_me:$LINENO: checking for $ac_word" >&5
18796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18797if test "${ac_cv_path_ETAGS+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18799else
18800 case $ETAGS in
18801 [\\/]* | ?:[\\/]*)
18802 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18803 ;;
18804 *)
18805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18806for as_dir in $PATH
18807do
18808 IFS=$as_save_IFS
18809 test -z "$as_dir" && as_dir=.
18810 for ac_exec_ext in '' $ac_executable_extensions; do
18811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18812 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18814 break 2
18815 fi
18816done
18817done
18818
18819 ;;
18820esac
18821fi
18822ETAGS=$ac_cv_path_ETAGS
18823
18824if test -n "$ETAGS"; then
18825 echo "$as_me:$LINENO: result: $ETAGS" >&5
18826echo "${ECHO_T}$ETAGS" >&6
18827else
18828 echo "$as_me:$LINENO: result: no" >&5
18829echo "${ECHO_T}no" >&6
18830fi
18831
18832# Extract the first word of "purify", so it can be a program name with args.
18833set dummy purify; ac_word=$2
18834echo "$as_me:$LINENO: checking for $ac_word" >&5
18835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18836if test "${ac_cv_path_PURIFY+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
18839 case $PURIFY in
18840 [\\/]* | ?:[\\/]*)
18841 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18842 ;;
18843 *)
18844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845for as_dir in $PATH
18846do
18847 IFS=$as_save_IFS
18848 test -z "$as_dir" && as_dir=.
18849 for ac_exec_ext in '' $ac_executable_extensions; do
18850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18851 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18853 break 2
18854 fi
18855done
18856done
18857
18858 ;;
18859esac
18860fi
18861PURIFY=$ac_cv_path_PURIFY
18862
18863if test -n "$PURIFY"; then
18864 echo "$as_me:$LINENO: result: $PURIFY" >&5
18865echo "${ECHO_T}$PURIFY" >&6
18866else
18867 echo "$as_me:$LINENO: result: no" >&5
18868echo "${ECHO_T}no" >&6
18869fi
18870
John Criswellde00db22003-08-25 16:49:54 +000018871# Extract the first word of "python", so it can be a program name with args.
18872set dummy python; ac_word=$2
18873echo "$as_me:$LINENO: checking for $ac_word" >&5
18874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18875if test "${ac_cv_path_PYTHON+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878 case $PYTHON in
18879 [\\/]* | ?:[\\/]*)
18880 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18881 ;;
18882 *)
18883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884for as_dir in $PATH
18885do
18886 IFS=$as_save_IFS
18887 test -z "$as_dir" && as_dir=.
18888 for ac_exec_ext in '' $ac_executable_extensions; do
18889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18892 break 2
18893 fi
18894done
18895done
18896
18897 ;;
18898esac
18899fi
18900PYTHON=$ac_cv_path_PYTHON
18901
18902if test -n "$PYTHON"; then
18903 echo "$as_me:$LINENO: result: $PYTHON" >&5
18904echo "${ECHO_T}$PYTHON" >&6
18905else
18906 echo "$as_me:$LINENO: result: no" >&5
18907echo "${ECHO_T}no" >&6
18908fi
18909
18910# Extract the first word of "qmtest", so it can be a program name with args.
18911set dummy qmtest; ac_word=$2
18912echo "$as_me:$LINENO: checking for $ac_word" >&5
18913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18914if test "${ac_cv_path_QMTEST+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916else
18917 case $QMTEST in
18918 [\\/]* | ?:[\\/]*)
18919 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18920 ;;
18921 *)
18922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18923for as_dir in $PATH
18924do
18925 IFS=$as_save_IFS
18926 test -z "$as_dir" && as_dir=.
18927 for ac_exec_ext in '' $ac_executable_extensions; do
18928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18929 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18931 break 2
18932 fi
18933done
18934done
18935
18936 ;;
18937esac
18938fi
18939QMTEST=$ac_cv_path_QMTEST
18940
18941if test -n "$QMTEST"; then
18942 echo "$as_me:$LINENO: result: $QMTEST" >&5
18943echo "${ECHO_T}$QMTEST" >&6
18944else
18945 echo "$as_me:$LINENO: result: no" >&5
18946echo "${ECHO_T}no" >&6
18947fi
18948
18949
18950pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18951pymajor=`echo $pyversion | cut -d. -f1`
18952pyminor=`echo $pyversion | cut -d. -f2`
18953
18954if test "$pymajor" -ge "2"
18955then
18956 if test "$pymajor" -eq "2"
18957 then
18958 if test "$pyminor" -lt "2"
18959 then
18960 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18961echo "$as_me: error: Python 2.2 or greater required" >&2;}
18962 { (exit 1); exit 1; }; }
18963 fi
18964 fi
18965else
18966 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18967echo "$as_me: error: Python 2.2 or greater required" >&2;}
18968 { (exit 1); exit 1; }; }
18969fi
John Criswell7a73b802003-06-30 21:59:07 +000018970
18971
18972
18973
18974
18975echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18976echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18977if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18979else
18980 ac_check_lib_save_LIBS=$LIBS
18981LIBS="-lelf $LIBS"
18982cat >conftest.$ac_ext <<_ACEOF
18983#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018984/* confdefs.h. */
18985_ACEOF
18986cat confdefs.h >>conftest.$ac_ext
18987cat >>conftest.$ac_ext <<_ACEOF
18988/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018989
18990/* Override any gcc2 internal prototype to avoid an error. */
18991#ifdef __cplusplus
18992extern "C"
18993#endif
18994/* We use char because int might match the return type of a gcc2
18995 builtin and then its argument prototype would still apply. */
18996char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018997int
18998main ()
18999{
19000elf_begin ();
19001 ;
19002 return 0;
19003}
19004_ACEOF
19005rm -f conftest.$ac_objext conftest$ac_exeext
19006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19007 (eval $ac_link) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
19011 { ac_try='test -s conftest$ac_exeext'
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_lib_elf_elf_begin=yes
19018else
19019 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019020sed 's/^/| /' conftest.$ac_ext >&5
19021
John Criswell7a73b802003-06-30 21:59:07 +000019022ac_cv_lib_elf_elf_begin=no
19023fi
19024rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19025LIBS=$ac_check_lib_save_LIBS
19026fi
19027echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19028echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19029if test $ac_cv_lib_elf_elf_begin = yes; then
19030 cat >>confdefs.h <<_ACEOF
19031#define HAVE_LIBELF 1
19032_ACEOF
19033
19034 LIBS="-lelf $LIBS"
19035
19036fi
19037
19038
19039echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19040echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19041if test "${ac_cv_search_dlopen+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043else
19044 ac_func_search_save_LIBS=$LIBS
19045ac_cv_search_dlopen=no
19046cat >conftest.$ac_ext <<_ACEOF
19047#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019048/* confdefs.h. */
19049_ACEOF
19050cat confdefs.h >>conftest.$ac_ext
19051cat >>conftest.$ac_ext <<_ACEOF
19052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019053
19054/* Override any gcc2 internal prototype to avoid an error. */
19055#ifdef __cplusplus
19056extern "C"
19057#endif
19058/* We use char because int might match the return type of a gcc2
19059 builtin and then its argument prototype would still apply. */
19060char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019061int
19062main ()
19063{
19064dlopen ();
19065 ;
19066 return 0;
19067}
19068_ACEOF
19069rm -f conftest.$ac_objext conftest$ac_exeext
19070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19071 (eval $ac_link) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -s conftest$ac_exeext'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 ac_cv_search_dlopen="none required"
19082else
19083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019084sed 's/^/| /' conftest.$ac_ext >&5
19085
John Criswell7a73b802003-06-30 21:59:07 +000019086fi
19087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19088if test "$ac_cv_search_dlopen" = no; then
19089 for ac_lib in dl; do
19090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19091 cat >conftest.$ac_ext <<_ACEOF
19092#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019093/* confdefs.h. */
19094_ACEOF
19095cat confdefs.h >>conftest.$ac_ext
19096cat >>conftest.$ac_ext <<_ACEOF
19097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019098
19099/* Override any gcc2 internal prototype to avoid an error. */
19100#ifdef __cplusplus
19101extern "C"
19102#endif
19103/* We use char because int might match the return type of a gcc2
19104 builtin and then its argument prototype would still apply. */
19105char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019106int
19107main ()
19108{
19109dlopen ();
19110 ;
19111 return 0;
19112}
19113_ACEOF
19114rm -f conftest.$ac_objext conftest$ac_exeext
19115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19116 (eval $ac_link) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -s conftest$ac_exeext'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_cv_search_dlopen="-l$ac_lib"
19127break
19128else
19129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019130sed 's/^/| /' conftest.$ac_ext >&5
19131
John Criswell7a73b802003-06-30 21:59:07 +000019132fi
19133rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19134 done
19135fi
19136LIBS=$ac_func_search_save_LIBS
19137fi
19138echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19139echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19140if test "$ac_cv_search_dlopen" != no; then
19141 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19142
19143else
19144 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19145echo "$as_me: error: dlopen() required but not found" >&2;}
19146 { (exit 1); exit 1; }; }
19147fi
19148
19149
19150echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19151echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19152if test "${ac_cv_search_mallinfo+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19154else
19155 ac_func_search_save_LIBS=$LIBS
19156ac_cv_search_mallinfo=no
19157cat >conftest.$ac_ext <<_ACEOF
19158#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019164
19165/* Override any gcc2 internal prototype to avoid an error. */
19166#ifdef __cplusplus
19167extern "C"
19168#endif
19169/* We use char because int might match the return type of a gcc2
19170 builtin and then its argument prototype would still apply. */
19171char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019172int
19173main ()
19174{
19175mallinfo ();
19176 ;
19177 return 0;
19178}
19179_ACEOF
19180rm -f conftest.$ac_objext conftest$ac_exeext
19181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19182 (eval $ac_link) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } &&
19186 { ac_try='test -s conftest$ac_exeext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_search_mallinfo="none required"
19193else
19194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019195sed 's/^/| /' conftest.$ac_ext >&5
19196
John Criswell7a73b802003-06-30 21:59:07 +000019197fi
19198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19199if test "$ac_cv_search_mallinfo" = no; then
19200 for ac_lib in malloc; do
19201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19202 cat >conftest.$ac_ext <<_ACEOF
19203#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019209
19210/* Override any gcc2 internal prototype to avoid an error. */
19211#ifdef __cplusplus
19212extern "C"
19213#endif
19214/* We use char because int might match the return type of a gcc2
19215 builtin and then its argument prototype would still apply. */
19216char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019217int
19218main ()
19219{
19220mallinfo ();
19221 ;
19222 return 0;
19223}
19224_ACEOF
19225rm -f conftest.$ac_objext conftest$ac_exeext
19226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19227 (eval $ac_link) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try='test -s conftest$ac_exeext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_search_mallinfo="-l$ac_lib"
19238break
19239else
19240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019241sed 's/^/| /' conftest.$ac_ext >&5
19242
John Criswell7a73b802003-06-30 21:59:07 +000019243fi
19244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19245 done
19246fi
19247LIBS=$ac_func_search_save_LIBS
19248fi
19249echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19250echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19251if test "$ac_cv_search_mallinfo" != no; then
19252 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19253 cat >>confdefs.h <<\_ACEOF
19254#define HAVE_MALLINFO 1
19255_ACEOF
19256
19257fi
19258
19259
19260
19261echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19262echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19263if test "${ac_cv_header_stdc+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19265else
19266 cat >conftest.$ac_ext <<_ACEOF
19267#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019273#include <stdlib.h>
19274#include <stdarg.h>
19275#include <string.h>
19276#include <float.h>
19277
John Criswell0c38eaf2003-09-10 15:17:25 +000019278int
19279main ()
19280{
19281
19282 ;
19283 return 0;
19284}
John Criswell7a73b802003-06-30 21:59:07 +000019285_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019286rm -f conftest.$ac_objext
19287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19288 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019289 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019291 (exit $ac_status); } &&
19292 { ac_try='test -s conftest.$ac_objext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019298 ac_cv_header_stdc=yes
19299else
19300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019304fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019305rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019306
19307if test $ac_cv_header_stdc = yes; then
19308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19309 cat >conftest.$ac_ext <<_ACEOF
19310#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019316#include <string.h>
19317
19318_ACEOF
19319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019320 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019321 :
19322else
19323 ac_cv_header_stdc=no
19324fi
19325rm -f conftest*
19326
19327fi
19328
19329if test $ac_cv_header_stdc = yes; then
19330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19331 cat >conftest.$ac_ext <<_ACEOF
19332#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019333/* confdefs.h. */
19334_ACEOF
19335cat confdefs.h >>conftest.$ac_ext
19336cat >>conftest.$ac_ext <<_ACEOF
19337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019338#include <stdlib.h>
19339
19340_ACEOF
19341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019342 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019343 :
19344else
19345 ac_cv_header_stdc=no
19346fi
19347rm -f conftest*
19348
19349fi
19350
19351if test $ac_cv_header_stdc = yes; then
19352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19353 if test "$cross_compiling" = yes; then
19354 :
19355else
19356 cat >conftest.$ac_ext <<_ACEOF
19357#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019363#include <ctype.h>
19364#if ((' ' & 0x0FF) == 0x020)
19365# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19366# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19367#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019368# define ISLOWER(c) \
19369 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019370 || ('j' <= (c) && (c) <= 'r') \
19371 || ('s' <= (c) && (c) <= 'z'))
19372# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19373#endif
19374
19375#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19376int
19377main ()
19378{
19379 int i;
19380 for (i = 0; i < 256; i++)
19381 if (XOR (islower (i), ISLOWER (i))
19382 || toupper (i) != TOUPPER (i))
19383 exit(2);
19384 exit (0);
19385}
19386_ACEOF
19387rm -f conftest$ac_exeext
19388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19389 (eval $ac_link) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 :
19399else
19400 echo "$as_me: program exited with status $ac_status" >&5
19401echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019402sed 's/^/| /' conftest.$ac_ext >&5
19403
John Criswell7a73b802003-06-30 21:59:07 +000019404( exit $ac_status )
19405ac_cv_header_stdc=no
19406fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019407rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019408fi
19409fi
19410fi
19411echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19412echo "${ECHO_T}$ac_cv_header_stdc" >&6
19413if test $ac_cv_header_stdc = yes; then
19414
19415cat >>confdefs.h <<\_ACEOF
19416#define STDC_HEADERS 1
19417_ACEOF
19418
19419fi
19420
19421echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19422echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19423if test "${ac_cv_header_sys_wait_h+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19425else
19426 cat >conftest.$ac_ext <<_ACEOF
19427#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019433#include <sys/types.h>
19434#include <sys/wait.h>
19435#ifndef WEXITSTATUS
19436# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19437#endif
19438#ifndef WIFEXITED
19439# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19440#endif
19441
John Criswell7a73b802003-06-30 21:59:07 +000019442int
19443main ()
19444{
19445 int s;
19446 wait (&s);
19447 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19448 ;
19449 return 0;
19450}
19451_ACEOF
19452rm -f conftest.$ac_objext
19453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19454 (eval $ac_compile) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -s conftest.$ac_objext'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_header_sys_wait_h=yes
19465else
19466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019467sed 's/^/| /' conftest.$ac_ext >&5
19468
John Criswell7a73b802003-06-30 21:59:07 +000019469ac_cv_header_sys_wait_h=no
19470fi
19471rm -f conftest.$ac_objext conftest.$ac_ext
19472fi
19473echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19474echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19475if test $ac_cv_header_sys_wait_h = yes; then
19476
19477cat >>confdefs.h <<\_ACEOF
19478#define HAVE_SYS_WAIT_H 1
19479_ACEOF
19480
19481fi
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19493do
19494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19495if eval "test \"\${$as_ac_Header+set}\" = set"; then
19496 echo "$as_me:$LINENO: checking for $ac_header" >&5
19497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19498if eval "test \"\${$as_ac_Header+set}\" = set"; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500fi
19501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19503else
19504 # Is the header compilable?
19505echo "$as_me:$LINENO: checking $ac_header usability" >&5
19506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19507cat >conftest.$ac_ext <<_ACEOF
19508#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019514$ac_includes_default
19515#include <$ac_header>
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19519 (eval $ac_compile) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 ac_header_compiler=yes
19530else
19531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019532sed 's/^/| /' conftest.$ac_ext >&5
19533
John Criswell7a73b802003-06-30 21:59:07 +000019534ac_header_compiler=no
19535fi
19536rm -f conftest.$ac_objext conftest.$ac_ext
19537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19538echo "${ECHO_T}$ac_header_compiler" >&6
19539
19540# Is the header present?
19541echo "$as_me:$LINENO: checking $ac_header presence" >&5
19542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19543cat >conftest.$ac_ext <<_ACEOF
19544#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019545/* confdefs.h. */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019550#include <$ac_header>
19551_ACEOF
19552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19554 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019555 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } >/dev/null; then
19560 if test -s conftest.err; then
19561 ac_cpp_err=$ac_c_preproc_warn_flag
19562 else
19563 ac_cpp_err=
19564 fi
19565else
19566 ac_cpp_err=yes
19567fi
19568if test -z "$ac_cpp_err"; then
19569 ac_header_preproc=yes
19570else
19571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019572sed 's/^/| /' conftest.$ac_ext >&5
19573
John Criswell7a73b802003-06-30 21:59:07 +000019574 ac_header_preproc=no
19575fi
19576rm -f conftest.err conftest.$ac_ext
19577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19578echo "${ECHO_T}$ac_header_preproc" >&6
19579
19580# So? What about this header?
19581case $ac_header_compiler:$ac_header_preproc in
19582 yes:no )
19583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19587 (
19588 cat <<\_ASBOX
19589## ------------------------------------ ##
19590## Report this to bug-autoconf@gnu.org. ##
19591## ------------------------------------ ##
19592_ASBOX
19593 ) |
19594 sed "s/^/$as_me: WARNING: /" >&2
19595 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019596 no:yes )
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19603 (
19604 cat <<\_ASBOX
19605## ------------------------------------ ##
19606## Report this to bug-autoconf@gnu.org. ##
19607## ------------------------------------ ##
19608_ASBOX
19609 ) |
19610 sed "s/^/$as_me: WARNING: /" >&2
19611 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019612esac
19613echo "$as_me:$LINENO: checking for $ac_header" >&5
19614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19615if eval "test \"\${$as_ac_Header+set}\" = set"; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19617else
19618 eval "$as_ac_Header=$ac_header_preproc"
19619fi
19620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19622
19623fi
19624if test `eval echo '${'$as_ac_Header'}'` = yes; then
19625 cat >>confdefs.h <<_ACEOF
19626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19627_ACEOF
19628
19629fi
19630
19631done
19632
19633
19634
19635
19636
19637
19638for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19639do
19640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19641if eval "test \"\${$as_ac_Header+set}\" = set"; then
19642 echo "$as_me:$LINENO: checking for $ac_header" >&5
19643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19644if eval "test \"\${$as_ac_Header+set}\" = set"; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19646fi
19647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19649else
19650 # Is the header compilable?
19651echo "$as_me:$LINENO: checking $ac_header usability" >&5
19652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19653cat >conftest.$ac_ext <<_ACEOF
19654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
19659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019660$ac_includes_default
19661#include <$ac_header>
19662_ACEOF
19663rm -f conftest.$ac_objext
19664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665 (eval $ac_compile) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
19669 { ac_try='test -s conftest.$ac_objext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 ac_header_compiler=yes
19676else
19677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019678sed 's/^/| /' conftest.$ac_ext >&5
19679
John Criswell7a73b802003-06-30 21:59:07 +000019680ac_header_compiler=no
19681fi
19682rm -f conftest.$ac_objext conftest.$ac_ext
19683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19684echo "${ECHO_T}$ac_header_compiler" >&6
19685
19686# Is the header present?
19687echo "$as_me:$LINENO: checking $ac_header presence" >&5
19688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19689cat >conftest.$ac_ext <<_ACEOF
19690#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019691/* confdefs.h. */
19692_ACEOF
19693cat confdefs.h >>conftest.$ac_ext
19694cat >>conftest.$ac_ext <<_ACEOF
19695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019696#include <$ac_header>
19697_ACEOF
19698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19700 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019701 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019702 rm -f conftest.er1
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } >/dev/null; then
19706 if test -s conftest.err; then
19707 ac_cpp_err=$ac_c_preproc_warn_flag
19708 else
19709 ac_cpp_err=
19710 fi
19711else
19712 ac_cpp_err=yes
19713fi
19714if test -z "$ac_cpp_err"; then
19715 ac_header_preproc=yes
19716else
19717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019718sed 's/^/| /' conftest.$ac_ext >&5
19719
John Criswell7a73b802003-06-30 21:59:07 +000019720 ac_header_preproc=no
19721fi
19722rm -f conftest.err conftest.$ac_ext
19723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19724echo "${ECHO_T}$ac_header_preproc" >&6
19725
19726# So? What about this header?
19727case $ac_header_compiler:$ac_header_preproc in
19728 yes:no )
19729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19733 (
19734 cat <<\_ASBOX
19735## ------------------------------------ ##
19736## Report this to bug-autoconf@gnu.org. ##
19737## ------------------------------------ ##
19738_ASBOX
19739 ) |
19740 sed "s/^/$as_me: WARNING: /" >&2
19741 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019742 no:yes )
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19749 (
19750 cat <<\_ASBOX
19751## ------------------------------------ ##
19752## Report this to bug-autoconf@gnu.org. ##
19753## ------------------------------------ ##
19754_ASBOX
19755 ) |
19756 sed "s/^/$as_me: WARNING: /" >&2
19757 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019758esac
19759echo "$as_me:$LINENO: checking for $ac_header" >&5
19760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19761if eval "test \"\${$as_ac_Header+set}\" = set"; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763else
19764 eval "$as_ac_Header=$ac_header_preproc"
19765fi
19766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19768
19769fi
19770if test `eval echo '${'$as_ac_Header'}'` = yes; then
19771 cat >>confdefs.h <<_ACEOF
19772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19773_ACEOF
19774
19775fi
19776
19777done
19778
19779
19780
19781
19782for ac_header in dlfcn.h link.h
19783do
19784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19785if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786 echo "$as_me:$LINENO: checking for $ac_header" >&5
19787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19788if eval "test \"\${$as_ac_Header+set}\" = set"; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790fi
19791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19793else
19794 # Is the header compilable?
19795echo "$as_me:$LINENO: checking $ac_header usability" >&5
19796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19797cat >conftest.$ac_ext <<_ACEOF
19798#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019799/* confdefs.h. */
19800_ACEOF
19801cat confdefs.h >>conftest.$ac_ext
19802cat >>conftest.$ac_ext <<_ACEOF
19803/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019804$ac_includes_default
19805#include <$ac_header>
19806_ACEOF
19807rm -f conftest.$ac_objext
19808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19809 (eval $ac_compile) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_header_compiler=yes
19820else
19821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019822sed 's/^/| /' conftest.$ac_ext >&5
19823
John Criswell7a73b802003-06-30 21:59:07 +000019824ac_header_compiler=no
19825fi
19826rm -f conftest.$ac_objext conftest.$ac_ext
19827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19828echo "${ECHO_T}$ac_header_compiler" >&6
19829
19830# Is the header present?
19831echo "$as_me:$LINENO: checking $ac_header presence" >&5
19832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19833cat >conftest.$ac_ext <<_ACEOF
19834#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
19839/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019840#include <$ac_header>
19841_ACEOF
19842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19844 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019845 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019846 rm -f conftest.er1
19847 cat conftest.err >&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } >/dev/null; then
19850 if test -s conftest.err; then
19851 ac_cpp_err=$ac_c_preproc_warn_flag
19852 else
19853 ac_cpp_err=
19854 fi
19855else
19856 ac_cpp_err=yes
19857fi
19858if test -z "$ac_cpp_err"; then
19859 ac_header_preproc=yes
19860else
19861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019862sed 's/^/| /' conftest.$ac_ext >&5
19863
John Criswell7a73b802003-06-30 21:59:07 +000019864 ac_header_preproc=no
19865fi
19866rm -f conftest.err conftest.$ac_ext
19867echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868echo "${ECHO_T}$ac_header_preproc" >&6
19869
19870# So? What about this header?
19871case $ac_header_compiler:$ac_header_preproc in
19872 yes:no )
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19877 (
19878 cat <<\_ASBOX
19879## ------------------------------------ ##
19880## Report this to bug-autoconf@gnu.org. ##
19881## ------------------------------------ ##
19882_ASBOX
19883 ) |
19884 sed "s/^/$as_me: WARNING: /" >&2
19885 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019886 no:yes )
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19893 (
19894 cat <<\_ASBOX
19895## ------------------------------------ ##
19896## Report this to bug-autoconf@gnu.org. ##
19897## ------------------------------------ ##
19898_ASBOX
19899 ) |
19900 sed "s/^/$as_me: WARNING: /" >&2
19901 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019902esac
19903echo "$as_me:$LINENO: checking for $ac_header" >&5
19904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19905if eval "test \"\${$as_ac_Header+set}\" = set"; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19907else
19908 eval "$as_ac_Header=$ac_header_preproc"
19909fi
19910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19912
19913fi
19914if test `eval echo '${'$as_ac_Header'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19917_ACEOF
19918
19919fi
19920
19921done
19922
19923
19924
John Criswell7a73b802003-06-30 21:59:07 +000019925echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19926echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19927if test "${ac_cv_c_const+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19929else
19930 cat >conftest.$ac_ext <<_ACEOF
19931#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019932/* confdefs.h. */
19933_ACEOF
19934cat confdefs.h >>conftest.$ac_ext
19935cat >>conftest.$ac_ext <<_ACEOF
19936/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019937
John Criswell7a73b802003-06-30 21:59:07 +000019938int
19939main ()
19940{
19941/* FIXME: Include the comments suggested by Paul. */
19942#ifndef __cplusplus
19943 /* Ultrix mips cc rejects this. */
19944 typedef int charset[2];
19945 const charset x;
19946 /* SunOS 4.1.1 cc rejects this. */
19947 char const *const *ccp;
19948 char **p;
19949 /* NEC SVR4.0.2 mips cc rejects this. */
19950 struct point {int x, y;};
19951 static struct point const zero = {0,0};
19952 /* AIX XL C 1.02.0.0 rejects this.
19953 It does not let you subtract one const X* pointer from another in
19954 an arm of an if-expression whose if-part is not a constant
19955 expression */
19956 const char *g = "string";
19957 ccp = &g + (g ? g-g : 0);
19958 /* HPUX 7.0 cc rejects these. */
19959 ++ccp;
19960 p = (char**) ccp;
19961 ccp = (char const *const *) p;
19962 { /* SCO 3.2v4 cc rejects this. */
19963 char *t;
19964 char const *s = 0 ? (char *) 0 : (char const *) 0;
19965
19966 *t++ = 0;
19967 }
19968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19969 int x[] = {25, 17};
19970 const int *foo = &x[0];
19971 ++foo;
19972 }
19973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19974 typedef const int *iptr;
19975 iptr p = 0;
19976 ++p;
19977 }
19978 { /* AIX XL C 1.02.0.0 rejects this saying
19979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19980 struct s { int j; const int *ap[3]; };
19981 struct s *b; b->j = 5;
19982 }
19983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19984 const int foo = 10;
19985 }
19986#endif
19987
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
19993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19994 (eval $ac_compile) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } &&
19998 { ac_try='test -s conftest.$ac_objext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 ac_cv_c_const=yes
20005else
20006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020007sed 's/^/| /' conftest.$ac_ext >&5
20008
John Criswell7a73b802003-06-30 21:59:07 +000020009ac_cv_c_const=no
20010fi
20011rm -f conftest.$ac_objext conftest.$ac_ext
20012fi
20013echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20014echo "${ECHO_T}$ac_cv_c_const" >&6
20015if test $ac_cv_c_const = no; then
20016
20017cat >>confdefs.h <<\_ACEOF
20018#define const
20019_ACEOF
20020
20021fi
20022
20023echo "$as_me:$LINENO: checking for inline" >&5
20024echo $ECHO_N "checking for inline... $ECHO_C" >&6
20025if test "${ac_cv_c_inline+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027else
20028 ac_cv_c_inline=no
20029for ac_kw in inline __inline__ __inline; do
20030 cat >conftest.$ac_ext <<_ACEOF
20031#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020037#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020038typedef int foo_t;
20039static $ac_kw foo_t static_foo () {return 0; }
20040$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020041#endif
20042
20043_ACEOF
20044rm -f conftest.$ac_objext
20045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046 (eval $ac_compile) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } &&
20050 { ac_try='test -s conftest.$ac_objext'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_cv_c_inline=$ac_kw; break
20057else
20058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020059sed 's/^/| /' conftest.$ac_ext >&5
20060
John Criswell7a73b802003-06-30 21:59:07 +000020061fi
20062rm -f conftest.$ac_objext conftest.$ac_ext
20063done
20064
20065fi
20066echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20067echo "${ECHO_T}$ac_cv_c_inline" >&6
20068case $ac_cv_c_inline in
20069 inline | yes) ;;
20070 no)
20071cat >>confdefs.h <<\_ACEOF
20072#define inline
20073_ACEOF
20074 ;;
20075 *) cat >>confdefs.h <<_ACEOF
20076#define inline $ac_cv_c_inline
20077_ACEOF
20078 ;;
20079esac
20080
20081
20082echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20083echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20084if test "${ac_cv_c_bigendian+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086else
20087 # See if sys/param.h defines the BYTE_ORDER macro.
20088cat >conftest.$ac_ext <<_ACEOF
20089#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020090/* confdefs.h. */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020095#include <sys/types.h>
20096#include <sys/param.h>
20097
John Criswell7a73b802003-06-30 21:59:07 +000020098int
20099main ()
20100{
20101#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20102 bogus endian macros
20103#endif
20104
20105 ;
20106 return 0;
20107}
20108_ACEOF
20109rm -f conftest.$ac_objext
20110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20111 (eval $ac_compile) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } &&
20115 { ac_try='test -s conftest.$ac_objext'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 # It does; now see whether it defined to BIG_ENDIAN or not.
20122cat >conftest.$ac_ext <<_ACEOF
20123#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020124/* confdefs.h. */
20125_ACEOF
20126cat confdefs.h >>conftest.$ac_ext
20127cat >>conftest.$ac_ext <<_ACEOF
20128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020129#include <sys/types.h>
20130#include <sys/param.h>
20131
John Criswell7a73b802003-06-30 21:59:07 +000020132int
20133main ()
20134{
20135#if BYTE_ORDER != BIG_ENDIAN
20136 not big endian
20137#endif
20138
20139 ;
20140 return 0;
20141}
20142_ACEOF
20143rm -f conftest.$ac_objext
20144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20145 (eval $ac_compile) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -s conftest.$ac_objext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_c_bigendian=yes
20156else
20157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020158sed 's/^/| /' conftest.$ac_ext >&5
20159
John Criswell7a73b802003-06-30 21:59:07 +000020160ac_cv_c_bigendian=no
20161fi
20162rm -f conftest.$ac_objext conftest.$ac_ext
20163else
20164 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020165sed 's/^/| /' conftest.$ac_ext >&5
20166
John Criswell7a73b802003-06-30 21:59:07 +000020167# It does not; compile a test program.
20168if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020169 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020170 ac_cv_c_bigendian=unknown
20171 cat >conftest.$ac_ext <<_ACEOF
20172#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020178short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20179short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20180void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20181short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20182short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20183void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020184int
20185main ()
20186{
20187 _ascii (); _ebcdic ();
20188 ;
20189 return 0;
20190}
20191_ACEOF
20192rm -f conftest.$ac_objext
20193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194 (eval $ac_compile) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
20198 { ac_try='test -s conftest.$ac_objext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020204 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020205 ac_cv_c_bigendian=yes
20206fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020207if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020208 if test "$ac_cv_c_bigendian" = unknown; then
20209 ac_cv_c_bigendian=no
20210 else
20211 # finding both strings is unlikely to happen, but who knows?
20212 ac_cv_c_bigendian=unknown
20213 fi
20214fi
20215else
20216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020217sed 's/^/| /' conftest.$ac_ext >&5
20218
John Criswell7a73b802003-06-30 21:59:07 +000020219fi
20220rm -f conftest.$ac_objext conftest.$ac_ext
20221else
20222 cat >conftest.$ac_ext <<_ACEOF
20223#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020224/* confdefs.h. */
20225_ACEOF
20226cat confdefs.h >>conftest.$ac_ext
20227cat >>conftest.$ac_ext <<_ACEOF
20228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020229int
20230main ()
20231{
20232 /* Are we little or big endian? From Harbison&Steele. */
20233 union
20234 {
20235 long l;
20236 char c[sizeof (long)];
20237 } u;
20238 u.l = 1;
20239 exit (u.c[sizeof (long) - 1] == 1);
20240}
20241_ACEOF
20242rm -f conftest$ac_exeext
20243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20244 (eval $ac_link) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
20253 ac_cv_c_bigendian=no
20254else
20255 echo "$as_me: program exited with status $ac_status" >&5
20256echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020257sed 's/^/| /' conftest.$ac_ext >&5
20258
John Criswell7a73b802003-06-30 21:59:07 +000020259( exit $ac_status )
20260ac_cv_c_bigendian=yes
20261fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020262rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020263fi
20264fi
20265rm -f conftest.$ac_objext conftest.$ac_ext
20266fi
20267echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20268echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20269case $ac_cv_c_bigendian in
20270 yes)
20271 cat >>confdefs.h <<\_ACEOF
20272#define ENDIAN_BIG 1
20273_ACEOF
20274 ;;
20275 no)
20276 cat >>confdefs.h <<\_ACEOF
20277#define ENDIAN_LITTLE 1
20278_ACEOF
20279 ;;
20280 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020281 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020282presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020283echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020284presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20285 { (exit 1); exit 1; }; } ;;
20286esac
20287
20288
20289echo "$as_me:$LINENO: checking for pid_t" >&5
20290echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20291if test "${ac_cv_type_pid_t+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293else
20294 cat >conftest.$ac_ext <<_ACEOF
20295#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020296/* confdefs.h. */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020301$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020302int
20303main ()
20304{
20305if ((pid_t *) 0)
20306 return 0;
20307if (sizeof (pid_t))
20308 return 0;
20309 ;
20310 return 0;
20311}
20312_ACEOF
20313rm -f conftest.$ac_objext
20314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20315 (eval $ac_compile) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -s conftest.$ac_objext'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_cv_type_pid_t=yes
20326else
20327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020328sed 's/^/| /' conftest.$ac_ext >&5
20329
John Criswell7a73b802003-06-30 21:59:07 +000020330ac_cv_type_pid_t=no
20331fi
20332rm -f conftest.$ac_objext conftest.$ac_ext
20333fi
20334echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20335echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20336if test $ac_cv_type_pid_t = yes; then
20337 :
20338else
20339
20340cat >>confdefs.h <<_ACEOF
20341#define pid_t int
20342_ACEOF
20343
20344fi
20345
20346echo "$as_me:$LINENO: checking for size_t" >&5
20347echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20348if test "${ac_cv_type_size_t+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20350else
20351 cat >conftest.$ac_ext <<_ACEOF
20352#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020358$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020359int
20360main ()
20361{
20362if ((size_t *) 0)
20363 return 0;
20364if (sizeof (size_t))
20365 return 0;
20366 ;
20367 return 0;
20368}
20369_ACEOF
20370rm -f conftest.$ac_objext
20371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_cv_type_size_t=yes
20383else
20384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020385sed 's/^/| /' conftest.$ac_ext >&5
20386
John Criswell7a73b802003-06-30 21:59:07 +000020387ac_cv_type_size_t=no
20388fi
20389rm -f conftest.$ac_objext conftest.$ac_ext
20390fi
20391echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20392echo "${ECHO_T}$ac_cv_type_size_t" >&6
20393if test $ac_cv_type_size_t = yes; then
20394 :
20395else
20396
20397cat >>confdefs.h <<_ACEOF
20398#define size_t unsigned
20399_ACEOF
20400
20401fi
20402
20403echo "$as_me:$LINENO: checking for int64_t" >&5
20404echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20405if test "${ac_cv_type_int64_t+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407else
20408 cat >conftest.$ac_ext <<_ACEOF
20409#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020410/* confdefs.h. */
20411_ACEOF
20412cat confdefs.h >>conftest.$ac_ext
20413cat >>conftest.$ac_ext <<_ACEOF
20414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020415$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020416int
20417main ()
20418{
20419if ((int64_t *) 0)
20420 return 0;
20421if (sizeof (int64_t))
20422 return 0;
20423 ;
20424 return 0;
20425}
20426_ACEOF
20427rm -f conftest.$ac_objext
20428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429 (eval $ac_compile) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } &&
20433 { ac_try='test -s conftest.$ac_objext'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_cv_type_int64_t=yes
20440else
20441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020442sed 's/^/| /' conftest.$ac_ext >&5
20443
John Criswell7a73b802003-06-30 21:59:07 +000020444ac_cv_type_int64_t=no
20445fi
20446rm -f conftest.$ac_objext conftest.$ac_ext
20447fi
20448echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20449echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20450if test $ac_cv_type_int64_t = yes; then
20451
20452cat >>confdefs.h <<_ACEOF
20453#define HAVE_INT64_T 1
20454_ACEOF
20455
20456
20457else
20458 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20459echo "$as_me: error: Type int64_t required but not found" >&2;}
20460 { (exit 1); exit 1; }; }
20461fi
20462
20463echo "$as_me:$LINENO: checking for uint64_t" >&5
20464echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20465if test "${ac_cv_type_uint64_t+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467else
20468 cat >conftest.$ac_ext <<_ACEOF
20469#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020475$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020476int
20477main ()
20478{
20479if ((uint64_t *) 0)
20480 return 0;
20481if (sizeof (uint64_t))
20482 return 0;
20483 ;
20484 return 0;
20485}
20486_ACEOF
20487rm -f conftest.$ac_objext
20488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20489 (eval $ac_compile) 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -s conftest.$ac_objext'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_cv_type_uint64_t=yes
20500else
20501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020502sed 's/^/| /' conftest.$ac_ext >&5
20503
John Criswell7a73b802003-06-30 21:59:07 +000020504ac_cv_type_uint64_t=no
20505fi
20506rm -f conftest.$ac_objext conftest.$ac_ext
20507fi
20508echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20509echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20510if test $ac_cv_type_uint64_t = yes; then
20511
20512cat >>confdefs.h <<_ACEOF
20513#define HAVE_UINT64_T 1
20514_ACEOF
20515
20516
20517else
20518 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20519echo "$as_me: error: Type uint64_t required but not found" >&2;}
20520 { (exit 1); exit 1; }; }
20521fi
20522
20523echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20524echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20525if test "${ac_cv_header_time+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20527else
20528 cat >conftest.$ac_ext <<_ACEOF
20529#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020530/* confdefs.h. */
20531_ACEOF
20532cat confdefs.h >>conftest.$ac_ext
20533cat >>conftest.$ac_ext <<_ACEOF
20534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020535#include <sys/types.h>
20536#include <sys/time.h>
20537#include <time.h>
20538
John Criswell7a73b802003-06-30 21:59:07 +000020539int
20540main ()
20541{
20542if ((struct tm *) 0)
20543return 0;
20544 ;
20545 return 0;
20546}
20547_ACEOF
20548rm -f conftest.$ac_objext
20549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20550 (eval $ac_compile) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -s conftest.$ac_objext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_header_time=yes
20561else
20562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020563sed 's/^/| /' conftest.$ac_ext >&5
20564
John Criswell7a73b802003-06-30 21:59:07 +000020565ac_cv_header_time=no
20566fi
20567rm -f conftest.$ac_objext conftest.$ac_ext
20568fi
20569echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20570echo "${ECHO_T}$ac_cv_header_time" >&6
20571if test $ac_cv_header_time = yes; then
20572
20573cat >>confdefs.h <<\_ACEOF
20574#define TIME_WITH_SYS_TIME 1
20575_ACEOF
20576
20577fi
20578
20579echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20580echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20581if test "${ac_cv_struct_tm+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583else
20584 cat >conftest.$ac_ext <<_ACEOF
20585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020586/* confdefs.h. */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020591#include <sys/types.h>
20592#include <time.h>
20593
John Criswell7a73b802003-06-30 21:59:07 +000020594int
20595main ()
20596{
20597struct tm *tp; tp->tm_sec;
20598 ;
20599 return 0;
20600}
20601_ACEOF
20602rm -f conftest.$ac_objext
20603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20604 (eval $ac_compile) 2>&5
20605 ac_status=$?
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
20608 { ac_try='test -s conftest.$ac_objext'
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20611 ac_status=$?
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; }; then
20614 ac_cv_struct_tm=time.h
20615else
20616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020617sed 's/^/| /' conftest.$ac_ext >&5
20618
John Criswell7a73b802003-06-30 21:59:07 +000020619ac_cv_struct_tm=sys/time.h
20620fi
20621rm -f conftest.$ac_objext conftest.$ac_ext
20622fi
20623echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20624echo "${ECHO_T}$ac_cv_struct_tm" >&6
20625if test $ac_cv_struct_tm = sys/time.h; then
20626
20627cat >>confdefs.h <<\_ACEOF
20628#define TM_IN_SYS_TIME 1
20629_ACEOF
20630
20631fi
20632
20633
John Criswell7a73b802003-06-30 21:59:07 +000020634echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20635echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20636if test "${ac_cv_cxx_namespaces+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638else
20639
20640
20641 ac_ext=cc
20642ac_cpp='$CXXCPP $CPPFLAGS'
20643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20646
20647 cat >conftest.$ac_ext <<_ACEOF
20648#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020649/* confdefs.h. */
20650_ACEOF
20651cat confdefs.h >>conftest.$ac_ext
20652cat >>conftest.$ac_ext <<_ACEOF
20653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020654namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020655int
20656main ()
20657{
20658using namespace Outer::Inner; return i;
20659 ;
20660 return 0;
20661}
20662_ACEOF
20663rm -f conftest.$ac_objext
20664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20665 (eval $ac_compile) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } &&
20669 { ac_try='test -s conftest.$ac_objext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ac_cv_cxx_namespaces=yes
20676else
20677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020678sed 's/^/| /' conftest.$ac_ext >&5
20679
John Criswell7a73b802003-06-30 21:59:07 +000020680ac_cv_cxx_namespaces=no
20681fi
20682rm -f conftest.$ac_objext conftest.$ac_ext
20683 ac_ext=c
20684ac_cpp='$CPP $CPPFLAGS'
20685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20687ac_compiler_gnu=$ac_cv_c_compiler_gnu
20688
20689
20690fi
20691echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20692echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20693if test "$ac_cv_cxx_namespaces" = yes; then
20694
20695cat >>confdefs.h <<\_ACEOF
20696#define HAVE_NAMESPACES
20697_ACEOF
20698
20699fi
20700
20701echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20702echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20703if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705else
20706
20707
20708
20709 ac_ext=cc
20710ac_cpp='$CXXCPP $CPPFLAGS'
20711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20714
20715 cat >conftest.$ac_ext <<_ACEOF
20716#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020717/* confdefs.h. */
20718_ACEOF
20719cat confdefs.h >>conftest.$ac_ext
20720cat >>conftest.$ac_ext <<_ACEOF
20721/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020722#include <ext/hash_map>
20723#ifdef HAVE_NAMESPACES
20724using namespace std;
20725#endif
John Criswell7a73b802003-06-30 21:59:07 +000020726int
20727main ()
20728{
20729hash_map<int, int> t; return 0;
20730 ;
20731 return 0;
20732}
20733_ACEOF
20734rm -f conftest.$ac_objext
20735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736 (eval $ac_compile) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -s conftest.$ac_objext'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 ac_cv_cxx_have_ext_hash_map=std
20747else
20748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020749sed 's/^/| /' conftest.$ac_ext >&5
20750
John Criswell7a73b802003-06-30 21:59:07 +000020751ac_cv_cxx_have_ext_hash_map=no
20752fi
20753rm -f conftest.$ac_objext conftest.$ac_ext
20754 cat >conftest.$ac_ext <<_ACEOF
20755#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020756/* confdefs.h. */
20757_ACEOF
20758cat confdefs.h >>conftest.$ac_ext
20759cat >>conftest.$ac_ext <<_ACEOF
20760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020761#include <ext/hash_map>
20762#ifdef HAVE_NAMESPACES
20763using namespace __gnu_cxx;
20764#endif
John Criswell7a73b802003-06-30 21:59:07 +000020765int
20766main ()
20767{
20768hash_map<int, int> t; return 0;
20769 ;
20770 return 0;
20771}
20772_ACEOF
20773rm -f conftest.$ac_objext
20774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775 (eval $ac_compile) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -s conftest.$ac_objext'
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785 ac_cv_cxx_have_ext_hash_map=gnu
20786else
20787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020788sed 's/^/| /' conftest.$ac_ext >&5
20789
John Criswell7a73b802003-06-30 21:59:07 +000020790ac_cv_cxx_have_ext_hash_map=no
20791fi
20792rm -f conftest.$ac_objext conftest.$ac_ext
20793 ac_ext=c
20794ac_cpp='$CPP $CPPFLAGS'
20795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797ac_compiler_gnu=$ac_cv_c_compiler_gnu
20798
20799
20800fi
20801echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20802echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20803if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20804
20805cat >>confdefs.h <<\_ACEOF
20806#define HAVE_STD_EXT_HASH_MAP
20807_ACEOF
20808
20809fi
20810if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20811
20812cat >>confdefs.h <<\_ACEOF
20813#define HAVE_GNU_EXT_HASH_MAP
20814_ACEOF
20815
20816fi
20817
20818echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20819echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20820if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20822else
20823
20824
20825
20826 ac_ext=cc
20827ac_cpp='$CXXCPP $CPPFLAGS'
20828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20831
20832 cat >conftest.$ac_ext <<_ACEOF
20833#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020834/* confdefs.h. */
20835_ACEOF
20836cat confdefs.h >>conftest.$ac_ext
20837cat >>conftest.$ac_ext <<_ACEOF
20838/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020839#include <ext/hash_set>
20840#ifdef HAVE_NAMESPACES
20841using namespace std;
20842#endif
John Criswell7a73b802003-06-30 21:59:07 +000020843int
20844main ()
20845{
20846hash_set<int> t; return 0;
20847 ;
20848 return 0;
20849}
20850_ACEOF
20851rm -f conftest.$ac_objext
20852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20853 (eval $ac_compile) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } &&
20857 { ac_try='test -s conftest.$ac_objext'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20860 ac_status=$?
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; }; then
20863 ac_cv_cxx_have_ext_hash_set=std
20864else
20865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020866sed 's/^/| /' conftest.$ac_ext >&5
20867
John Criswell7a73b802003-06-30 21:59:07 +000020868ac_cv_cxx_have_ext_hash_set=no
20869fi
20870rm -f conftest.$ac_objext conftest.$ac_ext
20871 cat >conftest.$ac_ext <<_ACEOF
20872#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020873/* confdefs.h. */
20874_ACEOF
20875cat confdefs.h >>conftest.$ac_ext
20876cat >>conftest.$ac_ext <<_ACEOF
20877/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020878#include <ext/hash_set>
20879#ifdef HAVE_NAMESPACES
20880using namespace __gnu_cxx;
20881#endif
John Criswell7a73b802003-06-30 21:59:07 +000020882int
20883main ()
20884{
20885hash_set<int> t; return 0;
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20892 (eval $ac_compile) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } &&
20896 { ac_try='test -s conftest.$ac_objext'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20899 ac_status=$?
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; }; then
20902 ac_cv_cxx_have_ext_hash_set=gnu
20903else
20904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020905sed 's/^/| /' conftest.$ac_ext >&5
20906
John Criswell7a73b802003-06-30 21:59:07 +000020907ac_cv_cxx_have_ext_hash_set=no
20908fi
20909rm -f conftest.$ac_objext conftest.$ac_ext
20910 ac_ext=c
20911ac_cpp='$CPP $CPPFLAGS'
20912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20914ac_compiler_gnu=$ac_cv_c_compiler_gnu
20915
20916
20917fi
20918echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20919echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20920if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20921
20922cat >>confdefs.h <<\_ACEOF
20923#define HAVE_STD_EXT_HASH_SET
20924_ACEOF
20925
20926fi
20927if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20928
20929cat >>confdefs.h <<\_ACEOF
20930#define HAVE_GNU_EXT_HASH_SET
20931_ACEOF
20932
20933fi
20934
20935echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20936echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20937if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20939else
20940
20941
20942
20943 ac_ext=cc
20944ac_cpp='$CXXCPP $CPPFLAGS'
20945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948
20949 cat >conftest.$ac_ext <<_ACEOF
20950#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020956#include <ext/slist>
20957#ifdef HAVE_NAMESPACES
20958using namespace std;
20959#endif
John Criswell7a73b802003-06-30 21:59:07 +000020960int
20961main ()
20962{
20963slist<int> s; return 0;
20964 ;
20965 return 0;
20966}
20967_ACEOF
20968rm -f conftest.$ac_objext
20969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970 (eval $ac_compile) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -s conftest.$ac_objext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_cv_cxx_have_ext_slist=std
20981else
20982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020983sed 's/^/| /' conftest.$ac_ext >&5
20984
John Criswell7a73b802003-06-30 21:59:07 +000020985ac_cv_cxx_have_ext_slist=no
20986fi
20987rm -f conftest.$ac_objext conftest.$ac_ext
20988 cat >conftest.$ac_ext <<_ACEOF
20989#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020990/* confdefs.h. */
20991_ACEOF
20992cat confdefs.h >>conftest.$ac_ext
20993cat >>conftest.$ac_ext <<_ACEOF
20994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020995#include <ext/slist>
20996#ifdef HAVE_NAMESPACES
20997using namespace __gnu_cxx;
20998#endif
John Criswell7a73b802003-06-30 21:59:07 +000020999int
21000main ()
21001{
21002slist<int> s; return 0;
21003 ;
21004 return 0;
21005}
21006_ACEOF
21007rm -f conftest.$ac_objext
21008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21009 (eval $ac_compile) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
21013 { ac_try='test -s conftest.$ac_objext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 ac_cv_cxx_have_ext_slist=gnu
21020else
21021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021022sed 's/^/| /' conftest.$ac_ext >&5
21023
John Criswell7a73b802003-06-30 21:59:07 +000021024ac_cv_cxx_have_ext_slist=no
21025fi
21026rm -f conftest.$ac_objext conftest.$ac_ext
21027
21028 ac_ext=c
21029ac_cpp='$CPP $CPPFLAGS'
21030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032ac_compiler_gnu=$ac_cv_c_compiler_gnu
21033
21034
21035fi
21036echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21037echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21038if test "$ac_cv_cxx_have_ext_slist" = std; then
21039
21040cat >>confdefs.h <<\_ACEOF
21041#define HAVE_EXT_SLIST std
21042_ACEOF
21043
21044fi
21045if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21046
21047cat >>confdefs.h <<\_ACEOF
21048#define HAVE_EXT_SLIST gnu
21049_ACEOF
21050
21051fi
21052
21053echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21054echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21055if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21057else
21058
21059
21060
21061 ac_ext=cc
21062ac_cpp='$CXXCPP $CPPFLAGS'
21063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21066
21067 cat >conftest.$ac_ext <<_ACEOF
21068#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021074#include <iterator>
21075#ifdef HAVE_NAMESPACES
21076using namespace std;
21077#endif
John Criswell7a73b802003-06-30 21:59:07 +000021078int
21079main ()
21080{
21081iterator<int,int,int> t; return 0;
21082 ;
21083 return 0;
21084}
21085_ACEOF
21086rm -f conftest.$ac_objext
21087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088 (eval $ac_compile) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_cxx_have_std_iterator=yes
21099else
21100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021101sed 's/^/| /' conftest.$ac_ext >&5
21102
John Criswell7a73b802003-06-30 21:59:07 +000021103ac_cv_cxx_have_std_iterator=no
21104fi
21105rm -f conftest.$ac_objext conftest.$ac_ext
21106 ac_ext=c
21107ac_cpp='$CPP $CPPFLAGS'
21108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112
21113fi
21114echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21115echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21116if test "$ac_cv_cxx_have_std_iterator" = yes; then
21117
21118cat >>confdefs.h <<\_ACEOF
21119#define HAVE_STD_ITERATOR
21120_ACEOF
21121
21122fi
21123
21124echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21125echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21126if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21128else
21129
21130
21131
21132 ac_ext=cc
21133ac_cpp='$CXXCPP $CPPFLAGS'
21134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21137
21138 cat >conftest.$ac_ext <<_ACEOF
21139#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021140/* confdefs.h. */
21141_ACEOF
21142cat confdefs.h >>conftest.$ac_ext
21143cat >>conftest.$ac_ext <<_ACEOF
21144/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021145#include <iterator>
21146#ifdef HAVE_NAMESPACES
21147using namespace std;
21148#endif
John Criswell7a73b802003-06-30 21:59:07 +000021149int
21150main ()
21151{
John Criswellc78022e2003-07-29 19:11:58 +000021152bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021153 ;
21154 return 0;
21155}
21156_ACEOF
21157rm -f conftest.$ac_objext
21158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21159 (eval $ac_compile) 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } &&
21163 { ac_try='test -s conftest.$ac_objext'
21164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21165 (eval $ac_try) 2>&5
21166 ac_status=$?
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; }; then
21169 ac_cv_cxx_have_bi_iterator=yes
21170else
21171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021172sed 's/^/| /' conftest.$ac_ext >&5
21173
John Criswell7a73b802003-06-30 21:59:07 +000021174ac_cv_cxx_have_bi_iterator=no
21175fi
21176rm -f conftest.$ac_objext conftest.$ac_ext
21177 ac_ext=c
21178ac_cpp='$CPP $CPPFLAGS'
21179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21181ac_compiler_gnu=$ac_cv_c_compiler_gnu
21182
21183
21184fi
21185echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21186echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21187if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21188
21189cat >>confdefs.h <<\_ACEOF
21190#define HAVE_BI_ITERATOR
21191_ACEOF
21192
21193fi
21194
21195echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21196echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21197if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21198 echo $ECHO_N "(cached) $ECHO_C" >&6
21199else
21200
21201
21202
21203 ac_ext=cc
21204ac_cpp='$CXXCPP $CPPFLAGS'
21205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21208
21209 cat >conftest.$ac_ext <<_ACEOF
21210#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021211/* confdefs.h. */
21212_ACEOF
21213cat confdefs.h >>conftest.$ac_ext
21214cat >>conftest.$ac_ext <<_ACEOF
21215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021216#include <iterator>
21217#ifdef HAVE_NAMESPACES
21218using namespace std;
21219#endif
John Criswell7a73b802003-06-30 21:59:07 +000021220int
21221main ()
21222{
John Criswellc78022e2003-07-29 19:11:58 +000021223forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021224 ;
21225 return 0;
21226}
21227_ACEOF
21228rm -f conftest.$ac_objext
21229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230 (eval $ac_compile) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 ac_cv_cxx_have_fwd_iterator=yes
21241else
21242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021243sed 's/^/| /' conftest.$ac_ext >&5
21244
John Criswell7a73b802003-06-30 21:59:07 +000021245ac_cv_cxx_have_fwd_iterator=no
21246fi
21247rm -f conftest.$ac_objext conftest.$ac_ext
21248 ac_ext=c
21249ac_cpp='$CPP $CPPFLAGS'
21250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252ac_compiler_gnu=$ac_cv_c_compiler_gnu
21253
21254
21255fi
21256echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21257echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21258if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21259
21260cat >>confdefs.h <<\_ACEOF
21261#define HAVE_FWD_ITERATOR
21262_ACEOF
21263
21264fi
21265
21266
21267# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21268# for constant arguments. Useless!
21269echo "$as_me:$LINENO: checking for working alloca.h" >&5
21270echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21271if test "${ac_cv_working_alloca_h+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273else
21274 cat >conftest.$ac_ext <<_ACEOF
21275#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021276/* confdefs.h. */
21277_ACEOF
21278cat confdefs.h >>conftest.$ac_ext
21279cat >>conftest.$ac_ext <<_ACEOF
21280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021281#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021282int
21283main ()
21284{
21285char *p = (char *) alloca (2 * sizeof (int));
21286 ;
21287 return 0;
21288}
21289_ACEOF
21290rm -f conftest.$ac_objext conftest$ac_exeext
21291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21292 (eval $ac_link) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -s conftest$ac_exeext'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ac_cv_working_alloca_h=yes
21303else
21304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021305sed 's/^/| /' conftest.$ac_ext >&5
21306
John Criswell7a73b802003-06-30 21:59:07 +000021307ac_cv_working_alloca_h=no
21308fi
21309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21310fi
21311echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21312echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21313if test $ac_cv_working_alloca_h = yes; then
21314
21315cat >>confdefs.h <<\_ACEOF
21316#define HAVE_ALLOCA_H 1
21317_ACEOF
21318
21319fi
21320
21321echo "$as_me:$LINENO: checking for alloca" >&5
21322echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21323if test "${ac_cv_func_alloca_works+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21325else
21326 cat >conftest.$ac_ext <<_ACEOF
21327#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021328/* confdefs.h. */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021333#ifdef __GNUC__
21334# define alloca __builtin_alloca
21335#else
21336# ifdef _MSC_VER
21337# include <malloc.h>
21338# define alloca _alloca
21339# else
21340# if HAVE_ALLOCA_H
21341# include <alloca.h>
21342# else
21343# ifdef _AIX
21344 #pragma alloca
21345# else
21346# ifndef alloca /* predefined by HP cc +Olibcalls */
21347char *alloca ();
21348# endif
21349# endif
21350# endif
21351# endif
21352#endif
21353
John Criswell7a73b802003-06-30 21:59:07 +000021354int
21355main ()
21356{
21357char *p = (char *) alloca (1);
21358 ;
21359 return 0;
21360}
21361_ACEOF
21362rm -f conftest.$ac_objext conftest$ac_exeext
21363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21364 (eval $ac_link) 2>&5
21365 ac_status=$?
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } &&
21368 { ac_try='test -s conftest$ac_exeext'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374 ac_cv_func_alloca_works=yes
21375else
21376 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021377sed 's/^/| /' conftest.$ac_ext >&5
21378
John Criswell7a73b802003-06-30 21:59:07 +000021379ac_cv_func_alloca_works=no
21380fi
21381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21382fi
21383echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21384echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21385
21386if test $ac_cv_func_alloca_works = yes; then
21387
21388cat >>confdefs.h <<\_ACEOF
21389#define HAVE_ALLOCA 1
21390_ACEOF
21391
21392else
21393 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21394# that cause trouble. Some versions do not even contain alloca or
21395# contain a buggy version. If you still want to use their alloca,
21396# use ar to extract alloca.o from them instead of compiling alloca.c.
21397
21398ALLOCA=alloca.$ac_objext
21399
21400cat >>confdefs.h <<\_ACEOF
21401#define C_ALLOCA 1
21402_ACEOF
21403
21404
21405echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21406echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21407if test "${ac_cv_os_cray+set}" = set; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21409else
21410 cat >conftest.$ac_ext <<_ACEOF
21411#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021412/* confdefs.h. */
21413_ACEOF
21414cat confdefs.h >>conftest.$ac_ext
21415cat >>conftest.$ac_ext <<_ACEOF
21416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021417#if defined(CRAY) && ! defined(CRAY2)
21418webecray
21419#else
21420wenotbecray
21421#endif
21422
21423_ACEOF
21424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021425 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021426 ac_cv_os_cray=yes
21427else
21428 ac_cv_os_cray=no
21429fi
21430rm -f conftest*
21431
21432fi
21433echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21434echo "${ECHO_T}$ac_cv_os_cray" >&6
21435if test $ac_cv_os_cray = yes; then
21436 for ac_func in _getb67 GETB67 getb67; do
21437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21438echo "$as_me:$LINENO: checking for $ac_func" >&5
21439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21440if eval "test \"\${$as_ac_var+set}\" = set"; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21442else
21443 cat >conftest.$ac_ext <<_ACEOF
21444#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021445/* confdefs.h. */
21446_ACEOF
21447cat confdefs.h >>conftest.$ac_ext
21448cat >>conftest.$ac_ext <<_ACEOF
21449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021450/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021451 which can conflict with char $ac_func (); below.
21452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21453 <limits.h> exists even on freestanding compilers. */
21454#ifdef __STDC__
21455# include <limits.h>
21456#else
21457# include <assert.h>
21458#endif
John Criswell7a73b802003-06-30 21:59:07 +000021459/* Override any gcc2 internal prototype to avoid an error. */
21460#ifdef __cplusplus
21461extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021462{
John Criswell7a73b802003-06-30 21:59:07 +000021463#endif
21464/* We use char because int might match the return type of a gcc2
21465 builtin and then its argument prototype would still apply. */
21466char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021467/* The GNU C library defines this for functions which it implements
21468 to always fail with ENOSYS. Some functions are actually named
21469 something starting with __ and the normal name is an alias. */
21470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21471choke me
21472#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021473char (*f) () = $ac_func;
21474#endif
21475#ifdef __cplusplus
21476}
John Criswell7a73b802003-06-30 21:59:07 +000021477#endif
21478
John Criswell0c38eaf2003-09-10 15:17:25 +000021479int
21480main ()
21481{
21482return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021483 ;
21484 return 0;
21485}
21486_ACEOF
21487rm -f conftest.$ac_objext conftest$ac_exeext
21488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21489 (eval $ac_link) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -s conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 eval "$as_ac_var=yes"
21500else
21501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021502sed 's/^/| /' conftest.$ac_ext >&5
21503
John Criswell7a73b802003-06-30 21:59:07 +000021504eval "$as_ac_var=no"
21505fi
21506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21507fi
21508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21510if test `eval echo '${'$as_ac_var'}'` = yes; then
21511
21512cat >>confdefs.h <<_ACEOF
21513#define CRAY_STACKSEG_END $ac_func
21514_ACEOF
21515
21516 break
21517fi
21518
21519 done
21520fi
21521
21522echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21523echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21524if test "${ac_cv_c_stack_direction+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526else
21527 if test "$cross_compiling" = yes; then
21528 ac_cv_c_stack_direction=0
21529else
21530 cat >conftest.$ac_ext <<_ACEOF
21531#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021532/* confdefs.h. */
21533_ACEOF
21534cat confdefs.h >>conftest.$ac_ext
21535cat >>conftest.$ac_ext <<_ACEOF
21536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021537int
21538find_stack_direction ()
21539{
21540 static char *addr = 0;
21541 auto char dummy;
21542 if (addr == 0)
21543 {
21544 addr = &dummy;
21545 return find_stack_direction ();
21546 }
21547 else
21548 return (&dummy > addr) ? 1 : -1;
21549}
21550
21551int
21552main ()
21553{
21554 exit (find_stack_direction () < 0);
21555}
21556_ACEOF
21557rm -f conftest$ac_exeext
21558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559 (eval $ac_link) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21565 ac_status=$?
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21568 ac_cv_c_stack_direction=1
21569else
21570 echo "$as_me: program exited with status $ac_status" >&5
21571echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021572sed 's/^/| /' conftest.$ac_ext >&5
21573
John Criswell7a73b802003-06-30 21:59:07 +000021574( exit $ac_status )
21575ac_cv_c_stack_direction=-1
21576fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021577rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021578fi
21579fi
21580echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21581echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21582
21583cat >>confdefs.h <<_ACEOF
21584#define STACK_DIRECTION $ac_cv_c_stack_direction
21585_ACEOF
21586
21587
21588fi
21589
21590if test $ac_cv_c_compiler_gnu = yes; then
21591 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21592echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21593if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595else
21596 ac_pattern="Autoconf.*'x'"
21597 cat >conftest.$ac_ext <<_ACEOF
21598#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021599/* confdefs.h. */
21600_ACEOF
21601cat confdefs.h >>conftest.$ac_ext
21602cat >>conftest.$ac_ext <<_ACEOF
21603/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021604#include <sgtty.h>
21605Autoconf TIOCGETP
21606_ACEOF
21607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021608 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021609 ac_cv_prog_gcc_traditional=yes
21610else
21611 ac_cv_prog_gcc_traditional=no
21612fi
21613rm -f conftest*
21614
21615
21616 if test $ac_cv_prog_gcc_traditional = no; then
21617 cat >conftest.$ac_ext <<_ACEOF
21618#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021624#include <termio.h>
21625Autoconf TCGETA
21626_ACEOF
21627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021628 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021629 ac_cv_prog_gcc_traditional=yes
21630fi
21631rm -f conftest*
21632
21633 fi
21634fi
21635echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21636echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21637 if test $ac_cv_prog_gcc_traditional = yes; then
21638 CC="$CC -traditional"
21639 fi
21640fi
21641
21642echo "$as_me:$LINENO: checking for working memcmp" >&5
21643echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21644if test "${ac_cv_func_memcmp_working+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646else
21647 if test "$cross_compiling" = yes; then
21648 ac_cv_func_memcmp_working=no
21649else
21650 cat >conftest.$ac_ext <<_ACEOF
21651#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021652/* confdefs.h. */
21653_ACEOF
21654cat confdefs.h >>conftest.$ac_ext
21655cat >>conftest.$ac_ext <<_ACEOF
21656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021657
John Criswell7a73b802003-06-30 21:59:07 +000021658int
21659main ()
21660{
21661
21662 /* Some versions of memcmp are not 8-bit clean. */
21663 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21664 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21665 exit (1);
21666
21667 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21668 or more and with at least one buffer not starting on a 4-byte boundary.
21669 William Lewis provided this test program. */
21670 {
21671 char foo[21];
21672 char bar[21];
21673 int i;
21674 for (i = 0; i < 4; i++)
21675 {
21676 char *a = foo + i;
21677 char *b = bar + i;
21678 strcpy (a, "--------01111111");
21679 strcpy (b, "--------10000000");
21680 if (memcmp (a, b, 16) >= 0)
21681 exit (1);
21682 }
21683 exit (0);
21684 }
21685
21686 ;
21687 return 0;
21688}
21689_ACEOF
21690rm -f conftest$ac_exeext
21691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21692 (eval $ac_link) 2>&5
21693 ac_status=$?
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ac_cv_func_memcmp_working=yes
21702else
21703 echo "$as_me: program exited with status $ac_status" >&5
21704echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021705sed 's/^/| /' conftest.$ac_ext >&5
21706
John Criswell7a73b802003-06-30 21:59:07 +000021707( exit $ac_status )
21708ac_cv_func_memcmp_working=no
21709fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021710rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021711fi
21712fi
21713echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21714echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21715test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21716
21717
21718
21719for ac_header in stdlib.h unistd.h
21720do
21721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21722if eval "test \"\${$as_ac_Header+set}\" = set"; then
21723 echo "$as_me:$LINENO: checking for $ac_header" >&5
21724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21725if eval "test \"\${$as_ac_Header+set}\" = set"; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21727fi
21728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21730else
21731 # Is the header compilable?
21732echo "$as_me:$LINENO: checking $ac_header usability" >&5
21733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21734cat >conftest.$ac_ext <<_ACEOF
21735#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021741$ac_includes_default
21742#include <$ac_header>
21743_ACEOF
21744rm -f conftest.$ac_objext
21745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21746 (eval $ac_compile) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
21750 { ac_try='test -s conftest.$ac_objext'
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; }; then
21756 ac_header_compiler=yes
21757else
21758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021759sed 's/^/| /' conftest.$ac_ext >&5
21760
John Criswell7a73b802003-06-30 21:59:07 +000021761ac_header_compiler=no
21762fi
21763rm -f conftest.$ac_objext conftest.$ac_ext
21764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21765echo "${ECHO_T}$ac_header_compiler" >&6
21766
21767# Is the header present?
21768echo "$as_me:$LINENO: checking $ac_header presence" >&5
21769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21770cat >conftest.$ac_ext <<_ACEOF
21771#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021772/* confdefs.h. */
21773_ACEOF
21774cat confdefs.h >>conftest.$ac_ext
21775cat >>conftest.$ac_ext <<_ACEOF
21776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021777#include <$ac_header>
21778_ACEOF
21779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21781 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021782 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021783 rm -f conftest.er1
21784 cat conftest.err >&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); } >/dev/null; then
21787 if test -s conftest.err; then
21788 ac_cpp_err=$ac_c_preproc_warn_flag
21789 else
21790 ac_cpp_err=
21791 fi
21792else
21793 ac_cpp_err=yes
21794fi
21795if test -z "$ac_cpp_err"; then
21796 ac_header_preproc=yes
21797else
21798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021799sed 's/^/| /' conftest.$ac_ext >&5
21800
John Criswell7a73b802003-06-30 21:59:07 +000021801 ac_header_preproc=no
21802fi
21803rm -f conftest.err conftest.$ac_ext
21804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21805echo "${ECHO_T}$ac_header_preproc" >&6
21806
21807# So? What about this header?
21808case $ac_header_compiler:$ac_header_preproc in
21809 yes:no )
21810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21814 (
21815 cat <<\_ASBOX
21816## ------------------------------------ ##
21817## Report this to bug-autoconf@gnu.org. ##
21818## ------------------------------------ ##
21819_ASBOX
21820 ) |
21821 sed "s/^/$as_me: WARNING: /" >&2
21822 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021823 no:yes )
21824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21830 (
21831 cat <<\_ASBOX
21832## ------------------------------------ ##
21833## Report this to bug-autoconf@gnu.org. ##
21834## ------------------------------------ ##
21835_ASBOX
21836 ) |
21837 sed "s/^/$as_me: WARNING: /" >&2
21838 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021839esac
21840echo "$as_me:$LINENO: checking for $ac_header" >&5
21841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21842if eval "test \"\${$as_ac_Header+set}\" = set"; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844else
21845 eval "$as_ac_Header=$ac_header_preproc"
21846fi
21847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21849
21850fi
21851if test `eval echo '${'$as_ac_Header'}'` = yes; then
21852 cat >>confdefs.h <<_ACEOF
21853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21854_ACEOF
21855
21856fi
21857
21858done
21859
21860
21861for ac_func in getpagesize
21862do
21863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21864echo "$as_me:$LINENO: checking for $ac_func" >&5
21865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21866if eval "test \"\${$as_ac_var+set}\" = set"; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868else
21869 cat >conftest.$ac_ext <<_ACEOF
21870#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021871/* confdefs.h. */
21872_ACEOF
21873cat confdefs.h >>conftest.$ac_ext
21874cat >>conftest.$ac_ext <<_ACEOF
21875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021876/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021877 which can conflict with char $ac_func (); below.
21878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21879 <limits.h> exists even on freestanding compilers. */
21880#ifdef __STDC__
21881# include <limits.h>
21882#else
21883# include <assert.h>
21884#endif
John Criswell7a73b802003-06-30 21:59:07 +000021885/* Override any gcc2 internal prototype to avoid an error. */
21886#ifdef __cplusplus
21887extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021888{
John Criswell7a73b802003-06-30 21:59:07 +000021889#endif
21890/* We use char because int might match the return type of a gcc2
21891 builtin and then its argument prototype would still apply. */
21892char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021893/* The GNU C library defines this for functions which it implements
21894 to always fail with ENOSYS. Some functions are actually named
21895 something starting with __ and the normal name is an alias. */
21896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21897choke me
21898#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021899char (*f) () = $ac_func;
21900#endif
21901#ifdef __cplusplus
21902}
John Criswell7a73b802003-06-30 21:59:07 +000021903#endif
21904
John Criswell0c38eaf2003-09-10 15:17:25 +000021905int
21906main ()
21907{
21908return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021909 ;
21910 return 0;
21911}
21912_ACEOF
21913rm -f conftest.$ac_objext conftest$ac_exeext
21914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21915 (eval $ac_link) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
21919 { ac_try='test -s conftest$ac_exeext'
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21925 eval "$as_ac_var=yes"
21926else
21927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021928sed 's/^/| /' conftest.$ac_ext >&5
21929
John Criswell7a73b802003-06-30 21:59:07 +000021930eval "$as_ac_var=no"
21931fi
21932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21933fi
21934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21936if test `eval echo '${'$as_ac_var'}'` = yes; then
21937 cat >>confdefs.h <<_ACEOF
21938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21939_ACEOF
21940
21941fi
21942done
21943
21944echo "$as_me:$LINENO: checking for working mmap" >&5
21945echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21946if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21948else
21949 if test "$cross_compiling" = yes; then
21950 ac_cv_func_mmap_fixed_mapped=no
21951else
21952 cat >conftest.$ac_ext <<_ACEOF
21953#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021954/* confdefs.h. */
21955_ACEOF
21956cat confdefs.h >>conftest.$ac_ext
21957cat >>conftest.$ac_ext <<_ACEOF
21958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021959$ac_includes_default
21960/* malloc might have been renamed as rpl_malloc. */
21961#undef malloc
21962
21963/* Thanks to Mike Haertel and Jim Avera for this test.
21964 Here is a matrix of mmap possibilities:
21965 mmap private not fixed
21966 mmap private fixed at somewhere currently unmapped
21967 mmap private fixed at somewhere already mapped
21968 mmap shared not fixed
21969 mmap shared fixed at somewhere currently unmapped
21970 mmap shared fixed at somewhere already mapped
21971 For private mappings, we should verify that changes cannot be read()
21972 back from the file, nor mmap's back from the file at a different
21973 address. (There have been systems where private was not correctly
21974 implemented like the infamous i386 svr4.0, and systems where the
21975 VM page cache was not coherent with the file system buffer cache
21976 like early versions of FreeBSD and possibly contemporary NetBSD.)
21977 For shared mappings, we should conversely verify that changes get
21978 propagated back to all the places they're supposed to be.
21979
21980 Grep wants private fixed already mapped.
21981 The main things grep needs to know about mmap are:
21982 * does it exist and is it safe to write into the mmap'd area
21983 * how to use it (BSD variants) */
21984
21985#include <fcntl.h>
21986#include <sys/mman.h>
21987
21988#if !STDC_HEADERS && !HAVE_STDLIB_H
21989char *malloc ();
21990#endif
21991
21992/* This mess was copied from the GNU getpagesize.h. */
21993#if !HAVE_GETPAGESIZE
21994/* Assume that all systems that can run configure have sys/param.h. */
21995# if !HAVE_SYS_PARAM_H
21996# define HAVE_SYS_PARAM_H 1
21997# endif
21998
21999# ifdef _SC_PAGESIZE
22000# define getpagesize() sysconf(_SC_PAGESIZE)
22001# else /* no _SC_PAGESIZE */
22002# if HAVE_SYS_PARAM_H
22003# include <sys/param.h>
22004# ifdef EXEC_PAGESIZE
22005# define getpagesize() EXEC_PAGESIZE
22006# else /* no EXEC_PAGESIZE */
22007# ifdef NBPG
22008# define getpagesize() NBPG * CLSIZE
22009# ifndef CLSIZE
22010# define CLSIZE 1
22011# endif /* no CLSIZE */
22012# else /* no NBPG */
22013# ifdef NBPC
22014# define getpagesize() NBPC
22015# else /* no NBPC */
22016# ifdef PAGESIZE
22017# define getpagesize() PAGESIZE
22018# endif /* PAGESIZE */
22019# endif /* no NBPC */
22020# endif /* no NBPG */
22021# endif /* no EXEC_PAGESIZE */
22022# else /* no HAVE_SYS_PARAM_H */
22023# define getpagesize() 8192 /* punt totally */
22024# endif /* no HAVE_SYS_PARAM_H */
22025# endif /* no _SC_PAGESIZE */
22026
22027#endif /* no HAVE_GETPAGESIZE */
22028
22029int
22030main ()
22031{
22032 char *data, *data2, *data3;
22033 int i, pagesize;
22034 int fd;
22035
22036 pagesize = getpagesize ();
22037
22038 /* First, make a file with some known garbage in it. */
22039 data = (char *) malloc (pagesize);
22040 if (!data)
22041 exit (1);
22042 for (i = 0; i < pagesize; ++i)
22043 *(data + i) = rand ();
22044 umask (0);
22045 fd = creat ("conftest.mmap", 0600);
22046 if (fd < 0)
22047 exit (1);
22048 if (write (fd, data, pagesize) != pagesize)
22049 exit (1);
22050 close (fd);
22051
22052 /* Next, try to mmap the file at a fixed address which already has
22053 something else allocated at it. If we can, also make sure that
22054 we see the same garbage. */
22055 fd = open ("conftest.mmap", O_RDWR);
22056 if (fd < 0)
22057 exit (1);
22058 data2 = (char *) malloc (2 * pagesize);
22059 if (!data2)
22060 exit (1);
22061 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22062 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22063 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22064 exit (1);
22065 for (i = 0; i < pagesize; ++i)
22066 if (*(data + i) != *(data2 + i))
22067 exit (1);
22068
22069 /* Finally, make sure that changes to the mapped area do not
22070 percolate back to the file as seen by read(). (This is a bug on
22071 some variants of i386 svr4.0.) */
22072 for (i = 0; i < pagesize; ++i)
22073 *(data2 + i) = *(data2 + i) + 1;
22074 data3 = (char *) malloc (pagesize);
22075 if (!data3)
22076 exit (1);
22077 if (read (fd, data3, pagesize) != pagesize)
22078 exit (1);
22079 for (i = 0; i < pagesize; ++i)
22080 if (*(data + i) != *(data3 + i))
22081 exit (1);
22082 close (fd);
22083 exit (0);
22084}
22085_ACEOF
22086rm -f conftest$ac_exeext
22087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22088 (eval $ac_link) 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
22097 ac_cv_func_mmap_fixed_mapped=yes
22098else
22099 echo "$as_me: program exited with status $ac_status" >&5
22100echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022101sed 's/^/| /' conftest.$ac_ext >&5
22102
John Criswell7a73b802003-06-30 21:59:07 +000022103( exit $ac_status )
22104ac_cv_func_mmap_fixed_mapped=no
22105fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022106rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022107fi
22108fi
22109echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22110echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22111if test $ac_cv_func_mmap_fixed_mapped = yes; then
22112
22113cat >>confdefs.h <<\_ACEOF
22114#define HAVE_MMAP 1
22115_ACEOF
22116
22117fi
22118rm -f conftest.mmap
22119
22120echo "$as_me:$LINENO: checking for mmap of files" >&5
22121echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22122if test "${ac_cv_func_mmap_file+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124else
22125
22126
22127 ac_ext=c
22128ac_cpp='$CPP $CPPFLAGS'
22129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22131ac_compiler_gnu=$ac_cv_c_compiler_gnu
22132
22133 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022134 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22135See \`config.log' for more details." >&5
22136echo "$as_me: error: cannot run test program while cross compiling
22137See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022138 { (exit 1); exit 1; }; }
22139else
22140 cat >conftest.$ac_ext <<_ACEOF
22141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022142/* confdefs.h. */
22143_ACEOF
22144cat confdefs.h >>conftest.$ac_ext
22145cat >>conftest.$ac_ext <<_ACEOF
22146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022147
22148#ifdef HAVE_SYS_MMAN_H
22149#include <sys/mman.h>
22150#endif
22151
22152#ifdef HAVE_SYS_TYPES_H
22153#include <sys/types.h>
22154#endif
22155
22156#ifdef HAVE_FCNTL_H
22157#include <fcntl.h>
22158#endif
22159
22160 int fd;
22161 int main () {
22162 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22163_ACEOF
22164rm -f conftest$ac_exeext
22165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166 (eval $ac_link) 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_func_mmap_file=yes
22176else
22177 echo "$as_me: program exited with status $ac_status" >&5
22178echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022179sed 's/^/| /' conftest.$ac_ext >&5
22180
John Criswell7a73b802003-06-30 21:59:07 +000022181( exit $ac_status )
22182ac_cv_func_mmap_file=no
22183fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022184rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022185fi
22186 ac_ext=c
22187ac_cpp='$CPP $CPPFLAGS'
22188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22190ac_compiler_gnu=$ac_cv_c_compiler_gnu
22191
22192
22193fi
22194echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22195echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22196if test "$ac_cv_func_mmap_file" = yes; then
22197 cat >>confdefs.h <<\_ACEOF
22198#define HAVE_MMAP_FILE 1
22199_ACEOF
22200
22201 MMAP_FILE=yes
22202
22203fi
22204
22205if test ${ac_cv_func_mmap_file} = "no"
22206then
22207 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22208echo "$as_me: error: mmap() of files required but not found" >&2;}
22209 { (exit 1); exit 1; }; }
22210fi
22211echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22212echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22213if test "${ac_cv_header_mmap_anon+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22215else
22216
22217
22218 ac_ext=c
22219ac_cpp='$CPP $CPPFLAGS'
22220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22222ac_compiler_gnu=$ac_cv_c_compiler_gnu
22223
22224 cat >conftest.$ac_ext <<_ACEOF
22225#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022231#include <sys/mman.h>
22232 #include <unistd.h>
22233 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022234int
22235main ()
22236{
22237mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22238 ;
22239 return 0;
22240}
22241_ACEOF
22242rm -f conftest.$ac_objext
22243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22244 (eval $ac_compile) 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } &&
22248 { ac_try='test -s conftest.$ac_objext'
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; }; then
22254 ac_cv_header_mmap_anon=yes
22255else
22256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022257sed 's/^/| /' conftest.$ac_ext >&5
22258
John Criswell7a73b802003-06-30 21:59:07 +000022259ac_cv_header_mmap_anon=no
22260fi
22261rm -f conftest.$ac_objext conftest.$ac_ext
22262 ac_ext=c
22263ac_cpp='$CPP $CPPFLAGS'
22264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22266ac_compiler_gnu=$ac_cv_c_compiler_gnu
22267
22268
22269fi
22270echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22271echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22272if test "$ac_cv_header_mmap_anon" = yes; then
22273 cat >>confdefs.h <<\_ACEOF
22274#define HAVE_MMAP_ANONYMOUS 1
22275_ACEOF
22276
22277fi
22278
22279echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22280echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22281if test "${ac_cv_type_signal+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22283else
22284 cat >conftest.$ac_ext <<_ACEOF
22285#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022286/* confdefs.h. */
22287_ACEOF
22288cat confdefs.h >>conftest.$ac_ext
22289cat >>conftest.$ac_ext <<_ACEOF
22290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022291#include <sys/types.h>
22292#include <signal.h>
22293#ifdef signal
22294# undef signal
22295#endif
22296#ifdef __cplusplus
22297extern "C" void (*signal (int, void (*)(int)))(int);
22298#else
22299void (*signal ()) ();
22300#endif
22301
John Criswell7a73b802003-06-30 21:59:07 +000022302int
22303main ()
22304{
22305int i;
22306 ;
22307 return 0;
22308}
22309_ACEOF
22310rm -f conftest.$ac_objext
22311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22312 (eval $ac_compile) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } &&
22316 { ac_try='test -s conftest.$ac_objext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_type_signal=void
22323else
22324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022325sed 's/^/| /' conftest.$ac_ext >&5
22326
John Criswell7a73b802003-06-30 21:59:07 +000022327ac_cv_type_signal=int
22328fi
22329rm -f conftest.$ac_objext conftest.$ac_ext
22330fi
22331echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22332echo "${ECHO_T}$ac_cv_type_signal" >&6
22333
22334cat >>confdefs.h <<_ACEOF
22335#define RETSIGTYPE $ac_cv_type_signal
22336_ACEOF
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22349do
22350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22351echo "$as_me:$LINENO: checking for $ac_func" >&5
22352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22353if eval "test \"\${$as_ac_var+set}\" = set"; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22355else
22356 cat >conftest.$ac_ext <<_ACEOF
22357#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022358/* confdefs.h. */
22359_ACEOF
22360cat confdefs.h >>conftest.$ac_ext
22361cat >>conftest.$ac_ext <<_ACEOF
22362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022363/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022364 which can conflict with char $ac_func (); below.
22365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22366 <limits.h> exists even on freestanding compilers. */
22367#ifdef __STDC__
22368# include <limits.h>
22369#else
22370# include <assert.h>
22371#endif
John Criswell7a73b802003-06-30 21:59:07 +000022372/* Override any gcc2 internal prototype to avoid an error. */
22373#ifdef __cplusplus
22374extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022375{
John Criswell7a73b802003-06-30 21:59:07 +000022376#endif
22377/* We use char because int might match the return type of a gcc2
22378 builtin and then its argument prototype would still apply. */
22379char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022380/* The GNU C library defines this for functions which it implements
22381 to always fail with ENOSYS. Some functions are actually named
22382 something starting with __ and the normal name is an alias. */
22383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22384choke me
22385#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022386char (*f) () = $ac_func;
22387#endif
22388#ifdef __cplusplus
22389}
John Criswell7a73b802003-06-30 21:59:07 +000022390#endif
22391
John Criswell0c38eaf2003-09-10 15:17:25 +000022392int
22393main ()
22394{
22395return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022396 ;
22397 return 0;
22398}
22399_ACEOF
22400rm -f conftest.$ac_objext conftest$ac_exeext
22401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22402 (eval $ac_link) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } &&
22406 { ac_try='test -s conftest$ac_exeext'
22407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22408 (eval $ac_try) 2>&5
22409 ac_status=$?
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); }; }; then
22412 eval "$as_ac_var=yes"
22413else
22414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022415sed 's/^/| /' conftest.$ac_ext >&5
22416
John Criswell7a73b802003-06-30 21:59:07 +000022417eval "$as_ac_var=no"
22418fi
22419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22420fi
22421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22423if test `eval echo '${'$as_ac_var'}'` = yes; then
22424 cat >>confdefs.h <<_ACEOF
22425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22426_ACEOF
22427
22428fi
22429done
22430
22431
22432
22433echo "$as_me:$LINENO: checking for mmap" >&5
22434echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22435if test "${ac_cv_func_mmap+set}" = set; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22437else
22438 cat >conftest.$ac_ext <<_ACEOF
22439#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022440/* confdefs.h. */
22441_ACEOF
22442cat confdefs.h >>conftest.$ac_ext
22443cat >>conftest.$ac_ext <<_ACEOF
22444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022445/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022446 which can conflict with char mmap (); below.
22447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22448 <limits.h> exists even on freestanding compilers. */
22449#ifdef __STDC__
22450# include <limits.h>
22451#else
22452# include <assert.h>
22453#endif
John Criswell7a73b802003-06-30 21:59:07 +000022454/* Override any gcc2 internal prototype to avoid an error. */
22455#ifdef __cplusplus
22456extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022457{
John Criswell7a73b802003-06-30 21:59:07 +000022458#endif
22459/* We use char because int might match the return type of a gcc2
22460 builtin and then its argument prototype would still apply. */
22461char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022462/* The GNU C library defines this for functions which it implements
22463 to always fail with ENOSYS. Some functions are actually named
22464 something starting with __ and the normal name is an alias. */
22465#if defined (__stub_mmap) || defined (__stub___mmap)
22466choke me
22467#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022468char (*f) () = mmap;
22469#endif
22470#ifdef __cplusplus
22471}
John Criswell7a73b802003-06-30 21:59:07 +000022472#endif
22473
John Criswell0c38eaf2003-09-10 15:17:25 +000022474int
22475main ()
22476{
22477return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022478 ;
22479 return 0;
22480}
22481_ACEOF
22482rm -f conftest.$ac_objext conftest$ac_exeext
22483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22484 (eval $ac_link) 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } &&
22488 { ac_try='test -s conftest$ac_exeext'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; }; then
22494 ac_cv_func_mmap=yes
22495else
22496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022497sed 's/^/| /' conftest.$ac_ext >&5
22498
John Criswell7a73b802003-06-30 21:59:07 +000022499ac_cv_func_mmap=no
22500fi
22501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22502fi
22503echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22504echo "${ECHO_T}$ac_cv_func_mmap" >&6
22505if test $ac_cv_func_mmap = yes; then
22506 :
22507else
22508 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22509echo "$as_me: error: Function mmap() required but not found" >&2;}
22510 { (exit 1); exit 1; }; }
22511fi
22512
22513echo "$as_me:$LINENO: checking for mprotect" >&5
22514echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22515if test "${ac_cv_func_mprotect+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22517else
22518 cat >conftest.$ac_ext <<_ACEOF
22519#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022520/* confdefs.h. */
22521_ACEOF
22522cat confdefs.h >>conftest.$ac_ext
22523cat >>conftest.$ac_ext <<_ACEOF
22524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022525/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022526 which can conflict with char mprotect (); below.
22527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22528 <limits.h> exists even on freestanding compilers. */
22529#ifdef __STDC__
22530# include <limits.h>
22531#else
22532# include <assert.h>
22533#endif
John Criswell7a73b802003-06-30 21:59:07 +000022534/* Override any gcc2 internal prototype to avoid an error. */
22535#ifdef __cplusplus
22536extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022537{
John Criswell7a73b802003-06-30 21:59:07 +000022538#endif
22539/* We use char because int might match the return type of a gcc2
22540 builtin and then its argument prototype would still apply. */
22541char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022542/* The GNU C library defines this for functions which it implements
22543 to always fail with ENOSYS. Some functions are actually named
22544 something starting with __ and the normal name is an alias. */
22545#if defined (__stub_mprotect) || defined (__stub___mprotect)
22546choke me
22547#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022548char (*f) () = mprotect;
22549#endif
22550#ifdef __cplusplus
22551}
John Criswell7a73b802003-06-30 21:59:07 +000022552#endif
22553
John Criswell0c38eaf2003-09-10 15:17:25 +000022554int
22555main ()
22556{
22557return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022558 ;
22559 return 0;
22560}
22561_ACEOF
22562rm -f conftest.$ac_objext conftest$ac_exeext
22563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22564 (eval $ac_link) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } &&
22568 { ac_try='test -s conftest$ac_exeext'
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; }; then
22574 ac_cv_func_mprotect=yes
22575else
22576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022577sed 's/^/| /' conftest.$ac_ext >&5
22578
John Criswell7a73b802003-06-30 21:59:07 +000022579ac_cv_func_mprotect=no
22580fi
22581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22582fi
22583echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22584echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22585if test $ac_cv_func_mprotect = yes; then
22586 :
22587else
22588 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22589echo "$as_me: error: Function mprotect() required but not found" >&2;}
22590 { (exit 1); exit 1; }; }
22591fi
22592
22593
John Criswellb13092b2003-07-22 21:00:24 +000022594
John Criswell7a73b802003-06-30 21:59:07 +000022595# Check whether --enable-purify or --disable-purify was given.
22596if test "${enable_purify+set}" = set; then
22597 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022598
22599else
John Criswellb13092b2003-07-22 21:00:24 +000022600 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022601fi;
John Criswellb13092b2003-07-22 21:00:24 +000022602if test ${enableval} = "no"
22603then
22604 ENABLE_PURIFY=
22605
22606else
22607 ENABLE_PURIFY=ENABLE_PURIFY=1
22608
22609fi
22610
John Criswell7a73b802003-06-30 21:59:07 +000022611# Check whether --enable-optimized or --disable-optimized was given.
22612if test "${enable_optimized+set}" = set; then
22613 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022614
22615else
John Criswellb13092b2003-07-22 21:00:24 +000022616 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022617fi;
John Criswellb13092b2003-07-22 21:00:24 +000022618if test ${enableval} = "no"
22619then
22620 ENABLE_OPTIMIZED=
22621
22622else
22623 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22624
22625fi
22626
John Criswell7a73b802003-06-30 21:59:07 +000022627# Check whether --enable-spec or --disable-spec was given.
22628if test "${enable_spec+set}" = set; then
22629 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022630
22631else
John Criswellb13092b2003-07-22 21:00:24 +000022632 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022633fi;
John Criswellb13092b2003-07-22 21:00:24 +000022634if test ${enableval} = "no"
22635then
22636 USE_SPEC=
22637
22638else
22639 USE_SPEC=USE_SPEC=1
22640
22641fi
22642
John Criswell7a73b802003-06-30 21:59:07 +000022643# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22644if test "${enable_precompiled_bytecode+set}" = set; then
22645 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022646
22647else
John Criswellb13092b2003-07-22 21:00:24 +000022648 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022649fi;
John Criswellb13092b2003-07-22 21:00:24 +000022650if test ${enableval} = "no"
22651then
22652 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022653
John Criswellb13092b2003-07-22 21:00:24 +000022654else
22655 UPB=USE_PRECOMPILED_BYTECODE=1
22656
22657fi
John Criswellf02dbf02003-07-22 20:07:49 +000022658
22659
22660# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22661if test "${enable_llc_diffs+set}" = set; then
22662 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022663
22664else
John Criswellb13092b2003-07-22 21:00:24 +000022665 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022666fi;
John Criswellb13092b2003-07-22 21:00:24 +000022667if test ${enableval} = "no"
22668then
22669 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022670
John Criswellb13092b2003-07-22 21:00:24 +000022671else
22672 DISABLE_LLC_DIFFS=
22673
22674fi
22675
22676# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022677if test "${enable_jit+set}" = set; then
22678 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022679
22680else
John Criswellc78022e2003-07-29 19:11:58 +000022681 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022682fi;
John Criswellb13092b2003-07-22 21:00:24 +000022683
22684if test ${enableval} = "no"
22685then
22686 JIT=
22687
22688else
John Criswellc78022e2003-07-29 19:11:58 +000022689 case $target in
22690 *i*86*)
22691 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022692
John Criswellc78022e2003-07-29 19:11:58 +000022693 ;;
22694 *sparc*)
22695 JIT=TARGET_HAS_JIT=1
22696
22697 ;;
22698 *)
22699 JIT=
22700
22701 ;;
22702 esac
John Criswellb13092b2003-07-22 21:00:24 +000022703fi
John Criswell7a73b802003-06-30 21:59:07 +000022704
22705
John Criswellc78022e2003-07-29 19:11:58 +000022706
John Criswell7a73b802003-06-30 21:59:07 +000022707# Check whether --with-spec or --without-spec was given.
22708if test "${with_spec+set}" = set; then
22709 withval="$with_spec"
22710 SPEC_ROOT=$withval
22711
22712else
22713 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22714
22715fi;
22716
John Criswellc78022e2003-07-29 19:11:58 +000022717
John Criswell7a73b802003-06-30 21:59:07 +000022718# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22719if test "${with_llvmgccdir+set}" = set; then
22720 withval="$with_llvmgccdir"
22721 LLVMGCCDIR=$withval
22722
22723fi;
22724
John Criswellc78022e2003-07-29 19:11:58 +000022725
John Criswell7a73b802003-06-30 21:59:07 +000022726# Check whether --with-bcrepos or --without-bcrepos was given.
22727if test "${with_bcrepos+set}" = set; then
22728 withval="$with_bcrepos"
22729 BCR=$withval
22730
22731else
22732 BCR=/home/vadve/lattner/LLVMPrograms
22733
22734fi;
22735
John Criswellc78022e2003-07-29 19:11:58 +000022736
John Criswell7a73b802003-06-30 21:59:07 +000022737# Check whether --with-papi or --without-papi was given.
22738if test "${with_papi+set}" = set; then
22739 withval="$with_papi"
22740 PAPIDIR=$withval
22741
22742else
John Criswellde00db22003-08-25 16:49:54 +000022743 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022744
22745fi;
22746
John Criswell7a73b802003-06-30 21:59:07 +000022747
22748# Check whether --with-purify or --without-purify was given.
22749if test "${with_purify+set}" = set; then
22750 withval="$with_purify"
22751 PURIFY=$withval
22752
22753fi;
22754
John Criswellde00db22003-08-25 16:49:54 +000022755
John Criswell0c38eaf2003-09-10 15:17:25 +000022756 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022757cat >confcache <<\_ACEOF
22758# This file is a shell script that caches the results of configure
22759# tests run on this system so they can be shared between configure
22760# scripts and configure runs, see configure's option --config-cache.
22761# It is not useful on other systems. If it contains results you don't
22762# want to keep, you may remove or edit it.
22763#
22764# config.status only pays attention to the cache file if you give it
22765# the --recheck option to rerun configure.
22766#
John Criswell0c38eaf2003-09-10 15:17:25 +000022767# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022768# loading this file, other *unset* `ac_cv_foo' will be assigned the
22769# following values.
22770
22771_ACEOF
22772
22773# The following way of writing the cache mishandles newlines in values,
22774# but we know of no workaround that is simple, portable, and efficient.
22775# So, don't put newlines in cache variables' values.
22776# Ultrix sh set writes to stderr and can't be redirected directly,
22777# and sets the high bit in the cache file unless we assign to the vars.
22778{
22779 (set) 2>&1 |
22780 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22781 *ac_space=\ *)
22782 # `set' does not quote correctly, so add quotes (double-quote
22783 # substitution turns \\\\ into \\, and sed turns \\ into \).
22784 sed -n \
22785 "s/'/'\\\\''/g;
22786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22787 ;;
22788 *)
22789 # `set' quotes correctly as required by POSIX, so do not add quotes.
22790 sed -n \
22791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22792 ;;
22793 esac;
22794} |
22795 sed '
22796 t clear
22797 : clear
22798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22799 t end
22800 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22801 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022802if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022803 if test -w $cache_file; then
22804 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22805 cat confcache >$cache_file
22806 else
22807 echo "not updating unwritable cache $cache_file"
22808 fi
22809fi
22810rm -f confcache
22811
22812test "x$prefix" = xNONE && prefix=$ac_default_prefix
22813# Let make expand exec_prefix.
22814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22815
22816# VPATH may cause trouble with some makes, so we remove $(srcdir),
22817# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22818# trailing colons and then remove the whole line if VPATH becomes empty
22819# (actually we leave an empty line to preserve line numbers).
22820if test "x$srcdir" = x.; then
22821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22822s/:*\$(srcdir):*/:/;
22823s/:*\${srcdir}:*/:/;
22824s/:*@srcdir@:*/:/;
22825s/^\([^=]*=[ ]*\):*/\1/;
22826s/:*$//;
22827s/^[^=]*=[ ]*$//;
22828}'
22829fi
22830
22831DEFS=-DHAVE_CONFIG_H
22832
John Criswell0c38eaf2003-09-10 15:17:25 +000022833ac_libobjs=
22834ac_ltlibobjs=
22835for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22836 # 1. Remove the extension, and $U if already installed.
22837 ac_i=`echo "$ac_i" |
22838 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22839 # 2. Add them.
22840 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22841 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22842done
22843LIBOBJS=$ac_libobjs
22844
22845LTLIBOBJS=$ac_ltlibobjs
22846
22847
John Criswell7a73b802003-06-30 21:59:07 +000022848
22849: ${CONFIG_STATUS=./config.status}
22850ac_clean_files_save=$ac_clean_files
22851ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22852{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22853echo "$as_me: creating $CONFIG_STATUS" >&6;}
22854cat >$CONFIG_STATUS <<_ACEOF
22855#! $SHELL
22856# Generated by $as_me.
22857# Run this file to recreate the current configuration.
22858# Compiler output produced by configure, useful for debugging
22859# configure, is in config.log if it exists.
22860
22861debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022862ac_cs_recheck=false
22863ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022864SHELL=\${CONFIG_SHELL-$SHELL}
22865_ACEOF
22866
22867cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022868## --------------------- ##
22869## M4sh Initialization. ##
22870## --------------------- ##
22871
22872# Be Bourne compatible
22873if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22874 emulate sh
22875 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022876 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22877 # is contrary to our usage. Disable this feature.
22878 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022879elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22880 set -o posix
22881fi
22882
John Criswell7a73b802003-06-30 21:59:07 +000022883# Support unset when possible.
22884if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22885 as_unset=unset
22886else
22887 as_unset=false
22888fi
22889
John Criswell0c38eaf2003-09-10 15:17:25 +000022890
22891# Work around bugs in pre-3.0 UWIN ksh.
22892$as_unset ENV MAIL MAILPATH
22893PS1='$ '
22894PS2='> '
22895PS4='+ '
22896
22897# NLS nuisances.
22898for as_var in \
22899 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22900 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22901 LC_TELEPHONE LC_TIME
22902do
22903 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22904 eval $as_var=C; export $as_var
22905 else
22906 $as_unset $as_var
22907 fi
22908done
22909
22910# Required to use basename.
22911if expr a : '\(a\)' >/dev/null 2>&1; then
22912 as_expr=expr
22913else
22914 as_expr=false
22915fi
22916
22917if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22918 as_basename=basename
22919else
22920 as_basename=false
22921fi
John Criswell7a73b802003-06-30 21:59:07 +000022922
22923
22924# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022925as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022926$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22927 X"$0" : 'X\(//\)$' \| \
22928 X"$0" : 'X\(/\)$' \| \
22929 . : '\(.\)' 2>/dev/null ||
22930echo X/"$0" |
22931 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22932 /^X\/\(\/\/\)$/{ s//\1/; q; }
22933 /^X\/\(\/\).*/{ s//\1/; q; }
22934 s/.*/./; q'`
22935
John Criswell0c38eaf2003-09-10 15:17:25 +000022936
John Criswell7a73b802003-06-30 21:59:07 +000022937# PATH needs CR, and LINENO needs CR and PATH.
22938# Avoid depending upon Character Ranges.
22939as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22940as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22941as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22942as_cr_digits='0123456789'
22943as_cr_alnum=$as_cr_Letters$as_cr_digits
22944
22945# The user is always right.
22946if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022947 echo "#! /bin/sh" >conf$$.sh
22948 echo "exit 0" >>conf$$.sh
22949 chmod +x conf$$.sh
22950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022951 PATH_SEPARATOR=';'
22952 else
22953 PATH_SEPARATOR=:
22954 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022955 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022956fi
22957
22958
22959 as_lineno_1=$LINENO
22960 as_lineno_2=$LINENO
22961 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22962 test "x$as_lineno_1" != "x$as_lineno_2" &&
22963 test "x$as_lineno_3" = "x$as_lineno_2" || {
22964 # Find who we are. Look in the path if we contain no path at all
22965 # relative or not.
22966 case $0 in
22967 *[\\/]* ) as_myself=$0 ;;
22968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22969for as_dir in $PATH
22970do
22971 IFS=$as_save_IFS
22972 test -z "$as_dir" && as_dir=.
22973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22974done
22975
22976 ;;
22977 esac
22978 # We did not find ourselves, most probably we were run as `sh COMMAND'
22979 # in which case we are not to be found in the path.
22980 if test "x$as_myself" = x; then
22981 as_myself=$0
22982 fi
22983 if test ! -f "$as_myself"; then
22984 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22985echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22986 { (exit 1); exit 1; }; }
22987 fi
22988 case $CONFIG_SHELL in
22989 '')
22990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22991for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22992do
22993 IFS=$as_save_IFS
22994 test -z "$as_dir" && as_dir=.
22995 for as_base in sh bash ksh sh5; do
22996 case $as_dir in
22997 /*)
22998 if ("$as_dir/$as_base" -c '
22999 as_lineno_1=$LINENO
23000 as_lineno_2=$LINENO
23001 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23002 test "x$as_lineno_1" != "x$as_lineno_2" &&
23003 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023004 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23005 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023006 CONFIG_SHELL=$as_dir/$as_base
23007 export CONFIG_SHELL
23008 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23009 fi;;
23010 esac
23011 done
23012done
23013;;
23014 esac
23015
23016 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23017 # uniformly replaced by the line number. The first 'sed' inserts a
23018 # line-number line before each line; the second 'sed' does the real
23019 # work. The second script uses 'N' to pair each line-number line
23020 # with the numbered line, and appends trailing '-' during
23021 # substitution so that $LINENO is not a special case at line end.
23022 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23023 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23024 sed '=' <$as_myself |
23025 sed '
23026 N
23027 s,$,-,
23028 : loop
23029 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23030 t loop
23031 s,-$,,
23032 s,^['$as_cr_digits']*\n,,
23033 ' >$as_me.lineno &&
23034 chmod +x $as_me.lineno ||
23035 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23036echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23037 { (exit 1); exit 1; }; }
23038
23039 # Don't try to exec as it changes $[0], causing all sort of problems
23040 # (the dirname of $[0] is not the place where we might find the
23041 # original and so on. Autoconf is especially sensible to this).
23042 . ./$as_me.lineno
23043 # Exit status is that of the last command.
23044 exit
23045}
23046
23047
23048case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23049 *c*,-n*) ECHO_N= ECHO_C='
23050' ECHO_T=' ' ;;
23051 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23052 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23053esac
23054
23055if expr a : '\(a\)' >/dev/null 2>&1; then
23056 as_expr=expr
23057else
23058 as_expr=false
23059fi
23060
23061rm -f conf$$ conf$$.exe conf$$.file
23062echo >conf$$.file
23063if ln -s conf$$.file conf$$ 2>/dev/null; then
23064 # We could just check for DJGPP; but this test a) works b) is more generic
23065 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23066 if test -f conf$$.exe; then
23067 # Don't use ln at all; we don't have any links
23068 as_ln_s='cp -p'
23069 else
23070 as_ln_s='ln -s'
23071 fi
23072elif ln conf$$.file conf$$ 2>/dev/null; then
23073 as_ln_s=ln
23074else
23075 as_ln_s='cp -p'
23076fi
23077rm -f conf$$ conf$$.exe conf$$.file
23078
John Criswell0c38eaf2003-09-10 15:17:25 +000023079if mkdir -p . 2>/dev/null; then
23080 as_mkdir_p=:
23081else
23082 as_mkdir_p=false
23083fi
23084
John Criswell7a73b802003-06-30 21:59:07 +000023085as_executable_p="test -f"
23086
23087# Sed expression to map a string onto a valid CPP name.
23088as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23089
23090# Sed expression to map a string onto a valid variable name.
23091as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23092
23093
23094# IFS
23095# We need space, tab and new line, in precisely that order.
23096as_nl='
23097'
23098IFS=" $as_nl"
23099
23100# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023101$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023102
23103exec 6>&1
23104
23105# Open the log real soon, to keep \$[0] and so on meaningful, and to
23106# report actual input values of CONFIG_FILES etc. instead of their
23107# values after options handling. Logging --version etc. is OK.
23108exec 5>>config.log
23109{
23110 echo
23111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23112## Running $as_me. ##
23113_ASBOX
23114} >&5
23115cat >&5 <<_CSEOF
23116
23117This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023118generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023119
23120 CONFIG_FILES = $CONFIG_FILES
23121 CONFIG_HEADERS = $CONFIG_HEADERS
23122 CONFIG_LINKS = $CONFIG_LINKS
23123 CONFIG_COMMANDS = $CONFIG_COMMANDS
23124 $ $0 $@
23125
23126_CSEOF
23127echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23128echo >&5
23129_ACEOF
23130
23131# Files that config.status was made for.
23132if test -n "$ac_config_files"; then
23133 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23134fi
23135
23136if test -n "$ac_config_headers"; then
23137 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23138fi
23139
23140if test -n "$ac_config_links"; then
23141 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23142fi
23143
23144if test -n "$ac_config_commands"; then
23145 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23146fi
23147
23148cat >>$CONFIG_STATUS <<\_ACEOF
23149
23150ac_cs_usage="\
23151\`$as_me' instantiates files from templates according to the
23152current configuration.
23153
23154Usage: $0 [OPTIONS] [FILE]...
23155
23156 -h, --help print this help, then exit
23157 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023158 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023159 -d, --debug don't remove temporary files
23160 --recheck update $as_me by reconfiguring in the same conditions
23161 --file=FILE[:TEMPLATE]
23162 instantiate the configuration file FILE
23163 --header=FILE[:TEMPLATE]
23164 instantiate the configuration header FILE
23165
23166Configuration files:
23167$config_files
23168
23169Configuration headers:
23170$config_headers
23171
John Criswellc764fbc2003-09-06 15:17:13 +000023172Configuration commands:
23173$config_commands
23174
John Criswell7a73b802003-06-30 21:59:07 +000023175Report bugs to <bug-autoconf@gnu.org>."
23176_ACEOF
23177
23178cat >>$CONFIG_STATUS <<_ACEOF
23179ac_cs_version="\\
23180[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023181configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023182 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23183
23184Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23185Free Software Foundation, Inc.
23186This config.status script is free software; the Free Software Foundation
23187gives unlimited permission to copy, distribute and modify it."
23188srcdir=$srcdir
23189INSTALL="$INSTALL"
23190_ACEOF
23191
23192cat >>$CONFIG_STATUS <<\_ACEOF
23193# If no file are specified by the user, then we need to provide default
23194# value. By we need to know if files were specified by the user.
23195ac_need_defaults=:
23196while test $# != 0
23197do
23198 case $1 in
23199 --*=*)
23200 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23201 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023202 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023203 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023204 -*)
23205 ac_option=$1
23206 ac_optarg=$2
23207 ac_shift=shift
23208 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023209 *) # This is not an option, so the user has probably given explicit
23210 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023211 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023212 ac_need_defaults=false;;
23213 esac
23214
John Criswell0c38eaf2003-09-10 15:17:25 +000023215 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023216 # Handling of the options.
23217_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023218cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23220 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023221 --version | --vers* | -V )
23222 echo "$ac_cs_version"; exit 0 ;;
23223 --he | --h)
23224 # Conflict between --help and --header
23225 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23226Try \`$0 --help' for more information." >&5
23227echo "$as_me: error: ambiguous option: $1
23228Try \`$0 --help' for more information." >&2;}
23229 { (exit 1); exit 1; }; };;
23230 --help | --hel | -h )
23231 echo "$ac_cs_usage"; exit 0 ;;
23232 --debug | --d* | -d )
23233 debug=: ;;
23234 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023235 $ac_shift
23236 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023237 ac_need_defaults=false;;
23238 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023239 $ac_shift
23240 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023241 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23243 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23244 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023245
23246 # This is an error.
23247 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23248Try \`$0 --help' for more information." >&5
23249echo "$as_me: error: unrecognized option: $1
23250Try \`$0 --help' for more information." >&2;}
23251 { (exit 1); exit 1; }; } ;;
23252
23253 *) ac_config_targets="$ac_config_targets $1" ;;
23254
23255 esac
23256 shift
23257done
23258
John Criswell0c38eaf2003-09-10 15:17:25 +000023259ac_configure_extra_args=
23260
23261if $ac_cs_silent; then
23262 exec 6>/dev/null
23263 ac_configure_extra_args="$ac_configure_extra_args --silent"
23264fi
23265
23266_ACEOF
23267cat >>$CONFIG_STATUS <<_ACEOF
23268if \$ac_cs_recheck; then
23269 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23270 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23271fi
23272
John Criswell7a73b802003-06-30 21:59:07 +000023273_ACEOF
23274
John Criswellc764fbc2003-09-06 15:17:13 +000023275cat >>$CONFIG_STATUS <<_ACEOF
23276#
23277# INIT-COMMANDS section.
23278#
John Criswell7a73b802003-06-30 21:59:07 +000023279
John Criswellc764fbc2003-09-06 15:17:13 +000023280${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23281${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23282${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23283${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23284${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23285${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23286${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23287${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23288${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23289${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23290${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23296${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023297${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23301${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23307${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23311${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23316${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23317${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023318${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/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`
John Criswellc764fbc2003-09-06 15:17:13 +000023424${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023425${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023434${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023435${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23444${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23445${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23451${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23453
23454_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023455
23456
23457
23458cat >>$CONFIG_STATUS <<\_ACEOF
23459for ac_config_target in $ac_config_targets
23460do
23461 case "$ac_config_target" in
23462 # Handling of arguments.
23463 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023464 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23465 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23466 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23467 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23468 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23469 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23470 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23471 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23472 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23473 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23474 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23475 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23476 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23477 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23478 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23479 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23480 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023481 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23482 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23483 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23484 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23485 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23486 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23487 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23488 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23489 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23490 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23491 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23492 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23493 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23494 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23495 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23496 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23497 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23498 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23499 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23500 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23501 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023502 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023503 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23504 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23505 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23506 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023507 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023508 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023509 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23510 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023511 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23512 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23513 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23514 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23515 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23516 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23517 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23518 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23519 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23520 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23521 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23522 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23523 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23524 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23525 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23526 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23527 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23528 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23529 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23530 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23531 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23532 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023533 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023534 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23535 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23536 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23537 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23538 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23539 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23540 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23541 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23542 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23543 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23544 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23545 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23546 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23547 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23548 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23549 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23550 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23551 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023552 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23553 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023554 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23555 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023556 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23557 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23558 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23559 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23560 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23561 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23562 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23563 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23564 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23565 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23566 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23567 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23568 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23569 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23570 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23571 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23572 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23573 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23574 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23575 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23576 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23577 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23578 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23579 "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 +000023580 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023581 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23582 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23583 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23584 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23585 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23586 "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 +000023587 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023588 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023589 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23590 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23591 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23592 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23593 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023594 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23595 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23596 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023597 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23598 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23599 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23600 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23601 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23602 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023603 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023604 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023605 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023606 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23607 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023608 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023609 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23610 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23611 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23612 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23613 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23614 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23615 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23616 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswell3b195522003-09-15 14:25:08 +000023617 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023618 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023619 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23620 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23621 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23622 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23623 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23624 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23625 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23626 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23627 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23628 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23629 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23630 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23631 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23632 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23633 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23634 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23635 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23636 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023637 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23638 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23639echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23640 { (exit 1); exit 1; }; };;
23641 esac
23642done
23643
23644# If the user did not use the arguments to specify the items to instantiate,
23645# then the envvar interface is used. Set only those that are not.
23646# We use the long form for the default assignment because of an extremely
23647# bizarre bug on SunOS 4.1.3.
23648if $ac_need_defaults; then
23649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023652fi
23653
John Criswell0c38eaf2003-09-10 15:17:25 +000023654# Have a temporary directory for convenience. Make it in the build tree
23655# simply because there is no reason to put it here, and in addition,
23656# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023657# Create a temporary directory, and hook for its removal unless debugging.
23658$debug ||
23659{
23660 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23661 trap '{ (exit 1); exit 1; }' 1 2 13 15
23662}
23663
23664# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023665
John Criswell7a73b802003-06-30 21:59:07 +000023666{
John Criswell0c38eaf2003-09-10 15:17:25 +000023667 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023668 test -n "$tmp" && test -d "$tmp"
23669} ||
23670{
John Criswell0c38eaf2003-09-10 15:17:25 +000023671 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023672 (umask 077 && mkdir $tmp)
23673} ||
23674{
John Criswell0c38eaf2003-09-10 15:17:25 +000023675 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023676 { (exit 1); exit 1; }
23677}
23678
23679_ACEOF
23680
23681cat >>$CONFIG_STATUS <<_ACEOF
23682
23683#
23684# CONFIG_FILES section.
23685#
23686
23687# No need to generate the scripts if there are no CONFIG_FILES.
23688# This happens for instance when ./config.status config.h
23689if test -n "\$CONFIG_FILES"; then
23690 # Protect against being on the right side of a sed subst in config.status.
23691 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23692 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23693s,@SHELL@,$SHELL,;t t
23694s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23695s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23696s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23697s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23698s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23699s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23700s,@exec_prefix@,$exec_prefix,;t t
23701s,@prefix@,$prefix,;t t
23702s,@program_transform_name@,$program_transform_name,;t t
23703s,@bindir@,$bindir,;t t
23704s,@sbindir@,$sbindir,;t t
23705s,@libexecdir@,$libexecdir,;t t
23706s,@datadir@,$datadir,;t t
23707s,@sysconfdir@,$sysconfdir,;t t
23708s,@sharedstatedir@,$sharedstatedir,;t t
23709s,@localstatedir@,$localstatedir,;t t
23710s,@libdir@,$libdir,;t t
23711s,@includedir@,$includedir,;t t
23712s,@oldincludedir@,$oldincludedir,;t t
23713s,@infodir@,$infodir,;t t
23714s,@mandir@,$mandir,;t t
23715s,@build_alias@,$build_alias,;t t
23716s,@host_alias@,$host_alias,;t t
23717s,@target_alias@,$target_alias,;t t
23718s,@DEFS@,$DEFS,;t t
23719s,@ECHO_C@,$ECHO_C,;t t
23720s,@ECHO_N@,$ECHO_N,;t t
23721s,@ECHO_T@,$ECHO_T,;t t
23722s,@LIBS@,$LIBS,;t t
23723s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23724s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23725s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23726s,@build@,$build,;t t
23727s,@build_cpu@,$build_cpu,;t t
23728s,@build_vendor@,$build_vendor,;t t
23729s,@build_os@,$build_os,;t t
23730s,@host@,$host,;t t
23731s,@host_cpu@,$host_cpu,;t t
23732s,@host_vendor@,$host_vendor,;t t
23733s,@host_os@,$host_os,;t t
23734s,@target@,$target,;t t
23735s,@target_cpu@,$target_cpu,;t t
23736s,@target_vendor@,$target_vendor,;t t
23737s,@target_os@,$target_os,;t t
23738s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023739s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023740s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023741s,@CXX@,$CXX,;t t
23742s,@CXXFLAGS@,$CXXFLAGS,;t t
23743s,@LDFLAGS@,$LDFLAGS,;t t
23744s,@CPPFLAGS@,$CPPFLAGS,;t t
23745s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23746s,@EXEEXT@,$EXEEXT,;t t
23747s,@OBJEXT@,$OBJEXT,;t t
23748s,@CC@,$CC,;t t
23749s,@CFLAGS@,$CFLAGS,;t t
23750s,@ac_ct_CC@,$ac_ct_CC,;t t
23751s,@CPP@,$CPP,;t t
23752s,@ifGNUmake@,$ifGNUmake,;t t
23753s,@LEX@,$LEX,;t t
23754s,@LEXLIB@,$LEXLIB,;t t
23755s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23756s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023757s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023758s,@LN_S@,$LN_S,;t t
23759s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023760s,@AR@,$AR,;t t
23761s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023762s,@RANLIB@,$RANLIB,;t t
23763s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23764s,@STRIP@,$STRIP,;t t
23765s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023766s,@CXXCPP@,$CXXCPP,;t t
23767s,@F77@,$F77,;t t
23768s,@FFLAGS@,$FFLAGS,;t t
23769s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023770s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023771s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023772s,@SED@,$SED,;t t
23773s,@RM@,$RM,;t t
23774s,@MKDIR@,$MKDIR,;t t
23775s,@DATE@,$DATE,;t t
23776s,@MV@,$MV,;t t
23777s,@DOT@,$DOT,;t t
23778s,@ETAGS@,$ETAGS,;t t
23779s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023780s,@PYTHON@,$PYTHON,;t t
23781s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023782s,@ALLOCA@,$ALLOCA,;t t
23783s,@LIBOBJS@,$LIBOBJS,;t t
23784s,@MMAP_FILE@,$MMAP_FILE,;t t
23785s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023786s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23787s,@USE_SPEC@,$USE_SPEC,;t t
23788s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023789s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023790s,@JIT@,$JIT,;t t
23791s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23792s,@BCR@,$BCR,;t t
23793s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023794s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023795CEOF
23796
23797_ACEOF
23798
23799 cat >>$CONFIG_STATUS <<\_ACEOF
23800 # Split the substitutions into bite-sized pieces for seds with
23801 # small command number limits, like on Digital OSF/1 and HP-UX.
23802 ac_max_sed_lines=48
23803 ac_sed_frag=1 # Number of current file.
23804 ac_beg=1 # First line for current file.
23805 ac_end=$ac_max_sed_lines # Line after last line for current file.
23806 ac_more_lines=:
23807 ac_sed_cmds=
23808 while $ac_more_lines; do
23809 if test $ac_beg -gt 1; then
23810 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23811 else
23812 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23813 fi
23814 if test ! -s $tmp/subs.frag; then
23815 ac_more_lines=false
23816 else
23817 # The purpose of the label and of the branching condition is to
23818 # speed up the sed processing (if there are no `@' at all, there
23819 # is no need to browse any of the substitutions).
23820 # These are the two extra sed commands mentioned above.
23821 (echo ':t
23822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23823 if test -z "$ac_sed_cmds"; then
23824 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23825 else
23826 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23827 fi
23828 ac_sed_frag=`expr $ac_sed_frag + 1`
23829 ac_beg=$ac_end
23830 ac_end=`expr $ac_end + $ac_max_sed_lines`
23831 fi
23832 done
23833 if test -z "$ac_sed_cmds"; then
23834 ac_sed_cmds=cat
23835 fi
23836fi # test -n "$CONFIG_FILES"
23837
23838_ACEOF
23839cat >>$CONFIG_STATUS <<\_ACEOF
23840for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23841 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23842 case $ac_file in
23843 - | *:- | *:-:* ) # input from stdin
23844 cat >$tmp/stdin
23845 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23847 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23849 * ) ac_file_in=$ac_file.in ;;
23850 esac
23851
23852 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23853 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23854$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23855 X"$ac_file" : 'X\(//\)[^/]' \| \
23856 X"$ac_file" : 'X\(//\)$' \| \
23857 X"$ac_file" : 'X\(/\)' \| \
23858 . : '\(.\)' 2>/dev/null ||
23859echo X"$ac_file" |
23860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23862 /^X\(\/\/\)$/{ s//\1/; q; }
23863 /^X\(\/\).*/{ s//\1/; q; }
23864 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023865 { if $as_mkdir_p; then
23866 mkdir -p "$ac_dir"
23867 else
23868 as_dir="$ac_dir"
23869 as_dirs=
23870 while test ! -d "$as_dir"; do
23871 as_dirs="$as_dir $as_dirs"
23872 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23873$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23874 X"$as_dir" : 'X\(//\)[^/]' \| \
23875 X"$as_dir" : 'X\(//\)$' \| \
23876 X"$as_dir" : 'X\(/\)' \| \
23877 . : '\(.\)' 2>/dev/null ||
23878echo X"$as_dir" |
23879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23881 /^X\(\/\/\)$/{ s//\1/; q; }
23882 /^X\(\/\).*/{ s//\1/; q; }
23883 s/.*/./; q'`
23884 done
23885 test ! -n "$as_dirs" || mkdir $as_dirs
23886 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23887echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23888 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023889
23890 ac_builddir=.
23891
23892if test "$ac_dir" != .; then
23893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23894 # A "../" for each directory in $ac_dir_suffix.
23895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23896else
23897 ac_dir_suffix= ac_top_builddir=
23898fi
23899
23900case $srcdir in
23901 .) # No --srcdir option. We are building in place.
23902 ac_srcdir=.
23903 if test -z "$ac_top_builddir"; then
23904 ac_top_srcdir=.
23905 else
23906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23907 fi ;;
23908 [\\/]* | ?:[\\/]* ) # Absolute path.
23909 ac_srcdir=$srcdir$ac_dir_suffix;
23910 ac_top_srcdir=$srcdir ;;
23911 *) # Relative path.
23912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23914esac
23915# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23916# absolute.
23917ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023918ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023919ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23920ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23921
23922
23923 case $INSTALL in
23924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23925 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23926 esac
23927
23928 if test x"$ac_file" != x-; then
23929 { echo "$as_me:$LINENO: creating $ac_file" >&5
23930echo "$as_me: creating $ac_file" >&6;}
23931 rm -f "$ac_file"
23932 fi
23933 # Let's still pretend it is `configure' which instantiates (i.e., don't
23934 # use $as_me), people would be surprised to read:
23935 # /* config.h. Generated by config.status. */
23936 if test x"$ac_file" = x-; then
23937 configure_input=
23938 else
23939 configure_input="$ac_file. "
23940 fi
23941 configure_input=$configure_input"Generated from `echo $ac_file_in |
23942 sed 's,.*/,,'` by configure."
23943
23944 # First look for the input files in the build tree, otherwise in the
23945 # src tree.
23946 ac_file_inputs=`IFS=:
23947 for f in $ac_file_in; do
23948 case $f in
23949 -) echo $tmp/stdin ;;
23950 [\\/$]*)
23951 # Absolute (can't be DOS-style, as IFS=:)
23952 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23953echo "$as_me: error: cannot find input file: $f" >&2;}
23954 { (exit 1); exit 1; }; }
23955 echo $f;;
23956 *) # Relative
23957 if test -f "$f"; then
23958 # Build tree
23959 echo $f
23960 elif test -f "$srcdir/$f"; then
23961 # Source tree
23962 echo $srcdir/$f
23963 else
23964 # /dev/null tree
23965 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23966echo "$as_me: error: cannot find input file: $f" >&2;}
23967 { (exit 1); exit 1; }; }
23968 fi;;
23969 esac
23970 done` || { (exit 1); exit 1; }
23971_ACEOF
23972cat >>$CONFIG_STATUS <<_ACEOF
23973 sed "$ac_vpsub
23974$extrasub
23975_ACEOF
23976cat >>$CONFIG_STATUS <<\_ACEOF
23977:t
23978/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23979s,@configure_input@,$configure_input,;t t
23980s,@srcdir@,$ac_srcdir,;t t
23981s,@abs_srcdir@,$ac_abs_srcdir,;t t
23982s,@top_srcdir@,$ac_top_srcdir,;t t
23983s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23984s,@builddir@,$ac_builddir,;t t
23985s,@abs_builddir@,$ac_abs_builddir,;t t
23986s,@top_builddir@,$ac_top_builddir,;t t
23987s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23988s,@INSTALL@,$ac_INSTALL,;t t
23989" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23990 rm -f $tmp/stdin
23991 if test x"$ac_file" != x-; then
23992 mv $tmp/out $ac_file
23993 else
23994 cat $tmp/out
23995 rm -f $tmp/out
23996 fi
23997
23998done
23999_ACEOF
24000cat >>$CONFIG_STATUS <<\_ACEOF
24001
24002#
24003# CONFIG_HEADER section.
24004#
24005
24006# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24007# NAME is the cpp macro being defined and VALUE is the value it is being given.
24008#
24009# ac_d sets the value in "#define NAME VALUE" lines.
24010ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24011ac_dB='[ ].*$,\1#\2'
24012ac_dC=' '
24013ac_dD=',;t'
24014# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24015ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24016ac_uB='$,\1#\2define\3'
24017ac_uC=' '
24018ac_uD=',;t'
24019
24020for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24021 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24022 case $ac_file in
24023 - | *:- | *:-:* ) # input from stdin
24024 cat >$tmp/stdin
24025 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24027 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24028 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24029 * ) ac_file_in=$ac_file.in ;;
24030 esac
24031
24032 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24033echo "$as_me: creating $ac_file" >&6;}
24034
24035 # First look for the input files in the build tree, otherwise in the
24036 # src tree.
24037 ac_file_inputs=`IFS=:
24038 for f in $ac_file_in; do
24039 case $f in
24040 -) echo $tmp/stdin ;;
24041 [\\/$]*)
24042 # Absolute (can't be DOS-style, as IFS=:)
24043 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24044echo "$as_me: error: cannot find input file: $f" >&2;}
24045 { (exit 1); exit 1; }; }
24046 echo $f;;
24047 *) # Relative
24048 if test -f "$f"; then
24049 # Build tree
24050 echo $f
24051 elif test -f "$srcdir/$f"; then
24052 # Source tree
24053 echo $srcdir/$f
24054 else
24055 # /dev/null tree
24056 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24057echo "$as_me: error: cannot find input file: $f" >&2;}
24058 { (exit 1); exit 1; }; }
24059 fi;;
24060 esac
24061 done` || { (exit 1); exit 1; }
24062 # Remove the trailing spaces.
24063 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24064
24065_ACEOF
24066
24067# Transform confdefs.h into two sed scripts, `conftest.defines' and
24068# `conftest.undefs', that substitutes the proper values into
24069# config.h.in to produce config.h. The first handles `#define'
24070# templates, and the second `#undef' templates.
24071# And first: Protect against being on the right side of a sed subst in
24072# config.status. Protect against being in an unquoted here document
24073# in config.status.
24074rm -f conftest.defines conftest.undefs
24075# Using a here document instead of a string reduces the quoting nightmare.
24076# Putting comments in sed scripts is not portable.
24077#
24078# `end' is used to avoid that the second main sed command (meant for
24079# 0-ary CPP macros) applies to n-ary macro definitions.
24080# See the Autoconf documentation for `clear'.
24081cat >confdef2sed.sed <<\_ACEOF
24082s/[\\&,]/\\&/g
24083s,[\\$`],\\&,g
24084t clear
24085: clear
24086s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24087t end
24088s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24089: end
24090_ACEOF
24091# If some macros were called several times there might be several times
24092# the same #defines, which is useless. Nevertheless, we may not want to
24093# sort them, since we want the *last* AC-DEFINE to be honored.
24094uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24095sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24096rm -f confdef2sed.sed
24097
24098# This sed command replaces #undef with comments. This is necessary, for
24099# example, in the case of _POSIX_SOURCE, which is predefined and required
24100# on some systems where configure will not decide to define it.
24101cat >>conftest.undefs <<\_ACEOF
24102s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24103_ACEOF
24104
24105# Break up conftest.defines because some shells have a limit on the size
24106# of here documents, and old seds have small limits too (100 cmds).
24107echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024108echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024109echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24110echo ' :' >>$CONFIG_STATUS
24111rm -f conftest.tail
24112while grep . conftest.defines >/dev/null
24113do
24114 # Write a limited-size here document to $tmp/defines.sed.
24115 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24116 # Speed up: don't consider the non `#define' lines.
24117 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24118 # Work around the forget-to-reset-the-flag bug.
24119 echo 't clr' >>$CONFIG_STATUS
24120 echo ': clr' >>$CONFIG_STATUS
24121 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24122 echo 'CEOF
24123 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24124 rm -f $tmp/in
24125 mv $tmp/out $tmp/in
24126' >>$CONFIG_STATUS
24127 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24128 rm -f conftest.defines
24129 mv conftest.tail conftest.defines
24130done
24131rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024132echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024133echo >>$CONFIG_STATUS
24134
24135# Break up conftest.undefs because some shells have a limit on the size
24136# of here documents, and old seds have small limits too (100 cmds).
24137echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24138rm -f conftest.tail
24139while grep . conftest.undefs >/dev/null
24140do
24141 # Write a limited-size here document to $tmp/undefs.sed.
24142 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24143 # Speed up: don't consider the non `#undef'
24144 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24145 # Work around the forget-to-reset-the-flag bug.
24146 echo 't clr' >>$CONFIG_STATUS
24147 echo ': clr' >>$CONFIG_STATUS
24148 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24149 echo 'CEOF
24150 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24151 rm -f $tmp/in
24152 mv $tmp/out $tmp/in
24153' >>$CONFIG_STATUS
24154 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24155 rm -f conftest.undefs
24156 mv conftest.tail conftest.undefs
24157done
24158rm -f conftest.undefs
24159
24160cat >>$CONFIG_STATUS <<\_ACEOF
24161 # Let's still pretend it is `configure' which instantiates (i.e., don't
24162 # use $as_me), people would be surprised to read:
24163 # /* config.h. Generated by config.status. */
24164 if test x"$ac_file" = x-; then
24165 echo "/* Generated by configure. */" >$tmp/config.h
24166 else
24167 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24168 fi
24169 cat $tmp/in >>$tmp/config.h
24170 rm -f $tmp/in
24171 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024172 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024173 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24174echo "$as_me: $ac_file is unchanged" >&6;}
24175 else
24176 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24177$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24178 X"$ac_file" : 'X\(//\)[^/]' \| \
24179 X"$ac_file" : 'X\(//\)$' \| \
24180 X"$ac_file" : 'X\(/\)' \| \
24181 . : '\(.\)' 2>/dev/null ||
24182echo X"$ac_file" |
24183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24185 /^X\(\/\/\)$/{ s//\1/; q; }
24186 /^X\(\/\).*/{ s//\1/; q; }
24187 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024188 { if $as_mkdir_p; then
24189 mkdir -p "$ac_dir"
24190 else
24191 as_dir="$ac_dir"
24192 as_dirs=
24193 while test ! -d "$as_dir"; do
24194 as_dirs="$as_dir $as_dirs"
24195 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24197 X"$as_dir" : 'X\(//\)[^/]' \| \
24198 X"$as_dir" : 'X\(//\)$' \| \
24199 X"$as_dir" : 'X\(/\)' \| \
24200 . : '\(.\)' 2>/dev/null ||
24201echo X"$as_dir" |
24202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24204 /^X\(\/\/\)$/{ s//\1/; q; }
24205 /^X\(\/\).*/{ s//\1/; q; }
24206 s/.*/./; q'`
24207 done
24208 test ! -n "$as_dirs" || mkdir $as_dirs
24209 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24210echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24211 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024212
24213 rm -f $ac_file
24214 mv $tmp/config.h $ac_file
24215 fi
24216 else
24217 cat $tmp/config.h
24218 rm -f $tmp/config.h
24219 fi
24220done
24221_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024222cat >>$CONFIG_STATUS <<\_ACEOF
24223
24224#
24225# CONFIG_COMMANDS section.
24226#
24227for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24228 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24229 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24230 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24231$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24232 X"$ac_dest" : 'X\(//\)[^/]' \| \
24233 X"$ac_dest" : 'X\(//\)$' \| \
24234 X"$ac_dest" : 'X\(/\)' \| \
24235 . : '\(.\)' 2>/dev/null ||
24236echo X"$ac_dest" |
24237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24239 /^X\(\/\/\)$/{ s//\1/; q; }
24240 /^X\(\/\).*/{ s//\1/; q; }
24241 s/.*/./; q'`
24242 ac_builddir=.
24243
24244if test "$ac_dir" != .; then
24245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24246 # A "../" for each directory in $ac_dir_suffix.
24247 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24248else
24249 ac_dir_suffix= ac_top_builddir=
24250fi
24251
24252case $srcdir in
24253 .) # No --srcdir option. We are building in place.
24254 ac_srcdir=.
24255 if test -z "$ac_top_builddir"; then
24256 ac_top_srcdir=.
24257 else
24258 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24259 fi ;;
24260 [\\/]* | ?:[\\/]* ) # Absolute path.
24261 ac_srcdir=$srcdir$ac_dir_suffix;
24262 ac_top_srcdir=$srcdir ;;
24263 *) # Relative path.
24264 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24265 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24266esac
24267# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24268# absolute.
24269ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024270ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024271ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24272ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24273
24274
24275 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24276echo "$as_me: executing $ac_dest commands" >&6;}
24277 case $ac_dest in
24278 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24279 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24280 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24281 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24282 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24283 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24284 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24285 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24286 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24287 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24288 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24289 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24290 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24291 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24292 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24293 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24294 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 +000024295 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24296 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24297 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24298 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24299 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24300 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24301 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24302 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24303 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24304 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24305 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24306 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24307 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24308 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24309 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24310 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24311 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24312 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24313 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24314 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24315 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 +000024316 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024317 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24318 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24319 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24320 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 +000024321 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 +000024322 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 +000024323 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24324 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 +000024325 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24326 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24327 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24328 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24329 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24330 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24331 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24332 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24333 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24334 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24335 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24336 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24337 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24338 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24339 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24340 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24341 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24342 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24343 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24344 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24345 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24346 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 +000024347 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 +000024348 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 ;;
24349 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 ;;
24350 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 ;;
24351 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 ;;
24352 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 ;;
24353 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 ;;
24354 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 ;;
24355 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 ;;
24356 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 ;;
24357 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 ;;
24358 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 ;;
24359 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 ;;
24360 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 ;;
24361 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 ;;
24362 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 ;;
24363 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24364 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24365 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 +000024366 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24367 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 +000024368 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 ;;
24369 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 +000024370 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24371 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 ;;
24372 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 ;;
24373 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 ;;
24374 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 ;;
24375 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 ;;
24376 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 ;;
24377 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 ;;
24378 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 ;;
24379 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 ;;
24380 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 ;;
24381 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 ;;
24382 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 ;;
24383 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 ;;
24384 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 ;;
24385 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 ;;
24386 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 ;;
24387 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 ;;
24388 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 ;;
24389 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 ;;
24390 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 ;;
24391 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 ;;
24392 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 ;;
24393 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 +000024394 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 +000024395 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 ;;
24396 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 ;;
24397 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 ;;
24398 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 ;;
24399 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 ;;
24400 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 +000024401 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 +000024402 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 +000024403 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24404 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24405 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24406 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 ;;
24407 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 +000024408 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24409 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24410 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 +000024411 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24412 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24413 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 ;;
24414 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 ;;
24415 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 ;;
24416 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 +000024417 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 +000024418 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 +000024419 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 +000024420 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24421 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024422 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024423 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24424 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24425 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24426 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24427 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24428 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24429 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24430 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24431 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 +000024432 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 +000024433 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24434 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24435 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24436 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24437 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24438 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24439 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24440 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24441 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24442 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24443 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24444 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24445 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24446 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24447 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24448 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24449 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24450 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24451 esac
24452done
24453_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024454
24455cat >>$CONFIG_STATUS <<\_ACEOF
24456
24457{ (exit 0); exit 0; }
24458_ACEOF
24459chmod +x $CONFIG_STATUS
24460ac_clean_files=$ac_clean_files_save
24461
24462
24463# configure is writing to config.log, and then calls config.status.
24464# config.status does its own redirection, appending to config.log.
24465# Unfortunately, on DOS this fails, as config.log is still kept open
24466# by configure, so config.status won't be able to write to it; its
24467# output is simply discarded. So we exec the FD to /dev/null,
24468# effectively closing config.log, so it can be properly (re)opened and
24469# appended to by config.status. When coming back to configure, we
24470# need to make the FD available again.
24471if test "$no_create" != yes; then
24472 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024473 ac_config_status_args=
24474 test "$silent" = yes &&
24475 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024476 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024477 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024478 exec 5>>config.log
24479 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24480 # would make configure fail if this is the last instruction.
24481 $ac_cs_success || { (exit 1); exit 1; }
24482fi
24483