blob: 600a749d0d709679c338bbe70d1cc9b519f10363 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_unique_file=""Makefile.config.in""
John Criswell0c38eaf2003-09-10 15:17:25 +0000467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019 esac
1020 cat <<\_ACEOF
1021
1022Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001038 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --with-spec Location of SPEC benchmarks
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001052 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell0c38eaf2003-09-10 15:17:25 +00001512 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell0c38eaf2003-09-10 15:17:25 +00001514 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001515
1516
John Criswell0c38eaf2003-09-10 15:17:25 +00001517 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001518
1519
John Criswell0c38eaf2003-09-10 15:17:25 +00001520 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001521
1522
John Criswell0c38eaf2003-09-10 15:17:25 +00001523 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001524
1525
John Criswell0c38eaf2003-09-10 15:17:25 +00001526 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001527
1528
John Criswell0c38eaf2003-09-10 15:17:25 +00001529 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001530
1531
John Criswell0c38eaf2003-09-10 15:17:25 +00001532 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001533
1534
John Criswell0c38eaf2003-09-10 15:17:25 +00001535 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001536
1537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell613758d2003-09-11 18:03:50 +00001628 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1629
1630
1631 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell613758d2003-09-11 18:03:50 +00001646 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell613758d2003-09-11 18:03:50 +00001652 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell0c38eaf2003-09-10 15:17:25 +00001697 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswell0c38eaf2003-09-10 15:17:25 +00001706 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell613758d2003-09-11 18:03:50 +00001724 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell48e3cb92003-09-12 16:31:43 +00001781 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell48e3cb92003-09-12 16:31:43 +00001784 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell39e83892003-09-12 16:36:17 +00001787 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1788
1789
1790 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1791
1792
John Criswell48e3cb92003-09-12 16:31:43 +00001793 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell48e3cb92003-09-12 16:31:43 +00001796 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell48e3cb92003-09-12 16:31:43 +00001799 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell48e3cb92003-09-12 16:31:43 +00001802 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell48e3cb92003-09-12 16:31:43 +00001805 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswell48e3cb92003-09-12 16:31:43 +00001808 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswell48e3cb92003-09-12 16:31:43 +00001811 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell48e3cb92003-09-12 16:31:43 +00001814 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell48e3cb92003-09-12 16:31:43 +00001817 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell48e3cb92003-09-12 16:31:43 +00001820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell48e3cb92003-09-12 16:31:43 +00001823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell48e3cb92003-09-12 16:31:43 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell48e3cb92003-09-12 16:31:43 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell48e3cb92003-09-12 16:31:43 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell48e3cb92003-09-12 16:31:43 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell48e3cb92003-09-12 16:31:43 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswell48e3cb92003-09-12 16:31:43 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell48e3cb92003-09-12 16:31:43 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell48e3cb92003-09-12 16:31:43 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell48e3cb92003-09-12 16:31:43 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell48e3cb92003-09-12 16:31:43 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1857
1858
1859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1860
1861
1862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell39e83892003-09-12 16:36:17 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell48e3cb92003-09-12 16:31:43 +00001868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell48e3cb92003-09-12 16:31:43 +00001871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell48e3cb92003-09-12 16:31:43 +00001874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell48e3cb92003-09-12 16:31:43 +00001877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell48e3cb92003-09-12 16:31:43 +00001880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell48e3cb92003-09-12 16:31:43 +00001883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell48e3cb92003-09-12 16:31:43 +00001886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswell48e3cb92003-09-12 16:31:43 +00001889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswell0c38eaf2003-09-10 15:17:25 +00001892 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswell0c38eaf2003-09-10 15:17:25 +00001895 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell0c38eaf2003-09-10 15:17:25 +00001898 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell0c38eaf2003-09-10 15:17:25 +00001901 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell0c38eaf2003-09-10 15:17:25 +00001904 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell0c38eaf2003-09-10 15:17:25 +00001907 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell0c38eaf2003-09-10 15:17:25 +00001910 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell0c38eaf2003-09-10 15:17:25 +00001913 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswellffaaf3b2003-09-10 18:38:44 +00001916 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1917
1918
1919 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1920
1921
1922 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1923
1924
1925 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1926
1927
1928 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1929
1930
1931 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1932
1933
John Criswell0c38eaf2003-09-10 15:17:25 +00001934 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell0c38eaf2003-09-10 15:17:25 +00001937 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell0afe8252003-09-11 20:53:48 +00001940 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswell0c38eaf2003-09-10 15:17:25 +00001946 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswell0c38eaf2003-09-10 15:17:25 +00001949 ac_config_commands="$ac_config_commands tools/as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell0c38eaf2003-09-10 15:17:25 +00001952 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001953
1954
John Criswell0c38eaf2003-09-10 15:17:25 +00001955 ac_config_commands="$ac_config_commands tools/dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001956
1957
John Criswell0c38eaf2003-09-10 15:17:25 +00001958 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell0c38eaf2003-09-10 15:17:25 +00001961 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands tools/link/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0c38eaf2003-09-10 15:17:25 +00001970 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell0c38eaf2003-09-10 15:17:25 +00001973 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell0c38eaf2003-09-10 15:17:25 +00001976 ac_config_commands="$ac_config_commands tools/opt/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell0c38eaf2003-09-10 15:17:25 +00001979 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell0c38eaf2003-09-10 15:17:25 +00001982 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswell0c38eaf2003-09-10 15:17:25 +00002009 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
John Criswell0c38eaf2003-09-10 15:17:25 +00002012 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002013
2014
John Criswell0c38eaf2003-09-10 15:17:25 +00002015 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002016
2017
John Criswell0c38eaf2003-09-10 15:17:25 +00002018 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002019
2020
John Criswell0c38eaf2003-09-10 15:17:25 +00002021 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002022
2023
John Criswell0c38eaf2003-09-10 15:17:25 +00002024 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002025
2026
John Criswell0c38eaf2003-09-10 15:17:25 +00002027 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002028
2029
John Criswell0c38eaf2003-09-10 15:17:25 +00002030 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002031
2032
John Criswell0c38eaf2003-09-10 15:17:25 +00002033 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002034
2035
John Criswell0c38eaf2003-09-10 15:17:25 +00002036 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002037
2038
John Criswell392aaa32003-07-22 19:18:09 +00002039
2040
John Criswell7a73b802003-06-30 21:59:07 +00002041# Find a good install program. We prefer a C program (faster),
2042# so one script is as good as another. But avoid the broken or
2043# incompatible versions:
2044# SysV /etc/install, /usr/sbin/install
2045# SunOS /usr/etc/install
2046# IRIX /sbin/install
2047# AIX /bin/install
2048# AmigaOS /C/install, which installs bootblocks on floppy discs
2049# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2050# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2051# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2052# ./install, which can be erroneously created by make from ./install.sh.
2053echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2054echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2055if test -z "$INSTALL"; then
2056if test "${ac_cv_path_install+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 # Account for people who put trailing slashes in PATH elements.
2065case $as_dir/ in
2066 ./ | .// | /cC/* | \
2067 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2068 /usr/ucb/* ) ;;
2069 *)
2070 # OSF1 and SCO ODT 3.0 have their own names for install.
2071 # Don't use installbsd from OSF since it installs stuff as root
2072 # by default.
2073 for ac_prog in ginstall scoinst install; do
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2076 if test $ac_prog = install &&
2077 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2078 # AIX install. It has an incompatible calling convention.
2079 :
2080 elif test $ac_prog = install &&
2081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082 # program-specific install script used by HP pwplus--don't use.
2083 :
2084 else
2085 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2086 break 3
2087 fi
2088 fi
2089 done
2090 done
2091 ;;
2092esac
2093done
2094
2095
2096fi
2097 if test "${ac_cv_path_install+set}" = set; then
2098 INSTALL=$ac_cv_path_install
2099 else
2100 # As a last resort, use the slow shell script. We don't cache a
2101 # path for INSTALL within a source directory, because that will
2102 # break other packages using the cache if that directory is
2103 # removed, or if the path is relative.
2104 INSTALL=$ac_install_sh
2105 fi
2106fi
2107echo "$as_me:$LINENO: result: $INSTALL" >&5
2108echo "${ECHO_T}$INSTALL" >&6
2109
2110# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2111# It thinks the first close brace ends the variable substitution.
2112test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2113
2114test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2115
2116test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2117
2118
2119# Make sure we can run config.sub.
2120$ac_config_sub sun4 >/dev/null 2>&1 ||
2121 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2122echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2123 { (exit 1); exit 1; }; }
2124
2125echo "$as_me:$LINENO: checking build system type" >&5
2126echo $ECHO_N "checking build system type... $ECHO_C" >&6
2127if test "${ac_cv_build+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130 ac_cv_build_alias=$build_alias
2131test -z "$ac_cv_build_alias" &&
2132 ac_cv_build_alias=`$ac_config_guess`
2133test -z "$ac_cv_build_alias" &&
2134 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2135echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2136 { (exit 1); exit 1; }; }
2137ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2138 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2139echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2141
2142fi
2143echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2144echo "${ECHO_T}$ac_cv_build" >&6
2145build=$ac_cv_build
2146build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2147build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2148build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2149
2150
2151echo "$as_me:$LINENO: checking host system type" >&5
2152echo $ECHO_N "checking host system type... $ECHO_C" >&6
2153if test "${ac_cv_host+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156 ac_cv_host_alias=$host_alias
2157test -z "$ac_cv_host_alias" &&
2158 ac_cv_host_alias=$ac_cv_build_alias
2159ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2160 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2161echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2163
2164fi
2165echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2166echo "${ECHO_T}$ac_cv_host" >&6
2167host=$ac_cv_host
2168host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2169host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2170host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2171
2172
2173echo "$as_me:$LINENO: checking target system type" >&5
2174echo $ECHO_N "checking target system type... $ECHO_C" >&6
2175if test "${ac_cv_target+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178 ac_cv_target_alias=$target_alias
2179test "x$ac_cv_target_alias" = "x" &&
2180 ac_cv_target_alias=$ac_cv_host_alias
2181ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2182 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2183echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2184 { (exit 1); exit 1; }; }
2185
2186fi
2187echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2188echo "${ECHO_T}$ac_cv_target" >&6
2189target=$ac_cv_target
2190target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2191target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2192target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2193
2194
2195# The aliases save the names the user supplied, while $host etc.
2196# will get canonicalized.
2197test -n "$target_alias" &&
2198 test "$program_prefix$program_suffix$program_transform_name" = \
2199 NONENONEs,x,x, &&
2200 program_prefix=${target_alias}-
2201
2202case $build in
2203 *i*86*) OS=Linux
2204
John Criswellf02dbf02003-07-22 20:07:49 +00002205 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002206
2207 ;;
2208
2209 *sparc*) OS=SunOS
2210
2211 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2212
2213 ;;
2214
2215 *) OS=Unknown
2216
2217 ;;
2218esac
2219
2220case $target in
2221 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2222
2223 ;;
2224esac
2225
John Criswell76595452003-07-01 22:07:39 +00002226case $target in
2227 *i*86*) ARCH=x86
2228
2229 ;;
2230 *sparc*solaris*) ARCH=Sparc
2231
2232 ;;
2233esac
2234
John Criswell7a73b802003-06-30 21:59:07 +00002235
2236ac_ext=cc
2237ac_cpp='$CXXCPP $CPPFLAGS'
2238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2241if test -n "$ac_tool_prefix"; then
2242 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2243 do
2244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246echo "$as_me:$LINENO: checking for $ac_word" >&5
2247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248if test "${ac_cv_prog_CXX+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 if test -n "$CXX"; then
2252 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2253else
2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2264 fi
2265done
2266done
2267
2268fi
2269fi
2270CXX=$ac_cv_prog_CXX
2271if test -n "$CXX"; then
2272 echo "$as_me:$LINENO: result: $CXX" >&5
2273echo "${ECHO_T}$CXX" >&6
2274else
2275 echo "$as_me:$LINENO: result: no" >&5
2276echo "${ECHO_T}no" >&6
2277fi
2278
2279 test -n "$CXX" && break
2280 done
2281fi
2282if test -z "$CXX"; then
2283 ac_ct_CXX=$CXX
2284 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2285do
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287set dummy $ac_prog; ac_word=$2
2288echo "$as_me:$LINENO: checking for $ac_word" >&5
2289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293 if test -n "$ac_ct_CXX"; then
2294 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2295else
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_ac_ct_CXX="$ac_prog"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2306 fi
2307done
2308done
2309
2310fi
2311fi
2312ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2313if test -n "$ac_ct_CXX"; then
2314 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2315echo "${ECHO_T}$ac_ct_CXX" >&6
2316else
2317 echo "$as_me:$LINENO: result: no" >&5
2318echo "${ECHO_T}no" >&6
2319fi
2320
2321 test -n "$ac_ct_CXX" && break
2322done
2323test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2324
2325 CXX=$ac_ct_CXX
2326fi
2327
2328
2329# Provide some information about the compiler.
2330echo "$as_me:$LINENO:" \
2331 "checking for C++ compiler version" >&5
2332ac_compiler=`set X $ac_compile; echo $2`
2333{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2334 (eval $ac_compiler --version </dev/null >&5) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2338{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2339 (eval $ac_compiler -v </dev/null >&5) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2344 (eval $ac_compiler -V </dev/null >&5) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348
2349cat >conftest.$ac_ext <<_ACEOF
2350#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002351/* confdefs.h. */
2352_ACEOF
2353cat confdefs.h >>conftest.$ac_ext
2354cat >>conftest.$ac_ext <<_ACEOF
2355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002356
John Criswell7a73b802003-06-30 21:59:07 +00002357int
2358main ()
2359{
2360
2361 ;
2362 return 0;
2363}
2364_ACEOF
2365ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002366ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002367# Try to create an executable without -o first, disregard a.out.
2368# It will help us diagnose broken compilers, and finding out an intuition
2369# of exeext.
2370echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2371echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2372ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2373if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2374 (eval $ac_link_default) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 # Find the output, starting from the most likely. This scheme is
2379# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2380# resort.
2381
2382# Be careful to initialize this variable, since it used to be cached.
2383# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2384ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002385# b.out is created by i960 compilers.
2386for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2387do
2388 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002389 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2391 ;;
2392 conftest.$ac_ext )
2393 # This is the source file.
2394 ;;
2395 [ab].out )
2396 # We found the default executable, but exeext='' is most
2397 # certainly right.
2398 break;;
2399 *.* )
2400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401 # FIXME: I believe we export ac_cv_exeext for Libtool,
2402 # but it would be cool to find out if it's true. Does anybody
2403 # maintain Libtool? --akim.
2404 export ac_cv_exeext
2405 break;;
2406 * )
2407 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002408 esac
2409done
2410else
2411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2415See \`config.log' for more details." >&5
2416echo "$as_me: error: C++ compiler cannot create executables
2417See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002418 { (exit 77); exit 77; }; }
2419fi
2420
2421ac_exeext=$ac_cv_exeext
2422echo "$as_me:$LINENO: result: $ac_file" >&5
2423echo "${ECHO_T}$ac_file" >&6
2424
2425# Check the compiler produces executables we can run. If not, either
2426# the compiler is broken, or we cross compile.
2427echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2428echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2429# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2430# If not cross compiling, check that we can run a simple program.
2431if test "$cross_compiling" != yes; then
2432 if { ac_try='./$ac_file'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 cross_compiling=no
2439 else
2440 if test "$cross_compiling" = maybe; then
2441 cross_compiling=yes
2442 else
2443 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002444If you meant to cross compile, use \`--host'.
2445See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002446echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002447If you meant to cross compile, use \`--host'.
2448See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002449 { (exit 1); exit 1; }; }
2450 fi
2451 fi
2452fi
2453echo "$as_me:$LINENO: result: yes" >&5
2454echo "${ECHO_T}yes" >&6
2455
John Criswell0c38eaf2003-09-10 15:17:25 +00002456rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002457ac_clean_files=$ac_clean_files_save
2458# Check the compiler produces executables we can run. If not, either
2459# the compiler is broken, or we cross compile.
2460echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2461echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2462echo "$as_me:$LINENO: result: $cross_compiling" >&5
2463echo "${ECHO_T}$cross_compiling" >&6
2464
2465echo "$as_me:$LINENO: checking for suffix of executables" >&5
2466echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2468 (eval $ac_link) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2473# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2474# work properly (i.e., refer to `conftest.exe'), while it won't with
2475# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002476for ac_file in conftest.exe conftest conftest.*; do
2477 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002478 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2481 export ac_cv_exeext
2482 break;;
2483 * ) break;;
2484 esac
2485done
2486else
John Criswell0c38eaf2003-09-10 15:17:25 +00002487 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2488See \`config.log' for more details." >&5
2489echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2490See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002491 { (exit 1); exit 1; }; }
2492fi
2493
2494rm -f conftest$ac_cv_exeext
2495echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2496echo "${ECHO_T}$ac_cv_exeext" >&6
2497
2498rm -f conftest.$ac_ext
2499EXEEXT=$ac_cv_exeext
2500ac_exeext=$EXEEXT
2501echo "$as_me:$LINENO: checking for suffix of object files" >&5
2502echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2503if test "${ac_cv_objext+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506 cat >conftest.$ac_ext <<_ACEOF
2507#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002508/* confdefs.h. */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002513
John Criswell7a73b802003-06-30 21:59:07 +00002514int
2515main ()
2516{
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522rm -f conftest.o conftest.obj
2523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2529 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2532 break;;
2533 esac
2534done
2535else
2536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2540See \`config.log' for more details." >&5
2541echo "$as_me: error: cannot compute suffix of object files: cannot compile
2542See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002543 { (exit 1); exit 1; }; }
2544fi
2545
2546rm -f conftest.$ac_cv_objext conftest.$ac_ext
2547fi
2548echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2549echo "${ECHO_T}$ac_cv_objext" >&6
2550OBJEXT=$ac_cv_objext
2551ac_objext=$OBJEXT
2552echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2553echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2554if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557 cat >conftest.$ac_ext <<_ACEOF
2558#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002564
John Criswell7a73b802003-06-30 21:59:07 +00002565int
2566main ()
2567{
2568#ifndef __GNUC__
2569 choke me
2570#endif
2571
2572 ;
2573 return 0;
2574}
2575_ACEOF
2576rm -f conftest.$ac_objext
2577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_compiler_gnu=yes
2589else
2590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002591sed 's/^/| /' conftest.$ac_ext >&5
2592
John Criswell7a73b802003-06-30 21:59:07 +00002593ac_compiler_gnu=no
2594fi
2595rm -f conftest.$ac_objext conftest.$ac_ext
2596ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2597
2598fi
2599echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2600echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2601GXX=`test $ac_compiler_gnu = yes && echo yes`
2602ac_test_CXXFLAGS=${CXXFLAGS+set}
2603ac_save_CXXFLAGS=$CXXFLAGS
2604CXXFLAGS="-g"
2605echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2606echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2607if test "${ac_cv_prog_cxx_g+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609else
2610 cat >conftest.$ac_ext <<_ACEOF
2611#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002617
John Criswell7a73b802003-06-30 21:59:07 +00002618int
2619main ()
2620{
2621
2622 ;
2623 return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_cv_prog_cxx_g=yes
2639else
2640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002641sed 's/^/| /' conftest.$ac_ext >&5
2642
John Criswell7a73b802003-06-30 21:59:07 +00002643ac_cv_prog_cxx_g=no
2644fi
2645rm -f conftest.$ac_objext conftest.$ac_ext
2646fi
2647echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2648echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2649if test "$ac_test_CXXFLAGS" = set; then
2650 CXXFLAGS=$ac_save_CXXFLAGS
2651elif test $ac_cv_prog_cxx_g = yes; then
2652 if test "$GXX" = yes; then
2653 CXXFLAGS="-g -O2"
2654 else
2655 CXXFLAGS="-g"
2656 fi
2657else
2658 if test "$GXX" = yes; then
2659 CXXFLAGS="-O2"
2660 else
2661 CXXFLAGS=
2662 fi
2663fi
2664for ac_declaration in \
2665 ''\
2666 '#include <stdlib.h>' \
2667 'extern "C" void std::exit (int) throw (); using std::exit;' \
2668 'extern "C" void std::exit (int); using std::exit;' \
2669 'extern "C" void exit (int) throw ();' \
2670 'extern "C" void exit (int);' \
2671 'void exit (int);'
2672do
2673 cat >conftest.$ac_ext <<_ACEOF
2674#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002675/* confdefs.h. */
2676_ACEOF
2677cat confdefs.h >>conftest.$ac_ext
2678cat >>conftest.$ac_ext <<_ACEOF
2679/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002680#include <stdlib.h>
2681$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002682int
2683main ()
2684{
2685exit (42);
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 :
2703else
2704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002705sed 's/^/| /' conftest.$ac_ext >&5
2706
John Criswell7a73b802003-06-30 21:59:07 +00002707continue
2708fi
2709rm -f conftest.$ac_objext conftest.$ac_ext
2710 cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002712/* confdefs.h. */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002717$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002718int
2719main ()
2720{
2721exit (42);
2722 ;
2723 return 0;
2724}
2725_ACEOF
2726rm -f conftest.$ac_objext
2727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 break
2739else
2740 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002741sed 's/^/| /' conftest.$ac_ext >&5
2742
John Criswell7a73b802003-06-30 21:59:07 +00002743fi
2744rm -f conftest.$ac_objext conftest.$ac_ext
2745done
2746rm -f conftest*
2747if test -n "$ac_declaration"; then
2748 echo '#ifdef __cplusplus' >>confdefs.h
2749 echo $ac_declaration >>confdefs.h
2750 echo '#endif' >>confdefs.h
2751fi
2752
2753ac_ext=c
2754ac_cpp='$CPP $CPPFLAGS'
2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759ac_ext=c
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764if test -n "$ac_tool_prefix"; then
2765 for ac_prog in gcc
2766 do
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769echo "$as_me:$LINENO: checking for $ac_word" >&5
2770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771if test "${ac_cv_prog_CC+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789done
2790
2791fi
2792fi
2793CC=$ac_cv_prog_CC
2794if test -n "$CC"; then
2795 echo "$as_me:$LINENO: result: $CC" >&5
2796echo "${ECHO_T}$CC" >&6
2797else
2798 echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6
2800fi
2801
2802 test -n "$CC" && break
2803 done
2804fi
2805if test -z "$CC"; then
2806 ac_ct_CC=$CC
2807 for ac_prog in gcc
2808do
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810set dummy $ac_prog; ac_word=$2
2811echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831done
2832
2833fi
2834fi
2835ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838echo "${ECHO_T}$ac_ct_CC" >&6
2839else
2840 echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
2842fi
2843
2844 test -n "$ac_ct_CC" && break
2845done
2846
2847 CC=$ac_ct_CC
2848fi
2849
2850
John Criswell0c38eaf2003-09-10 15:17:25 +00002851test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2852See \`config.log' for more details." >&5
2853echo "$as_me: error: no acceptable C compiler found in \$PATH
2854See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002855 { (exit 1); exit 1; }; }
2856
2857# Provide some information about the compiler.
2858echo "$as_me:$LINENO:" \
2859 "checking for C compiler version" >&5
2860ac_compiler=`set X $ac_compile; echo $2`
2861{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2862 (eval $ac_compiler --version </dev/null >&5) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2866{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2867 (eval $ac_compiler -v </dev/null >&5) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }
2871{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2872 (eval $ac_compiler -V </dev/null >&5) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876
2877echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2878echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2879if test "${ac_cv_c_compiler_gnu+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 cat >conftest.$ac_ext <<_ACEOF
2883#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002884/* confdefs.h. */
2885_ACEOF
2886cat confdefs.h >>conftest.$ac_ext
2887cat >>conftest.$ac_ext <<_ACEOF
2888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002889
John Criswell7a73b802003-06-30 21:59:07 +00002890int
2891main ()
2892{
2893#ifndef __GNUC__
2894 choke me
2895#endif
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901rm -f conftest.$ac_objext
2902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2913 ac_compiler_gnu=yes
2914else
2915 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002916sed 's/^/| /' conftest.$ac_ext >&5
2917
John Criswell7a73b802003-06-30 21:59:07 +00002918ac_compiler_gnu=no
2919fi
2920rm -f conftest.$ac_objext conftest.$ac_ext
2921ac_cv_c_compiler_gnu=$ac_compiler_gnu
2922
2923fi
2924echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2925echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2926GCC=`test $ac_compiler_gnu = yes && echo yes`
2927ac_test_CFLAGS=${CFLAGS+set}
2928ac_save_CFLAGS=$CFLAGS
2929CFLAGS="-g"
2930echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2931echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2932if test "${ac_cv_prog_cc_g+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934else
2935 cat >conftest.$ac_ext <<_ACEOF
2936#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002937/* confdefs.h. */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002942
John Criswell7a73b802003-06-30 21:59:07 +00002943int
2944main ()
2945{
2946
2947 ;
2948 return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext
2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 ac_cv_prog_cc_g=yes
2964else
2965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002966sed 's/^/| /' conftest.$ac_ext >&5
2967
John Criswell7a73b802003-06-30 21:59:07 +00002968ac_cv_prog_cc_g=no
2969fi
2970rm -f conftest.$ac_objext conftest.$ac_ext
2971fi
2972echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2973echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2974if test "$ac_test_CFLAGS" = set; then
2975 CFLAGS=$ac_save_CFLAGS
2976elif test $ac_cv_prog_cc_g = yes; then
2977 if test "$GCC" = yes; then
2978 CFLAGS="-g -O2"
2979 else
2980 CFLAGS="-g"
2981 fi
2982else
2983 if test "$GCC" = yes; then
2984 CFLAGS="-O2"
2985 else
2986 CFLAGS=
2987 fi
2988fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002989echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2990echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2991if test "${ac_cv_prog_cc_stdc+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 ac_cv_prog_cc_stdc=no
2995ac_save_CC=$CC
2996cat >conftest.$ac_ext <<_ACEOF
2997#line $LINENO "configure"
2998/* confdefs.h. */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h. */
3003#include <stdarg.h>
3004#include <stdio.h>
3005#include <sys/types.h>
3006#include <sys/stat.h>
3007/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3008struct buf { int x; };
3009FILE * (*rcsopen) (struct buf *, struct stat *, int);
3010static char *e (p, i)
3011 char **p;
3012 int i;
3013{
3014 return p[i];
3015}
3016static char *f (char * (*g) (char **, int), char **p, ...)
3017{
3018 char *s;
3019 va_list v;
3020 va_start (v,p);
3021 s = g (p, va_arg (v,int));
3022 va_end (v);
3023 return s;
3024}
3025int test (int i, double x);
3026struct s1 {int (*f) (int a);};
3027struct s2 {int (*f) (double a);};
3028int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3029int argc;
3030char **argv;
3031int
3032main ()
3033{
3034return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039# Don't try gcc -ansi; that turns off useful extensions and
3040# breaks some systems' header files.
3041# AIX -qlanglvl=ansi
3042# Ultrix and OSF/1 -std1
3043# HP-UX 10.20 and later -Ae
3044# HP-UX older versions -Aa -D_HPUX_SOURCE
3045# SVR4 -Xc -D__EXTENSIONS__
3046for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3047do
3048 CC="$ac_save_CC $ac_arg"
3049 rm -f conftest.$ac_objext
3050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } &&
3055 { ac_try='test -s conftest.$ac_objext'
3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 (eval $ac_try) 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_prog_cc_stdc=$ac_arg
3062break
3063else
3064 echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067fi
3068rm -f conftest.$ac_objext
3069done
3070rm -f conftest.$ac_ext conftest.$ac_objext
3071CC=$ac_save_CC
3072
3073fi
3074
3075case "x$ac_cv_prog_cc_stdc" in
3076 x|xno)
3077 echo "$as_me:$LINENO: result: none needed" >&5
3078echo "${ECHO_T}none needed" >&6 ;;
3079 *)
3080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3081echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3082 CC="$CC $ac_cv_prog_cc_stdc" ;;
3083esac
3084
John Criswell7a73b802003-06-30 21:59:07 +00003085# Some people use a C++ compiler to compile C. Since we use `exit',
3086# in C++ we need to declare it. In case someone uses the same compiler
3087# for both compiling C and C++ we need to have the C++ compiler decide
3088# the declaration of exit, since it's the most demanding environment.
3089cat >conftest.$ac_ext <<_ACEOF
3090#ifndef __cplusplus
3091 choke me
3092#endif
3093_ACEOF
3094rm -f conftest.$ac_objext
3095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 for ac_declaration in \
3107 ''\
3108 '#include <stdlib.h>' \
3109 'extern "C" void std::exit (int) throw (); using std::exit;' \
3110 'extern "C" void std::exit (int); using std::exit;' \
3111 'extern "C" void exit (int) throw ();' \
3112 'extern "C" void exit (int);' \
3113 'void exit (int);'
3114do
3115 cat >conftest.$ac_ext <<_ACEOF
3116#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003122#include <stdlib.h>
3123$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003124int
3125main ()
3126{
3127exit (42);
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3134 (eval $ac_compile) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 (eval $ac_try) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 :
3145else
3146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003147sed 's/^/| /' conftest.$ac_ext >&5
3148
John Criswell7a73b802003-06-30 21:59:07 +00003149continue
3150fi
3151rm -f conftest.$ac_objext conftest.$ac_ext
3152 cat >conftest.$ac_ext <<_ACEOF
3153#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003159$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003160int
3161main ()
3162{
3163exit (42);
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 break
3181else
3182 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003183sed 's/^/| /' conftest.$ac_ext >&5
3184
John Criswell7a73b802003-06-30 21:59:07 +00003185fi
3186rm -f conftest.$ac_objext conftest.$ac_ext
3187done
3188rm -f conftest*
3189if test -n "$ac_declaration"; then
3190 echo '#ifdef __cplusplus' >>confdefs.h
3191 echo $ac_declaration >>confdefs.h
3192 echo '#endif' >>confdefs.h
3193fi
3194
3195else
3196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003197sed 's/^/| /' conftest.$ac_ext >&5
3198
John Criswell7a73b802003-06-30 21:59:07 +00003199fi
3200rm -f conftest.$ac_objext conftest.$ac_ext
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3213echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3214# On Suns, sometimes $CPP names a directory.
3215if test -n "$CPP" && test -d "$CPP"; then
3216 CPP=
3217fi
3218if test -z "$CPP"; then
3219 if test "${ac_cv_prog_CPP+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222 # Double quotes because CPP needs to be expanded
3223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224 do
3225 ac_preproc_ok=false
3226for ac_c_preproc_warn_flag in '' yes
3227do
3228 # Use a header file that comes with gcc, so configuring glibc
3229 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3231 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003232 # On the NeXT, cc -E runs the code through the compiler's parser,
3233 # not just through cpp. "Syntax error" is here to catch this case.
3234 cat >conftest.$ac_ext <<_ACEOF
3235#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241#ifdef __STDC__
3242# include <limits.h>
3243#else
3244# include <assert.h>
3245#endif
John Criswell7a73b802003-06-30 21:59:07 +00003246 Syntax error
3247_ACEOF
3248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3250 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003251 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } >/dev/null; then
3256 if test -s conftest.err; then
3257 ac_cpp_err=$ac_c_preproc_warn_flag
3258 else
3259 ac_cpp_err=
3260 fi
3261else
3262 ac_cpp_err=yes
3263fi
3264if test -z "$ac_cpp_err"; then
3265 :
3266else
3267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003268sed 's/^/| /' conftest.$ac_ext >&5
3269
John Criswell7a73b802003-06-30 21:59:07 +00003270 # Broken: fails on valid input.
3271continue
3272fi
3273rm -f conftest.err conftest.$ac_ext
3274
3275 # OK, works on sane cases. Now check whether non-existent headers
3276 # can be detected and how.
3277 cat >conftest.$ac_ext <<_ACEOF
3278#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003284#include <ac_nonexistent.h>
3285_ACEOF
3286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3288 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003289 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 else
3297 ac_cpp_err=
3298 fi
3299else
3300 ac_cpp_err=yes
3301fi
3302if test -z "$ac_cpp_err"; then
3303 # Broken: success on invalid input.
3304continue
3305else
3306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003307sed 's/^/| /' conftest.$ac_ext >&5
3308
John Criswell7a73b802003-06-30 21:59:07 +00003309 # Passes both tests.
3310ac_preproc_ok=:
3311break
3312fi
3313rm -f conftest.err conftest.$ac_ext
3314
3315done
3316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317rm -f conftest.err conftest.$ac_ext
3318if $ac_preproc_ok; then
3319 break
3320fi
3321
3322 done
3323 ac_cv_prog_CPP=$CPP
3324
3325fi
3326 CPP=$ac_cv_prog_CPP
3327else
3328 ac_cv_prog_CPP=$CPP
3329fi
3330echo "$as_me:$LINENO: result: $CPP" >&5
3331echo "${ECHO_T}$CPP" >&6
3332ac_preproc_ok=false
3333for ac_c_preproc_warn_flag in '' yes
3334do
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.$ac_ext <<_ACEOF
3342#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003343/* confdefs.h. */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3347/* end confdefs.h. */
3348#ifdef __STDC__
3349# include <limits.h>
3350#else
3351# include <assert.h>
3352#endif
John Criswell7a73b802003-06-30 21:59:07 +00003353 Syntax error
3354_ACEOF
3355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3357 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003358 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003359 rm -f conftest.er1
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } >/dev/null; then
3363 if test -s conftest.err; then
3364 ac_cpp_err=$ac_c_preproc_warn_flag
3365 else
3366 ac_cpp_err=
3367 fi
3368else
3369 ac_cpp_err=yes
3370fi
3371if test -z "$ac_cpp_err"; then
3372 :
3373else
3374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003375sed 's/^/| /' conftest.$ac_ext >&5
3376
John Criswell7a73b802003-06-30 21:59:07 +00003377 # Broken: fails on valid input.
3378continue
3379fi
3380rm -f conftest.err conftest.$ac_ext
3381
3382 # OK, works on sane cases. Now check whether non-existent headers
3383 # can be detected and how.
3384 cat >conftest.$ac_ext <<_ACEOF
3385#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003391#include <ac_nonexistent.h>
3392_ACEOF
3393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3395 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003396 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 else
3404 ac_cpp_err=
3405 fi
3406else
3407 ac_cpp_err=yes
3408fi
3409if test -z "$ac_cpp_err"; then
3410 # Broken: success on invalid input.
3411continue
3412else
3413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003414sed 's/^/| /' conftest.$ac_ext >&5
3415
John Criswell7a73b802003-06-30 21:59:07 +00003416 # Passes both tests.
3417ac_preproc_ok=:
3418break
3419fi
3420rm -f conftest.err conftest.$ac_ext
3421
3422done
3423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424rm -f conftest.err conftest.$ac_ext
3425if $ac_preproc_ok; then
3426 :
3427else
John Criswell0c38eaf2003-09-10 15:17:25 +00003428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3429See \`config.log' for more details." >&5
3430echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3431See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003432 { (exit 1); exit 1; }; }
3433fi
3434
3435ac_ext=c
3436ac_cpp='$CPP $CPPFLAGS'
3437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440
3441
3442if test "$GCC" != "yes"
3443then
3444 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3445echo "$as_me: error: gcc required but not found" >&2;}
3446 { (exit 1); exit 1; }; }
3447fi
3448
3449if test "$GXX" != "yes"
3450then
3451 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3452echo "$as_me: error: g++ required but not found" >&2;}
3453 { (exit 1); exit 1; }; }
3454fi
3455
John Criswellde00db22003-08-25 16:49:54 +00003456gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3457if test "$gccmajor" -lt "3"
3458then
3459 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3460echo "$as_me: error: gcc 3.x required" >&2;}
3461 { (exit 1); exit 1; }; }
3462fi
3463
John Criswell7a73b802003-06-30 21:59:07 +00003464 echo "$as_me:$LINENO: checking for GNU make" >&5
3465echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3466if test "${_cv_gnu_make_command+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469 _cv_gnu_make_command='' ;
3470 for a in "$MAKE" make gmake gnumake ; do
3471 if test -z "$a" ; then continue ; fi ;
3472 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3473 _cv_gnu_make_command=$a ;
3474 break;
3475 fi
3476 done ;
3477
3478fi
3479echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3480echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3481 if test "x$_cv_gnu_make_command" != "x" ; then
3482 ifGNUmake='' ;
3483 else
3484 ifGNUmake='#' ;
3485 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3486echo "${ECHO_T}\"Not found\"" >&6;
3487 fi
3488
3489
3490if test -z "$_cv_gnu_make_command"
3491then
3492 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3493echo "$as_me: error: GNU Make required but not found" >&2;}
3494 { (exit 1); exit 1; }; }
3495fi
3496
3497
3498echo "$as_me:$LINENO: checking " >&5
3499echo $ECHO_N "checking ... $ECHO_C" >&6
3500if test "${ac_cv_has_flex+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503 for ac_prog in flex lex
3504do
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506set dummy $ac_prog; ac_word=$2
3507echo "$as_me:$LINENO: checking for $ac_word" >&5
3508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509if test "${ac_cv_prog_LEX+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 if test -n "$LEX"; then
3513 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_LEX="$ac_prog"
3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526done
3527done
3528
3529fi
3530fi
3531LEX=$ac_cv_prog_LEX
3532if test -n "$LEX"; then
3533 echo "$as_me:$LINENO: result: $LEX" >&5
3534echo "${ECHO_T}$LEX" >&6
3535else
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538fi
3539
3540 test -n "$LEX" && break
3541done
3542test -n "$LEX" || LEX=":"
3543
3544if test -z "$LEXLIB"
3545then
3546 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3547echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3548if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 ac_check_lib_save_LIBS=$LIBS
3552LIBS="-lfl $LIBS"
3553cat >conftest.$ac_ext <<_ACEOF
3554#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003555/* confdefs.h. */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003560
3561/* Override any gcc2 internal prototype to avoid an error. */
3562#ifdef __cplusplus
3563extern "C"
3564#endif
3565/* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3567char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003568int
3569main ()
3570{
3571yywrap ();
3572 ;
3573 return 0;
3574}
3575_ACEOF
3576rm -f conftest.$ac_objext conftest$ac_exeext
3577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578 (eval $ac_link) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -s conftest$ac_exeext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_lib_fl_yywrap=yes
3589else
3590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003591sed 's/^/| /' conftest.$ac_ext >&5
3592
John Criswell7a73b802003-06-30 21:59:07 +00003593ac_cv_lib_fl_yywrap=no
3594fi
3595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3596LIBS=$ac_check_lib_save_LIBS
3597fi
3598echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3599echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3600if test $ac_cv_lib_fl_yywrap = yes; then
3601 LEXLIB="-lfl"
3602else
3603 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3604echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3605if test "${ac_cv_lib_l_yywrap+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608 ac_check_lib_save_LIBS=$LIBS
3609LIBS="-ll $LIBS"
3610cat >conftest.$ac_ext <<_ACEOF
3611#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003617
3618/* Override any gcc2 internal prototype to avoid an error. */
3619#ifdef __cplusplus
3620extern "C"
3621#endif
3622/* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3624char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003625int
3626main ()
3627{
3628yywrap ();
3629 ;
3630 return 0;
3631}
3632_ACEOF
3633rm -f conftest.$ac_objext conftest$ac_exeext
3634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635 (eval $ac_link) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -s conftest$ac_exeext'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 ac_cv_lib_l_yywrap=yes
3646else
3647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003648sed 's/^/| /' conftest.$ac_ext >&5
3649
John Criswell7a73b802003-06-30 21:59:07 +00003650ac_cv_lib_l_yywrap=no
3651fi
3652rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3653LIBS=$ac_check_lib_save_LIBS
3654fi
3655echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3656echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3657if test $ac_cv_lib_l_yywrap = yes; then
3658 LEXLIB="-ll"
3659fi
3660
3661fi
3662
3663fi
3664
3665if test "x$LEX" != "x:"; then
3666 echo "$as_me:$LINENO: checking lex output file root" >&5
3667echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3668if test "${ac_cv_prog_lex_root+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671 # The minimal lex program is just a single line: %%. But some broken lexes
3672# (Solaris, I think it was) want two %% lines, so accommodate them.
3673cat >conftest.l <<_ACEOF
3674%%
3675%%
3676_ACEOF
3677{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3678 (eval $LEX conftest.l) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }
3682if test -f lex.yy.c; then
3683 ac_cv_prog_lex_root=lex.yy
3684elif test -f lexyy.c; then
3685 ac_cv_prog_lex_root=lexyy
3686else
3687 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3688echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3689 { (exit 1); exit 1; }; }
3690fi
3691fi
3692echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3693echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3694rm -f conftest.l
3695LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3696
3697echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3698echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3699if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 # POSIX says lex can declare yytext either as a pointer or an array; the
3703# default is implementation-dependent. Figure out which it is, since
3704# not all implementations provide the %pointer and %array declarations.
3705ac_cv_prog_lex_yytext_pointer=no
3706echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3707ac_save_LIBS=$LIBS
3708LIBS="$LIBS $LEXLIB"
3709cat >conftest.$ac_ext <<_ACEOF
3710`cat $LEX_OUTPUT_ROOT.c`
3711_ACEOF
3712rm -f conftest.$ac_objext conftest$ac_exeext
3713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714 (eval $ac_link) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -s conftest$ac_exeext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_prog_lex_yytext_pointer=yes
3725else
3726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003727sed 's/^/| /' conftest.$ac_ext >&5
3728
John Criswell7a73b802003-06-30 21:59:07 +00003729fi
3730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3731LIBS=$ac_save_LIBS
3732rm -f "${LEX_OUTPUT_ROOT}.c"
3733
3734fi
3735echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3736echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3737if test $ac_cv_prog_lex_yytext_pointer = yes; then
3738
3739cat >>confdefs.h <<\_ACEOF
3740#define YYTEXT_POINTER 1
3741_ACEOF
3742
3743fi
3744
3745fi
3746
3747fi
3748echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3749echo "${ECHO_T}$ac_cv_has_flex" >&6
3750if test "$LEX" != "flex"; then
3751 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3752echo "$as_me: error: flex not found but required" >&2;}
3753 { (exit 1); exit 1; }; }
3754fi
3755
3756echo "$as_me:$LINENO: checking " >&5
3757echo $ECHO_N "checking ... $ECHO_C" >&6
3758if test "${ac_cv_has_bison+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761 for ac_prog in 'bison -y' byacc
3762do
3763 # Extract the first word of "$ac_prog", so it can be a program name with args.
3764set dummy $ac_prog; ac_word=$2
3765echo "$as_me:$LINENO: checking for $ac_word" >&5
3766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767if test "${ac_cv_prog_YACC+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770 if test -n "$YACC"; then
3771 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3772else
3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH
3775do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_YACC="$ac_prog"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784done
3785done
3786
3787fi
3788fi
3789YACC=$ac_cv_prog_YACC
3790if test -n "$YACC"; then
3791 echo "$as_me:$LINENO: result: $YACC" >&5
3792echo "${ECHO_T}$YACC" >&6
3793else
3794 echo "$as_me:$LINENO: result: no" >&5
3795echo "${ECHO_T}no" >&6
3796fi
3797
3798 test -n "$YACC" && break
3799done
3800test -n "$YACC" || YACC="yacc"
3801
3802
3803fi
3804echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3805echo "${ECHO_T}$ac_cv_has_bison" >&6
3806if test "$YACC" != "bison -y"; then
3807 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3808echo "$as_me: error: bison not found but required" >&2;}
3809 { (exit 1); exit 1; }; }
3810else
3811 YACC=bison
3812
3813fi
3814
3815
3816# Check whether --enable-shared or --disable-shared was given.
3817if test "${enable_shared+set}" = set; then
3818 enableval="$enable_shared"
3819 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003820 case $enableval in
3821 yes) enable_shared=yes ;;
3822 no) enable_shared=no ;;
3823 *)
3824 enable_shared=no
3825 # Look at the argument we got. We use all the common list separators.
3826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3827 for pkg in $enableval; do
3828 IFS="$lt_save_ifs"
3829 if test "X$pkg" = "X$p"; then
3830 enable_shared=yes
3831 fi
3832 done
3833 IFS="$lt_save_ifs"
3834 ;;
3835 esac
John Criswell7a73b802003-06-30 21:59:07 +00003836else
3837 enable_shared=yes
3838fi;
John Criswell47fdd832003-07-14 16:52:07 +00003839
John Criswell7a73b802003-06-30 21:59:07 +00003840# Check whether --enable-static or --disable-static was given.
3841if test "${enable_static+set}" = set; then
3842 enableval="$enable_static"
3843 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003844 case $enableval in
3845 yes) enable_static=yes ;;
3846 no) enable_static=no ;;
3847 *)
3848 enable_static=no
3849 # Look at the argument we got. We use all the common list separators.
3850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3851 for pkg in $enableval; do
3852 IFS="$lt_save_ifs"
3853 if test "X$pkg" = "X$p"; then
3854 enable_static=yes
3855 fi
3856 done
3857 IFS="$lt_save_ifs"
3858 ;;
3859 esac
John Criswell7a73b802003-06-30 21:59:07 +00003860else
3861 enable_static=yes
3862fi;
John Criswell47fdd832003-07-14 16:52:07 +00003863
John Criswell7a73b802003-06-30 21:59:07 +00003864# Check whether --enable-fast-install or --disable-fast-install was given.
3865if test "${enable_fast_install+set}" = set; then
3866 enableval="$enable_fast_install"
3867 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003868 case $enableval in
3869 yes) enable_fast_install=yes ;;
3870 no) enable_fast_install=no ;;
3871 *)
3872 enable_fast_install=no
3873 # Look at the argument we got. We use all the common list separators.
3874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3875 for pkg in $enableval; do
3876 IFS="$lt_save_ifs"
3877 if test "X$pkg" = "X$p"; then
3878 enable_fast_install=yes
3879 fi
3880 done
3881 IFS="$lt_save_ifs"
3882 ;;
3883 esac
John Criswell7a73b802003-06-30 21:59:07 +00003884else
3885 enable_fast_install=yes
3886fi;
John Criswell47fdd832003-07-14 16:52:07 +00003887
3888echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3889echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3890if test "${lt_cv_path_SED+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
3893 # Loop through the user's path and test for sed and gsed.
3894# Then use that list of sed's as ones to test for truncation.
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for lt_ac_prog in sed gsed; do
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3903 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3904 fi
3905 done
3906 done
3907done
3908lt_ac_max=0
3909lt_ac_count=0
3910# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3911# along with /bin/sed that truncates output.
3912for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3913 test ! -f $lt_ac_sed && break
3914 cat /dev/null > conftest.in
3915 lt_ac_count=0
3916 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3917 # Check for GNU sed and select it if it is found.
3918 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3919 lt_cv_path_SED=$lt_ac_sed
3920 break
3921 fi
3922 while true; do
3923 cat conftest.in conftest.in >conftest.tmp
3924 mv conftest.tmp conftest.in
3925 cp conftest.in conftest.nl
3926 echo >>conftest.nl
3927 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3928 cmp -s conftest.out conftest.nl || break
3929 # 10000 chars as input seems more than enough
3930 test $lt_ac_count -gt 10 && break
3931 lt_ac_count=`expr $lt_ac_count + 1`
3932 if test $lt_ac_count -gt $lt_ac_max; then
3933 lt_ac_max=$lt_ac_count
3934 lt_cv_path_SED=$lt_ac_sed
3935 fi
3936 done
3937done
3938SED=$lt_cv_path_SED
3939
John Criswell7a73b802003-06-30 21:59:07 +00003940fi
3941
John Criswell47fdd832003-07-14 16:52:07 +00003942echo "$as_me:$LINENO: result: $SED" >&5
3943echo "${ECHO_T}$SED" >&6
3944
3945echo "$as_me:$LINENO: checking for egrep" >&5
3946echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3947if test "${ac_cv_prog_egrep+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
3950 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3951 then ac_cv_prog_egrep='grep -E'
3952 else ac_cv_prog_egrep='egrep'
3953 fi
3954fi
3955echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3956echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3957 EGREP=$ac_cv_prog_egrep
3958
3959
John Criswell7a73b802003-06-30 21:59:07 +00003960
3961# Check whether --with-gnu-ld or --without-gnu-ld was given.
3962if test "${with_gnu_ld+set}" = set; then
3963 withval="$with_gnu_ld"
3964 test "$withval" = no || with_gnu_ld=yes
3965else
3966 with_gnu_ld=no
3967fi;
3968ac_prog=ld
3969if test "$GCC" = yes; then
3970 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003971 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3972echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003973 case $host in
3974 *-*-mingw*)
3975 # gcc leaves a trailing carriage return which upsets mingw
3976 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3977 *)
3978 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3979 esac
3980 case $ac_prog in
3981 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003982 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003983 re_direlt='/[^/][^/]*/\.\./'
3984 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003985 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003986 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003987 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003988 done
3989 test -z "$LD" && LD="$ac_prog"
3990 ;;
3991 "")
3992 # If it fails, then pretend we aren't using GCC.
3993 ac_prog=ld
3994 ;;
3995 *)
3996 # If it is relative, then search for the first ld in PATH.
3997 with_gnu_ld=unknown
3998 ;;
3999 esac
4000elif test "$with_gnu_ld" = yes; then
4001 echo "$as_me:$LINENO: checking for GNU ld" >&5
4002echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4003else
4004 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4005echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4006fi
4007if test "${lt_cv_path_LD+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004012 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004013 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004014 test -z "$ac_dir" && ac_dir=.
4015 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4016 lt_cv_path_LD="$ac_dir/$ac_prog"
4017 # Check to see if the program is GNU ld. I'd rather use --version,
4018 # but apparently some GNU ld's only accept -v.
4019 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004020 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4021 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004022 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004023 ;;
4024 *)
John Criswell7a73b802003-06-30 21:59:07 +00004025 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004026 ;;
4027 esac
John Criswell7a73b802003-06-30 21:59:07 +00004028 fi
4029 done
John Criswell47fdd832003-07-14 16:52:07 +00004030 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004031else
4032 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4033fi
4034fi
4035
4036LD="$lt_cv_path_LD"
4037if test -n "$LD"; then
4038 echo "$as_me:$LINENO: result: $LD" >&5
4039echo "${ECHO_T}$LD" >&6
4040else
4041 echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6
4043fi
4044test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4045echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4046 { (exit 1); exit 1; }; }
4047echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4048echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4049if test "${lt_cv_prog_gnu_ld+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004053case `"$LD" -v 2>&1 </dev/null` in
4054*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004055 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004056 ;;
4057*)
John Criswell7a73b802003-06-30 21:59:07 +00004058 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004059 ;;
4060esac
John Criswell7a73b802003-06-30 21:59:07 +00004061fi
4062echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4063echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4064with_gnu_ld=$lt_cv_prog_gnu_ld
4065
4066
4067echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4068echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4069if test "${lt_cv_ld_reload_flag+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 lt_cv_ld_reload_flag='-r'
4073fi
4074echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4075echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4076reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004077case $reload_flag in
4078"" | " "*) ;;
4079*) reload_flag=" $reload_flag" ;;
4080esac
4081reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004082
4083echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4084echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4085if test "${lt_cv_path_NM+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088 if test -n "$NM"; then
4089 # Let the user override the test.
4090 lt_cv_path_NM="$NM"
4091else
John Criswell47fdd832003-07-14 16:52:07 +00004092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004093 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004094 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004095 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004096 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4097 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004098 # Check to see if the nm accepts a BSD-compat flag.
4099 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4100 # nm: unknown option "B" ignored
4101 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004102 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4103 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004104 lt_cv_path_NM="$tmp_nm -B"
4105 break
John Criswell47fdd832003-07-14 16:52:07 +00004106 ;;
4107 *)
4108 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4109 */dev/null*)
4110 lt_cv_path_NM="$tmp_nm -p"
4111 break
4112 ;;
4113 *)
4114 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4115 continue # so that we can try to find one that supports BSD flags
4116 ;;
4117 esac
4118 esac
John Criswell7a73b802003-06-30 21:59:07 +00004119 fi
4120 done
John Criswell47fdd832003-07-14 16:52:07 +00004121 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004122 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4123fi
4124fi
John Criswell47fdd832003-07-14 16:52:07 +00004125echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4126echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004127NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004128
4129echo "$as_me:$LINENO: checking whether ln -s works" >&5
4130echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4131LN_S=$as_ln_s
4132if test "$LN_S" = "ln -s"; then
4133 echo "$as_me:$LINENO: result: yes" >&5
4134echo "${ECHO_T}yes" >&6
4135else
4136 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4137echo "${ECHO_T}no, using $LN_S" >&6
4138fi
4139
John Criswell47fdd832003-07-14 16:52:07 +00004140echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4141echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004142if test "${lt_cv_deplibs_check_method+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145 lt_cv_file_magic_cmd='$MAGIC_CMD'
4146lt_cv_file_magic_test_file=
4147lt_cv_deplibs_check_method='unknown'
4148# Need to set the preceding variable on all platforms that support
4149# interlibrary dependencies.
4150# 'none' -- dependencies not supported.
4151# `unknown' -- same as none, but documents that we really don't know.
4152# 'pass_all' -- all dependencies passed with no checks.
4153# 'test_compile' -- check by making test program.
4154# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004155# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004156# If you have `file' or equivalent on your system and you're not sure
4157# whether `pass_all' will *always* work, you probably want this one.
4158
4159case $host_os in
4160aix4* | aix5*)
4161 lt_cv_deplibs_check_method=pass_all
4162 ;;
4163
4164beos*)
4165 lt_cv_deplibs_check_method=pass_all
4166 ;;
4167
4168bsdi4*)
4169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4170 lt_cv_file_magic_cmd='/usr/bin/file -L'
4171 lt_cv_file_magic_test_file=/shlib/libc.so
4172 ;;
4173
4174cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004175 # win32_libid is a shell function defined in ltmain.sh
4176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4177 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004178 ;;
4179
4180darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004181 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004182 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4183 lt_cv_file_magic_cmd='/usr/bin/file -L'
4184 case "$host_os" in
4185 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004186 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004187 ;;
4188 *) # Darwin 1.3 on
4189 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4190 ;;
4191 esac
John Criswell47fdd832003-07-14 16:52:07 +00004192 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004193 ;;
4194
4195freebsd*)
4196 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4197 case $host_cpu in
4198 i*86 )
4199 # Not sure whether the presence of OpenBSD here was a mistake.
4200 # Let's accept both of them until this is cleared up.
4201 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4202 lt_cv_file_magic_cmd=/usr/bin/file
4203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4204 ;;
4205 esac
4206 else
4207 lt_cv_deplibs_check_method=pass_all
4208 fi
4209 ;;
4210
4211gnu*)
4212 lt_cv_deplibs_check_method=pass_all
4213 ;;
4214
John Criswell47fdd832003-07-14 16:52:07 +00004215hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004216 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004217 case "$host_cpu" in
4218 ia64*)
4219 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4220 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4221 ;;
4222 hppa*64*)
4223 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]'
4224 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4225 ;;
4226 *)
4227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4228 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4229 ;;
4230 esac
John Criswell7a73b802003-06-30 21:59:07 +00004231 ;;
4232
John Criswell47fdd832003-07-14 16:52:07 +00004233irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004234 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004235 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004236 # this will be overridden with pass_all, but let us keep it just in case
4237 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4238 ;;
4239 *)
4240 case $LD in
4241 *-32|*"-32 ") libmagic=32-bit;;
4242 *-n32|*"-n32 ") libmagic=N32;;
4243 *-64|*"-64 ") libmagic=64-bit;;
4244 *) libmagic=never-match;;
4245 esac
4246 # this will be overridden with pass_all, but let us keep it just in case
4247 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4248 ;;
4249 esac
4250 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4251 lt_cv_deplibs_check_method=pass_all
4252 ;;
4253
4254# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004255linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004256 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004257 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004258 lt_cv_deplibs_check_method=pass_all ;;
4259 *)
4260 # glibc up to 2.1.1 does not perform some relocations on ARM
4261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4262 esac
4263 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4264 ;;
4265
4266netbsd*)
4267 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004269 else
John Criswell47fdd832003-07-14 16:52:07 +00004270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004271 fi
4272 ;;
4273
4274newos6*)
4275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4276 lt_cv_file_magic_cmd=/usr/bin/file
4277 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4278 ;;
4279
John Criswell47fdd832003-07-14 16:52:07 +00004280nto-qnx)
4281 lt_cv_deplibs_check_method=unknown
4282 ;;
4283
John Criswell7a73b802003-06-30 21:59:07 +00004284openbsd*)
4285 lt_cv_file_magic_cmd=/usr/bin/file
4286 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4289 else
4290 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4291 fi
4292 ;;
4293
4294osf3* | osf4* | osf5*)
4295 # this will be overridden with pass_all, but let us keep it just in case
4296 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4297 lt_cv_file_magic_test_file=/shlib/libc.so
4298 lt_cv_deplibs_check_method=pass_all
4299 ;;
4300
4301sco3.2v5*)
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305solaris*)
4306 lt_cv_deplibs_check_method=pass_all
4307 lt_cv_file_magic_test_file=/lib/libc.so
4308 ;;
4309
John Criswell7a73b802003-06-30 21:59:07 +00004310sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4311 case $host_vendor in
4312 motorola)
4313 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]'
4314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4315 ;;
4316 ncr)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319 sequent)
4320 lt_cv_file_magic_cmd='/bin/file'
4321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4322 ;;
4323 sni)
4324 lt_cv_file_magic_cmd='/bin/file'
4325 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4326 lt_cv_file_magic_test_file=/lib/libc.so
4327 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004328 siemens)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004331 esac
4332 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004333
4334sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4335 lt_cv_deplibs_check_method=pass_all
4336 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004337esac
4338
4339fi
4340echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4342file_magic_cmd=$lt_cv_file_magic_cmd
4343deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004344test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004345
4346
4347
4348
John Criswell47fdd832003-07-14 16:52:07 +00004349# If no C compiler was specified, use CC.
4350LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004351
John Criswell47fdd832003-07-14 16:52:07 +00004352# Allow CC to be a program name with arguments.
4353compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004354
John Criswell47fdd832003-07-14 16:52:07 +00004355# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4356if test "${enable_libtool_lock+set}" = set; then
4357 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004358
John Criswell47fdd832003-07-14 16:52:07 +00004359fi;
4360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004361
John Criswell47fdd832003-07-14 16:52:07 +00004362# Some flags need to be propagated to the compiler or linker for good
4363# libtool support.
4364case $host in
4365ia64-*-hpux*)
4366 # Find out which ABI we are using.
4367 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369 (eval $ac_compile) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004373 case `/usr/bin/file conftest.$ac_objext` in
4374 *ELF-32*)
4375 HPUX_IA64_MODE="32"
4376 ;;
4377 *ELF-64*)
4378 HPUX_IA64_MODE="64"
4379 ;;
4380 esac
4381 fi
4382 rm -rf conftest*
4383 ;;
4384*-*-irix6*)
4385 # Find out which ABI we are using.
John Criswell48e3cb92003-09-12 16:31:43 +00004386 echo '#line 4386 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004391 (exit $ac_status); }; then
4392 if test "$lt_cv_prog_gnu_ld" = yes; then
4393 case `/usr/bin/file conftest.$ac_objext` in
4394 *32-bit*)
4395 LD="${LD-ld} -melf32bsmip"
4396 ;;
4397 *N32*)
4398 LD="${LD-ld} -melf32bmipn32"
4399 ;;
4400 *64-bit*)
4401 LD="${LD-ld} -melf64bmip"
4402 ;;
4403 esac
4404 else
4405 case `/usr/bin/file conftest.$ac_objext` in
4406 *32-bit*)
4407 LD="${LD-ld} -32"
4408 ;;
4409 *N32*)
4410 LD="${LD-ld} -n32"
4411 ;;
4412 *64-bit*)
4413 LD="${LD-ld} -64"
4414 ;;
4415 esac
4416 fi
4417 fi
4418 rm -rf conftest*
4419 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004420
John Criswell47fdd832003-07-14 16:52:07 +00004421x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4422 # Find out which ABI we are using.
4423 echo 'int i;' > conftest.$ac_ext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; then
4429 case "`/usr/bin/file conftest.o`" in
4430 *32-bit*)
4431 case $host in
4432 x86_64-*linux*)
4433 LD="${LD-ld} -m elf_i386"
4434 ;;
4435 ppc64-*linux*)
4436 LD="${LD-ld} -m elf32ppclinux"
4437 ;;
4438 s390x-*linux*)
4439 LD="${LD-ld} -m elf_s390"
4440 ;;
4441 sparc64-*linux*)
4442 LD="${LD-ld} -m elf32_sparc"
4443 ;;
4444 esac
4445 ;;
4446 *64-bit*)
4447 case $host in
4448 x86_64-*linux*)
4449 LD="${LD-ld} -m elf_x86_64"
4450 ;;
4451 ppc*-*linux*|powerpc*-*linux*)
4452 LD="${LD-ld} -m elf64ppc"
4453 ;;
4454 s390*-*linux*)
4455 LD="${LD-ld} -m elf64_s390"
4456 ;;
4457 sparc*-*linux*)
4458 LD="${LD-ld} -m elf64_sparc"
4459 ;;
4460 esac
4461 ;;
4462 esac
4463 fi
4464 rm -rf conftest*
4465 ;;
4466
4467*-*-sco3.2v5*)
4468 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4469 SAVE_CFLAGS="$CFLAGS"
4470 CFLAGS="$CFLAGS -belf"
4471 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4472echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4473if test "${lt_cv_cc_needs_belf+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476 ac_ext=c
4477ac_cpp='$CPP $CPPFLAGS'
4478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481
4482 cat >conftest.$ac_ext <<_ACEOF
4483#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004484/* confdefs.h. */
4485_ACEOF
4486cat confdefs.h >>conftest.$ac_ext
4487cat >>conftest.$ac_ext <<_ACEOF
4488/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004489
John Criswell47fdd832003-07-14 16:52:07 +00004490int
4491main ()
John Criswell7a73b802003-06-30 21:59:07 +00004492{
John Criswell7a73b802003-06-30 21:59:07 +00004493
John Criswell47fdd832003-07-14 16:52:07 +00004494 ;
4495 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004496}
John Criswell47fdd832003-07-14 16:52:07 +00004497_ACEOF
4498rm -f conftest.$ac_objext conftest$ac_exeext
4499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004500 (eval $ac_link) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004503 (exit $ac_status); } &&
4504 { ac_try='test -s conftest$ac_exeext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004511else
John Criswell47fdd832003-07-14 16:52:07 +00004512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004513sed 's/^/| /' conftest.$ac_ext >&5
4514
John Criswell47fdd832003-07-14 16:52:07 +00004515lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004516fi
John Criswell47fdd832003-07-14 16:52:07 +00004517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4518 ac_ext=c
4519ac_cpp='$CPP $CPPFLAGS'
4520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523
John Criswell7a73b802003-06-30 21:59:07 +00004524fi
John Criswell47fdd832003-07-14 16:52:07 +00004525echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4526echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4527 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4529 CFLAGS="$SAVE_CFLAGS"
4530 fi
4531 ;;
4532
4533esac
4534
4535need_locks="$enable_libtool_lock"
4536
John Criswell7a73b802003-06-30 21:59:07 +00004537
4538
4539echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541if test "${ac_cv_header_stdc+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544 cat >conftest.$ac_ext <<_ACEOF
4545#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004546/* confdefs.h. */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004551#include <stdlib.h>
4552#include <stdarg.h>
4553#include <string.h>
4554#include <float.h>
4555
John Criswell0c38eaf2003-09-10 15:17:25 +00004556int
4557main ()
4558{
4559
4560 ;
4561 return 0;
4562}
John Criswell7a73b802003-06-30 21:59:07 +00004563_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004564rm -f conftest.$ac_objext
4565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004567 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004569 (exit $ac_status); } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004576 ac_cv_header_stdc=yes
4577else
4578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004582fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004583rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004584
4585if test $ac_cv_header_stdc = yes; then
4586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4587 cat >conftest.$ac_ext <<_ACEOF
4588#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004589/* confdefs.h. */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004594#include <string.h>
4595
4596_ACEOF
4597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004598 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004599 :
4600else
4601 ac_cv_header_stdc=no
4602fi
4603rm -f conftest*
4604
4605fi
4606
4607if test $ac_cv_header_stdc = yes; then
4608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4609 cat >conftest.$ac_ext <<_ACEOF
4610#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004611/* confdefs.h. */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004616#include <stdlib.h>
4617
4618_ACEOF
4619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004620 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004621 :
4622else
4623 ac_cv_header_stdc=no
4624fi
4625rm -f conftest*
4626
4627fi
4628
4629if test $ac_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then
4632 :
4633else
4634 cat >conftest.$ac_ext <<_ACEOF
4635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004641#include <ctype.h>
4642#if ((' ' & 0x0FF) == 0x020)
4643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4645#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004646# define ISLOWER(c) \
4647 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004648 || ('j' <= (c) && (c) <= 'r') \
4649 || ('s' <= (c) && (c) <= 'z'))
4650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4651#endif
4652
4653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4654int
4655main ()
4656{
4657 int i;
4658 for (i = 0; i < 256; i++)
4659 if (XOR (islower (i), ISLOWER (i))
4660 || toupper (i) != TOUPPER (i))
4661 exit(2);
4662 exit (0);
4663}
4664_ACEOF
4665rm -f conftest$ac_exeext
4666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 :
4677else
4678 echo "$as_me: program exited with status $ac_status" >&5
4679echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004680sed 's/^/| /' conftest.$ac_ext >&5
4681
John Criswell7a73b802003-06-30 21:59:07 +00004682( exit $ac_status )
4683ac_cv_header_stdc=no
4684fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004685rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004686fi
4687fi
4688fi
4689echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4690echo "${ECHO_T}$ac_cv_header_stdc" >&6
4691if test $ac_cv_header_stdc = yes; then
4692
4693cat >>confdefs.h <<\_ACEOF
4694#define STDC_HEADERS 1
4695_ACEOF
4696
4697fi
4698
4699# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4710 inttypes.h stdint.h unistd.h
4711do
4712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713echo "$as_me:$LINENO: checking for $ac_header" >&5
4714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4715if eval "test \"\${$as_ac_Header+set}\" = set"; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718 cat >conftest.$ac_ext <<_ACEOF
4719#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004725$ac_includes_default
4726
4727#include <$ac_header>
4728_ACEOF
4729rm -f conftest.$ac_objext
4730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -s conftest.$ac_objext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 (eval $ac_try) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 eval "$as_ac_Header=yes"
4742else
4743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004744sed 's/^/| /' conftest.$ac_ext >&5
4745
John Criswell7a73b802003-06-30 21:59:07 +00004746eval "$as_ac_Header=no"
4747fi
4748rm -f conftest.$ac_objext conftest.$ac_ext
4749fi
4750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4752if test `eval echo '${'$as_ac_Header'}'` = yes; then
4753 cat >>confdefs.h <<_ACEOF
4754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755_ACEOF
4756
4757fi
4758
4759done
4760
4761
4762
4763for ac_header in dlfcn.h
4764do
4765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4766if eval "test \"\${$as_ac_Header+set}\" = set"; then
4767 echo "$as_me:$LINENO: checking for $ac_header" >&5
4768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4769if eval "test \"\${$as_ac_Header+set}\" = set"; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771fi
4772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4774else
4775 # Is the header compilable?
4776echo "$as_me:$LINENO: checking $ac_header usability" >&5
4777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4778cat >conftest.$ac_ext <<_ACEOF
4779#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004780/* confdefs.h. */
4781_ACEOF
4782cat confdefs.h >>conftest.$ac_ext
4783cat >>conftest.$ac_ext <<_ACEOF
4784/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004785$ac_includes_default
4786#include <$ac_header>
4787_ACEOF
4788rm -f conftest.$ac_objext
4789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 ac_header_compiler=yes
4801else
4802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004803sed 's/^/| /' conftest.$ac_ext >&5
4804
John Criswell7a73b802003-06-30 21:59:07 +00004805ac_header_compiler=no
4806fi
4807rm -f conftest.$ac_objext conftest.$ac_ext
4808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4809echo "${ECHO_T}$ac_header_compiler" >&6
4810
4811# Is the header present?
4812echo "$as_me:$LINENO: checking $ac_header presence" >&5
4813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4814cat >conftest.$ac_ext <<_ACEOF
4815#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004816/* confdefs.h. */
4817_ACEOF
4818cat confdefs.h >>conftest.$ac_ext
4819cat >>conftest.$ac_ext <<_ACEOF
4820/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004821#include <$ac_header>
4822_ACEOF
4823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4825 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004826 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } >/dev/null; then
4831 if test -s conftest.err; then
4832 ac_cpp_err=$ac_c_preproc_warn_flag
4833 else
4834 ac_cpp_err=
4835 fi
4836else
4837 ac_cpp_err=yes
4838fi
4839if test -z "$ac_cpp_err"; then
4840 ac_header_preproc=yes
4841else
4842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004843sed 's/^/| /' conftest.$ac_ext >&5
4844
John Criswell7a73b802003-06-30 21:59:07 +00004845 ac_header_preproc=no
4846fi
4847rm -f conftest.err conftest.$ac_ext
4848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4849echo "${ECHO_T}$ac_header_preproc" >&6
4850
4851# So? What about this header?
4852case $ac_header_compiler:$ac_header_preproc in
4853 yes:no )
4854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4858 (
4859 cat <<\_ASBOX
4860## ------------------------------------ ##
4861## Report this to bug-autoconf@gnu.org. ##
4862## ------------------------------------ ##
4863_ASBOX
4864 ) |
4865 sed "s/^/$as_me: WARNING: /" >&2
4866 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004867 no:yes )
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4869echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4871echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4874 (
4875 cat <<\_ASBOX
4876## ------------------------------------ ##
4877## Report this to bug-autoconf@gnu.org. ##
4878## ------------------------------------ ##
4879_ASBOX
4880 ) |
4881 sed "s/^/$as_me: WARNING: /" >&2
4882 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004883esac
4884echo "$as_me:$LINENO: checking for $ac_header" >&5
4885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4886if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889 eval "$as_ac_Header=$ac_header_preproc"
4890fi
4891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4893
4894fi
4895if test `eval echo '${'$as_ac_Header'}'` = yes; then
4896 cat >>confdefs.h <<_ACEOF
4897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4898_ACEOF
4899
4900fi
4901
4902done
4903
John Criswell47fdd832003-07-14 16:52:07 +00004904ac_ext=cc
4905ac_cpp='$CXXCPP $CPPFLAGS'
4906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4909echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4910echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4911if test -z "$CXXCPP"; then
4912 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914else
John Criswell47fdd832003-07-14 16:52:07 +00004915 # Double quotes because CXXCPP needs to be expanded
4916 for CXXCPP in "$CXX -E" "/lib/cpp"
4917 do
4918 ac_preproc_ok=false
4919for ac_cxx_preproc_warn_flag in '' yes
4920do
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat >conftest.$ac_ext <<_ACEOF
4928#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004929/* confdefs.h. */
4930_ACEOF
4931cat confdefs.h >>conftest.$ac_ext
4932cat >>conftest.$ac_ext <<_ACEOF
4933/* end confdefs.h. */
4934#ifdef __STDC__
4935# include <limits.h>
4936#else
4937# include <assert.h>
4938#endif
John Criswell47fdd832003-07-14 16:52:07 +00004939 Syntax error
4940_ACEOF
4941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4943 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004944 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null; then
4949 if test -s conftest.err; then
4950 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004951 else
John Criswell47fdd832003-07-14 16:52:07 +00004952 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004953 fi
John Criswell47fdd832003-07-14 16:52:07 +00004954else
4955 ac_cpp_err=yes
4956fi
4957if test -z "$ac_cpp_err"; then
4958 :
4959else
4960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004961sed 's/^/| /' conftest.$ac_ext >&5
4962
John Criswell47fdd832003-07-14 16:52:07 +00004963 # Broken: fails on valid input.
4964continue
4965fi
4966rm -f conftest.err conftest.$ac_ext
4967
4968 # OK, works on sane cases. Now check whether non-existent headers
4969 # can be detected and how.
4970 cat >conftest.$ac_ext <<_ACEOF
4971#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004972/* confdefs.h. */
4973_ACEOF
4974cat confdefs.h >>conftest.$ac_ext
4975cat >>conftest.$ac_ext <<_ACEOF
4976/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004977#include <ac_nonexistent.h>
4978_ACEOF
4979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004982 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null; then
4987 if test -s conftest.err; then
4988 ac_cpp_err=$ac_cxx_preproc_warn_flag
4989 else
4990 ac_cpp_err=
4991 fi
4992else
4993 ac_cpp_err=yes
4994fi
4995if test -z "$ac_cpp_err"; then
4996 # Broken: success on invalid input.
4997continue
4998else
4999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005000sed 's/^/| /' conftest.$ac_ext >&5
5001
John Criswell47fdd832003-07-14 16:52:07 +00005002 # Passes both tests.
5003ac_preproc_ok=:
5004break
5005fi
5006rm -f conftest.err conftest.$ac_ext
5007
5008done
5009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010rm -f conftest.err conftest.$ac_ext
5011if $ac_preproc_ok; then
5012 break
John Criswell7a73b802003-06-30 21:59:07 +00005013fi
5014
John Criswell47fdd832003-07-14 16:52:07 +00005015 done
5016 ac_cv_prog_CXXCPP=$CXXCPP
5017
5018fi
5019 CXXCPP=$ac_cv_prog_CXXCPP
5020else
5021 ac_cv_prog_CXXCPP=$CXXCPP
5022fi
5023echo "$as_me:$LINENO: result: $CXXCPP" >&5
5024echo "${ECHO_T}$CXXCPP" >&6
5025ac_preproc_ok=false
5026for ac_cxx_preproc_warn_flag in '' yes
5027do
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5035#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#ifdef __STDC__
5042# include <limits.h>
5043#else
5044# include <assert.h>
5045#endif
John Criswell47fdd832003-07-14 16:52:07 +00005046 Syntax error
5047_ACEOF
5048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005051 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_cxx_preproc_warn_flag
5058 else
5059 ac_cpp_err=
5060 fi
5061else
5062 ac_cpp_err=yes
5063fi
5064if test -z "$ac_cpp_err"; then
5065 :
5066else
5067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005068sed 's/^/| /' conftest.$ac_ext >&5
5069
John Criswell47fdd832003-07-14 16:52:07 +00005070 # Broken: fails on valid input.
5071continue
5072fi
5073rm -f conftest.err conftest.$ac_ext
5074
5075 # OK, works on sane cases. Now check whether non-existent headers
5076 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF
5078#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005079/* confdefs.h. */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005084#include <ac_nonexistent.h>
5085_ACEOF
5086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005089 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null; then
5094 if test -s conftest.err; then
5095 ac_cpp_err=$ac_cxx_preproc_warn_flag
5096 else
5097 ac_cpp_err=
5098 fi
5099else
5100 ac_cpp_err=yes
5101fi
5102if test -z "$ac_cpp_err"; then
5103 # Broken: success on invalid input.
5104continue
5105else
5106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005107sed 's/^/| /' conftest.$ac_ext >&5
5108
John Criswell47fdd832003-07-14 16:52:07 +00005109 # Passes both tests.
5110ac_preproc_ok=:
5111break
5112fi
5113rm -f conftest.err conftest.$ac_ext
5114
5115done
5116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117rm -f conftest.err conftest.$ac_ext
5118if $ac_preproc_ok; then
5119 :
5120else
John Criswell0c38eaf2003-09-10 15:17:25 +00005121 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5122See \`config.log' for more details." >&5
5123echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005125 { (exit 1); exit 1; }; }
5126fi
5127
5128ac_ext=cc
5129ac_cpp='$CXXCPP $CPPFLAGS'
5130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5133
5134
5135ac_ext=f
5136ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5137ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5139if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005140 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 +00005141 do
5142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5144echo "$as_me:$LINENO: checking for $ac_word" >&5
5145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146if test "${ac_cv_prog_F77+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149 if test -n "$F77"; then
5150 ac_cv_prog_F77="$F77" # Let the user override the test.
5151else
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163done
5164done
5165
5166fi
5167fi
5168F77=$ac_cv_prog_F77
5169if test -n "$F77"; then
5170 echo "$as_me:$LINENO: result: $F77" >&5
5171echo "${ECHO_T}$F77" >&6
5172else
5173 echo "$as_me:$LINENO: result: no" >&5
5174echo "${ECHO_T}no" >&6
5175fi
5176
5177 test -n "$F77" && break
5178 done
5179fi
5180if test -z "$F77"; then
5181 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005182 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 +00005183do
5184 # Extract the first word of "$ac_prog", so it can be a program name with args.
5185set dummy $ac_prog; ac_word=$2
5186echo "$as_me:$LINENO: checking for $ac_word" >&5
5187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191 if test -n "$ac_ct_F77"; then
5192 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_F77="$ac_prog"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205done
5206done
5207
5208fi
5209fi
5210ac_ct_F77=$ac_cv_prog_ac_ct_F77
5211if test -n "$ac_ct_F77"; then
5212 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5213echo "${ECHO_T}$ac_ct_F77" >&6
5214else
5215 echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6
5217fi
5218
5219 test -n "$ac_ct_F77" && break
5220done
5221
5222 F77=$ac_ct_F77
5223fi
5224
5225
5226# Provide some information about the compiler.
John Criswell48e3cb92003-09-12 16:31:43 +00005227echo "$as_me:5227:" \
John Criswell47fdd832003-07-14 16:52:07 +00005228 "checking for Fortran 77 compiler version" >&5
5229ac_compiler=`set X $ac_compile; echo $2`
5230{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5231 (eval $ac_compiler --version </dev/null >&5) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }
5235{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5236 (eval $ac_compiler -v </dev/null >&5) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }
5240{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5241 (eval $ac_compiler -V </dev/null >&5) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }
5245
5246# If we don't use `.F' as extension, the preprocessor is not run on the
5247# input file.
5248ac_save_ext=$ac_ext
5249ac_ext=F
5250echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5251echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5252if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255 cat >conftest.$ac_ext <<_ACEOF
5256 program main
5257#ifndef __GNUC__
5258 choke me
5259#endif
5260
5261 end
5262_ACEOF
5263rm -f conftest.$ac_objext
5264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5265 (eval $ac_compile) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_compiler_gnu=yes
5276else
5277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005278sed 's/^/| /' conftest.$ac_ext >&5
5279
John Criswell47fdd832003-07-14 16:52:07 +00005280ac_compiler_gnu=no
5281fi
5282rm -f conftest.$ac_objext conftest.$ac_ext
5283ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5284
5285fi
5286echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5287echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5288ac_ext=$ac_save_ext
5289G77=`test $ac_compiler_gnu = yes && echo yes`
5290ac_test_FFLAGS=${FFLAGS+set}
5291ac_save_FFLAGS=$FFLAGS
5292FFLAGS=
5293echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5294echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5295if test "${ac_cv_prog_f77_g+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298 FFLAGS=-g
5299cat >conftest.$ac_ext <<_ACEOF
5300 program main
5301
5302 end
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 ac_cv_prog_f77_g=yes
5317else
5318 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005319sed 's/^/| /' conftest.$ac_ext >&5
5320
John Criswell47fdd832003-07-14 16:52:07 +00005321ac_cv_prog_f77_g=no
5322fi
5323rm -f conftest.$ac_objext conftest.$ac_ext
5324
5325fi
5326echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5327echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5328if test "$ac_test_FFLAGS" = set; then
5329 FFLAGS=$ac_save_FFLAGS
5330elif test $ac_cv_prog_f77_g = yes; then
5331 if test "$G77" = yes; then
5332 FFLAGS="-g -O2"
5333 else
5334 FFLAGS="-g"
5335 fi
5336else
5337 if test "$G77" = yes; then
5338 FFLAGS="-O2"
5339 else
5340 FFLAGS=
5341 fi
5342fi
5343ac_ext=c
5344ac_cpp='$CPP $CPPFLAGS'
5345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349
5350
5351# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5352
5353# find the maximum length of command line arguments
5354echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5355echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5356if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358else
5359 i=0
5360 testring="ABCD"
5361
5362 case $build_os in
5363 msdosdjgpp*)
5364 # On DJGPP, this test can blow up pretty badly due to problems in libc
5365 # (any single argument exceeding 2000 bytes causes a buffer overrun
5366 # during glob expansion). Even if it were fixed, the result of this
5367 # check would be larger than it should be.
5368 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5369 ;;
5370
5371 gnu*)
5372 # Under GNU Hurd, this test is not required because there is
5373 # no limit to the length of command line arguments.
5374 # Libtool will interpret -1 as no limit whatsoever
5375 lt_cv_sys_max_cmd_len=-1;
5376 ;;
5377
5378 cygwin* | mingw*)
5379 # On Win9x/ME, this test blows up -- it succeeds, but takes
5380 # about 5 minutes as the teststring grows exponentially.
5381 # Worse, since 9x/ME are not pre-emptively multitasking,
5382 # you end up with a "frozen" computer, even though with patience
5383 # the test eventually succeeds (with a max line length of 256k).
5384 # Instead, let's just punt: use the minimum linelength reported by
5385 # all of the supported platforms: 8192 (on NT/2K/XP).
5386 lt_cv_sys_max_cmd_len=8192;
5387 ;;
5388
5389 *)
5390 # If test is not a shell built-in, we'll probably end up computing a
5391 # maximum length that is only half of the actual maximum length, but
5392 # we can't tell.
5393 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5394 = "XX$testring") >/dev/null 2>&1 &&
5395 new_result=`expr "X$testring" : ".*" 2>&1` &&
5396 lt_cv_sys_max_cmd_len=$new_result &&
5397 test $i != 17 # 1/2 MB should be enough
5398 do
5399 i=`expr $i + 1`
5400 testring=$testring$testring
5401 done
5402 testring=
5403 # Add a significant safety factor because C++ compilers can tack on massive
5404 # amounts of additional arguments before passing them to the linker.
5405 # It appears as though 1/2 is a usable value.
5406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5407 ;;
5408 esac
5409
5410fi
5411
5412if test -n $lt_cv_sys_max_cmd_len ; then
5413 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5414echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5415else
5416 echo "$as_me:$LINENO: result: none" >&5
5417echo "${ECHO_T}none" >&6
5418fi
5419
5420
5421
5422
5423# Check for command to grab the raw symbol name followed by C symbol from nm.
5424echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5425echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5426if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428else
5429
5430# These are sane defaults that work on at least a few old systems.
5431# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5432
5433# Character class describing NM global symbol codes.
5434symcode='[BCDEGRST]'
5435
5436# Regexp to match symbols that can be accessed directly from C.
5437sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5438
5439# Transform the above into a raw symbol and a C symbol.
5440symxfrm='\1 \2\3 \3'
5441
5442# Transform an extracted symbol line into a proper C declaration
5443lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5444
5445# Transform an extracted symbol line into symbol name and symbol address
5446lt_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'"
5447
5448# Define system-specific variables.
5449case $host_os in
5450aix*)
5451 symcode='[BCDT]'
5452 ;;
5453cygwin* | mingw* | pw32*)
5454 symcode='[ABCDGISTW]'
5455 ;;
5456hpux*) # Its linker distinguishes data from code symbols
5457 if test "$host_cpu" = ia64; then
5458 symcode='[ABCDEGRST]'
5459 fi
5460 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5461 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'"
5462 ;;
5463irix* | nonstopux*)
5464 symcode='[BCDEGRST]'
5465 ;;
5466osf*)
5467 symcode='[BCDEGQRST]'
5468 ;;
5469solaris* | sysv5*)
5470 symcode='[BDT]'
5471 ;;
5472sysv4)
5473 symcode='[DFNSTU]'
5474 ;;
5475esac
5476
5477# Handle CRLF in mingw tool chain
5478opt_cr=
5479case $build_os in
5480mingw*)
5481 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5482 ;;
5483esac
5484
5485# If we're using GNU nm, then use its standard symbol codes.
5486case `$NM -V 2>&1` in
5487*GNU* | *'with BFD'*)
5488 symcode='[ABCDGISTW]' ;;
5489esac
5490
5491# Try without a prefix undercore, then with it.
5492for ac_symprfx in "" "_"; do
5493
5494 # Write the raw and C identifiers.
5495 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5496
5497 # Check to see that the pipe works correctly.
5498 pipe_works=no
5499
5500 rm -f conftest*
5501 cat > conftest.$ac_ext <<EOF
5502#ifdef __cplusplus
5503extern "C" {
5504#endif
5505char nm_test_var;
5506void nm_test_func(){}
5507#ifdef __cplusplus
5508}
5509#endif
5510int main(){nm_test_var='a';nm_test_func();return(0);}
5511EOF
5512
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; then
5518 # Now try to grab the symbols.
5519 nlist=conftest.nm
5520 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5521 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && test -s "$nlist"; then
5525 # Try sorting and uniquifying the output.
5526 if sort "$nlist" | uniq > "$nlist"T; then
5527 mv -f "$nlist"T "$nlist"
5528 else
5529 rm -f "$nlist"T
5530 fi
5531
5532 # Make sure that we snagged all the symbols we need.
5533 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5534 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5535 cat <<EOF > conftest.$ac_ext
5536#ifdef __cplusplus
5537extern "C" {
5538#endif
5539
5540EOF
5541 # Now generate the symbol file.
5542 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5543
5544 cat <<EOF >> conftest.$ac_ext
5545#if defined (__STDC__) && __STDC__
5546# define lt_ptr_t void *
5547#else
5548# define lt_ptr_t char *
5549# define const
5550#endif
5551
5552/* The mapping between symbol names and symbols. */
5553const struct {
5554 const char *name;
5555 lt_ptr_t address;
5556}
5557lt_preloaded_symbols[] =
5558{
5559EOF
5560 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5561 cat <<\EOF >> conftest.$ac_ext
5562 {0, (lt_ptr_t) 0}
5563};
5564
5565#ifdef __cplusplus
5566}
5567#endif
5568EOF
5569 # Now try linking the two files.
5570 mv conftest.$ac_objext conftstm.$ac_objext
5571 lt_save_LIBS="$LIBS"
5572 lt_save_CFLAGS="$CFLAGS"
5573 LIBS="conftstm.$ac_objext"
5574 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5580 pipe_works=yes
5581 fi
5582 LIBS="$lt_save_LIBS"
5583 CFLAGS="$lt_save_CFLAGS"
5584 else
5585 echo "cannot find nm_test_func in $nlist" >&5
5586 fi
5587 else
5588 echo "cannot find nm_test_var in $nlist" >&5
5589 fi
5590 else
5591 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5592 fi
5593 else
5594 echo "$progname: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5596 fi
5597 rm -f conftest* conftst*
5598
5599 # Do not use the global_symbol_pipe unless it works.
5600 if test "$pipe_works" = yes; then
5601 break
5602 else
5603 lt_cv_sys_global_symbol_pipe=
5604 fi
5605done
5606
5607fi
5608
5609if test -z "$lt_cv_sys_global_symbol_pipe"; then
5610 lt_cv_sys_global_symbol_to_cdecl=
5611fi
5612if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5613 echo "$as_me:$LINENO: result: failed" >&5
5614echo "${ECHO_T}failed" >&6
5615else
5616 echo "$as_me:$LINENO: result: ok" >&5
5617echo "${ECHO_T}ok" >&6
5618fi
5619
5620echo "$as_me:$LINENO: checking for objdir" >&5
5621echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5622if test "${lt_cv_objdir+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 rm -f .libs 2>/dev/null
5626mkdir .libs 2>/dev/null
5627if test -d .libs; then
5628 lt_cv_objdir=.libs
5629else
5630 # MS-DOS does not allow filenames that begin with a dot.
5631 lt_cv_objdir=_libs
5632fi
5633rmdir .libs 2>/dev/null
5634fi
5635echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5636echo "${ECHO_T}$lt_cv_objdir" >&6
5637objdir=$lt_cv_objdir
5638
5639
5640
5641
5642
5643case $host_os in
5644aix3*)
5645 # AIX sometimes has problems with the GCC collect2 program. For some
5646 # reason, if we set the COLLECT_NAMES environment variable, the problems
5647 # vanish in a puff of smoke.
5648 if test "X${COLLECT_NAMES+set}" != Xset; then
5649 COLLECT_NAMES=
5650 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005651 fi
5652 ;;
5653esac
5654
John Criswell47fdd832003-07-14 16:52:07 +00005655# Sed substitution that helps us do robust quoting. It backslashifies
5656# metacharacters that are still active within double-quoted strings.
5657Xsed='sed -e s/^X//'
5658sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5659
5660# Same as above, but do not quote variable references.
5661double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5662
5663# Sed substitution to delay expansion of an escaped shell variable in a
5664# double_quote_subst'ed string.
5665delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5666
5667# Sed substitution to avoid accidental globbing in evaled expressions
5668no_glob_subst='s/\*/\\\*/g'
5669
5670# Constants:
5671rm="rm -f"
5672
5673# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005674default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005675can_build_shared=yes
5676
5677# All known linkers require a `.a' archive for static linking (except M$VC,
5678# which needs '.lib').
5679libext=a
5680ltmain="$ac_aux_dir/ltmain.sh"
5681ofile="$default_ofile"
5682with_gnu_ld="$lt_cv_prog_gnu_ld"
5683
5684if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5686set dummy ${ac_tool_prefix}ar; ac_word=$2
5687echo "$as_me:$LINENO: checking for $ac_word" >&5
5688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689if test "${ac_cv_prog_AR+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 if test -n "$AR"; then
5693 ac_cv_prog_AR="$AR" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_AR="${ac_tool_prefix}ar"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707done
5708
5709fi
5710fi
5711AR=$ac_cv_prog_AR
5712if test -n "$AR"; then
5713 echo "$as_me:$LINENO: result: $AR" >&5
5714echo "${ECHO_T}$AR" >&6
5715else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718fi
5719
5720fi
5721if test -z "$ac_cv_prog_AR"; then
5722 ac_ct_AR=$AR
5723 # Extract the first word of "ar", so it can be a program name with args.
5724set dummy ar; ac_word=$2
5725echo "$as_me:$LINENO: checking for $ac_word" >&5
5726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 if test -n "$ac_ct_AR"; then
5731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_ac_ct_AR="ar"
5741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744done
5745done
5746
5747 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5748fi
5749fi
5750ac_ct_AR=$ac_cv_prog_ac_ct_AR
5751if test -n "$ac_ct_AR"; then
5752 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5753echo "${ECHO_T}$ac_ct_AR" >&6
5754else
5755 echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757fi
5758
5759 AR=$ac_ct_AR
5760else
5761 AR="$ac_cv_prog_AR"
5762fi
5763
John Criswell7a73b802003-06-30 21:59:07 +00005764if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5766set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5767echo "$as_me:$LINENO: checking for $ac_word" >&5
5768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769if test "${ac_cv_prog_RANLIB+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772 if test -n "$RANLIB"; then
5773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786done
5787done
5788
5789fi
5790fi
5791RANLIB=$ac_cv_prog_RANLIB
5792if test -n "$RANLIB"; then
5793 echo "$as_me:$LINENO: result: $RANLIB" >&5
5794echo "${ECHO_T}$RANLIB" >&6
5795else
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798fi
5799
5800fi
5801if test -z "$ac_cv_prog_RANLIB"; then
5802 ac_ct_RANLIB=$RANLIB
5803 # Extract the first word of "ranlib", so it can be a program name with args.
5804set dummy ranlib; ac_word=$2
5805echo "$as_me:$LINENO: checking for $ac_word" >&5
5806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810 if test -n "$ac_ct_RANLIB"; then
5811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5812else
5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814for as_dir in $PATH
5815do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_ac_ct_RANLIB="ranlib"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824done
5825done
5826
5827 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5828fi
5829fi
5830ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5831if test -n "$ac_ct_RANLIB"; then
5832 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5833echo "${ECHO_T}$ac_ct_RANLIB" >&6
5834else
5835 echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
5837fi
5838
5839 RANLIB=$ac_ct_RANLIB
5840else
5841 RANLIB="$ac_cv_prog_RANLIB"
5842fi
5843
5844if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5846set dummy ${ac_tool_prefix}strip; ac_word=$2
5847echo "$as_me:$LINENO: checking for $ac_word" >&5
5848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849if test "${ac_cv_prog_STRIP+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852 if test -n "$STRIP"; then
5853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5854else
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866done
5867done
5868
5869fi
5870fi
5871STRIP=$ac_cv_prog_STRIP
5872if test -n "$STRIP"; then
5873 echo "$as_me:$LINENO: result: $STRIP" >&5
5874echo "${ECHO_T}$STRIP" >&6
5875else
5876 echo "$as_me:$LINENO: result: no" >&5
5877echo "${ECHO_T}no" >&6
5878fi
5879
5880fi
5881if test -z "$ac_cv_prog_STRIP"; then
5882 ac_ct_STRIP=$STRIP
5883 # Extract the first word of "strip", so it can be a program name with args.
5884set dummy strip; ac_word=$2
5885echo "$as_me:$LINENO: checking for $ac_word" >&5
5886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5887if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889else
5890 if test -n "$ac_ct_STRIP"; then
5891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5892else
5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_ac_ct_STRIP="strip"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904done
5905done
5906
5907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5908fi
5909fi
5910ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5911if test -n "$ac_ct_STRIP"; then
5912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5913echo "${ECHO_T}$ac_ct_STRIP" >&6
5914else
5915 echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6
5917fi
5918
5919 STRIP=$ac_ct_STRIP
5920else
5921 STRIP="$ac_cv_prog_STRIP"
5922fi
5923
5924
John Criswell7a73b802003-06-30 21:59:07 +00005925old_CC="$CC"
5926old_CFLAGS="$CFLAGS"
5927
5928# Set sane defaults for various variables
5929test -z "$AR" && AR=ar
5930test -z "$AR_FLAGS" && AR_FLAGS=cru
5931test -z "$AS" && AS=as
5932test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005933test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005934test -z "$DLLTOOL" && DLLTOOL=dlltool
5935test -z "$LD" && LD=ld
5936test -z "$LN_S" && LN_S="ln -s"
5937test -z "$MAGIC_CMD" && MAGIC_CMD=file
5938test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005939test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005940test -z "$OBJDUMP" && OBJDUMP=objdump
5941test -z "$RANLIB" && RANLIB=:
5942test -z "$STRIP" && STRIP=:
5943test -z "$ac_objext" && ac_objext=o
5944
John Criswell7a73b802003-06-30 21:59:07 +00005945# Determine commands to create old-style static archives.
5946old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5947old_postinstall_cmds='chmod 644 $oldlib'
5948old_postuninstall_cmds=
5949
5950if test -n "$RANLIB"; then
5951 case $host_os in
5952 openbsd*)
5953 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5954 ;;
5955 *)
5956 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5957 ;;
5958 esac
5959 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5960fi
5961
John Criswell47fdd832003-07-14 16:52:07 +00005962# Only perform the check for file, if the check method requires it
5963case $deplibs_check_method in
5964file_magic*)
5965 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5966 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5967echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5968if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005970else
John Criswell47fdd832003-07-14 16:52:07 +00005971 case $MAGIC_CMD in
5972[\\/*] | ?:[\\/]*)
5973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5974 ;;
5975*)
5976 lt_save_MAGIC_CMD="$MAGIC_CMD"
5977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5979 for ac_dir in $ac_dummy; do
5980 IFS="$lt_save_ifs"
5981 test -z "$ac_dir" && ac_dir=.
5982 if test -f $ac_dir/${ac_tool_prefix}file; then
5983 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5984 if test -n "$file_magic_test_file"; then
5985 case $deplibs_check_method in
5986 "file_magic "*)
5987 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5990 $EGREP "$file_magic_regex" > /dev/null; then
5991 :
5992 else
5993 cat <<EOF 1>&2
5994
5995*** Warning: the command libtool uses to detect shared libraries,
5996*** $file_magic_cmd, produces output that libtool cannot recognize.
5997*** The result is that libtool may fail to recognize shared libraries
5998*** as such. This will affect the creation of libtool libraries that
5999*** depend on shared libraries, but programs linked with such libtool
6000*** libraries will work regardless of this problem. Nevertheless, you
6001*** may want to report the problem to your system manager and/or to
6002*** bug-libtool@gnu.org
6003
6004EOF
6005 fi ;;
6006 esac
6007 fi
6008 break
6009 fi
6010 done
6011 IFS="$lt_save_ifs"
6012 MAGIC_CMD="$lt_save_MAGIC_CMD"
6013 ;;
6014esac
John Criswell7a73b802003-06-30 21:59:07 +00006015fi
John Criswell7a73b802003-06-30 21:59:07 +00006016
John Criswell47fdd832003-07-14 16:52:07 +00006017MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018if test -n "$MAGIC_CMD"; then
6019 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6020echo "${ECHO_T}$MAGIC_CMD" >&6
6021else
6022 echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
6024fi
John Criswell7a73b802003-06-30 21:59:07 +00006025
John Criswell47fdd832003-07-14 16:52:07 +00006026if test -z "$lt_cv_path_MAGIC_CMD"; then
6027 if test -n "$ac_tool_prefix"; then
6028 echo "$as_me:$LINENO: checking for file" >&5
6029echo $ECHO_N "checking for file... $ECHO_C" >&6
6030if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 case $MAGIC_CMD in
6034[\\/*] | ?:[\\/]*)
6035 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6036 ;;
6037*)
6038 lt_save_MAGIC_CMD="$MAGIC_CMD"
6039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6040 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6041 for ac_dir in $ac_dummy; do
6042 IFS="$lt_save_ifs"
6043 test -z "$ac_dir" && ac_dir=.
6044 if test -f $ac_dir/file; then
6045 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6046 if test -n "$file_magic_test_file"; then
6047 case $deplibs_check_method in
6048 "file_magic "*)
6049 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6051 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6052 $EGREP "$file_magic_regex" > /dev/null; then
6053 :
6054 else
6055 cat <<EOF 1>&2
6056
6057*** Warning: the command libtool uses to detect shared libraries,
6058*** $file_magic_cmd, produces output that libtool cannot recognize.
6059*** The result is that libtool may fail to recognize shared libraries
6060*** as such. This will affect the creation of libtool libraries that
6061*** depend on shared libraries, but programs linked with such libtool
6062*** libraries will work regardless of this problem. Nevertheless, you
6063*** may want to report the problem to your system manager and/or to
6064*** bug-libtool@gnu.org
6065
6066EOF
6067 fi ;;
6068 esac
6069 fi
6070 break
6071 fi
6072 done
6073 IFS="$lt_save_ifs"
6074 MAGIC_CMD="$lt_save_MAGIC_CMD"
6075 ;;
6076esac
6077fi
6078
6079MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6080if test -n "$MAGIC_CMD"; then
6081 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6082echo "${ECHO_T}$MAGIC_CMD" >&6
6083else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086fi
6087
6088 else
6089 MAGIC_CMD=:
6090 fi
6091fi
6092
6093 fi
6094 ;;
6095esac
6096
6097enable_dlopen=no
6098enable_win32_dll=no
6099
6100# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6101if test "${enable_libtool_lock+set}" = set; then
6102 enableval="$enable_libtool_lock"
6103
6104fi;
6105test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6106
John Criswell7a73b802003-06-30 21:59:07 +00006107
6108# Check whether --with-pic or --without-pic was given.
6109if test "${with_pic+set}" = set; then
6110 withval="$with_pic"
6111 pic_mode="$withval"
6112else
6113 pic_mode=default
6114fi;
6115test -z "$pic_mode" && pic_mode=default
6116
John Criswell47fdd832003-07-14 16:52:07 +00006117# Use C for the default configuration in the libtool script
6118tagname=
6119lt_save_CC="$CC"
6120ac_ext=c
6121ac_cpp='$CPP $CPPFLAGS'
6122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124ac_compiler_gnu=$ac_cv_c_compiler_gnu
6125
6126
6127# Source file extension for C test sources.
6128ac_ext=c
6129
6130# Object file extension for compiled C test sources.
6131objext=o
6132objext=$objext
6133
6134# Code to be used in simple compile tests
6135lt_simple_compile_test_code="int some_variable = 0;\n"
6136
6137# Code to be used in simple link tests
6138lt_simple_link_test_code='int main(){return(0);}\n'
6139
6140
6141# If no C compiler was specified, use CC.
6142LTCC=${LTCC-"$CC"}
6143
6144# Allow CC to be a program name with arguments.
6145compiler=$CC
6146
6147
6148#
6149# Check for any special shared library compilation flags.
6150#
6151lt_prog_cc_shlib=
6152if test "$GCC" = no; then
6153 case $host_os in
6154 sco3.2v5*)
6155 lt_prog_cc_shlib='-belf'
6156 ;;
6157 esac
6158fi
6159if test -n "$lt_prog_cc_shlib"; then
6160 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6161echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6162 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6163 else
6164 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6165echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6166 lt_cv_prog_cc_can_build_shared=no
6167 fi
6168fi
6169
6170
6171#
6172# Check to make sure the static flag actually works.
6173#
6174echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6175echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6176if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
John Criswell47fdd832003-07-14 16:52:07 +00006179 lt_prog_compiler_static_works=no
6180 save_LDFLAGS="$LDFLAGS"
6181 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6184 # The compiler can only warn and ignore the option if not recognized
6185 # So say no if there are warnings
6186 if test -s conftest.err; then
6187 # Append any errors to the config.log.
6188 cat conftest.err 1>&5
6189 else
6190 lt_prog_compiler_static_works=yes
6191 fi
6192 fi
6193 $rm conftest*
6194 LDFLAGS="$save_LDFLAGS"
6195
6196fi
6197echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6198echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6199
6200if test x"$lt_prog_compiler_static_works" = xyes; then
6201 :
6202else
6203 lt_prog_compiler_static=
6204fi
6205
6206
6207
6208## CAVEAT EMPTOR:
6209## There is no encapsulation within the following macros, do not change
6210## the running order or otherwise move them around unless you know exactly
6211## what you are doing...
6212
6213lt_prog_compiler_no_builtin_flag=
6214
6215if test "$GCC" = yes; then
6216 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6217
6218 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6219echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6220if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223 lt_cv_prog_compiler_rtti_exceptions=no
6224 ac_outfile=conftest.$ac_objext
6225 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6226 lt_compiler_flag="-fno-rtti -fno-exceptions"
6227 # Insert the option either (1) after the last *FLAGS variable, or
6228 # (2) before a word containing "conftest.", or (3) at the end.
6229 # Note that $ac_compile itself does not contain backslashes and begins
6230 # with a dollar sign (not a hyphen), so the echo should work correctly.
6231 # The option is referenced via a variable to avoid confusing sed.
6232 lt_compile=`echo "$ac_compile" | $SED \
6233 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6235 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +00006236 (eval echo "\"\$as_me:6236: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006237 (eval "$lt_compile" 2>conftest.err)
6238 ac_status=$?
6239 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +00006240 echo "$as_me:6240: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006241 if (exit $ac_status) && test -s "$ac_outfile"; then
6242 # The compiler can only warn and ignore the option if not recognized
6243 # So say no if there are warnings
6244 if test ! -s conftest.err; then
6245 lt_cv_prog_compiler_rtti_exceptions=yes
6246 fi
6247 fi
6248 $rm conftest*
6249
6250fi
6251echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6252echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6253
6254if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6255 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6256else
6257 :
6258fi
6259
6260fi
6261
6262lt_prog_compiler_wl=
6263lt_prog_compiler_pic=
6264lt_prog_compiler_static=
6265
6266echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6267echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006268
6269 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006270 lt_prog_compiler_wl='-Wl,'
6271 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006272
6273 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006274 aix*)
6275 # All AIX code is PIC.
6276 if test "$host_cpu" = ia64; then
6277 # AIX 5 now supports IA64 processor
6278 lt_prog_compiler_static='-Bstatic'
6279 fi
John Criswell7a73b802003-06-30 21:59:07 +00006280 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006281
John Criswell7a73b802003-06-30 21:59:07 +00006282 amigaos*)
6283 # FIXME: we need at least 68020 code to build shared libraries, but
6284 # adding the `-m68020' flag to GCC prevents building anything better,
6285 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006286 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006287 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006288
6289 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006290 # PIC is the default for these OSes.
6291 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006292
6293 mingw* | pw32* | os2*)
6294 # This hack is so that the source file can tell whether it is being
6295 # built for inclusion in a dll (and should export symbols for example).
6296 lt_prog_compiler_pic='-DDLL_EXPORT'
6297 ;;
6298
John Criswell7a73b802003-06-30 21:59:07 +00006299 darwin* | rhapsody*)
6300 # PIC is the default on this platform
6301 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006302 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006303 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006304
6305 msdosdjgpp*)
6306 # Just because we use GCC doesn't mean we suddenly get shared libraries
6307 # on systems that don't support them.
6308 lt_prog_compiler_can_build_shared=no
6309 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006310 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006311
John Criswell7a73b802003-06-30 21:59:07 +00006312 sysv4*MP*)
6313 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006314 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006315 fi
6316 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006317
6318 hpux*)
6319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6320 # not for PA HP-UX.
6321 case "$host_cpu" in
6322 hppa*64*|ia64*)
6323 # +Z the default
6324 ;;
6325 *)
6326 lt_prog_compiler_pic='-fPIC'
6327 ;;
6328 esac
6329 ;;
6330
John Criswell7a73b802003-06-30 21:59:07 +00006331 *)
John Criswell47fdd832003-07-14 16:52:07 +00006332 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006333 ;;
6334 esac
6335 else
John Criswell47fdd832003-07-14 16:52:07 +00006336 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006337 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006338 aix*)
6339 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006340 if test "$host_cpu" = ia64; then
6341 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006342 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006343 else
John Criswell47fdd832003-07-14 16:52:07 +00006344 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006345 fi
6346 ;;
6347
John Criswell47fdd832003-07-14 16:52:07 +00006348 mingw* | pw32* | os2*)
6349 # This hack is so that the source file can tell whether it is being
6350 # built for inclusion in a dll (and should export symbols for example).
6351 lt_prog_compiler_pic='-DDLL_EXPORT'
6352 ;;
6353
John Criswell7a73b802003-06-30 21:59:07 +00006354 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006355 lt_prog_compiler_wl='-Wl,'
6356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6357 # not for PA HP-UX.
6358 case "$host_cpu" in
6359 hppa*64*|ia64*)
6360 # +Z the default
6361 ;;
6362 *)
6363 lt_prog_compiler_pic='+Z'
6364 ;;
6365 esac
6366 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6367 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006368 ;;
6369
John Criswell47fdd832003-07-14 16:52:07 +00006370 irix5* | irix6* | nonstopux*)
6371 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006372 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006373 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006374 ;;
6375
6376 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006377 lt_prog_compiler_pic='-KPIC'
6378 lt_prog_compiler_static='-Bstatic'
6379 ;;
6380
6381 linux*)
6382 case $CC in
6383 icc|ecc)
6384 lt_prog_compiler_wl='-Wl,'
6385 lt_prog_compiler_pic='-KPIC'
6386 lt_prog_compiler_static='-static'
6387 ;;
6388 ccc)
6389 lt_prog_compiler_wl='-Wl,'
6390 # All Alpha code is PIC.
6391 lt_prog_compiler_static='-non_shared'
6392 ;;
6393 esac
John Criswell7a73b802003-06-30 21:59:07 +00006394 ;;
6395
6396 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006397 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006398 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006399 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006400 ;;
6401
6402 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006403 lt_prog_compiler_pic='-Kpic'
6404 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006405 ;;
6406
6407 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006408 lt_prog_compiler_wl='-Wl,'
6409 lt_prog_compiler_pic='-KPIC'
6410 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006411 ;;
6412
6413 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006414 lt_prog_compiler_wl='-Qoption ld '
6415 lt_prog_compiler_pic='-PIC'
6416 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006417 ;;
6418
6419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006420 lt_prog_compiler_wl='-Wl,'
6421 lt_prog_compiler_pic='-KPIC'
6422 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006423 ;;
6424
6425 sysv4*MP*)
6426 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006427 lt_prog_compiler_pic='-Kconform_pic'
6428 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006429 fi
6430 ;;
6431
John Criswell47fdd832003-07-14 16:52:07 +00006432 uts4*)
6433 lt_prog_compiler_pic='-pic'
6434 lt_prog_compiler_static='-Bstatic'
6435 ;;
6436
John Criswell7a73b802003-06-30 21:59:07 +00006437 *)
John Criswell47fdd832003-07-14 16:52:07 +00006438 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006439 ;;
6440 esac
6441 fi
6442
John Criswell47fdd832003-07-14 16:52:07 +00006443echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6444echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006445
John Criswell47fdd832003-07-14 16:52:07 +00006446#
6447# Check to make sure the PIC flag actually works.
6448#
6449if test -n "$lt_prog_compiler_pic"; then
6450 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6451echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6452if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
John Criswell47fdd832003-07-14 16:52:07 +00006455 lt_prog_compiler_pic_works=no
6456 ac_outfile=conftest.$ac_objext
6457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6458 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6459 # Insert the option either (1) after the last *FLAGS variable, or
6460 # (2) before a word containing "conftest.", or (3) at the end.
6461 # Note that $ac_compile itself does not contain backslashes and begins
6462 # with a dollar sign (not a hyphen), so the echo should work correctly.
6463 # The option is referenced via a variable to avoid confusing sed.
6464 lt_compile=`echo "$ac_compile" | $SED \
6465 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6467 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +00006468 (eval echo "\"\$as_me:6468: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006469 (eval "$lt_compile" 2>conftest.err)
6470 ac_status=$?
6471 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +00006472 echo "$as_me:6472: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006473 if (exit $ac_status) && test -s "$ac_outfile"; then
6474 # The compiler can only warn and ignore the option if not recognized
6475 # So say no if there are warnings
6476 if test ! -s conftest.err; then
6477 lt_prog_compiler_pic_works=yes
6478 fi
6479 fi
6480 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006481
John Criswell47fdd832003-07-14 16:52:07 +00006482fi
6483echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6484echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006485
John Criswell47fdd832003-07-14 16:52:07 +00006486if test x"$lt_prog_compiler_pic_works" = xyes; then
6487 case $lt_prog_compiler_pic in
6488 "" | " "*) ;;
6489 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6490 esac
John Criswell7a73b802003-06-30 21:59:07 +00006491else
John Criswell47fdd832003-07-14 16:52:07 +00006492 lt_prog_compiler_pic=
6493 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006494fi
6495
John Criswell7a73b802003-06-30 21:59:07 +00006496fi
John Criswell47fdd832003-07-14 16:52:07 +00006497case "$host_os" in
6498 # For platforms which do not support PIC, -DPIC is meaningless:
6499 *djgpp*)
6500 lt_prog_compiler_pic=
6501 ;;
6502 *)
6503 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6504 ;;
6505esac
John Criswell7a73b802003-06-30 21:59:07 +00006506
John Criswell7a73b802003-06-30 21:59:07 +00006507echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6508echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006509if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006510 echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
John Criswell47fdd832003-07-14 16:52:07 +00006512 lt_cv_prog_compiler_c_o=no
6513 $rm -r conftest 2>/dev/null
6514 mkdir conftest
6515 cd conftest
6516 mkdir out
6517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006518
John Criswell47fdd832003-07-14 16:52:07 +00006519 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6520 # that will create temporary files in the current directory regardless of
6521 # the output directory. Thus, making CWD read-only will cause this test
6522 # to fail, enabling locking or at least warning the user not to do parallel
6523 # builds.
6524 chmod -w .
6525
6526 lt_compiler_flag="-o out/conftest2.$ac_objext"
6527 # Insert the option either (1) after the last *FLAGS variable, or
6528 # (2) before a word containing "conftest.", or (3) at the end.
6529 # Note that $ac_compile itself does not contain backslashes and begins
6530 # with a dollar sign (not a hyphen), so the echo should work correctly.
6531 lt_compile=`echo "$ac_compile" | $SED \
6532 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6534 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +00006535 (eval echo "\"\$as_me:6535: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006536 (eval "$lt_compile" 2>out/conftest.err)
6537 ac_status=$?
6538 cat out/conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +00006539 echo "$as_me:6539: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6541 then
6542 # The compiler can only warn and ignore the option if not recognized
6543 # So say no if there are warnings
6544 if test ! -s out/conftest.err; then
6545 lt_cv_prog_compiler_c_o=yes
6546 fi
6547 fi
6548 chmod u+w .
6549 $rm conftest* out/*
6550 rmdir out
6551 cd ..
6552 rmdir conftest
6553 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006554
6555fi
John Criswell47fdd832003-07-14 16:52:07 +00006556echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6557echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006558
John Criswell7a73b802003-06-30 21:59:07 +00006559
John Criswell7a73b802003-06-30 21:59:07 +00006560hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006561if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006562 # do not overwrite the value of need_locks provided by the user
6563 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6564echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6565 hard_links=yes
6566 $rm conftest*
6567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6568 touch conftest.a
6569 ln conftest.a conftest.b 2>&5 || hard_links=no
6570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6571 echo "$as_me:$LINENO: result: $hard_links" >&5
6572echo "${ECHO_T}$hard_links" >&6
6573 if test "$hard_links" = no; then
6574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6575echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6576 need_locks=warn
6577 fi
6578else
6579 need_locks=no
6580fi
John Criswell7a73b802003-06-30 21:59:07 +00006581
John Criswell47fdd832003-07-14 16:52:07 +00006582echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6583echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6584
6585 runpath_var=
6586 allow_undefined_flag=
6587 enable_shared_with_static_runtimes=no
6588 archive_cmds=
6589 archive_expsym_cmds=
6590 old_archive_From_new_cmds=
6591 old_archive_from_expsyms_cmds=
6592 export_dynamic_flag_spec=
6593 whole_archive_flag_spec=
6594 thread_safe_flag_spec=
6595 hardcode_libdir_flag_spec=
6596 hardcode_libdir_flag_spec_ld=
6597 hardcode_libdir_separator=
6598 hardcode_direct=no
6599 hardcode_minus_L=no
6600 hardcode_shlibpath_var=unsupported
6601 link_all_deplibs=unknown
6602 hardcode_automatic=no
6603 module_cmds=
6604 module_expsym_cmds=
6605 always_export_symbols=no
6606 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6607 # include_expsyms should be a list of space-separated symbols to be *always*
6608 # included in the symbol list
6609 include_expsyms=
6610 # exclude_expsyms can be an extended regexp of symbols to exclude
6611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6613 # as well as any symbol that contains `d'.
6614 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6616 # platforms (ab)use it in PIC code, but their linkers get confused if
6617 # the symbol is explicitly referenced. Since portable code cannot
6618 # rely on this symbol name, it's probably fine to never include it in
6619 # preloaded symbol tables.
6620 extract_expsyms_cmds=
6621
6622 case $host_os in
6623 cygwin* | mingw* | pw32*)
6624 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6625 # When not using gcc, we currently assume that we are using
6626 # Microsoft Visual C++.
6627 if test "$GCC" != yes; then
6628 with_gnu_ld=no
6629 fi
6630 ;;
6631 openbsd*)
6632 with_gnu_ld=no
6633 ;;
6634 esac
6635
6636 ld_shlibs=yes
6637 if test "$with_gnu_ld" = yes; then
6638 # If archive_cmds runs LD, not CC, wlarc should be empty
6639 wlarc='${wl}'
6640
6641 # See if GNU ld supports shared libraries.
6642 case $host_os in
6643 aix3* | aix4* | aix5*)
6644 # On AIX/PPC, the GNU linker is very broken
6645 if test "$host_cpu" != ia64; then
6646 ld_shlibs=no
6647 cat <<EOF 1>&2
6648
6649*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6650*** to be unable to reliably create shared libraries on AIX.
6651*** Therefore, libtool is disabling shared libraries support. If you
6652*** really care for shared libraries, you may want to modify your PATH
6653*** so that a non-GNU linker is found, and then restart.
6654
6655EOF
6656 fi
6657 ;;
6658
6659 amigaos*)
6660 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)'
6661 hardcode_libdir_flag_spec='-L$libdir'
6662 hardcode_minus_L=yes
6663
6664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6665 # that the semantics of dynamic libraries on AmigaOS, at least up
6666 # to version 4, is to share data among multiple programs linked
6667 # with the same dynamic library. Since this doesn't match the
6668 # behavior of shared libraries on other platforms, we can't use
6669 # them.
6670 ld_shlibs=no
6671 ;;
6672
6673 beos*)
6674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6675 allow_undefined_flag=unsupported
6676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6677 # support --undefined. This deserves some investigation. FIXME
6678 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6679 else
6680 ld_shlibs=no
6681 fi
6682 ;;
6683
6684 cygwin* | mingw* | pw32*)
6685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6686 # as there is no search path for DLLs.
6687 hardcode_libdir_flag_spec='-L$libdir'
6688 allow_undefined_flag=unsupported
6689 always_export_symbols=no
6690 enable_shared_with_static_runtimes=yes
6691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6692
6693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6695 # If the export-symbols file already is a .def file (1st line
6696 # is EXPORTS), use it as is; otherwise, prepend...
6697 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6698 cp $export_symbols $output_objdir/$soname.def;
6699 else
6700 echo EXPORTS > $output_objdir/$soname.def;
6701 cat $export_symbols >> $output_objdir/$soname.def;
6702 fi~
6703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6704 else
6705 ld_shlibs=no
6706 fi
6707 ;;
6708
6709 netbsd*)
6710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6711 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6712 wlarc=
6713 else
6714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6716 fi
6717 ;;
6718
6719 solaris* | sysv5*)
6720 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6721 ld_shlibs=no
6722 cat <<EOF 1>&2
6723
6724*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6725*** create shared libraries on Solaris systems. Therefore, libtool
6726*** is disabling shared libraries support. We urge you to upgrade GNU
6727*** binutils to release 2.9.1 or newer. Another option is to modify
6728*** your PATH or compiler configuration so that the native linker is
6729*** used, and then restart.
6730
6731EOF
6732 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6735 else
6736 ld_shlibs=no
6737 fi
6738 ;;
6739
6740 sunos4*)
6741 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6742 wlarc=
6743 hardcode_direct=yes
6744 hardcode_shlibpath_var=no
6745 ;;
6746
6747 *)
6748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6751 else
6752 ld_shlibs=no
6753 fi
6754 ;;
6755 esac
6756
6757 if test "$ld_shlibs" = yes; then
6758 runpath_var=LD_RUN_PATH
6759 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6760 export_dynamic_flag_spec='${wl}--export-dynamic'
6761 # ancient GNU ld didn't support --whole-archive et. al.
6762 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6763 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6764 else
6765 whole_archive_flag_spec=
6766 fi
6767 fi
6768 else
6769 # PORTME fill in a description of your system's linker (not GNU ld)
6770 case $host_os in
6771 aix3*)
6772 allow_undefined_flag=unsupported
6773 always_export_symbols=yes
6774 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'
6775 # Note: this linker hardcodes the directories in LIBPATH if there
6776 # are no directories specified by -L.
6777 hardcode_minus_L=yes
6778 if test "$GCC" = yes && test -z "$link_static_flag"; then
6779 # Neither direct hardcoding nor static linking is supported with a
6780 # broken collect2.
6781 hardcode_direct=unsupported
6782 fi
6783 ;;
6784
6785 aix4* | aix5*)
6786 if test "$host_cpu" = ia64; then
6787 # On IA64, the linker does run time linking by default, so we don't
6788 # have to do anything special.
6789 aix_use_runtimelinking=no
6790 exp_sym_flag='-Bexport'
6791 no_entry_flag=""
6792 else
6793 # If we're using GNU nm, then we don't want the "-C" option.
6794 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6795 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6796 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'
6797 else
6798 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'
6799 fi
6800 aix_use_runtimelinking=no
6801
6802 # Test if we are trying to use run time linking or normal
6803 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6804 # need to do runtime linking.
6805 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6806 for ld_flag in $LDFLAGS; do
6807 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6808 aix_use_runtimelinking=yes
6809 break
6810 fi
6811 done
6812 esac
6813
6814 exp_sym_flag='-bexport'
6815 no_entry_flag='-bnoentry'
6816 fi
6817
6818 # When large executables or shared objects are built, AIX ld can
6819 # have problems creating the table of contents. If linking a library
6820 # or program results in "error TOC overflow" add -mminimal-toc to
6821 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6822 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6823
6824 archive_cmds=''
6825 hardcode_direct=yes
6826 hardcode_libdir_separator=':'
6827 link_all_deplibs=yes
6828
6829 if test "$GCC" = yes; then
6830 case $host_os in aix4.012|aix4.012.*)
6831 # We only want to do this on AIX 4.2 and lower, the check
6832 # below for broken collect2 doesn't work under 4.3+
6833 collect2name=`${CC} -print-prog-name=collect2`
6834 if test -f "$collect2name" && \
6835 strings "$collect2name" | grep resolve_lib_name >/dev/null
6836 then
6837 # We have reworked collect2
6838 hardcode_direct=yes
6839 else
6840 # We have old collect2
6841 hardcode_direct=unsupported
6842 # It fails to find uninstalled libraries when the uninstalled
6843 # path is not listed in the libpath. Setting hardcode_minus_L
6844 # to unsupported forces relinking
6845 hardcode_minus_L=yes
6846 hardcode_libdir_flag_spec='-L$libdir'
6847 hardcode_libdir_separator=
6848 fi
6849 esac
6850 shared_flag='-shared'
6851 else
6852 # not using gcc
6853 if test "$host_cpu" = ia64; then
6854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6855 # chokes on -Wl,-G. The following line is correct:
6856 shared_flag='-G'
6857 else
6858 if test "$aix_use_runtimelinking" = yes; then
6859 shared_flag='${wl}-G'
6860 else
6861 shared_flag='${wl}-bM:SRE'
6862 fi
6863 fi
6864 fi
6865
6866 # It seems that -bexpall does not export symbols beginning with
6867 # underscore (_), so it is better to generate a list of symbols to export.
6868 always_export_symbols=yes
6869 if test "$aix_use_runtimelinking" = yes; then
6870 # Warning - without using the other runtime loading flags (-brtl),
6871 # -berok will link without error, but may produce a broken library.
6872 allow_undefined_flag='-berok'
6873 # Determine the default libpath from the value encoded in an empty executable.
6874 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006875#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006876/* confdefs.h. */
6877_ACEOF
6878cat confdefs.h >>conftest.$ac_ext
6879cat >>conftest.$ac_ext <<_ACEOF
6880/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006881
John Criswell7a73b802003-06-30 21:59:07 +00006882int
6883main ()
6884{
John Criswell47fdd832003-07-14 16:52:07 +00006885
John Criswell7a73b802003-06-30 21:59:07 +00006886 ;
6887 return 0;
6888}
6889_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006890rm -f conftest.$ac_objext conftest$ac_exeext
6891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006896 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006902
John Criswell47fdd832003-07-14 16:52:07 +00006903aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6904}'`
6905# Check for a 64-bit object if we didn't find anything.
6906if 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; }
6907}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006908else
6909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006910sed 's/^/| /' conftest.$ac_ext >&5
6911
John Criswell7a73b802003-06-30 21:59:07 +00006912fi
John Criswell47fdd832003-07-14 16:52:07 +00006913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006915
John Criswell47fdd832003-07-14 16:52:07 +00006916 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6917 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"
6918 else
6919 if test "$host_cpu" = ia64; then
6920 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6921 allow_undefined_flag="-z nodefs"
6922 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"
6923 else
6924 # Determine the default libpath from the value encoded in an empty executable.
6925 cat >conftest.$ac_ext <<_ACEOF
6926#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006927/* confdefs.h. */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006932
John Criswell47fdd832003-07-14 16:52:07 +00006933int
6934main ()
6935{
John Criswell7a73b802003-06-30 21:59:07 +00006936
John Criswell47fdd832003-07-14 16:52:07 +00006937 ;
6938 return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext conftest$ac_exeext
6942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006953
John Criswell47fdd832003-07-14 16:52:07 +00006954aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6955}'`
6956# Check for a 64-bit object if we didn't find anything.
6957if 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; }
6958}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006959else
John Criswell47fdd832003-07-14 16:52:07 +00006960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006961sed 's/^/| /' conftest.$ac_ext >&5
6962
John Criswell47fdd832003-07-14 16:52:07 +00006963fi
6964rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6965if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006966
John Criswell47fdd832003-07-14 16:52:07 +00006967 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6968 # Warning - without using the other run time loading flags,
6969 # -berok will link without error, but may produce a broken library.
6970 no_undefined_flag=' ${wl}-bernotok'
6971 allow_undefined_flag=' ${wl}-berok'
6972 # -bexpall does not export symbols beginning with underscore (_)
6973 always_export_symbols=yes
6974 # Exported symbols can be pulled into shared objects from archives
6975 whole_archive_flag_spec=' '
6976 archive_cmds_need_lc=yes
6977 # This is similar to how AIX traditionally builds it's shared libraries.
6978 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 +00006979 fi
6980 fi
John Criswell7a73b802003-06-30 21:59:07 +00006981 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006982
6983 amigaos*)
6984 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)'
6985 hardcode_libdir_flag_spec='-L$libdir'
6986 hardcode_minus_L=yes
6987 # see comment about different semantics on the GNU ld section
6988 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006989 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006990
John Criswell47fdd832003-07-14 16:52:07 +00006991 bsdi4*)
6992 export_dynamic_flag_spec=-rdynamic
6993 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006994
John Criswell47fdd832003-07-14 16:52:07 +00006995 cygwin* | mingw* | pw32*)
6996 # When not using gcc, we currently assume that we are using
6997 # Microsoft Visual C++.
6998 # hardcode_libdir_flag_spec is actually meaningless, as there is
6999 # no search path for DLLs.
7000 hardcode_libdir_flag_spec=' '
7001 allow_undefined_flag=unsupported
7002 # Tell ltmain to make .lib files, not .a files.
7003 libext=lib
7004 # Tell ltmain to make .dll files, not .so files.
7005 shrext=".dll"
7006 # FIXME: Setting linknames here is a bad hack.
7007 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7008 # The linker will automatically build a .lib file if we build a DLL.
7009 old_archive_From_new_cmds='true'
7010 # FIXME: Should let the user specify the lib program.
7011 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7012 fix_srcfile_path='`cygpath -w "$srcfile"`'
7013 enable_shared_with_static_runtimes=yes
7014 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007015
John Criswell47fdd832003-07-14 16:52:07 +00007016 darwin* | rhapsody*)
7017 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7018 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007019 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007020 rhapsody* | darwin1.[012])
7021 allow_undefined_flag='-undefined suppress'
7022 ;;
7023 *) # Darwin 1.3 on
7024 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007025 ;;
7026 esac
John Criswell47fdd832003-07-14 16:52:07 +00007027 # FIXME: Relying on posixy $() will cause problems for
7028 # cross-compilation, but unfortunately the echo tests do not
7029 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7030 # `"' quotes if we put them in here... so don't!
7031 lt_int_apple_cc_single_mod=no
7032 output_verbose_link_cmd='echo'
7033 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7034 lt_int_apple_cc_single_mod=yes
7035 fi
7036 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7037 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7038 else
7039 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'
7040 fi
7041 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7043 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7044 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}'
7045 else
7046 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}'
7047 fi
7048 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}'
7049 hardcode_direct=no
7050 hardcode_automatic=yes
7051 hardcode_shlibpath_var=unsupported
7052 whole_archive_flag_spec='-all_load $convenience'
7053 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007054 fi
John Criswell47fdd832003-07-14 16:52:07 +00007055 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007056
John Criswell47fdd832003-07-14 16:52:07 +00007057 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007059 hardcode_libdir_flag_spec='-L$libdir'
7060 hardcode_shlibpath_var=no
7061 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007062
John Criswell47fdd832003-07-14 16:52:07 +00007063 freebsd1*)
7064 ld_shlibs=no
7065 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007066
John Criswell47fdd832003-07-14 16:52:07 +00007067 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7068 # support. Future versions do this automatically, but an explicit c++rt0.o
7069 # does not break anything, and helps significantly (at the cost of a little
7070 # extra space).
7071 freebsd2.2*)
7072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7073 hardcode_libdir_flag_spec='-R$libdir'
7074 hardcode_direct=yes
7075 hardcode_shlibpath_var=no
7076 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007077
John Criswell47fdd832003-07-14 16:52:07 +00007078 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7079 freebsd2*)
7080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7081 hardcode_direct=yes
7082 hardcode_minus_L=yes
7083 hardcode_shlibpath_var=no
7084 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007085
John Criswell47fdd832003-07-14 16:52:07 +00007086 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7087 freebsd*)
7088 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7089 hardcode_libdir_flag_spec='-R$libdir'
7090 hardcode_direct=yes
7091 hardcode_shlibpath_var=no
7092 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007093
John Criswell47fdd832003-07-14 16:52:07 +00007094 hpux9*)
7095 if test "$GCC" = yes; then
7096 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'
7097 else
7098 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'
7099 fi
7100 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7101 hardcode_libdir_separator=:
7102 hardcode_direct=yes
7103
7104 # hardcode_minus_L: Not really in the search PATH,
7105 # but as the default location of the library.
7106 hardcode_minus_L=yes
7107 export_dynamic_flag_spec='${wl}-E'
7108 ;;
7109
7110 hpux10* | hpux11*)
7111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7112 case "$host_cpu" in
7113 hppa*64*|ia64*)
7114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7115 ;;
7116 *)
7117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7118 ;;
7119 esac
7120 else
7121 case "$host_cpu" in
7122 hppa*64*|ia64*)
7123 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7124 ;;
7125 *)
7126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7127 ;;
7128 esac
7129 fi
7130 if test "$with_gnu_ld" = no; then
7131 case "$host_cpu" in
7132 hppa*64*)
7133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7134 hardcode_libdir_flag_spec_ld='+b $libdir'
7135 hardcode_libdir_separator=:
7136 hardcode_direct=no
7137 hardcode_shlibpath_var=no
7138 ;;
7139 ia64*)
7140 hardcode_libdir_flag_spec='-L$libdir'
7141 hardcode_direct=no
7142 hardcode_shlibpath_var=no
7143
7144 # hardcode_minus_L: Not really in the search PATH,
7145 # but as the default location of the library.
7146 hardcode_minus_L=yes
7147 ;;
7148 *)
7149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7150 hardcode_libdir_separator=:
7151 hardcode_direct=yes
7152 export_dynamic_flag_spec='${wl}-E'
7153
7154 # hardcode_minus_L: Not really in the search PATH,
7155 # but as the default location of the library.
7156 hardcode_minus_L=yes
7157 ;;
7158 esac
7159 fi
7160 ;;
7161
7162 irix5* | irix6* | nonstopux*)
7163 if test "$GCC" = yes; then
7164 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'
7165 else
7166 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'
7167 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7168 fi
7169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7170 hardcode_libdir_separator=:
7171 link_all_deplibs=yes
7172 ;;
7173
7174 netbsd*)
7175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7177 else
7178 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7179 fi
7180 hardcode_libdir_flag_spec='-R$libdir'
7181 hardcode_direct=yes
7182 hardcode_shlibpath_var=no
7183 ;;
7184
7185 newsos6)
7186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7187 hardcode_direct=yes
7188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7189 hardcode_libdir_separator=:
7190 hardcode_shlibpath_var=no
7191 ;;
7192
7193 openbsd*)
7194 hardcode_direct=yes
7195 hardcode_shlibpath_var=no
7196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7197 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7199 export_dynamic_flag_spec='${wl}-E'
7200 else
7201 case $host_os in
7202 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7204 hardcode_libdir_flag_spec='-R$libdir'
7205 ;;
7206 *)
7207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7209 ;;
7210 esac
7211 fi
7212 ;;
7213
7214 os2*)
7215 hardcode_libdir_flag_spec='-L$libdir'
7216 hardcode_minus_L=yes
7217 allow_undefined_flag=unsupported
7218 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'
7219 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7220 ;;
7221
7222 osf3*)
7223 if test "$GCC" = yes; then
7224 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7225 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'
7226 else
7227 allow_undefined_flag=' -expect_unresolved \*'
7228 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'
7229 fi
7230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7231 hardcode_libdir_separator=:
7232 ;;
7233
7234 osf4* | osf5*) # as osf3* with the addition of -msym flag
7235 if test "$GCC" = yes; then
7236 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7237 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'
7238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7239 else
7240 allow_undefined_flag=' -expect_unresolved \*'
7241 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'
7242 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7243 $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'
7244
7245 # Both c and cxx compiler support -rpath directly
7246 hardcode_libdir_flag_spec='-rpath $libdir'
7247 fi
7248 hardcode_libdir_separator=:
7249 ;;
7250
7251 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7253 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007254 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007255 runpath_var=LD_RUN_PATH
7256 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007257 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007258
John Criswell47fdd832003-07-14 16:52:07 +00007259 solaris*)
7260 no_undefined_flag=' -z text'
7261 if test "$GCC" = yes; then
7262 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7263 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7264 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7265 else
7266 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7267 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7268 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7269 fi
7270 hardcode_libdir_flag_spec='-R$libdir'
7271 hardcode_shlibpath_var=no
7272 case $host_os in
7273 solaris2.[0-5] | solaris2.[0-5].*) ;;
7274 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7275 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7276 esac
7277 link_all_deplibs=yes
7278 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007279
John Criswell47fdd832003-07-14 16:52:07 +00007280 sunos4*)
7281 if test "x$host_vendor" = xsequent; then
7282 # Use $CC to link under sequent, because it throws in some extra .o
7283 # files that make .init and .fini sections work.
7284 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7285 else
7286 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7287 fi
7288 hardcode_libdir_flag_spec='-L$libdir'
7289 hardcode_direct=yes
7290 hardcode_minus_L=yes
7291 hardcode_shlibpath_var=no
7292 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007293
John Criswell47fdd832003-07-14 16:52:07 +00007294 sysv4)
7295 case $host_vendor in
7296 sni)
7297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7298 hardcode_direct=yes # is this really true???
7299 ;;
7300 siemens)
7301 ## LD is ld it makes a PLAMLIB
7302 ## CC just makes a GrossModule.
7303 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7304 reload_cmds='$CC -r -o $output$reload_objs'
7305 hardcode_direct=no
7306 ;;
7307 motorola)
7308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7310 ;;
7311 esac
7312 runpath_var='LD_RUN_PATH'
7313 hardcode_shlibpath_var=no
7314 ;;
7315
7316 sysv4.3*)
7317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7318 hardcode_shlibpath_var=no
7319 export_dynamic_flag_spec='-Bexport'
7320 ;;
7321
7322 sysv4*MP*)
7323 if test -d /usr/nec; then
7324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325 hardcode_shlibpath_var=no
7326 runpath_var=LD_RUN_PATH
7327 hardcode_runpath_var=yes
7328 ld_shlibs=yes
7329 fi
7330 ;;
7331
7332 sysv4.2uw2*)
7333 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_direct=yes
7335 hardcode_minus_L=no
7336 hardcode_shlibpath_var=no
7337 hardcode_runpath_var=yes
7338 runpath_var=LD_RUN_PATH
7339 ;;
7340
7341 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7342 no_undefined_flag='${wl}-z ${wl}text'
7343 if test "$GCC" = yes; then
7344 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7345 else
7346 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7347 fi
7348 runpath_var='LD_RUN_PATH'
7349 hardcode_shlibpath_var=no
7350 ;;
7351
7352 sysv5*)
7353 no_undefined_flag=' -z text'
7354 # $CC -shared without GNU ld will not create a library from C++
7355 # object files and a static libstdc++, better avoid it by now
7356 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7358 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7359 hardcode_libdir_flag_spec=
7360 hardcode_shlibpath_var=no
7361 runpath_var='LD_RUN_PATH'
7362 ;;
7363
7364 uts4*)
7365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366 hardcode_libdir_flag_spec='-L$libdir'
7367 hardcode_shlibpath_var=no
7368 ;;
7369
7370 *)
7371 ld_shlibs=no
7372 ;;
7373 esac
7374 fi
7375
John Criswell7a73b802003-06-30 21:59:07 +00007376echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7377echo "${ECHO_T}$ld_shlibs" >&6
7378test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007379
John Criswell47fdd832003-07-14 16:52:07 +00007380variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7381if test "$GCC" = yes; then
7382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7383fi
7384
7385#
7386# Do we need to explicitly link libc?
7387#
7388case "x$archive_cmds_need_lc" in
7389x|xyes)
7390 # Assume -lc should be added
7391 archive_cmds_need_lc=yes
7392
7393 if test "$enable_shared" = yes && test "$GCC" = yes; then
7394 case $archive_cmds in
7395 *'~'*)
7396 # FIXME: we may have to deal with multi-command sequences.
7397 ;;
7398 '$CC '*)
7399 # Test whether the compiler implicitly links with -lc since on some
7400 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7401 # to ld, don't add -lc before -lgcc.
7402 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7403echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7404 $rm conftest*
7405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7406
7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408 (eval $ac_compile) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } 2>conftest.err; then
7412 soname=conftest
7413 lib=conftest
7414 libobjs=conftest.$ac_objext
7415 deplibs=
7416 wl=$lt_prog_compiler_wl
7417 compiler_flags=-v
7418 linker_flags=-v
7419 verstring=
7420 output_objdir=.
7421 libname=conftest
7422 lt_save_allow_undefined_flag=$allow_undefined_flag
7423 allow_undefined_flag=
7424 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7425 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }
7429 then
7430 archive_cmds_need_lc=no
7431 else
7432 archive_cmds_need_lc=yes
7433 fi
7434 allow_undefined_flag=$lt_save_allow_undefined_flag
7435 else
7436 cat conftest.err 1>&5
7437 fi
7438 $rm conftest*
7439 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7440echo "${ECHO_T}$archive_cmds_need_lc" >&6
7441 ;;
7442 esac
7443 fi
7444 ;;
7445esac
7446
John Criswell7a73b802003-06-30 21:59:07 +00007447echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7448echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7449hardcode_action=
7450if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007451 test -n "$runpath_var " || \
7452 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007453
7454 # We can hardcode non-existant directories.
7455 if test "$hardcode_direct" != no &&
7456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7457 # have to relink, otherwise we might link with an installed library
7458 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007459 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007460 test "$hardcode_minus_L" != no; then
7461 # Linking always hardcodes the temporary library directory.
7462 hardcode_action=relink
7463 else
7464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7465 hardcode_action=immediate
7466 fi
7467else
7468 # We cannot hardcode anything, or else we can only hardcode existing
7469 # directories.
7470 hardcode_action=unsupported
7471fi
7472echo "$as_me:$LINENO: result: $hardcode_action" >&5
7473echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007474
John Criswell47fdd832003-07-14 16:52:07 +00007475if test "$hardcode_action" = relink; then
7476 # Fast installation is not supported
7477 enable_fast_install=no
7478elif test "$shlibpath_overrides_runpath" = yes ||
7479 test "$enable_shared" = no; then
7480 # Fast installation is not necessary
7481 enable_fast_install=needless
7482fi
7483
John Criswell7a73b802003-06-30 21:59:07 +00007484striplib=
7485old_striplib=
7486echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7487echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7488if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7489 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7490 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7491 echo "$as_me:$LINENO: result: yes" >&5
7492echo "${ECHO_T}yes" >&6
7493else
John Criswell47fdd832003-07-14 16:52:07 +00007494# FIXME - insert some real tests, host_os isn't really good enough
7495 case $host_os in
7496 darwin*)
7497 if test -n "$STRIP" ; then
7498 striplib="$STRIP -x"
7499 echo "$as_me:$LINENO: result: yes" >&5
7500echo "${ECHO_T}yes" >&6
7501 else
John Criswell7a73b802003-06-30 21:59:07 +00007502 echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504fi
John Criswell47fdd832003-07-14 16:52:07 +00007505 ;;
7506 *)
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
7509 ;;
7510 esac
7511fi
John Criswell7a73b802003-06-30 21:59:07 +00007512
John Criswell7a73b802003-06-30 21:59:07 +00007513echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7514echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7515library_names_spec=
7516libname_spec='lib$name'
7517soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007518shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007519postinstall_cmds=
7520postuninstall_cmds=
7521finish_cmds=
7522finish_eval=
7523shlibpath_var=
7524shlibpath_overrides_runpath=unknown
7525version_type=none
7526dynamic_linker="$host_os ld.so"
7527sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007528if test "$GCC" = yes; then
7529 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7530 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7531 # if the path contains ";" then we assume it to be the separator
7532 # otherwise default to the standard path separator (i.e. ":") - it is
7533 # assumed that no part of a normal pathname contains ";" but that should
7534 # okay in the real world where ";" in dirpaths is itself problematic.
7535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7536 else
7537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7538 fi
7539else
7540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7541fi
7542need_lib_prefix=unknown
7543hardcode_into_libs=no
7544
7545# when you set need_version to no, make sure it does not cause -set_version
7546# flags to be left without arguments
7547need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007548
7549case $host_os in
7550aix3*)
7551 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007553 shlibpath_var=LIBPATH
7554
John Criswell47fdd832003-07-14 16:52:07 +00007555 # AIX 3 has no versioning support, so we append a major version to the name.
7556 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007557 ;;
7558
7559aix4* | aix5*)
7560 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007561 need_lib_prefix=no
7562 need_version=no
7563 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007564 if test "$host_cpu" = ia64; then
7565 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007566 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007567 shlibpath_var=LD_LIBRARY_PATH
7568 else
7569 # With GCC up to 2.95.x, collect2 would create an import file
7570 # for dependence libraries. The import file would start with
7571 # the line `#! .'. This would cause the generated library to
7572 # depend on `.', always an invalid library. This was fixed in
7573 # development snapshots of GCC prior to 3.0.
7574 case $host_os in
7575 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7577 echo ' yes '
7578 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7579 :
7580 else
7581 can_build_shared=no
7582 fi
7583 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007584 esac
John Criswell47fdd832003-07-14 16:52:07 +00007585 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7586 # soname into executable. Probably we can add versioning support to
7587 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007588 if test "$aix_use_runtimelinking" = yes; then
7589 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7590 # instead of lib<name>.a to let people know that these are not
7591 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007593 else
7594 # We preserve .a as extension for shared libraries through AIX4.2
7595 # and later when we are not doing run time linking.
7596 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007597 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007598 fi
7599 shlibpath_var=LIBPATH
7600 fi
7601 ;;
7602
7603amigaos*)
7604 library_names_spec='$libname.ixlibrary $libname.a'
7605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7606 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'
7607 ;;
7608
7609beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007610 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007611 dynamic_linker="$host_os ld.so"
7612 shlibpath_var=LIBRARY_PATH
7613 ;;
7614
7615bsdi4*)
7616 version_type=linux
7617 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7619 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7621 shlibpath_var=LD_LIBRARY_PATH
7622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007624 # the default ld.so.conf also contains /usr/contrib/lib and
7625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7626 # libtool to hard-code these into programs
7627 ;;
7628
7629cygwin* | mingw* | pw32*)
7630 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007631 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007632 need_version=no
7633 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007634
John Criswell7a73b802003-06-30 21:59:07 +00007635 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007636 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007637 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7639 postinstall_cmds='base_file=`basename \${file}`~
7640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007641 dldir=$destdir/`dirname \$dlpath`~
7642 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007643 $install_prog $dir/$dlname \$dldir/$dlname'
7644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007645 dlpath=$dir/\$dldll~
7646 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007647 shlibpath_overrides_runpath=yes
7648
7649 case $host_os in
7650 cygwin*)
7651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7652 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7653 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7654 ;;
7655 mingw*)
7656 # MinGW DLLs use traditional 'lib' prefix
7657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7658 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7659 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7660 # It is most probably a Windows format PATH printed by
7661 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7662 # path with ; separators, and with drive letters. We can handle the
7663 # drive letters (cygwin fileutils understands them), so leave them,
7664 # especially as we might pass files found there to a mingw objdump,
7665 # which wouldn't understand a cygwinified path. Ahh.
7666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7667 else
7668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7669 fi
7670 ;;
7671 pw32*)
7672 # pw32 DLLs use 'pw' prefix rather than 'lib'
7673 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7674 ;;
7675 esac
John Criswell7a73b802003-06-30 21:59:07 +00007676 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007677
John Criswell7a73b802003-06-30 21:59:07 +00007678 *)
John Criswell47fdd832003-07-14 16:52:07 +00007679 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007680 ;;
7681 esac
7682 dynamic_linker='Win32 ld.exe'
7683 # FIXME: first we should search . and the directory the executable is in
7684 shlibpath_var=PATH
7685 ;;
7686
7687darwin* | rhapsody*)
7688 dynamic_linker="$host_os dyld"
7689 version_type=darwin
7690 need_lib_prefix=no
7691 need_version=no
7692 # FIXME: Relying on posixy $() will cause problems for
7693 # cross-compilation, but unfortunately the echo tests do not
7694 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007695 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7696 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007697 shlibpath_overrides_runpath=yes
7698 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007699 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7700 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7701 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7702 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"`
7703 fi
7704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7705 ;;
7706
7707dgux*)
7708 version_type=linux
7709 need_lib_prefix=no
7710 need_version=no
7711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7712 soname_spec='${libname}${release}${shared_ext}$major'
7713 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007714 ;;
7715
7716freebsd1*)
7717 dynamic_linker=no
7718 ;;
7719
7720freebsd*)
7721 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7722 version_type=freebsd-$objformat
7723 case $version_type in
7724 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007726 need_version=no
7727 need_lib_prefix=no
7728 ;;
7729 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007731 need_version=yes
7732 ;;
7733 esac
7734 shlibpath_var=LD_LIBRARY_PATH
7735 case $host_os in
7736 freebsd2*)
7737 shlibpath_overrides_runpath=yes
7738 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007739 freebsd3.01* | freebsdelf3.01*)
7740 shlibpath_overrides_runpath=yes
7741 hardcode_into_libs=yes
7742 ;;
7743 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007744 shlibpath_overrides_runpath=no
7745 hardcode_into_libs=yes
7746 ;;
7747 esac
7748 ;;
7749
7750gnu*)
7751 version_type=linux
7752 need_lib_prefix=no
7753 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7755 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007756 shlibpath_var=LD_LIBRARY_PATH
7757 hardcode_into_libs=yes
7758 ;;
7759
7760hpux9* | hpux10* | hpux11*)
7761 # Give a soname corresponding to the major version so that dld.sl refuses to
7762 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007763 version_type=sunos
7764 need_lib_prefix=no
7765 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007766 case "$host_cpu" in
7767 ia64*)
7768 shrext='.so'
7769 hardcode_into_libs=yes
7770 dynamic_linker="$host_os dld.so"
7771 shlibpath_var=LD_LIBRARY_PATH
7772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7774 soname_spec='${libname}${release}${shared_ext}$major'
7775 if test "X$HPUX_IA64_MODE" = X32; then
7776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7777 else
7778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7779 fi
7780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7781 ;;
7782 hppa*64*)
7783 shrext='.sl'
7784 hardcode_into_libs=yes
7785 dynamic_linker="$host_os dld.sl"
7786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7789 soname_spec='${libname}${release}${shared_ext}$major'
7790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7792 ;;
7793 *)
7794 shrext='.sl'
7795 dynamic_linker="$host_os dld.sl"
7796 shlibpath_var=SHLIB_PATH
7797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799 soname_spec='${libname}${release}${shared_ext}$major'
7800 ;;
7801 esac
John Criswell7a73b802003-06-30 21:59:07 +00007802 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7803 postinstall_cmds='chmod 555 $lib'
7804 ;;
7805
John Criswell47fdd832003-07-14 16:52:07 +00007806irix5* | irix6* | nonstopux*)
7807 case $host_os in
7808 nonstopux*) version_type=nonstopux ;;
7809 *)
7810 if test "$lt_cv_prog_gnu_ld" = yes; then
7811 version_type=linux
7812 else
7813 version_type=irix
7814 fi ;;
7815 esac
John Criswell7a73b802003-06-30 21:59:07 +00007816 need_lib_prefix=no
7817 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007818 soname_spec='${libname}${release}${shared_ext}$major'
7819 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 +00007820 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007821 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007822 libsuff= shlibsuff=
7823 ;;
7824 *)
7825 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007826 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7827 libsuff= shlibsuff= libmagic=32-bit;;
7828 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7829 libsuff=32 shlibsuff=N32 libmagic=N32;;
7830 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7831 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007832 *) libsuff= shlibsuff= libmagic=never-match;;
7833 esac
7834 ;;
7835 esac
7836 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7837 shlibpath_overrides_runpath=no
7838 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7839 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007840 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007841 ;;
7842
7843# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007844linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007845 dynamic_linker=no
7846 ;;
7847
7848# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007849linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007850 version_type=linux
7851 need_lib_prefix=no
7852 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7856 shlibpath_var=LD_LIBRARY_PATH
7857 shlibpath_overrides_runpath=no
7858 # This implies no fast_install, which is unacceptable.
7859 # Some rework will be needed to allow for fast_install
7860 # before this can be enabled.
7861 hardcode_into_libs=yes
7862
7863 # We used to test for /lib/ld.so.1 and disable shared libraries on
7864 # powerpc, because MkLinux only supported shared libraries with the
7865 # GNU dynamic linker. Since this was broken with cross compilers,
7866 # most powerpc-linux boxes support dynamic linking these days and
7867 # people can always --disable-shared, the test was removed, and we
7868 # assume the GNU/Linux dynamic linker is in use.
7869 dynamic_linker='GNU/Linux ld.so'
7870 ;;
7871
7872netbsd*)
7873 version_type=sunos
7874 need_lib_prefix=no
7875 need_version=no
7876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7879 dynamic_linker='NetBSD (a.out) ld.so'
7880 else
John Criswell47fdd832003-07-14 16:52:07 +00007881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7882 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007883 dynamic_linker='NetBSD ld.elf_so'
7884 fi
7885 shlibpath_var=LD_LIBRARY_PATH
7886 shlibpath_overrides_runpath=yes
7887 hardcode_into_libs=yes
7888 ;;
7889
7890newsos6)
7891 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893 shlibpath_var=LD_LIBRARY_PATH
7894 shlibpath_overrides_runpath=yes
7895 ;;
7896
7897nto-qnx)
7898 version_type=linux
7899 need_lib_prefix=no
7900 need_version=no
7901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7902 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007903 shlibpath_var=LD_LIBRARY_PATH
7904 shlibpath_overrides_runpath=yes
7905 ;;
7906
7907openbsd*)
7908 version_type=sunos
7909 need_lib_prefix=no
7910 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7913 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007914 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 +00007915 case $host_os in
7916 openbsd2.[89] | openbsd2.[89].*)
7917 shlibpath_overrides_runpath=no
7918 ;;
7919 *)
7920 shlibpath_overrides_runpath=yes
7921 ;;
7922 esac
John Criswell7a73b802003-06-30 21:59:07 +00007923 else
7924 shlibpath_overrides_runpath=yes
7925 fi
John Criswell7a73b802003-06-30 21:59:07 +00007926 ;;
7927
7928os2*)
7929 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007930 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007931 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007932 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007933 dynamic_linker='OS/2 ld.exe'
7934 shlibpath_var=LIBPATH
7935 ;;
7936
7937osf3* | osf4* | osf5*)
7938 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007939 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007940 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007941 soname_spec='${libname}${release}${shared_ext}$major'
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007943 shlibpath_var=LD_LIBRARY_PATH
7944 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7945 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7946 ;;
7947
7948sco3.2v5*)
7949 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007950 soname_spec='${libname}${release}${shared_ext}$major'
7951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007952 shlibpath_var=LD_LIBRARY_PATH
7953 ;;
7954
7955solaris*)
7956 version_type=linux
7957 need_lib_prefix=no
7958 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7960 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007961 shlibpath_var=LD_LIBRARY_PATH
7962 shlibpath_overrides_runpath=yes
7963 hardcode_into_libs=yes
7964 # ldd complains unless libraries are executable
7965 postinstall_cmds='chmod +x $lib'
7966 ;;
7967
7968sunos4*)
7969 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7972 shlibpath_var=LD_LIBRARY_PATH
7973 shlibpath_overrides_runpath=yes
7974 if test "$with_gnu_ld" = yes; then
7975 need_lib_prefix=no
7976 fi
7977 need_version=yes
7978 ;;
7979
7980sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7981 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007984 shlibpath_var=LD_LIBRARY_PATH
7985 case $host_vendor in
7986 sni)
7987 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007988 need_lib_prefix=no
7989 export_dynamic_flag_spec='${wl}-Blargedynsym'
7990 runpath_var=LD_RUN_PATH
7991 ;;
7992 siemens)
7993 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007994 ;;
7995 motorola)
7996 need_lib_prefix=no
7997 need_version=no
7998 shlibpath_overrides_runpath=no
7999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8000 ;;
8001 esac
8002 ;;
8003
John Criswell7a73b802003-06-30 21:59:07 +00008004sysv4*MP*)
8005 if test -d /usr/nec ;then
8006 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8008 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008009 shlibpath_var=LD_LIBRARY_PATH
8010 fi
8011 ;;
8012
John Criswell47fdd832003-07-14 16:52:07 +00008013uts4*)
8014 version_type=linux
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016 soname_spec='${libname}${release}${shared_ext}$major'
8017 shlibpath_var=LD_LIBRARY_PATH
8018 ;;
8019
John Criswell7a73b802003-06-30 21:59:07 +00008020*)
8021 dynamic_linker=no
8022 ;;
8023esac
8024echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8025echo "${ECHO_T}$dynamic_linker" >&6
8026test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008027
8028if test "x$enable_dlopen" != xyes; then
8029 enable_dlopen=unknown
8030 enable_dlopen_self=unknown
8031 enable_dlopen_self_static=unknown
8032else
8033 lt_cv_dlopen=no
8034 lt_cv_dlopen_libs=
8035
8036 case $host_os in
8037 beos*)
8038 lt_cv_dlopen="load_add_on"
8039 lt_cv_dlopen_libs=
8040 lt_cv_dlopen_self=yes
8041 ;;
8042
John Criswell47fdd832003-07-14 16:52:07 +00008043 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008044 lt_cv_dlopen="LoadLibrary"
8045 lt_cv_dlopen_libs=
8046 ;;
8047
John Criswell47fdd832003-07-14 16:52:07 +00008048 cygwin*)
8049 lt_cv_dlopen="dlopen"
8050 lt_cv_dlopen_libs=
8051 ;;
8052
8053 darwin*)
8054 # if libdl is installed we need to link against it
8055 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8056echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8057if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059else
8060 ac_check_lib_save_LIBS=$LIBS
8061LIBS="-ldl $LIBS"
8062cat >conftest.$ac_ext <<_ACEOF
8063#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008064/* confdefs.h. */
8065_ACEOF
8066cat confdefs.h >>conftest.$ac_ext
8067cat >>conftest.$ac_ext <<_ACEOF
8068/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008069
8070/* Override any gcc2 internal prototype to avoid an error. */
8071#ifdef __cplusplus
8072extern "C"
8073#endif
8074/* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8076char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008077int
8078main ()
8079{
8080dlopen ();
8081 ;
8082 return 0;
8083}
8084_ACEOF
8085rm -f conftest.$ac_objext conftest$ac_exeext
8086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087 (eval $ac_link) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -s conftest$ac_exeext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_lib_dl_dlopen=yes
8098else
8099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008100sed 's/^/| /' conftest.$ac_ext >&5
8101
John Criswell47fdd832003-07-14 16:52:07 +00008102ac_cv_lib_dl_dlopen=no
8103fi
8104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8105LIBS=$ac_check_lib_save_LIBS
8106fi
8107echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8108echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8109if test $ac_cv_lib_dl_dlopen = yes; then
8110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8111else
8112
8113 lt_cv_dlopen="dyld"
8114 lt_cv_dlopen_libs=
8115 lt_cv_dlopen_self=yes
8116
8117fi
8118
8119 ;;
8120
John Criswell7a73b802003-06-30 21:59:07 +00008121 *)
8122 echo "$as_me:$LINENO: checking for shl_load" >&5
8123echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8124if test "${ac_cv_func_shl_load+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126else
8127 cat >conftest.$ac_ext <<_ACEOF
8128#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008129/* confdefs.h. */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008134/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008135 which can conflict with char shl_load (); below.
8136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8137 <limits.h> exists even on freestanding compilers. */
8138#ifdef __STDC__
8139# include <limits.h>
8140#else
8141# include <assert.h>
8142#endif
John Criswell7a73b802003-06-30 21:59:07 +00008143/* Override any gcc2 internal prototype to avoid an error. */
8144#ifdef __cplusplus
8145extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008146{
John Criswell7a73b802003-06-30 21:59:07 +00008147#endif
8148/* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8150char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008151/* The GNU C library defines this for functions which it implements
8152 to always fail with ENOSYS. Some functions are actually named
8153 something starting with __ and the normal name is an alias. */
8154#if defined (__stub_shl_load) || defined (__stub___shl_load)
8155choke me
8156#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008157char (*f) () = shl_load;
8158#endif
8159#ifdef __cplusplus
8160}
John Criswell7a73b802003-06-30 21:59:07 +00008161#endif
8162
John Criswell0c38eaf2003-09-10 15:17:25 +00008163int
8164main ()
8165{
8166return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008167 ;
8168 return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
8172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -s conftest$ac_exeext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 ac_cv_func_shl_load=yes
8184else
8185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008186sed 's/^/| /' conftest.$ac_ext >&5
8187
John Criswell7a73b802003-06-30 21:59:07 +00008188ac_cv_func_shl_load=no
8189fi
8190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8191fi
8192echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8193echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8194if test $ac_cv_func_shl_load = yes; then
8195 lt_cv_dlopen="shl_load"
8196else
8197 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8198echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8199if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 ac_check_lib_save_LIBS=$LIBS
8203LIBS="-ldld $LIBS"
8204cat >conftest.$ac_ext <<_ACEOF
8205#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008206/* confdefs.h. */
8207_ACEOF
8208cat confdefs.h >>conftest.$ac_ext
8209cat >>conftest.$ac_ext <<_ACEOF
8210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008211
8212/* Override any gcc2 internal prototype to avoid an error. */
8213#ifdef __cplusplus
8214extern "C"
8215#endif
8216/* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8218char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008219int
8220main ()
8221{
8222shl_load ();
8223 ;
8224 return 0;
8225}
8226_ACEOF
8227rm -f conftest.$ac_objext conftest$ac_exeext
8228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_lib_dld_shl_load=yes
8240else
8241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008242sed 's/^/| /' conftest.$ac_ext >&5
8243
John Criswell7a73b802003-06-30 21:59:07 +00008244ac_cv_lib_dld_shl_load=no
8245fi
8246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247LIBS=$ac_check_lib_save_LIBS
8248fi
8249echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8250echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8251if test $ac_cv_lib_dld_shl_load = yes; then
8252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8253else
8254 echo "$as_me:$LINENO: checking for dlopen" >&5
8255echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8256if test "${ac_cv_func_dlopen+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259 cat >conftest.$ac_ext <<_ACEOF
8260#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008261/* confdefs.h. */
8262_ACEOF
8263cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF
8265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008266/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008267 which can conflict with char dlopen (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8270#ifdef __STDC__
8271# include <limits.h>
8272#else
8273# include <assert.h>
8274#endif
John Criswell7a73b802003-06-30 21:59:07 +00008275/* Override any gcc2 internal prototype to avoid an error. */
8276#ifdef __cplusplus
8277extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008278{
John Criswell7a73b802003-06-30 21:59:07 +00008279#endif
8280/* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8282char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008283/* The GNU C library defines this for functions which it implements
8284 to always fail with ENOSYS. Some functions are actually named
8285 something starting with __ and the normal name is an alias. */
8286#if defined (__stub_dlopen) || defined (__stub___dlopen)
8287choke me
8288#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008289char (*f) () = dlopen;
8290#endif
8291#ifdef __cplusplus
8292}
John Criswell7a73b802003-06-30 21:59:07 +00008293#endif
8294
John Criswell0c38eaf2003-09-10 15:17:25 +00008295int
8296main ()
8297{
8298return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext conftest$ac_exeext
8304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_func_dlopen=yes
8316else
8317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008318sed 's/^/| /' conftest.$ac_ext >&5
8319
John Criswell7a73b802003-06-30 21:59:07 +00008320ac_cv_func_dlopen=no
8321fi
8322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8323fi
8324echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8325echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8326if test $ac_cv_func_dlopen = yes; then
8327 lt_cv_dlopen="dlopen"
8328else
8329 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8330echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8331if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334 ac_check_lib_save_LIBS=$LIBS
8335LIBS="-ldl $LIBS"
8336cat >conftest.$ac_ext <<_ACEOF
8337#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008338/* confdefs.h. */
8339_ACEOF
8340cat confdefs.h >>conftest.$ac_ext
8341cat >>conftest.$ac_ext <<_ACEOF
8342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008343
8344/* Override any gcc2 internal prototype to avoid an error. */
8345#ifdef __cplusplus
8346extern "C"
8347#endif
8348/* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8350char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008351int
8352main ()
8353{
8354dlopen ();
8355 ;
8356 return 0;
8357}
8358_ACEOF
8359rm -f conftest.$ac_objext conftest$ac_exeext
8360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361 (eval $ac_link) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -s conftest$ac_exeext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_lib_dl_dlopen=yes
8372else
8373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008374sed 's/^/| /' conftest.$ac_ext >&5
8375
John Criswell7a73b802003-06-30 21:59:07 +00008376ac_cv_lib_dl_dlopen=no
8377fi
8378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379LIBS=$ac_check_lib_save_LIBS
8380fi
8381echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8382echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8383if test $ac_cv_lib_dl_dlopen = yes; then
8384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8385else
8386 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8387echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8388if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390else
8391 ac_check_lib_save_LIBS=$LIBS
8392LIBS="-lsvld $LIBS"
8393cat >conftest.$ac_ext <<_ACEOF
8394#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008395/* confdefs.h. */
8396_ACEOF
8397cat confdefs.h >>conftest.$ac_ext
8398cat >>conftest.$ac_ext <<_ACEOF
8399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008400
8401/* Override any gcc2 internal prototype to avoid an error. */
8402#ifdef __cplusplus
8403extern "C"
8404#endif
8405/* We use char because int might match the return type of a gcc2
8406 builtin and then its argument prototype would still apply. */
8407char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008408int
8409main ()
8410{
8411dlopen ();
8412 ;
8413 return 0;
8414}
8415_ACEOF
8416rm -f conftest.$ac_objext conftest$ac_exeext
8417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_lib_svld_dlopen=yes
8429else
8430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008431sed 's/^/| /' conftest.$ac_ext >&5
8432
John Criswell7a73b802003-06-30 21:59:07 +00008433ac_cv_lib_svld_dlopen=no
8434fi
8435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8436LIBS=$ac_check_lib_save_LIBS
8437fi
8438echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8439echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8440if test $ac_cv_lib_svld_dlopen = yes; then
8441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8442else
8443 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8444echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8445if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 ac_check_lib_save_LIBS=$LIBS
8449LIBS="-ldld $LIBS"
8450cat >conftest.$ac_ext <<_ACEOF
8451#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008457
8458/* Override any gcc2 internal prototype to avoid an error. */
8459#ifdef __cplusplus
8460extern "C"
8461#endif
8462/* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8464char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008465int
8466main ()
8467{
8468dld_link ();
8469 ;
8470 return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext conftest$ac_exeext
8474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 (eval $ac_try) 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_lib_dld_dld_link=yes
8486else
8487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008488sed 's/^/| /' conftest.$ac_ext >&5
8489
John Criswell7a73b802003-06-30 21:59:07 +00008490ac_cv_lib_dld_dld_link=no
8491fi
8492rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8493LIBS=$ac_check_lib_save_LIBS
8494fi
8495echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8496echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8497if test $ac_cv_lib_dld_dld_link = yes; then
8498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8499fi
8500
8501
8502fi
8503
8504
8505fi
8506
8507
8508fi
8509
8510
8511fi
8512
8513
8514fi
8515
8516 ;;
8517 esac
8518
8519 if test "x$lt_cv_dlopen" != xno; then
8520 enable_dlopen=yes
8521 else
8522 enable_dlopen=no
8523 fi
8524
8525 case $lt_cv_dlopen in
8526 dlopen)
8527 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008529
8530 save_LDFLAGS="$LDFLAGS"
8531 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8532
8533 save_LIBS="$LIBS"
8534 LIBS="$lt_cv_dlopen_libs $LIBS"
8535
8536 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8537echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8538if test "${lt_cv_dlopen_self+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 if test "$cross_compiling" = yes; then :
8542 lt_cv_dlopen_self=cross
8543else
John Criswell47fdd832003-07-14 16:52:07 +00008544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008545 lt_status=$lt_dlunknown
8546 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +00008547#line 8547 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008548#include "confdefs.h"
8549
8550#if HAVE_DLFCN_H
8551#include <dlfcn.h>
8552#endif
8553
8554#include <stdio.h>
8555
8556#ifdef RTLD_GLOBAL
8557# define LT_DLGLOBAL RTLD_GLOBAL
8558#else
8559# ifdef DL_GLOBAL
8560# define LT_DLGLOBAL DL_GLOBAL
8561# else
8562# define LT_DLGLOBAL 0
8563# endif
8564#endif
8565
8566/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8567 find out it does not work in some platform. */
8568#ifndef LT_DLLAZY_OR_NOW
8569# ifdef RTLD_LAZY
8570# define LT_DLLAZY_OR_NOW RTLD_LAZY
8571# else
8572# ifdef DL_LAZY
8573# define LT_DLLAZY_OR_NOW DL_LAZY
8574# else
8575# ifdef RTLD_NOW
8576# define LT_DLLAZY_OR_NOW RTLD_NOW
8577# else
8578# ifdef DL_NOW
8579# define LT_DLLAZY_OR_NOW DL_NOW
8580# else
8581# define LT_DLLAZY_OR_NOW 0
8582# endif
8583# endif
8584# endif
8585# endif
8586#endif
8587
8588#ifdef __cplusplus
8589extern "C" void exit (int);
8590#endif
8591
8592void fnord() { int i=42;}
8593int main ()
8594{
8595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8596 int status = $lt_dlunknown;
8597
8598 if (self)
8599 {
8600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8602 /* dlclose (self); */
8603 }
8604
8605 exit (status);
8606}
8607EOF
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8613 (./conftest; exit; ) 2>/dev/null
8614 lt_status=$?
8615 case x$lt_status in
8616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8618 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8619 esac
8620 else :
8621 # compilation failed
8622 lt_cv_dlopen_self=no
8623 fi
8624fi
8625rm -fr conftest*
8626
8627
8628fi
8629echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8630echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8631
8632 if test "x$lt_cv_dlopen_self" = xyes; then
8633 LDFLAGS="$LDFLAGS $link_static_flag"
8634 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8635echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8636if test "${lt_cv_dlopen_self_static+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639 if test "$cross_compiling" = yes; then :
8640 lt_cv_dlopen_self_static=cross
8641else
John Criswell47fdd832003-07-14 16:52:07 +00008642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008643 lt_status=$lt_dlunknown
8644 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +00008645#line 8645 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008646#include "confdefs.h"
8647
8648#if HAVE_DLFCN_H
8649#include <dlfcn.h>
8650#endif
8651
8652#include <stdio.h>
8653
8654#ifdef RTLD_GLOBAL
8655# define LT_DLGLOBAL RTLD_GLOBAL
8656#else
8657# ifdef DL_GLOBAL
8658# define LT_DLGLOBAL DL_GLOBAL
8659# else
8660# define LT_DLGLOBAL 0
8661# endif
8662#endif
8663
8664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8665 find out it does not work in some platform. */
8666#ifndef LT_DLLAZY_OR_NOW
8667# ifdef RTLD_LAZY
8668# define LT_DLLAZY_OR_NOW RTLD_LAZY
8669# else
8670# ifdef DL_LAZY
8671# define LT_DLLAZY_OR_NOW DL_LAZY
8672# else
8673# ifdef RTLD_NOW
8674# define LT_DLLAZY_OR_NOW RTLD_NOW
8675# else
8676# ifdef DL_NOW
8677# define LT_DLLAZY_OR_NOW DL_NOW
8678# else
8679# define LT_DLLAZY_OR_NOW 0
8680# endif
8681# endif
8682# endif
8683# endif
8684#endif
8685
8686#ifdef __cplusplus
8687extern "C" void exit (int);
8688#endif
8689
8690void fnord() { int i=42;}
8691int main ()
8692{
8693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8694 int status = $lt_dlunknown;
8695
8696 if (self)
8697 {
8698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8700 /* dlclose (self); */
8701 }
8702
8703 exit (status);
8704}
8705EOF
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8711 (./conftest; exit; ) 2>/dev/null
8712 lt_status=$?
8713 case x$lt_status in
8714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8716 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8717 esac
8718 else :
8719 # compilation failed
8720 lt_cv_dlopen_self_static=no
8721 fi
8722fi
8723rm -fr conftest*
8724
8725
8726fi
8727echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8728echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8729 fi
8730
8731 CPPFLAGS="$save_CPPFLAGS"
8732 LDFLAGS="$save_LDFLAGS"
8733 LIBS="$save_LIBS"
8734 ;;
8735 esac
8736
8737 case $lt_cv_dlopen_self in
8738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8739 *) enable_dlopen_self=unknown ;;
8740 esac
8741
8742 case $lt_cv_dlopen_self_static in
8743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8744 *) enable_dlopen_self_static=unknown ;;
8745 esac
8746fi
8747
8748
John Criswell47fdd832003-07-14 16:52:07 +00008749# Report which librarie types wil actually be built
8750echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8751echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8752echo "$as_me:$LINENO: result: $can_build_shared" >&5
8753echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008754
John Criswell47fdd832003-07-14 16:52:07 +00008755echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8756echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8757test "$can_build_shared" = "no" && enable_shared=no
8758
8759# On AIX, shared libraries and static libraries use the same namespace, and
8760# are all built from PIC.
8761case "$host_os" in
8762aix3*)
8763 test "$enable_shared" = yes && enable_static=no
8764 if test -n "$RANLIB"; then
8765 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8766 postinstall_cmds='$RANLIB $lib'
8767 fi
8768 ;;
8769
8770aix4*)
8771 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8772 test "$enable_shared" = yes && enable_static=no
8773 fi
8774 ;;
8775 darwin* | rhapsody*)
8776 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8777 archive_cmds_need_lc=no
8778 case "$host_os" in
8779 rhapsody* | darwin1.[012])
8780 allow_undefined_flag='-undefined suppress'
8781 ;;
8782 *) # Darwin 1.3 on
8783 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8784 ;;
8785 esac
8786 # FIXME: Relying on posixy $() will cause problems for
8787 # cross-compilation, but unfortunately the echo tests do not
8788 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8789 # `"' quotes if we put them in here... so don't!
8790 output_verbose_link_cmd='echo'
8791 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8792 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8793 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8794 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}'
8795 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}'
8796 hardcode_direct=no
8797 hardcode_automatic=yes
8798 hardcode_shlibpath_var=unsupported
8799 whole_archive_flag_spec='-all_load $convenience'
8800 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008801 fi
John Criswell7a73b802003-06-30 21:59:07 +00008802 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008803esac
8804echo "$as_me:$LINENO: result: $enable_shared" >&5
8805echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008806
John Criswell47fdd832003-07-14 16:52:07 +00008807echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8808echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8809# Make sure either enable_shared or enable_static is yes.
8810test "$enable_shared" = yes || enable_static=yes
8811echo "$as_me:$LINENO: result: $enable_static" >&5
8812echo "${ECHO_T}$enable_static" >&6
8813
8814# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008815# libtool distribution, otherwise you forgot to ship ltmain.sh
8816# with your package, and you will get complaints that there are
8817# no rules to generate ltmain.sh.
8818if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008819 # See if we are running on zsh, and set the options which allow our commands through
8820 # without removal of \ escapes.
8821 if test -n "${ZSH_VERSION+set}" ; then
8822 setopt NO_GLOB_SUBST
8823 fi
John Criswell7a73b802003-06-30 21:59:07 +00008824 # Now quote all the things that may contain metacharacters while being
8825 # careful not to overquote the AC_SUBSTed values. We take copies of the
8826 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008827 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8828 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8829 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8830 deplibs_check_method reload_flag reload_cmds need_locks \
8831 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8832 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008833 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008834 old_postinstall_cmds old_postuninstall_cmds \
8835 compiler \
8836 CC \
8837 LD \
8838 lt_prog_compiler_wl \
8839 lt_prog_compiler_pic \
8840 lt_prog_compiler_static \
8841 lt_prog_compiler_no_builtin_flag \
8842 export_dynamic_flag_spec \
8843 thread_safe_flag_spec \
8844 whole_archive_flag_spec \
8845 enable_shared_with_static_runtimes \
8846 old_archive_cmds \
8847 old_archive_from_new_cmds \
8848 predep_objects \
8849 postdep_objects \
8850 predeps \
8851 postdeps \
8852 compiler_lib_search_path \
8853 archive_cmds \
8854 archive_expsym_cmds \
8855 postinstall_cmds \
8856 postuninstall_cmds \
8857 old_archive_from_expsyms_cmds \
8858 allow_undefined_flag \
8859 no_undefined_flag \
8860 export_symbols_cmds \
8861 hardcode_libdir_flag_spec \
8862 hardcode_libdir_flag_spec_ld \
8863 hardcode_libdir_separator \
8864 hardcode_automatic \
8865 module_cmds \
8866 module_expsym_cmds \
8867 lt_cv_prog_compiler_c_o \
8868 exclude_expsyms \
8869 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008870
8871 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008872 old_archive_cmds | \
8873 old_archive_from_new_cmds | \
8874 archive_cmds | \
8875 archive_expsym_cmds | \
8876 module_cmds | \
8877 module_expsym_cmds | \
8878 old_archive_from_expsyms_cmds | \
8879 export_symbols_cmds | \
8880 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008881 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008882 old_postinstall_cmds | old_postuninstall_cmds | \
8883 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008884 # Double-quote double-evaled strings.
8885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8886 ;;
8887 *)
8888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8889 ;;
8890 esac
8891 done
8892
John Criswell47fdd832003-07-14 16:52:07 +00008893 case $lt_echo in
8894 *'\$0 --fallback-echo"')
8895 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8896 ;;
8897 esac
8898
8899cfgfile="${ofile}T"
8900 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8901 $rm -f "$cfgfile"
8902 { echo "$as_me:$LINENO: creating $ofile" >&5
8903echo "$as_me: creating $ofile" >&6;}
8904
8905 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008906#! $SHELL
8907
John Criswell47fdd832003-07-14 16:52:07 +00008908# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008909# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8910# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8911#
John Criswell47fdd832003-07-14 16:52:07 +00008912# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8913# Free Software Foundation, Inc.
8914#
8915# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008916# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8917#
8918# This program is free software; you can redistribute it and/or modify
8919# it under the terms of the GNU General Public License as published by
8920# the Free Software Foundation; either version 2 of the License, or
8921# (at your option) any later version.
8922#
8923# This program is distributed in the hope that it will be useful, but
8924# WITHOUT ANY WARRANTY; without even the implied warranty of
8925# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8926# General Public License for more details.
8927#
8928# You should have received a copy of the GNU General Public License
8929# along with this program; if not, write to the Free Software
8930# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8931#
8932# As a special exception to the GNU General Public License, if you
8933# distribute this file as part of a program that contains a
8934# configuration script generated by Autoconf, you may include it under
8935# the same distribution terms that you use for the rest of that program.
8936
John Criswell47fdd832003-07-14 16:52:07 +00008937# A sed program that does not truncate output.
8938SED=$lt_SED
8939
John Criswell7a73b802003-06-30 21:59:07 +00008940# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008941Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008942
8943# The HP-UX ksh and POSIX shell print the target directory to stdout
8944# if CDPATH is set.
8945if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8946
John Criswell47fdd832003-07-14 16:52:07 +00008947# The names of the tagged configurations supported by this script.
8948available_tags=
8949
John Criswell7a73b802003-06-30 21:59:07 +00008950# ### BEGIN LIBTOOL CONFIG
8951
8952# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8953
8954# Shell to use when invoking shell scripts.
8955SHELL=$lt_SHELL
8956
8957# Whether or not to build shared libraries.
8958build_libtool_libs=$enable_shared
8959
8960# Whether or not to build static libraries.
8961build_old_libs=$enable_static
8962
8963# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008964build_libtool_need_lc=$archive_cmds_need_lc
8965
8966# Whether or not to disallow shared libs when runtime libs are static
8967allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008968
8969# Whether or not to optimize for fast installation.
8970fast_install=$enable_fast_install
8971
8972# The host system.
8973host_alias=$host_alias
8974host=$host
8975
8976# An echo program that does not interpret backslashes.
8977echo=$lt_echo
8978
8979# The archiver.
8980AR=$lt_AR
8981AR_FLAGS=$lt_AR_FLAGS
8982
John Criswell47fdd832003-07-14 16:52:07 +00008983# A C compiler.
8984LTCC=$lt_LTCC
8985
8986# A language-specific compiler.
8987CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008988
8989# Is the compiler the GNU C compiler?
8990with_gcc=$GCC
8991
John Criswell47fdd832003-07-14 16:52:07 +00008992# An ERE matcher.
8993EGREP=$lt_EGREP
8994
John Criswell7a73b802003-06-30 21:59:07 +00008995# The linker used to build libraries.
8996LD=$lt_LD
8997
8998# Whether we need hard or soft links.
8999LN_S=$lt_LN_S
9000
9001# A BSD-compatible nm program.
9002NM=$lt_NM
9003
9004# A symbol stripping program
9005STRIP=$STRIP
9006
9007# Used to examine libraries when file_magic_cmd begins "file"
9008MAGIC_CMD=$MAGIC_CMD
9009
9010# Used on cygwin: DLL creation program.
9011DLLTOOL="$DLLTOOL"
9012
9013# Used on cygwin: object dumper.
9014OBJDUMP="$OBJDUMP"
9015
9016# Used on cygwin: assembler.
9017AS="$AS"
9018
9019# The name of the directory that contains temporary libtool files.
9020objdir=$objdir
9021
9022# How to create reloadable object files.
9023reload_flag=$lt_reload_flag
9024reload_cmds=$lt_reload_cmds
9025
9026# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009027wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009028
9029# Object file suffix (normally "o").
9030objext="$ac_objext"
9031
9032# Old archive suffix (normally "a").
9033libext="$libext"
9034
John Criswell47fdd832003-07-14 16:52:07 +00009035# Shared library suffix (normally ".so").
9036shrext='$shrext'
9037
John Criswell7a73b802003-06-30 21:59:07 +00009038# Executable file suffix (normally "").
9039exeext="$exeext"
9040
9041# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009042pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009043pic_mode=$pic_mode
9044
John Criswell47fdd832003-07-14 16:52:07 +00009045# What is the maximum length of a command?
9046max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009047
John Criswell47fdd832003-07-14 16:52:07 +00009048# Does compiler simultaneously support -c and -o options?
9049compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009050
9051# Must we lock files when doing compilation ?
9052need_locks=$lt_need_locks
9053
9054# Do we need the lib prefix for modules?
9055need_lib_prefix=$need_lib_prefix
9056
9057# Do we need a version for libraries?
9058need_version=$need_version
9059
9060# Whether dlopen is supported.
9061dlopen_support=$enable_dlopen
9062
9063# Whether dlopen of programs is supported.
9064dlopen_self=$enable_dlopen_self
9065
9066# Whether dlopen of statically linked programs is supported.
9067dlopen_self_static=$enable_dlopen_self_static
9068
9069# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009070link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009071
9072# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009073no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009074
9075# Compiler flag to allow reflexive dlopens.
9076export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9077
9078# Compiler flag to generate shared objects directly from archives.
9079whole_archive_flag_spec=$lt_whole_archive_flag_spec
9080
9081# Compiler flag to generate thread-safe objects.
9082thread_safe_flag_spec=$lt_thread_safe_flag_spec
9083
9084# Library versioning type.
9085version_type=$version_type
9086
9087# Format of library name prefix.
9088libname_spec=$lt_libname_spec
9089
9090# List of archive names. First name is the real one, the rest are links.
9091# The last name is the one that the linker finds with -lNAME.
9092library_names_spec=$lt_library_names_spec
9093
9094# The coded name of the library, if different from the real name.
9095soname_spec=$lt_soname_spec
9096
9097# Commands used to build and install an old-style archive.
9098RANLIB=$lt_RANLIB
9099old_archive_cmds=$lt_old_archive_cmds
9100old_postinstall_cmds=$lt_old_postinstall_cmds
9101old_postuninstall_cmds=$lt_old_postuninstall_cmds
9102
9103# Create an old-style archive from a shared archive.
9104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9105
9106# Create a temporary old-style archive to link instead of a shared archive.
9107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9108
9109# Commands used to build and install a shared archive.
9110archive_cmds=$lt_archive_cmds
9111archive_expsym_cmds=$lt_archive_expsym_cmds
9112postinstall_cmds=$lt_postinstall_cmds
9113postuninstall_cmds=$lt_postuninstall_cmds
9114
John Criswell47fdd832003-07-14 16:52:07 +00009115# Commands used to build a loadable module (assumed same as above if empty)
9116module_cmds=$lt_module_cmds
9117module_expsym_cmds=$lt_module_expsym_cmds
9118
John Criswell7a73b802003-06-30 21:59:07 +00009119# Commands to strip libraries.
9120old_striplib=$lt_old_striplib
9121striplib=$lt_striplib
9122
John Criswell47fdd832003-07-14 16:52:07 +00009123# Dependencies to place before the objects being linked to create a
9124# shared library.
9125predep_objects=$lt_predep_objects
9126
9127# Dependencies to place after the objects being linked to create a
9128# shared library.
9129postdep_objects=$lt_postdep_objects
9130
9131# Dependencies to place before the objects being linked to create a
9132# shared library.
9133predeps=$lt_predeps
9134
9135# Dependencies to place after the objects being linked to create a
9136# shared library.
9137postdeps=$lt_postdeps
9138
9139# The library search path used internally by the compiler when linking
9140# a shared library.
9141compiler_lib_search_path=$lt_compiler_lib_search_path
9142
John Criswell7a73b802003-06-30 21:59:07 +00009143# Method to check whether dependent libraries are shared objects.
9144deplibs_check_method=$lt_deplibs_check_method
9145
9146# Command to use when deplibs_check_method == file_magic.
9147file_magic_cmd=$lt_file_magic_cmd
9148
9149# Flag that allows shared libraries with undefined symbols to be built.
9150allow_undefined_flag=$lt_allow_undefined_flag
9151
9152# Flag that forces no undefined symbols.
9153no_undefined_flag=$lt_no_undefined_flag
9154
9155# Commands used to finish a libtool library installation in a directory.
9156finish_cmds=$lt_finish_cmds
9157
9158# Same as above, but a single script fragment to be evaled but not shown.
9159finish_eval=$lt_finish_eval
9160
9161# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009162global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009163
9164# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009165global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009166
9167# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009168global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009169
9170# This is the shared library runtime path variable.
9171runpath_var=$runpath_var
9172
9173# This is the shared library path variable.
9174shlibpath_var=$shlibpath_var
9175
9176# Is shlibpath searched before the hard-coded library search path?
9177shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9178
9179# How to hardcode a shared library path into an executable.
9180hardcode_action=$hardcode_action
9181
9182# Whether we should hardcode library paths into libraries.
9183hardcode_into_libs=$hardcode_into_libs
9184
9185# Flag to hardcode \$libdir into a binary during linking.
9186# This must work even if \$libdir does not exist.
9187hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9188
John Criswell47fdd832003-07-14 16:52:07 +00009189# If ld is used when linking, flag to hardcode \$libdir into
9190# a binary during linking. This must work even if \$libdir does
9191# not exist.
9192hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9193
John Criswell7a73b802003-06-30 21:59:07 +00009194# Whether we need a single -rpath flag with a separated argument.
9195hardcode_libdir_separator=$lt_hardcode_libdir_separator
9196
John Criswell47fdd832003-07-14 16:52:07 +00009197# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009198# resulting binary.
9199hardcode_direct=$hardcode_direct
9200
9201# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9202# resulting binary.
9203hardcode_minus_L=$hardcode_minus_L
9204
9205# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9206# the resulting binary.
9207hardcode_shlibpath_var=$hardcode_shlibpath_var
9208
John Criswell47fdd832003-07-14 16:52:07 +00009209# Set to yes if building a shared library automatically hardcodes DIR into the library
9210# and all subsequent libraries and executables linked against it.
9211hardcode_automatic=$hardcode_automatic
9212
John Criswell7a73b802003-06-30 21:59:07 +00009213# Variables whose values should be saved in libtool wrapper scripts and
9214# restored at relink time.
9215variables_saved_for_relink="$variables_saved_for_relink"
9216
9217# Whether libtool must link a program against all its dependency libraries.
9218link_all_deplibs=$link_all_deplibs
9219
9220# Compile-time system search path for libraries
9221sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9222
9223# Run-time system search path for libraries
9224sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9225
9226# Fix the shell variable \$srcfile for the compiler.
9227fix_srcfile_path="$fix_srcfile_path"
9228
9229# Set to yes if exported symbols are required.
9230always_export_symbols=$always_export_symbols
9231
9232# The commands to list exported symbols.
9233export_symbols_cmds=$lt_export_symbols_cmds
9234
9235# The commands to extract the exported symbol list from a shared archive.
9236extract_expsyms_cmds=$lt_extract_expsyms_cmds
9237
9238# Symbols that should not be listed in the preloaded symbols.
9239exclude_expsyms=$lt_exclude_expsyms
9240
9241# Symbols that must always be exported.
9242include_expsyms=$lt_include_expsyms
9243
9244# ### END LIBTOOL CONFIG
9245
9246__EOF__
9247
John Criswell47fdd832003-07-14 16:52:07 +00009248
John Criswell7a73b802003-06-30 21:59:07 +00009249 case $host_os in
9250 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009251 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009252
9253# AIX sometimes has problems with the GCC collect2 program. For some
9254# reason, if we set the COLLECT_NAMES environment variable, the problems
9255# vanish in a puff of smoke.
9256if test "X${COLLECT_NAMES+set}" != Xset; then
9257 COLLECT_NAMES=
9258 export COLLECT_NAMES
9259fi
9260EOF
9261 ;;
9262 esac
9263
John Criswell7a73b802003-06-30 21:59:07 +00009264 # We use sed instead of cat because bash on DJGPP gets confused if
9265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9266 # text mode, it properly converts lines to CR/LF. This bash problem
9267 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009268 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009269
John Criswell47fdd832003-07-14 16:52:07 +00009270 mv -f "$cfgfile" "$ofile" || \
9271 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009272 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009273
9274else
9275 # If there is no Makefile yet, we rely on a make rule to execute
9276 # `config.status --recheck' to rerun these tests and create the
9277 # libtool script then.
9278 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009279fi
John Criswell7a73b802003-06-30 21:59:07 +00009280
9281
John Criswell47fdd832003-07-14 16:52:07 +00009282ac_ext=c
9283ac_cpp='$CPP $CPPFLAGS'
9284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9286ac_compiler_gnu=$ac_cv_c_compiler_gnu
9287
9288CC="$lt_save_CC"
9289
9290
9291# Check whether --with-tags or --without-tags was given.
9292if test "${with_tags+set}" = set; then
9293 withval="$with_tags"
9294 tagnames="$withval"
9295fi;
9296
9297if test -f "$ltmain" && test -n "$tagnames"; then
9298 if test ! -f "${ofile}"; then
9299 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9300echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9301 fi
9302
9303 if test -z "$LTCC"; then
9304 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9305 if test -z "$LTCC"; then
9306 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9307echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9308 else
9309 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9310echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9311 fi
9312 fi
9313
9314 # Extract list of available tagged configurations in $ofile.
9315 # Note that this assumes the entire list is on one line.
9316 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9317
9318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9319 for tagname in $tagnames; do
9320 IFS="$lt_save_ifs"
9321 # Check whether tagname contains only valid characters
9322 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9323 "") ;;
9324 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9325echo "$as_me: error: invalid tag name: $tagname" >&2;}
9326 { (exit 1); exit 1; }; }
9327 ;;
9328 esac
9329
9330 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9331 then
9332 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9333echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9334 { (exit 1); exit 1; }; }
9335 fi
9336
9337 # Update the list of available tags.
9338 if test -n "$tagname"; then
9339 echo appending configuration tag \"$tagname\" to $ofile
9340
9341 case $tagname in
9342 CXX)
9343 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9344 ac_ext=cc
9345ac_cpp='$CXXCPP $CPPFLAGS'
9346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9349
9350
9351
9352
9353archive_cmds_need_lc_CXX=no
9354allow_undefined_flag_CXX=
9355always_export_symbols_CXX=no
9356archive_expsym_cmds_CXX=
9357export_dynamic_flag_spec_CXX=
9358hardcode_direct_CXX=no
9359hardcode_libdir_flag_spec_CXX=
9360hardcode_libdir_flag_spec_ld_CXX=
9361hardcode_libdir_separator_CXX=
9362hardcode_minus_L_CXX=no
9363hardcode_automatic_CXX=no
9364module_cmds_CXX=
9365module_expsym_cmds_CXX=
9366link_all_deplibs_CXX=unknown
9367old_archive_cmds_CXX=$old_archive_cmds
9368no_undefined_flag_CXX=
9369whole_archive_flag_spec_CXX=
9370enable_shared_with_static_runtimes_CXX=no
9371
9372# Dependencies to place before and after the object being linked:
9373predep_objects_CXX=
9374postdep_objects_CXX=
9375predeps_CXX=
9376postdeps_CXX=
9377compiler_lib_search_path_CXX=
9378
9379# Source file extension for C++ test sources.
9380ac_ext=cc
9381
9382# Object file extension for compiled C++ test sources.
9383objext=o
9384objext_CXX=$objext
9385
9386# Code to be used in simple compile tests
9387lt_simple_compile_test_code="int some_variable = 0;\n"
9388
9389# Code to be used in simple link tests
9390lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9391
9392# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9393
9394# If no C compiler was specified, use CC.
9395LTCC=${LTCC-"$CC"}
9396
9397# Allow CC to be a program name with arguments.
9398compiler=$CC
9399
9400
9401# Allow CC to be a program name with arguments.
9402lt_save_CC=$CC
9403lt_save_LD=$LD
9404lt_save_GCC=$GCC
9405GCC=$GXX
9406lt_save_with_gnu_ld=$with_gnu_ld
9407lt_save_path_LD=$lt_cv_path_LD
9408if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9409 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9410else
9411 unset lt_cv_prog_gnu_ld
9412fi
9413if test -n "${lt_cv_path_LDCXX+set}"; then
9414 lt_cv_path_LD=$lt_cv_path_LDCXX
9415else
9416 unset lt_cv_path_LD
9417fi
9418test -z "${LDCXX+set}" || LD=$LDCXX
9419CC=${CXX-"c++"}
9420compiler=$CC
9421compiler_CXX=$CC
9422cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9423
9424# We don't want -fno-exception wen compiling C++ code, so set the
9425# no_builtin_flag separately
9426if test "$GXX" = yes; then
9427 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9428else
9429 lt_prog_compiler_no_builtin_flag_CXX=
9430fi
9431
9432if test "$GXX" = yes; then
9433 # Set up default GNU C++ configuration
9434
9435
9436# Check whether --with-gnu-ld or --without-gnu-ld was given.
9437if test "${with_gnu_ld+set}" = set; then
9438 withval="$with_gnu_ld"
9439 test "$withval" = no || with_gnu_ld=yes
9440else
9441 with_gnu_ld=no
9442fi;
9443ac_prog=ld
9444if test "$GCC" = yes; then
9445 # Check if gcc -print-prog-name=ld gives a path.
9446 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9447echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9448 case $host in
9449 *-*-mingw*)
9450 # gcc leaves a trailing carriage return which upsets mingw
9451 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9452 *)
9453 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9454 esac
9455 case $ac_prog in
9456 # Accept absolute paths.
9457 [\\/]* | ?:[\\/]*)
9458 re_direlt='/[^/][^/]*/\.\./'
9459 # Canonicalize the path of ld
9460 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9461 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9462 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9463 done
9464 test -z "$LD" && LD="$ac_prog"
9465 ;;
9466 "")
9467 # If it fails, then pretend we aren't using GCC.
9468 ac_prog=ld
9469 ;;
9470 *)
9471 # If it is relative, then search for the first ld in PATH.
9472 with_gnu_ld=unknown
9473 ;;
9474 esac
9475elif test "$with_gnu_ld" = yes; then
9476 echo "$as_me:$LINENO: checking for GNU ld" >&5
9477echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9478else
9479 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9480echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9481fi
9482if test "${lt_cv_path_LD+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 if test -z "$LD"; then
9486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9487 for ac_dir in $PATH; do
9488 IFS="$lt_save_ifs"
9489 test -z "$ac_dir" && ac_dir=.
9490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9491 lt_cv_path_LD="$ac_dir/$ac_prog"
9492 # Check to see if the program is GNU ld. I'd rather use --version,
9493 # but apparently some GNU ld's only accept -v.
9494 # Break only if it was the GNU/non-GNU ld that we prefer.
9495 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9496 *GNU* | *'with BFD'*)
9497 test "$with_gnu_ld" != no && break
9498 ;;
9499 *)
9500 test "$with_gnu_ld" != yes && break
9501 ;;
9502 esac
9503 fi
9504 done
9505 IFS="$lt_save_ifs"
9506else
9507 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9508fi
9509fi
9510
9511LD="$lt_cv_path_LD"
9512if test -n "$LD"; then
9513 echo "$as_me:$LINENO: result: $LD" >&5
9514echo "${ECHO_T}$LD" >&6
9515else
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
9518fi
9519test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9520echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9521 { (exit 1); exit 1; }; }
9522echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9523echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9524if test "${lt_cv_prog_gnu_ld+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526else
9527 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9528case `"$LD" -v 2>&1 </dev/null` in
9529*GNU* | *'with BFD'*)
9530 lt_cv_prog_gnu_ld=yes
9531 ;;
9532*)
9533 lt_cv_prog_gnu_ld=no
9534 ;;
9535esac
9536fi
9537echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9538echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9539with_gnu_ld=$lt_cv_prog_gnu_ld
9540
9541
9542
9543 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9544 # archiving commands below assume that GNU ld is being used.
9545 if test "$with_gnu_ld" = yes; then
9546 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 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'
9548
9549 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9550 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9551
9552 # If archive_cmds runs LD, not CC, wlarc should be empty
9553 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9554 # investigate it a little bit more. (MM)
9555 wlarc='${wl}'
9556
9557 # ancient GNU ld didn't support --whole-archive et. al.
9558 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9559 grep 'no-whole-archive' > /dev/null; then
9560 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9561 else
9562 whole_archive_flag_spec_CXX=
9563 fi
9564 else
9565 with_gnu_ld=no
9566 wlarc=
9567
9568 # A generic and very simple default shared library creation
9569 # command for GNU C++ for the case where it uses the native
9570 # linker, instead of GNU ld. If possible, this setting should
9571 # overridden to take advantage of the native linker features on
9572 # the platform it is being used on.
9573 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9574 fi
9575
9576 # Commands to make compiler produce verbose output that lists
9577 # what "hidden" libraries, object files and flags are used when
9578 # linking a shared library.
9579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9580
9581else
9582 GXX=no
9583 with_gnu_ld=no
9584 wlarc=
9585fi
9586
9587# PORTME: fill in a description of your system's C++ link characteristics
9588echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9590ld_shlibs_CXX=yes
9591case $host_os in
9592 aix3*)
9593 # FIXME: insert proper C++ library support
9594 ld_shlibs_CXX=no
9595 ;;
9596 aix4* | aix5*)
9597 if test "$host_cpu" = ia64; then
9598 # On IA64, the linker does run time linking by default, so we don't
9599 # have to do anything special.
9600 aix_use_runtimelinking=no
9601 exp_sym_flag='-Bexport'
9602 no_entry_flag=""
9603 else
9604 aix_use_runtimelinking=no
9605
9606 # Test if we are trying to use run time linking or normal
9607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608 # need to do runtime linking.
9609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9610 for ld_flag in $LDFLAGS; do
9611 case $ld_flag in
9612 *-brtl*)
9613 aix_use_runtimelinking=yes
9614 break
9615 ;;
9616 esac
9617 done
9618 esac
9619
9620 exp_sym_flag='-bexport'
9621 no_entry_flag='-bnoentry'
9622 fi
9623
9624 # When large executables or shared objects are built, AIX ld can
9625 # have problems creating the table of contents. If linking a library
9626 # or program results in "error TOC overflow" add -mminimal-toc to
9627 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9628 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9629
9630 archive_cmds_CXX=''
9631 hardcode_direct_CXX=yes
9632 hardcode_libdir_separator_CXX=':'
9633 link_all_deplibs_CXX=yes
9634
9635 if test "$GXX" = yes; then
9636 case $host_os in aix4.012|aix4.012.*)
9637 # We only want to do this on AIX 4.2 and lower, the check
9638 # below for broken collect2 doesn't work under 4.3+
9639 collect2name=`${CC} -print-prog-name=collect2`
9640 if test -f "$collect2name" && \
9641 strings "$collect2name" | grep resolve_lib_name >/dev/null
9642 then
9643 # We have reworked collect2
9644 hardcode_direct_CXX=yes
9645 else
9646 # We have old collect2
9647 hardcode_direct_CXX=unsupported
9648 # It fails to find uninstalled libraries when the uninstalled
9649 # path is not listed in the libpath. Setting hardcode_minus_L
9650 # to unsupported forces relinking
9651 hardcode_minus_L_CXX=yes
9652 hardcode_libdir_flag_spec_CXX='-L$libdir'
9653 hardcode_libdir_separator_CXX=
9654 fi
9655 esac
9656 shared_flag='-shared'
9657 else
9658 # not using gcc
9659 if test "$host_cpu" = ia64; then
9660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9661 # chokes on -Wl,-G. The following line is correct:
9662 shared_flag='-G'
9663 else
9664 if test "$aix_use_runtimelinking" = yes; then
9665 shared_flag='${wl}-G'
9666 else
9667 shared_flag='${wl}-bM:SRE'
9668 fi
9669 fi
9670 fi
9671
9672 # It seems that -bexpall does not export symbols beginning with
9673 # underscore (_), so it is better to generate a list of symbols to export.
9674 always_export_symbols_CXX=yes
9675 if test "$aix_use_runtimelinking" = yes; then
9676 # Warning - without using the other runtime loading flags (-brtl),
9677 # -berok will link without error, but may produce a broken library.
9678 allow_undefined_flag_CXX='-berok'
9679 # Determine the default libpath from the value encoded in an empty executable.
9680 cat >conftest.$ac_ext <<_ACEOF
9681#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009682/* confdefs.h. */
9683_ACEOF
9684cat confdefs.h >>conftest.$ac_ext
9685cat >>conftest.$ac_ext <<_ACEOF
9686/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009687
John Criswell47fdd832003-07-14 16:52:07 +00009688int
9689main ()
9690{
9691
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
9697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -s conftest$ac_exeext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708
9709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9710}'`
9711# Check for a 64-bit object if we didn't find anything.
9712if 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; }
9713}'`; fi
9714else
9715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009716sed 's/^/| /' conftest.$ac_ext >&5
9717
John Criswell47fdd832003-07-14 16:52:07 +00009718fi
9719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9720if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9721
9722 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9723
9724 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"
9725 else
9726 if test "$host_cpu" = ia64; then
9727 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9728 allow_undefined_flag_CXX="-z nodefs"
9729 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"
9730 else
9731 # Determine the default libpath from the value encoded in an empty executable.
9732 cat >conftest.$ac_ext <<_ACEOF
9733#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009734/* confdefs.h. */
9735_ACEOF
9736cat confdefs.h >>conftest.$ac_ext
9737cat >>conftest.$ac_ext <<_ACEOF
9738/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009739
John Criswell47fdd832003-07-14 16:52:07 +00009740int
9741main ()
9742{
9743
9744 ;
9745 return 0;
9746}
9747_ACEOF
9748rm -f conftest.$ac_objext conftest$ac_exeext
9749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760
9761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9762}'`
9763# Check for a 64-bit object if we didn't find anything.
9764if 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; }
9765}'`; fi
9766else
9767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009768sed 's/^/| /' conftest.$ac_ext >&5
9769
John Criswell47fdd832003-07-14 16:52:07 +00009770fi
9771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9773
9774 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9775 # Warning - without using the other run time loading flags,
9776 # -berok will link without error, but may produce a broken library.
9777 no_undefined_flag_CXX=' ${wl}-bernotok'
9778 allow_undefined_flag_CXX=' ${wl}-berok'
9779 # -bexpall does not export symbols beginning with underscore (_)
9780 always_export_symbols_CXX=yes
9781 # Exported symbols can be pulled into shared objects from archives
9782 whole_archive_flag_spec_CXX=' '
9783 archive_cmds_need_lc_CXX=yes
9784 # This is similar to how AIX traditionally builds it's shared libraries.
9785 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'
9786 fi
9787 fi
9788 ;;
9789 chorus*)
9790 case $cc_basename in
9791 *)
9792 # FIXME: insert proper C++ library support
9793 ld_shlibs_CXX=no
9794 ;;
9795 esac
9796 ;;
9797
9798 cygwin* | mingw* | pw32*)
9799 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9800 # as there is no search path for DLLs.
9801 hardcode_libdir_flag_spec_CXX='-L$libdir'
9802 allow_undefined_flag_CXX=unsupported
9803 always_export_symbols_CXX=no
9804 enable_shared_with_static_runtimes_CXX=yes
9805
9806 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9807 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'
9808 # If the export-symbols file already is a .def file (1st line
9809 # is EXPORTS), use it as is; otherwise, prepend...
9810 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9811 cp $export_symbols $output_objdir/$soname.def;
9812 else
9813 echo EXPORTS > $output_objdir/$soname.def;
9814 cat $export_symbols >> $output_objdir/$soname.def;
9815 fi~
9816 $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'
9817 else
9818 ld_shlibs_CXX=no
9819 fi
9820 ;;
9821
9822 darwin* | rhapsody*)
9823 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9824 archive_cmds_need_lc_CXX=no
9825 case "$host_os" in
9826 rhapsody* | darwin1.[012])
9827 allow_undefined_flag_CXX='-undefined suppress'
9828 ;;
9829 *) # Darwin 1.3 on
9830 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9831 ;;
9832 esac
9833 lt_int_apple_cc_single_mod=no
9834 output_verbose_link_cmd='echo'
9835 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9836 lt_int_apple_cc_single_mod=yes
9837 fi
9838 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9839 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9840 else
9841 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'
9842 fi
9843 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9844
9845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9846 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9847 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}'
9848 else
9849 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}'
9850 fi
9851 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}'
9852 hardcode_direct_CXX=no
9853 hardcode_automatic_CXX=yes
9854 hardcode_shlibpath_var_CXX=unsupported
9855 whole_archive_flag_spec_CXX='-all_load $convenience'
9856 link_all_deplibs_CXX=yes
9857 fi
9858 ;;
9859
9860 dgux*)
9861 case $cc_basename in
9862 ec++)
9863 # FIXME: insert proper C++ library support
9864 ld_shlibs_CXX=no
9865 ;;
9866 ghcx)
9867 # Green Hills C++ Compiler
9868 # FIXME: insert proper C++ library support
9869 ld_shlibs_CXX=no
9870 ;;
9871 *)
9872 # FIXME: insert proper C++ library support
9873 ld_shlibs_CXX=no
9874 ;;
9875 esac
9876 ;;
9877 freebsd12*)
9878 # C++ shared libraries reported to be fairly broken before switch to ELF
9879 ld_shlibs_CXX=no
9880 ;;
9881 freebsd-elf*)
9882 archive_cmds_need_lc_CXX=no
9883 ;;
9884 freebsd*)
9885 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9886 # conventions
9887 ld_shlibs_CXX=yes
9888 ;;
9889 gnu*)
9890 ;;
9891 hpux9*)
9892 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9893 hardcode_libdir_separator_CXX=:
9894 export_dynamic_flag_spec_CXX='${wl}-E'
9895 hardcode_direct_CXX=yes
9896 hardcode_minus_L_CXX=yes # Not in the search PATH,
9897 # but as the default
9898 # location of the library.
9899
9900 case $cc_basename in
9901 CC)
9902 # FIXME: insert proper C++ library support
9903 ld_shlibs_CXX=no
9904 ;;
9905 aCC)
9906 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'
9907 # Commands to make compiler produce verbose output that lists
9908 # what "hidden" libraries, object files and flags are used when
9909 # linking a shared library.
9910 #
9911 # There doesn't appear to be a way to prevent this compiler from
9912 # explicitly linking system object files so we need to strip them
9913 # from the output so that they don't get included in the library
9914 # dependencies.
9915 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'
9916 ;;
9917 *)
9918 if test "$GXX" = yes; then
9919 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'
9920 else
9921 # FIXME: insert proper C++ library support
9922 ld_shlibs_CXX=no
9923 fi
9924 ;;
9925 esac
9926 ;;
9927 hpux10*|hpux11*)
9928 if test $with_gnu_ld = no; then
9929 case "$host_cpu" in
9930 hppa*64*)
9931 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9932 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9933 hardcode_libdir_separator_CXX=:
9934 ;;
9935 ia64*)
9936 hardcode_libdir_flag_spec_CXX='-L$libdir'
9937 ;;
9938 *)
9939 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9940 hardcode_libdir_separator_CXX=:
9941 export_dynamic_flag_spec_CXX='${wl}-E'
9942 ;;
9943 esac
9944 fi
9945 case "$host_cpu" in
9946 hppa*64*)
9947 hardcode_direct_CXX=no
9948 hardcode_shlibpath_var_CXX=no
9949 ;;
9950 ia64*)
9951 hardcode_direct_CXX=no
9952 hardcode_shlibpath_var_CXX=no
9953 hardcode_minus_L_CXX=yes # Not in the search PATH,
9954 # but as the default
9955 # location of the library.
9956 ;;
9957 *)
9958 hardcode_direct_CXX=yes
9959 hardcode_minus_L_CXX=yes # Not in the search PATH,
9960 # but as the default
9961 # location of the library.
9962 ;;
9963 esac
9964
9965 case $cc_basename in
9966 CC)
9967 # FIXME: insert proper C++ library support
9968 ld_shlibs_CXX=no
9969 ;;
9970 aCC)
9971 case "$host_cpu" in
9972 hppa*64*|ia64*)
9973 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9974 ;;
9975 *)
9976 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9977 ;;
9978 esac
9979 # Commands to make compiler produce verbose output that lists
9980 # what "hidden" libraries, object files and flags are used when
9981 # linking a shared library.
9982 #
9983 # There doesn't appear to be a way to prevent this compiler from
9984 # explicitly linking system object files so we need to strip them
9985 # from the output so that they don't get included in the library
9986 # dependencies.
9987 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'
9988 ;;
9989 *)
9990 if test "$GXX" = yes; then
9991 if test $with_gnu_ld = no; then
9992 case "$host_cpu" in
9993 ia64*|hppa*64*)
9994 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9995 ;;
9996 *)
9997 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'
9998 ;;
9999 esac
10000 fi
10001 else
10002 # FIXME: insert proper C++ library support
10003 ld_shlibs_CXX=no
10004 fi
10005 ;;
10006 esac
10007 ;;
10008 irix5* | irix6*)
10009 case $cc_basename in
10010 CC)
10011 # SGI C++
10012 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'
10013
10014 # Archives containing C++ object files must be created using
10015 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10016 # necessary to make sure instantiated templates are included
10017 # in the archive.
10018 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10019 ;;
10020 *)
10021 if test "$GXX" = yes; then
10022 if test "$with_gnu_ld" = no; then
10023 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'
10024 else
10025 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'
10026 fi
10027 fi
10028 link_all_deplibs_CXX=yes
10029 ;;
10030 esac
10031 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10032 hardcode_libdir_separator_CXX=:
10033 ;;
10034 linux*)
10035 case $cc_basename in
10036 KCC)
10037 # Kuck and Associates, Inc. (KAI) C++ Compiler
10038
10039 # KCC will only create a shared library if the output file
10040 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10041 # to its proper name (with version) after linking.
10042 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'
10043 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'
10044 # Commands to make compiler produce verbose output that lists
10045 # what "hidden" libraries, object files and flags are used when
10046 # linking a shared library.
10047 #
10048 # There doesn't appear to be a way to prevent this compiler from
10049 # explicitly linking system object files so we need to strip them
10050 # from the output so that they don't get included in the library
10051 # dependencies.
10052 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'
10053
10054 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10056
10057 # Archives containing C++ object files must be created using
10058 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10059 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10060 ;;
10061 icpc)
10062 # Intel C++
10063 with_gnu_ld=yes
10064 archive_cmds_need_lc_CXX=no
10065 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066 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'
10067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10068 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10069 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10070 ;;
10071 cxx)
10072 # Compaq C++
10073 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10074 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'
10075
10076 runpath_var=LD_RUN_PATH
10077 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10078 hardcode_libdir_separator_CXX=:
10079
10080 # Commands to make compiler produce verbose output that lists
10081 # what "hidden" libraries, object files and flags are used when
10082 # linking a shared library.
10083 #
10084 # There doesn't appear to be a way to prevent this compiler from
10085 # explicitly linking system object files so we need to strip them
10086 # from the output so that they don't get included in the library
10087 # dependencies.
10088 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'
10089 ;;
10090 esac
10091 ;;
10092 lynxos*)
10093 # FIXME: insert proper C++ library support
10094 ld_shlibs_CXX=no
10095 ;;
10096 m88k*)
10097 # FIXME: insert proper C++ library support
10098 ld_shlibs_CXX=no
10099 ;;
10100 mvs*)
10101 case $cc_basename in
10102 cxx)
10103 # FIXME: insert proper C++ library support
10104 ld_shlibs_CXX=no
10105 ;;
10106 *)
10107 # FIXME: insert proper C++ library support
10108 ld_shlibs_CXX=no
10109 ;;
10110 esac
10111 ;;
10112 netbsd*)
10113 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10114 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10115 wlarc=
10116 hardcode_libdir_flag_spec_CXX='-R$libdir'
10117 hardcode_direct_CXX=yes
10118 hardcode_shlibpath_var_CXX=no
10119 fi
10120 # Workaround some broken pre-1.5 toolchains
10121 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10122 ;;
10123 osf3*)
10124 case $cc_basename in
10125 KCC)
10126 # Kuck and Associates, Inc. (KAI) C++ Compiler
10127
10128 # KCC will only create a shared library if the output file
10129 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10130 # to its proper name (with version) after linking.
10131 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'
10132
10133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10134 hardcode_libdir_separator_CXX=:
10135
10136 # Archives containing C++ object files must be created using
10137 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10138 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10139
10140 ;;
10141 RCC)
10142 # Rational C++ 2.4.1
10143 # FIXME: insert proper C++ library support
10144 ld_shlibs_CXX=no
10145 ;;
10146 cxx)
10147 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10148 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'
10149
10150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10151 hardcode_libdir_separator_CXX=:
10152
10153 # Commands to make compiler produce verbose output that lists
10154 # what "hidden" libraries, object files and flags are used when
10155 # linking a shared library.
10156 #
10157 # There doesn't appear to be a way to prevent this compiler from
10158 # explicitly linking system object files so we need to strip them
10159 # from the output so that they don't get included in the library
10160 # dependencies.
10161 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'
10162 ;;
10163 *)
10164 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10165 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10166 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'
10167
10168 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10169 hardcode_libdir_separator_CXX=:
10170
10171 # Commands to make compiler produce verbose output that lists
10172 # what "hidden" libraries, object files and flags are used when
10173 # linking a shared library.
10174 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10175
10176 else
10177 # FIXME: insert proper C++ library support
10178 ld_shlibs_CXX=no
10179 fi
10180 ;;
10181 esac
10182 ;;
10183 osf4* | osf5*)
10184 case $cc_basename in
10185 KCC)
10186 # Kuck and Associates, Inc. (KAI) C++ Compiler
10187
10188 # KCC will only create a shared library if the output file
10189 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10190 # to its proper name (with version) after linking.
10191 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'
10192
10193 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10194 hardcode_libdir_separator_CXX=:
10195
10196 # Archives containing C++ object files must be created using
10197 # the KAI C++ compiler.
10198 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10199 ;;
10200 RCC)
10201 # Rational C++ 2.4.1
10202 # FIXME: insert proper C++ library support
10203 ld_shlibs_CXX=no
10204 ;;
10205 cxx)
10206 allow_undefined_flag_CXX=' -expect_unresolved \*'
10207 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'
10208 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10209 echo "-hidden">> $lib.exp~
10210 $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~
10211 $rm $lib.exp'
10212
10213 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10214 hardcode_libdir_separator_CXX=:
10215
10216 # Commands to make compiler produce verbose output that lists
10217 # what "hidden" libraries, object files and flags are used when
10218 # linking a shared library.
10219 #
10220 # There doesn't appear to be a way to prevent this compiler from
10221 # explicitly linking system object files so we need to strip them
10222 # from the output so that they don't get included in the library
10223 # dependencies.
10224 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'
10225 ;;
10226 *)
10227 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10228 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10229 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'
10230
10231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10232 hardcode_libdir_separator_CXX=:
10233
10234 # Commands to make compiler produce verbose output that lists
10235 # what "hidden" libraries, object files and flags are used when
10236 # linking a shared library.
10237 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10238
10239 else
10240 # FIXME: insert proper C++ library support
10241 ld_shlibs_CXX=no
10242 fi
10243 ;;
10244 esac
10245 ;;
10246 psos*)
10247 # FIXME: insert proper C++ library support
10248 ld_shlibs_CXX=no
10249 ;;
10250 sco*)
10251 archive_cmds_need_lc_CXX=no
10252 case $cc_basename in
10253 CC)
10254 # FIXME: insert proper C++ library support
10255 ld_shlibs_CXX=no
10256 ;;
10257 *)
10258 # FIXME: insert proper C++ library support
10259 ld_shlibs_CXX=no
10260 ;;
10261 esac
10262 ;;
10263 sunos4*)
10264 case $cc_basename in
10265 CC)
10266 # Sun C++ 4.x
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 ;;
10270 lcc)
10271 # Lucid
10272 # FIXME: insert proper C++ library support
10273 ld_shlibs_CXX=no
10274 ;;
10275 *)
10276 # FIXME: insert proper C++ library support
10277 ld_shlibs_CXX=no
10278 ;;
10279 esac
10280 ;;
10281 solaris*)
10282 case $cc_basename in
10283 CC)
10284 # Sun C++ 4.2, 5.x and Centerline C++
10285 no_undefined_flag_CXX=' -zdefs'
10286 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10287 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10288 $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'
10289
10290 hardcode_libdir_flag_spec_CXX='-R$libdir'
10291 hardcode_shlibpath_var_CXX=no
10292 case $host_os in
10293 solaris2.0-5 | solaris2.0-5.*) ;;
10294 *)
10295 # The C++ compiler is used as linker so we must use $wl
10296 # flag to pass the commands to the underlying system
10297 # linker.
10298 # Supported since Solaris 2.6 (maybe 2.5.1?)
10299 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10300 ;;
10301 esac
10302 link_all_deplibs_CXX=yes
10303
10304 # Commands to make compiler produce verbose output that lists
10305 # what "hidden" libraries, object files and flags are used when
10306 # linking a shared library.
10307 #
10308 # There doesn't appear to be a way to prevent this compiler from
10309 # explicitly linking system object files so we need to strip them
10310 # from the output so that they don't get included in the library
10311 # dependencies.
10312 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'
10313
10314 # Archives containing C++ object files must be created using
10315 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10316 # necessary to make sure instantiated templates are included
10317 # in the archive.
10318 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10319 ;;
10320 gcx)
10321 # Green Hills C++ Compiler
10322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10323
10324 # The C++ compiler must be used to create the archive.
10325 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10326 ;;
10327 *)
10328 # GNU C++ compiler with Solaris linker
10329 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10330 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10331 if $CC --version | grep -v '^2\.7' > /dev/null; then
10332 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10333 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10334 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10335
10336 # Commands to make compiler produce verbose output that lists
10337 # what "hidden" libraries, object files and flags are used when
10338 # linking a shared library.
10339 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10340 else
10341 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10342 # platform.
10343 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10344 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10345 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10346
10347 # Commands to make compiler produce verbose output that lists
10348 # what "hidden" libraries, object files and flags are used when
10349 # linking a shared library.
10350 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10351 fi
10352
10353 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10354 fi
10355 ;;
10356 esac
10357 ;;
10358 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10359 archive_cmds_need_lc_CXX=no
10360 ;;
10361 tandem*)
10362 case $cc_basename in
10363 NCC)
10364 # NonStop-UX NCC 3.20
10365 # FIXME: insert proper C++ library support
10366 ld_shlibs_CXX=no
10367 ;;
10368 *)
10369 # FIXME: insert proper C++ library support
10370 ld_shlibs_CXX=no
10371 ;;
10372 esac
10373 ;;
10374 vxworks*)
10375 # FIXME: insert proper C++ library support
10376 ld_shlibs_CXX=no
10377 ;;
10378 *)
10379 # FIXME: insert proper C++ library support
10380 ld_shlibs_CXX=no
10381 ;;
10382esac
10383echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10384echo "${ECHO_T}$ld_shlibs_CXX" >&6
10385test "$ld_shlibs_CXX" = no && can_build_shared=no
10386
10387GCC_CXX="$GXX"
10388LD_CXX="$LD"
10389
10390## CAVEAT EMPTOR:
10391## There is no encapsulation within the following macros, do not change
10392## the running order or otherwise move them around unless you know exactly
10393## what you are doing...
10394
10395cat > conftest.$ac_ext <<EOF
10396class Foo
10397{
10398public:
10399 Foo (void) { a = 0; }
10400private:
10401 int a;
10402};
10403EOF
10404
10405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; then
10410 # Parse the compiler output and extract the necessary
10411 # objects, libraries and library flags.
10412
10413 # Sentinel used to keep track of whether or not we are before
10414 # the conftest object file.
10415 pre_test_object_deps_done=no
10416
10417 # The `*' in the case matches for architectures that use `case' in
10418 # $output_verbose_cmd can trigger glob expansion during the loop
10419 # eval without this substitution.
10420 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10421
10422 for p in `eval $output_verbose_link_cmd`; do
10423 case $p in
10424
10425 -L* | -R* | -l*)
10426 # Some compilers place space between "-{L,R}" and the path.
10427 # Remove the space.
10428 if test $p = "-L" \
10429 || test $p = "-R"; then
10430 prev=$p
10431 continue
10432 else
10433 prev=
10434 fi
10435
10436 if test "$pre_test_object_deps_done" = no; then
10437 case $p in
10438 -L* | -R*)
10439 # Internal compiler library paths should come after those
10440 # provided the user. The postdeps already come after the
10441 # user supplied libs so there is no need to process them.
10442 if test -z "$compiler_lib_search_path_CXX"; then
10443 compiler_lib_search_path_CXX="${prev}${p}"
10444 else
10445 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10446 fi
10447 ;;
10448 # The "-l" case would never come before the object being
10449 # linked, so don't bother handling this case.
10450 esac
10451 else
10452 if test -z "$postdeps_CXX"; then
10453 postdeps_CXX="${prev}${p}"
10454 else
10455 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10456 fi
10457 fi
10458 ;;
10459
10460 *.$objext)
10461 # This assumes that the test object file only shows up
10462 # once in the compiler output.
10463 if test "$p" = "conftest.$objext"; then
10464 pre_test_object_deps_done=yes
10465 continue
10466 fi
10467
10468 if test "$pre_test_object_deps_done" = no; then
10469 if test -z "$predep_objects_CXX"; then
10470 predep_objects_CXX="$p"
10471 else
10472 predep_objects_CXX="$predep_objects_CXX $p"
10473 fi
10474 else
10475 if test -z "$postdep_objects_CXX"; then
10476 postdep_objects_CXX="$p"
10477 else
10478 postdep_objects_CXX="$postdep_objects_CXX $p"
10479 fi
10480 fi
10481 ;;
10482
10483 *) ;; # Ignore the rest.
10484
10485 esac
10486 done
10487
10488 # Clean up.
10489 rm -f a.out a.exe
10490else
10491 echo "libtool.m4: error: problem compiling CXX test program"
10492fi
10493
10494$rm -f confest.$objext
10495
10496case " $postdeps_CXX " in
10497*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10498esac
10499
10500lt_prog_compiler_wl_CXX=
10501lt_prog_compiler_pic_CXX=
10502lt_prog_compiler_static_CXX=
10503
10504echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10505echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10506
10507 # C++ specific cases for pic, static, wl, etc.
10508 if test "$GXX" = yes; then
10509 lt_prog_compiler_wl_CXX='-Wl,'
10510 lt_prog_compiler_static_CXX='-static'
10511
10512 case $host_os in
10513 aix*)
10514 # All AIX code is PIC.
10515 if test "$host_cpu" = ia64; then
10516 # AIX 5 now supports IA64 processor
10517 lt_prog_compiler_static_CXX='-Bstatic'
10518 fi
10519 ;;
10520 amigaos*)
10521 # FIXME: we need at least 68020 code to build shared libraries, but
10522 # adding the `-m68020' flag to GCC prevents building anything better,
10523 # like `-m68040'.
10524 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10525 ;;
10526 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10527 # PIC is the default for these OSes.
10528 ;;
10529 mingw* | os2* | pw32*)
10530 # This hack is so that the source file can tell whether it is being
10531 # built for inclusion in a dll (and should export symbols for example).
10532 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10533 ;;
10534 darwin* | rhapsody*)
10535 # PIC is the default on this platform
10536 # Common symbols not allowed in MH_DYLIB files
10537 lt_prog_compiler_pic_CXX='-fno-common'
10538 ;;
10539 *djgpp*)
10540 # DJGPP does not support shared libraries at all
10541 lt_prog_compiler_pic_CXX=
10542 ;;
10543 sysv4*MP*)
10544 if test -d /usr/nec; then
10545 lt_prog_compiler_pic_CXX=-Kconform_pic
10546 fi
10547 ;;
10548 hpux*)
10549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10550 # not for PA HP-UX.
10551 case "$host_cpu" in
10552 hppa*64*|ia64*)
10553 ;;
10554 *)
10555 lt_prog_compiler_pic_CXX='-fPIC'
10556 ;;
10557 esac
10558 ;;
10559 *)
10560 lt_prog_compiler_pic_CXX='-fPIC'
10561 ;;
10562 esac
10563 else
10564 case $host_os in
10565 aix4* | aix5*)
10566 # All AIX code is PIC.
10567 if test "$host_cpu" = ia64; then
10568 # AIX 5 now supports IA64 processor
10569 lt_prog_compiler_static_CXX='-Bstatic'
10570 else
10571 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10572 fi
10573 ;;
10574 chorus*)
10575 case $cc_basename in
10576 cxch68)
10577 # Green Hills C++ Compiler
10578 # _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"
10579 ;;
10580 esac
10581 ;;
10582 dgux*)
10583 case $cc_basename in
10584 ec++)
10585 lt_prog_compiler_pic_CXX='-KPIC'
10586 ;;
10587 ghcx)
10588 # Green Hills C++ Compiler
10589 lt_prog_compiler_pic_CXX='-pic'
10590 ;;
10591 *)
10592 ;;
10593 esac
10594 ;;
10595 freebsd*)
10596 # FreeBSD uses GNU C++
10597 ;;
10598 hpux9* | hpux10* | hpux11*)
10599 case $cc_basename in
10600 CC)
10601 lt_prog_compiler_wl_CXX='-Wl,'
10602 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10603 if test "$host_cpu" != ia64; then
10604 lt_prog_compiler_pic_CXX='+Z'
10605 fi
10606 ;;
10607 aCC)
10608 lt_prog_compiler_wl_CXX='-Wl,'
10609 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10610 case "$host_cpu" in
10611 hppa*64*|ia64*)
10612 # +Z the default
10613 ;;
10614 *)
10615 lt_prog_compiler_pic_CXX='+Z'
10616 ;;
10617 esac
10618 ;;
10619 *)
10620 ;;
10621 esac
10622 ;;
10623 irix5* | irix6* | nonstopux*)
10624 case $cc_basename in
10625 CC)
10626 lt_prog_compiler_wl_CXX='-Wl,'
10627 lt_prog_compiler_static_CXX='-non_shared'
10628 # CC pic flag -KPIC is the default.
10629 ;;
10630 *)
10631 ;;
10632 esac
10633 ;;
10634 linux*)
10635 case $cc_basename in
10636 KCC)
10637 # KAI C++ Compiler
10638 lt_prog_compiler_wl_CXX='--backend -Wl,'
10639 lt_prog_compiler_pic_CXX='-fPIC'
10640 ;;
10641 icpc)
10642 # Intel C++
10643 lt_prog_compiler_wl_CXX='-Wl,'
10644 lt_prog_compiler_pic_CXX='-KPIC'
10645 lt_prog_compiler_static_CXX='-static'
10646 ;;
10647 cxx)
10648 # Compaq C++
10649 # Make sure the PIC flag is empty. It appears that all Alpha
10650 # Linux and Compaq Tru64 Unix objects are PIC.
10651 lt_prog_compiler_pic_CXX=
10652 lt_prog_compiler_static_CXX='-non_shared'
10653 ;;
10654 *)
10655 ;;
10656 esac
10657 ;;
10658 lynxos*)
10659 ;;
10660 m88k*)
10661 ;;
10662 mvs*)
10663 case $cc_basename in
10664 cxx)
10665 lt_prog_compiler_pic_CXX='-W c,exportall'
10666 ;;
10667 *)
10668 ;;
10669 esac
10670 ;;
10671 netbsd*)
10672 ;;
10673 osf3* | osf4* | osf5*)
10674 case $cc_basename in
10675 KCC)
10676 lt_prog_compiler_wl_CXX='--backend -Wl,'
10677 ;;
10678 RCC)
10679 # Rational C++ 2.4.1
10680 lt_prog_compiler_pic_CXX='-pic'
10681 ;;
10682 cxx)
10683 # Digital/Compaq C++
10684 lt_prog_compiler_wl_CXX='-Wl,'
10685 # Make sure the PIC flag is empty. It appears that all Alpha
10686 # Linux and Compaq Tru64 Unix objects are PIC.
10687 lt_prog_compiler_pic_CXX=
10688 lt_prog_compiler_static_CXX='-non_shared'
10689 ;;
10690 *)
10691 ;;
10692 esac
10693 ;;
10694 psos*)
10695 ;;
10696 sco*)
10697 case $cc_basename in
10698 CC)
10699 lt_prog_compiler_pic_CXX='-fPIC'
10700 ;;
10701 *)
10702 ;;
10703 esac
10704 ;;
10705 solaris*)
10706 case $cc_basename in
10707 CC)
10708 # Sun C++ 4.2, 5.x and Centerline C++
10709 lt_prog_compiler_pic_CXX='-KPIC'
10710 lt_prog_compiler_static_CXX='-Bstatic'
10711 lt_prog_compiler_wl_CXX='-Qoption ld '
10712 ;;
10713 gcx)
10714 # Green Hills C++ Compiler
10715 lt_prog_compiler_pic_CXX='-PIC'
10716 ;;
10717 *)
10718 ;;
10719 esac
10720 ;;
10721 sunos4*)
10722 case $cc_basename in
10723 CC)
10724 # Sun C++ 4.x
10725 lt_prog_compiler_pic_CXX='-pic'
10726 lt_prog_compiler_static_CXX='-Bstatic'
10727 ;;
10728 lcc)
10729 # Lucid
10730 lt_prog_compiler_pic_CXX='-pic'
10731 ;;
10732 *)
10733 ;;
10734 esac
10735 ;;
10736 tandem*)
10737 case $cc_basename in
10738 NCC)
10739 # NonStop-UX NCC 3.20
10740 lt_prog_compiler_pic_CXX='-KPIC'
10741 ;;
10742 *)
10743 ;;
10744 esac
10745 ;;
10746 unixware*)
10747 ;;
10748 vxworks*)
10749 ;;
10750 *)
10751 lt_prog_compiler_can_build_shared_CXX=no
10752 ;;
10753 esac
10754 fi
10755
10756echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10757echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10758
10759#
10760# Check to make sure the PIC flag actually works.
10761#
10762if test -n "$lt_prog_compiler_pic_CXX"; then
10763 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10764echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10765if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767else
10768 lt_prog_compiler_pic_works_CXX=no
10769 ac_outfile=conftest.$ac_objext
10770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10771 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10772 # Insert the option either (1) after the last *FLAGS variable, or
10773 # (2) before a word containing "conftest.", or (3) at the end.
10774 # Note that $ac_compile itself does not contain backslashes and begins
10775 # with a dollar sign (not a hyphen), so the echo should work correctly.
10776 # The option is referenced via a variable to avoid confusing sed.
10777 lt_compile=`echo "$ac_compile" | $SED \
10778 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10780 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000010781 (eval echo "\"\$as_me:10781: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010782 (eval "$lt_compile" 2>conftest.err)
10783 ac_status=$?
10784 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000010785 echo "$as_me:10785: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010786 if (exit $ac_status) && test -s "$ac_outfile"; then
10787 # The compiler can only warn and ignore the option if not recognized
10788 # So say no if there are warnings
10789 if test ! -s conftest.err; then
10790 lt_prog_compiler_pic_works_CXX=yes
10791 fi
10792 fi
10793 $rm conftest*
10794
10795fi
10796echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10797echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10798
10799if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10800 case $lt_prog_compiler_pic_CXX in
10801 "" | " "*) ;;
10802 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10803 esac
10804else
10805 lt_prog_compiler_pic_CXX=
10806 lt_prog_compiler_can_build_shared_CXX=no
10807fi
10808
10809fi
10810case "$host_os" in
10811 # For platforms which do not support PIC, -DPIC is meaningless:
10812 *djgpp*)
10813 lt_prog_compiler_pic_CXX=
10814 ;;
10815 *)
10816 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10817 ;;
10818esac
10819
10820echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10821echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10822if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824else
10825 lt_cv_prog_compiler_c_o_CXX=no
10826 $rm -r conftest 2>/dev/null
10827 mkdir conftest
10828 cd conftest
10829 mkdir out
10830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10831
10832 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10833 # that will create temporary files in the current directory regardless of
10834 # the output directory. Thus, making CWD read-only will cause this test
10835 # to fail, enabling locking or at least warning the user not to do parallel
10836 # builds.
10837 chmod -w .
10838
10839 lt_compiler_flag="-o out/conftest2.$ac_objext"
10840 # Insert the option either (1) after the last *FLAGS variable, or
10841 # (2) before a word containing "conftest.", or (3) at the end.
10842 # Note that $ac_compile itself does not contain backslashes and begins
10843 # with a dollar sign (not a hyphen), so the echo should work correctly.
10844 lt_compile=`echo "$ac_compile" | $SED \
10845 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10847 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000010848 (eval echo "\"\$as_me:10848: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010849 (eval "$lt_compile" 2>out/conftest.err)
10850 ac_status=$?
10851 cat out/conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000010852 echo "$as_me:10852: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10854 then
10855 # The compiler can only warn and ignore the option if not recognized
10856 # So say no if there are warnings
10857 if test ! -s out/conftest.err; then
10858 lt_cv_prog_compiler_c_o_CXX=yes
10859 fi
10860 fi
10861 chmod u+w .
10862 $rm conftest* out/*
10863 rmdir out
10864 cd ..
10865 rmdir conftest
10866 $rm conftest*
10867
10868fi
10869echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10870echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10871
10872
10873hard_links="nottested"
10874if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10875 # do not overwrite the value of need_locks provided by the user
10876 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10877echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10878 hard_links=yes
10879 $rm conftest*
10880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10881 touch conftest.a
10882 ln conftest.a conftest.b 2>&5 || hard_links=no
10883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10884 echo "$as_me:$LINENO: result: $hard_links" >&5
10885echo "${ECHO_T}$hard_links" >&6
10886 if test "$hard_links" = no; then
10887 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10888echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10889 need_locks=warn
10890 fi
10891else
10892 need_locks=no
10893fi
10894
10895echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10896echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10897
10898 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10899 case $host_os in
10900 aix4* | aix5*)
10901 # If we're using GNU nm, then we don't want the "-C" option.
10902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10903 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10904 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'
10905 else
10906 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'
10907 fi
10908 ;;
10909 pw32*)
10910 export_symbols_cmds_CXX="$ltdll_cmds"
10911 ;;
10912 cygwin* | mingw*)
10913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10914 ;;
10915 *)
10916 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10917 ;;
10918 esac
10919
10920echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10921echo "${ECHO_T}$ld_shlibs_CXX" >&6
10922test "$ld_shlibs_CXX" = no && can_build_shared=no
10923
10924variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10925if test "$GCC" = yes; then
10926 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10927fi
10928
10929#
10930# Do we need to explicitly link libc?
10931#
10932case "x$archive_cmds_need_lc_CXX" in
10933x|xyes)
10934 # Assume -lc should be added
10935 archive_cmds_need_lc_CXX=yes
10936
10937 if test "$enable_shared" = yes && test "$GCC" = yes; then
10938 case $archive_cmds_CXX in
10939 *'~'*)
10940 # FIXME: we may have to deal with multi-command sequences.
10941 ;;
10942 '$CC '*)
10943 # Test whether the compiler implicitly links with -lc since on some
10944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10945 # to ld, don't add -lc before -lgcc.
10946 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10947echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10948 $rm conftest*
10949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10950
10951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952 (eval $ac_compile) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } 2>conftest.err; then
10956 soname=conftest
10957 lib=conftest
10958 libobjs=conftest.$ac_objext
10959 deplibs=
10960 wl=$lt_prog_compiler_wl_CXX
10961 compiler_flags=-v
10962 linker_flags=-v
10963 verstring=
10964 output_objdir=.
10965 libname=conftest
10966 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10967 allow_undefined_flag_CXX=
10968 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10969 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }
10973 then
10974 archive_cmds_need_lc_CXX=no
10975 else
10976 archive_cmds_need_lc_CXX=yes
10977 fi
10978 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10979 else
10980 cat conftest.err 1>&5
10981 fi
10982 $rm conftest*
10983 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10984echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10985 ;;
10986 esac
10987 fi
10988 ;;
10989esac
10990
10991echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10992echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10993hardcode_action_CXX=
10994if test -n "$hardcode_libdir_flag_spec_CXX" || \
10995 test -n "$runpath_var CXX" || \
10996 test "X$hardcode_automatic_CXX"="Xyes" ; then
10997
10998 # We can hardcode non-existant directories.
10999 if test "$hardcode_direct_CXX" != no &&
11000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11001 # have to relink, otherwise we might link with an installed library
11002 # when we should be linking with a yet-to-be-installed one
11003 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11004 test "$hardcode_minus_L_CXX" != no; then
11005 # Linking always hardcodes the temporary library directory.
11006 hardcode_action_CXX=relink
11007 else
11008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11009 hardcode_action_CXX=immediate
11010 fi
11011else
11012 # We cannot hardcode anything, or else we can only hardcode existing
11013 # directories.
11014 hardcode_action_CXX=unsupported
11015fi
11016echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11017echo "${ECHO_T}$hardcode_action_CXX" >&6
11018
11019if test "$hardcode_action_CXX" = relink; then
11020 # Fast installation is not supported
11021 enable_fast_install=no
11022elif test "$shlibpath_overrides_runpath" = yes ||
11023 test "$enable_shared" = no; then
11024 # Fast installation is not necessary
11025 enable_fast_install=needless
11026fi
11027
11028striplib=
11029old_striplib=
11030echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11031echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11032if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11033 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11034 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11035 echo "$as_me:$LINENO: result: yes" >&5
11036echo "${ECHO_T}yes" >&6
11037else
11038# FIXME - insert some real tests, host_os isn't really good enough
11039 case $host_os in
11040 darwin*)
11041 if test -n "$STRIP" ; then
11042 striplib="$STRIP -x"
11043 echo "$as_me:$LINENO: result: yes" >&5
11044echo "${ECHO_T}yes" >&6
11045 else
11046 echo "$as_me:$LINENO: result: no" >&5
11047echo "${ECHO_T}no" >&6
11048fi
11049 ;;
11050 *)
11051 echo "$as_me:$LINENO: result: no" >&5
11052echo "${ECHO_T}no" >&6
11053 ;;
11054 esac
11055fi
11056
11057echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11058echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11059library_names_spec=
11060libname_spec='lib$name'
11061soname_spec=
11062shrext=".so"
11063postinstall_cmds=
11064postuninstall_cmds=
11065finish_cmds=
11066finish_eval=
11067shlibpath_var=
11068shlibpath_overrides_runpath=unknown
11069version_type=none
11070dynamic_linker="$host_os ld.so"
11071sys_lib_dlsearch_path_spec="/lib /usr/lib"
11072if test "$GCC" = yes; then
11073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11074 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11075 # if the path contains ";" then we assume it to be the separator
11076 # otherwise default to the standard path separator (i.e. ":") - it is
11077 # assumed that no part of a normal pathname contains ";" but that should
11078 # okay in the real world where ";" in dirpaths is itself problematic.
11079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11080 else
11081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11082 fi
11083else
11084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11085fi
11086need_lib_prefix=unknown
11087hardcode_into_libs=no
11088
11089# when you set need_version to no, make sure it does not cause -set_version
11090# flags to be left without arguments
11091need_version=unknown
11092
11093case $host_os in
11094aix3*)
11095 version_type=linux
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11097 shlibpath_var=LIBPATH
11098
11099 # AIX 3 has no versioning support, so we append a major version to the name.
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 ;;
11102
11103aix4* | aix5*)
11104 version_type=linux
11105 need_lib_prefix=no
11106 need_version=no
11107 hardcode_into_libs=yes
11108 if test "$host_cpu" = ia64; then
11109 # AIX 5 supports IA64
11110 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 else
11113 # With GCC up to 2.95.x, collect2 would create an import file
11114 # for dependence libraries. The import file would start with
11115 # the line `#! .'. This would cause the generated library to
11116 # depend on `.', always an invalid library. This was fixed in
11117 # development snapshots of GCC prior to 3.0.
11118 case $host_os in
11119 aix4 | aix4.[01] | aix4.[01].*)
11120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11121 echo ' yes '
11122 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11123 :
11124 else
11125 can_build_shared=no
11126 fi
11127 ;;
11128 esac
11129 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11130 # soname into executable. Probably we can add versioning support to
11131 # collect2, so additional links can be useful in future.
11132 if test "$aix_use_runtimelinking" = yes; then
11133 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11134 # instead of lib<name>.a to let people know that these are not
11135 # typical AIX shared libraries.
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 else
11138 # We preserve .a as extension for shared libraries through AIX4.2
11139 # and later when we are not doing run time linking.
11140 library_names_spec='${libname}${release}.a $libname.a'
11141 soname_spec='${libname}${release}${shared_ext}$major'
11142 fi
11143 shlibpath_var=LIBPATH
11144 fi
11145 ;;
11146
11147amigaos*)
11148 library_names_spec='$libname.ixlibrary $libname.a'
11149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11150 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'
11151 ;;
11152
11153beos*)
11154 library_names_spec='${libname}${shared_ext}'
11155 dynamic_linker="$host_os ld.so"
11156 shlibpath_var=LIBRARY_PATH
11157 ;;
11158
11159bsdi4*)
11160 version_type=linux
11161 need_version=no
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11168 # the default ld.so.conf also contains /usr/contrib/lib and
11169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11170 # libtool to hard-code these into programs
11171 ;;
11172
11173cygwin* | mingw* | pw32*)
11174 version_type=windows
11175 shrext=".dll"
11176 need_version=no
11177 need_lib_prefix=no
11178
11179 case $GCC,$host_os in
11180 yes,cygwin* | yes,mingw* | yes,pw32*)
11181 library_names_spec='$libname.dll.a'
11182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11183 postinstall_cmds='base_file=`basename \${file}`~
11184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11185 dldir=$destdir/`dirname \$dlpath`~
11186 test -d \$dldir || mkdir -p \$dldir~
11187 $install_prog $dir/$dlname \$dldir/$dlname'
11188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11189 dlpath=$dir/\$dldll~
11190 $rm \$dlpath'
11191 shlibpath_overrides_runpath=yes
11192
11193 case $host_os in
11194 cygwin*)
11195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11197 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11198 ;;
11199 mingw*)
11200 # MinGW DLLs use traditional 'lib' prefix
11201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11204 # It is most probably a Windows format PATH printed by
11205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11206 # path with ; separators, and with drive letters. We can handle the
11207 # drive letters (cygwin fileutils understands them), so leave them,
11208 # especially as we might pass files found there to a mingw objdump,
11209 # which wouldn't understand a cygwinified path. Ahh.
11210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11211 else
11212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11213 fi
11214 ;;
11215 pw32*)
11216 # pw32 DLLs use 'pw' prefix rather than 'lib'
11217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11218 ;;
11219 esac
11220 ;;
11221
11222 *)
11223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11224 ;;
11225 esac
11226 dynamic_linker='Win32 ld.exe'
11227 # FIXME: first we should search . and the directory the executable is in
11228 shlibpath_var=PATH
11229 ;;
11230
11231darwin* | rhapsody*)
11232 dynamic_linker="$host_os dyld"
11233 version_type=darwin
11234 need_lib_prefix=no
11235 need_version=no
11236 # FIXME: Relying on posixy $() will cause problems for
11237 # cross-compilation, but unfortunately the echo tests do not
11238 # yet detect zsh echo's removal of \ escapes.
11239 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11240 soname_spec='${libname}${release}${major}$shared_ext'
11241 shlibpath_overrides_runpath=yes
11242 shlibpath_var=DYLD_LIBRARY_PATH
11243 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11244 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11245 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11246 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"`
11247 fi
11248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11249 ;;
11250
11251dgux*)
11252 version_type=linux
11253 need_lib_prefix=no
11254 need_version=no
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 ;;
11259
11260freebsd1*)
11261 dynamic_linker=no
11262 ;;
11263
11264freebsd*)
11265 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11266 version_type=freebsd-$objformat
11267 case $version_type in
11268 freebsd-elf*)
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11270 need_version=no
11271 need_lib_prefix=no
11272 ;;
11273 freebsd-*)
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11275 need_version=yes
11276 ;;
11277 esac
11278 shlibpath_var=LD_LIBRARY_PATH
11279 case $host_os in
11280 freebsd2*)
11281 shlibpath_overrides_runpath=yes
11282 ;;
11283 freebsd3.01* | freebsdelf3.01*)
11284 shlibpath_overrides_runpath=yes
11285 hardcode_into_libs=yes
11286 ;;
11287 *) # from 3.2 on
11288 shlibpath_overrides_runpath=no
11289 hardcode_into_libs=yes
11290 ;;
11291 esac
11292 ;;
11293
11294gnu*)
11295 version_type=linux
11296 need_lib_prefix=no
11297 need_version=no
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 shlibpath_var=LD_LIBRARY_PATH
11301 hardcode_into_libs=yes
11302 ;;
11303
11304hpux9* | hpux10* | hpux11*)
11305 # Give a soname corresponding to the major version so that dld.sl refuses to
11306 # link against other versions.
11307 version_type=sunos
11308 need_lib_prefix=no
11309 need_version=no
11310 case "$host_cpu" in
11311 ia64*)
11312 shrext='.so'
11313 hardcode_into_libs=yes
11314 dynamic_linker="$host_os dld.so"
11315 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 if test "X$HPUX_IA64_MODE" = X32; then
11320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11321 else
11322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11323 fi
11324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11325 ;;
11326 hppa*64*)
11327 shrext='.sl'
11328 hardcode_into_libs=yes
11329 dynamic_linker="$host_os dld.sl"
11330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11336 ;;
11337 *)
11338 shrext='.sl'
11339 dynamic_linker="$host_os dld.sl"
11340 shlibpath_var=SHLIB_PATH
11341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343 soname_spec='${libname}${release}${shared_ext}$major'
11344 ;;
11345 esac
11346 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11347 postinstall_cmds='chmod 555 $lib'
11348 ;;
11349
11350irix5* | irix6* | nonstopux*)
11351 case $host_os in
11352 nonstopux*) version_type=nonstopux ;;
11353 *)
11354 if test "$lt_cv_prog_gnu_ld" = yes; then
11355 version_type=linux
11356 else
11357 version_type=irix
11358 fi ;;
11359 esac
11360 need_lib_prefix=no
11361 need_version=no
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11364 case $host_os in
11365 irix5* | nonstopux*)
11366 libsuff= shlibsuff=
11367 ;;
11368 *)
11369 case $LD in # libtool.m4 will add one of these switches to LD
11370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11371 libsuff= shlibsuff= libmagic=32-bit;;
11372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11373 libsuff=32 shlibsuff=N32 libmagic=N32;;
11374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11376 *) libsuff= shlibsuff= libmagic=never-match;;
11377 esac
11378 ;;
11379 esac
11380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11381 shlibpath_overrides_runpath=no
11382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11384 hardcode_into_libs=yes
11385 ;;
11386
11387# No shared lib support for Linux oldld, aout, or coff.
11388linux*oldld* | linux*aout* | linux*coff*)
11389 dynamic_linker=no
11390 ;;
11391
11392# This must be Linux ELF.
11393linux*)
11394 version_type=linux
11395 need_lib_prefix=no
11396 need_version=no
11397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11398 soname_spec='${libname}${release}${shared_ext}$major'
11399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=no
11402 # This implies no fast_install, which is unacceptable.
11403 # Some rework will be needed to allow for fast_install
11404 # before this can be enabled.
11405 hardcode_into_libs=yes
11406
11407 # We used to test for /lib/ld.so.1 and disable shared libraries on
11408 # powerpc, because MkLinux only supported shared libraries with the
11409 # GNU dynamic linker. Since this was broken with cross compilers,
11410 # most powerpc-linux boxes support dynamic linking these days and
11411 # people can always --disable-shared, the test was removed, and we
11412 # assume the GNU/Linux dynamic linker is in use.
11413 dynamic_linker='GNU/Linux ld.so'
11414 ;;
11415
11416netbsd*)
11417 version_type=sunos
11418 need_lib_prefix=no
11419 need_version=no
11420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11423 dynamic_linker='NetBSD (a.out) ld.so'
11424 else
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 dynamic_linker='NetBSD ld.elf_so'
11428 fi
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=yes
11431 hardcode_into_libs=yes
11432 ;;
11433
11434newsos6)
11435 version_type=linux
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=yes
11439 ;;
11440
11441nto-qnx)
11442 version_type=linux
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 ;;
11450
11451openbsd*)
11452 version_type=sunos
11453 need_lib_prefix=no
11454 need_version=no
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11459 case $host_os in
11460 openbsd2.[89] | openbsd2.[89].*)
11461 shlibpath_overrides_runpath=no
11462 ;;
11463 *)
11464 shlibpath_overrides_runpath=yes
11465 ;;
11466 esac
11467 else
11468 shlibpath_overrides_runpath=yes
11469 fi
11470 ;;
11471
11472os2*)
11473 libname_spec='$name'
11474 shrext=".dll"
11475 need_lib_prefix=no
11476 library_names_spec='$libname${shared_ext} $libname.a'
11477 dynamic_linker='OS/2 ld.exe'
11478 shlibpath_var=LIBPATH
11479 ;;
11480
11481osf3* | osf4* | osf5*)
11482 version_type=osf
11483 need_lib_prefix=no
11484 need_version=no
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 shlibpath_var=LD_LIBRARY_PATH
11488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11490 ;;
11491
11492sco3.2v5*)
11493 version_type=osf
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 ;;
11498
11499solaris*)
11500 version_type=linux
11501 need_lib_prefix=no
11502 need_version=no
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 shlibpath_overrides_runpath=yes
11507 hardcode_into_libs=yes
11508 # ldd complains unless libraries are executable
11509 postinstall_cmds='chmod +x $lib'
11510 ;;
11511
11512sunos4*)
11513 version_type=sunos
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11518 if test "$with_gnu_ld" = yes; then
11519 need_lib_prefix=no
11520 fi
11521 need_version=yes
11522 ;;
11523
11524sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11525 version_type=linux
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 soname_spec='${libname}${release}${shared_ext}$major'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 case $host_vendor in
11530 sni)
11531 shlibpath_overrides_runpath=no
11532 need_lib_prefix=no
11533 export_dynamic_flag_spec='${wl}-Blargedynsym'
11534 runpath_var=LD_RUN_PATH
11535 ;;
11536 siemens)
11537 need_lib_prefix=no
11538 ;;
11539 motorola)
11540 need_lib_prefix=no
11541 need_version=no
11542 shlibpath_overrides_runpath=no
11543 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11544 ;;
11545 esac
11546 ;;
11547
11548sysv4*MP*)
11549 if test -d /usr/nec ;then
11550 version_type=linux
11551 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11552 soname_spec='$libname${shared_ext}.$major'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 fi
11555 ;;
11556
11557uts4*)
11558 version_type=linux
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 ;;
11563
11564*)
11565 dynamic_linker=no
11566 ;;
11567esac
11568echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11569echo "${ECHO_T}$dynamic_linker" >&6
11570test "$dynamic_linker" = no && can_build_shared=no
11571
11572if test "x$enable_dlopen" != xyes; then
11573 enable_dlopen=unknown
11574 enable_dlopen_self=unknown
11575 enable_dlopen_self_static=unknown
11576else
11577 lt_cv_dlopen=no
11578 lt_cv_dlopen_libs=
11579
11580 case $host_os in
11581 beos*)
11582 lt_cv_dlopen="load_add_on"
11583 lt_cv_dlopen_libs=
11584 lt_cv_dlopen_self=yes
11585 ;;
11586
11587 mingw* | pw32*)
11588 lt_cv_dlopen="LoadLibrary"
11589 lt_cv_dlopen_libs=
11590 ;;
11591
11592 cygwin*)
11593 lt_cv_dlopen="dlopen"
11594 lt_cv_dlopen_libs=
11595 ;;
11596
11597 darwin*)
11598 # if libdl is installed we need to link against it
11599 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11600echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11601if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603else
11604 ac_check_lib_save_LIBS=$LIBS
11605LIBS="-ldl $LIBS"
11606cat >conftest.$ac_ext <<_ACEOF
11607#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011608/* confdefs.h. */
11609_ACEOF
11610cat confdefs.h >>conftest.$ac_ext
11611cat >>conftest.$ac_ext <<_ACEOF
11612/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011613
11614/* Override any gcc2 internal prototype to avoid an error. */
11615#ifdef __cplusplus
11616extern "C"
11617#endif
11618/* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11620char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011621int
11622main ()
11623{
11624dlopen ();
11625 ;
11626 return 0;
11627}
11628_ACEOF
11629rm -f conftest.$ac_objext conftest$ac_exeext
11630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631 (eval $ac_link) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -s conftest$ac_exeext'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 ac_cv_lib_dl_dlopen=yes
11642else
11643 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011644sed 's/^/| /' conftest.$ac_ext >&5
11645
John Criswell47fdd832003-07-14 16:52:07 +000011646ac_cv_lib_dl_dlopen=no
11647fi
11648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11649LIBS=$ac_check_lib_save_LIBS
11650fi
11651echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11652echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11653if test $ac_cv_lib_dl_dlopen = yes; then
11654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11655else
11656
11657 lt_cv_dlopen="dyld"
11658 lt_cv_dlopen_libs=
11659 lt_cv_dlopen_self=yes
11660
11661fi
11662
11663 ;;
11664
11665 *)
11666 echo "$as_me:$LINENO: checking for shl_load" >&5
11667echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11668if test "${ac_cv_func_shl_load+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670else
11671 cat >conftest.$ac_ext <<_ACEOF
11672#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011678/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011679 which can conflict with char shl_load (); below.
11680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11681 <limits.h> exists even on freestanding compilers. */
11682#ifdef __STDC__
11683# include <limits.h>
11684#else
11685# include <assert.h>
11686#endif
John Criswell47fdd832003-07-14 16:52:07 +000011687/* Override any gcc2 internal prototype to avoid an error. */
11688#ifdef __cplusplus
11689extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011690{
John Criswell47fdd832003-07-14 16:52:07 +000011691#endif
11692/* We use char because int might match the return type of a gcc2
11693 builtin and then its argument prototype would still apply. */
11694char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011695/* The GNU C library defines this for functions which it implements
11696 to always fail with ENOSYS. Some functions are actually named
11697 something starting with __ and the normal name is an alias. */
11698#if defined (__stub_shl_load) || defined (__stub___shl_load)
11699choke me
11700#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011701char (*f) () = shl_load;
11702#endif
11703#ifdef __cplusplus
11704}
John Criswell47fdd832003-07-14 16:52:07 +000011705#endif
11706
John Criswell0c38eaf2003-09-10 15:17:25 +000011707int
11708main ()
11709{
11710return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011711 ;
11712 return 0;
11713}
11714_ACEOF
11715rm -f conftest.$ac_objext conftest$ac_exeext
11716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11717 (eval $ac_link) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } &&
11721 { ac_try='test -s conftest$ac_exeext'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 ac_cv_func_shl_load=yes
11728else
11729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011730sed 's/^/| /' conftest.$ac_ext >&5
11731
John Criswell47fdd832003-07-14 16:52:07 +000011732ac_cv_func_shl_load=no
11733fi
11734rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11735fi
11736echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11737echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11738if test $ac_cv_func_shl_load = yes; then
11739 lt_cv_dlopen="shl_load"
11740else
11741 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11742echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11743if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 ac_check_lib_save_LIBS=$LIBS
11747LIBS="-ldld $LIBS"
11748cat >conftest.$ac_ext <<_ACEOF
11749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011750/* confdefs.h. */
11751_ACEOF
11752cat confdefs.h >>conftest.$ac_ext
11753cat >>conftest.$ac_ext <<_ACEOF
11754/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011755
11756/* Override any gcc2 internal prototype to avoid an error. */
11757#ifdef __cplusplus
11758extern "C"
11759#endif
11760/* We use char because int might match the return type of a gcc2
11761 builtin and then its argument prototype would still apply. */
11762char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011763int
11764main ()
11765{
11766shl_load ();
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext conftest$ac_exeext
11772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773 (eval $ac_link) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -s conftest$ac_exeext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_cv_lib_dld_shl_load=yes
11784else
11785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011786sed 's/^/| /' conftest.$ac_ext >&5
11787
John Criswell47fdd832003-07-14 16:52:07 +000011788ac_cv_lib_dld_shl_load=no
11789fi
11790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11791LIBS=$ac_check_lib_save_LIBS
11792fi
11793echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11794echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11795if test $ac_cv_lib_dld_shl_load = yes; then
11796 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11797else
11798 echo "$as_me:$LINENO: checking for dlopen" >&5
11799echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11800if test "${ac_cv_func_dlopen+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803 cat >conftest.$ac_ext <<_ACEOF
11804#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011805/* confdefs.h. */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011810/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011811 which can conflict with char dlopen (); below.
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813 <limits.h> exists even on freestanding compilers. */
11814#ifdef __STDC__
11815# include <limits.h>
11816#else
11817# include <assert.h>
11818#endif
John Criswell47fdd832003-07-14 16:52:07 +000011819/* Override any gcc2 internal prototype to avoid an error. */
11820#ifdef __cplusplus
11821extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011822{
John Criswell47fdd832003-07-14 16:52:07 +000011823#endif
11824/* We use char because int might match the return type of a gcc2
11825 builtin and then its argument prototype would still apply. */
11826char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011827/* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830#if defined (__stub_dlopen) || defined (__stub___dlopen)
11831choke me
11832#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011833char (*f) () = dlopen;
11834#endif
11835#ifdef __cplusplus
11836}
John Criswell47fdd832003-07-14 16:52:07 +000011837#endif
11838
John Criswell0c38eaf2003-09-10 15:17:25 +000011839int
11840main ()
11841{
11842return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011843 ;
11844 return 0;
11845}
11846_ACEOF
11847rm -f conftest.$ac_objext conftest$ac_exeext
11848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849 (eval $ac_link) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -s conftest$ac_exeext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_cv_func_dlopen=yes
11860else
11861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011862sed 's/^/| /' conftest.$ac_ext >&5
11863
John Criswell47fdd832003-07-14 16:52:07 +000011864ac_cv_func_dlopen=no
11865fi
11866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11867fi
11868echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11869echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11870if test $ac_cv_func_dlopen = yes; then
11871 lt_cv_dlopen="dlopen"
11872else
11873 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11874echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11875if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878 ac_check_lib_save_LIBS=$LIBS
11879LIBS="-ldl $LIBS"
11880cat >conftest.$ac_ext <<_ACEOF
11881#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011887
11888/* Override any gcc2 internal prototype to avoid an error. */
11889#ifdef __cplusplus
11890extern "C"
11891#endif
11892/* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11894char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011895int
11896main ()
11897{
11898dlopen ();
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest.$ac_objext conftest$ac_exeext
11904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -s conftest$ac_exeext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_lib_dl_dlopen=yes
11916else
11917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011918sed 's/^/| /' conftest.$ac_ext >&5
11919
John Criswell47fdd832003-07-14 16:52:07 +000011920ac_cv_lib_dl_dlopen=no
11921fi
11922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11923LIBS=$ac_check_lib_save_LIBS
11924fi
11925echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11926echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11927if test $ac_cv_lib_dl_dlopen = yes; then
11928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11929else
11930 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11931echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11932if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 ac_check_lib_save_LIBS=$LIBS
11936LIBS="-lsvld $LIBS"
11937cat >conftest.$ac_ext <<_ACEOF
11938#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011944
11945/* Override any gcc2 internal prototype to avoid an error. */
11946#ifdef __cplusplus
11947extern "C"
11948#endif
11949/* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11951char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011952int
11953main ()
11954{
11955dlopen ();
11956 ;
11957 return 0;
11958}
11959_ACEOF
11960rm -f conftest.$ac_objext conftest$ac_exeext
11961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_cv_lib_svld_dlopen=yes
11973else
11974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011975sed 's/^/| /' conftest.$ac_ext >&5
11976
John Criswell47fdd832003-07-14 16:52:07 +000011977ac_cv_lib_svld_dlopen=no
11978fi
11979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11980LIBS=$ac_check_lib_save_LIBS
11981fi
11982echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11983echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11984if test $ac_cv_lib_svld_dlopen = yes; then
11985 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11986else
11987 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11988echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11989if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992 ac_check_lib_save_LIBS=$LIBS
11993LIBS="-ldld $LIBS"
11994cat >conftest.$ac_ext <<_ACEOF
11995#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012001
12002/* Override any gcc2 internal prototype to avoid an error. */
12003#ifdef __cplusplus
12004extern "C"
12005#endif
12006/* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12008char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012009int
12010main ()
12011{
12012dld_link ();
12013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext conftest$ac_exeext
12018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest$ac_exeext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_lib_dld_dld_link=yes
12030else
12031 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012032sed 's/^/| /' conftest.$ac_ext >&5
12033
John Criswell47fdd832003-07-14 16:52:07 +000012034ac_cv_lib_dld_dld_link=no
12035fi
12036rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12037LIBS=$ac_check_lib_save_LIBS
12038fi
12039echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12040echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12041if test $ac_cv_lib_dld_dld_link = yes; then
12042 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12043fi
12044
12045
12046fi
12047
12048
12049fi
12050
12051
12052fi
12053
12054
12055fi
12056
12057
12058fi
12059
12060 ;;
12061 esac
12062
12063 if test "x$lt_cv_dlopen" != xno; then
12064 enable_dlopen=yes
12065 else
12066 enable_dlopen=no
12067 fi
12068
12069 case $lt_cv_dlopen in
12070 dlopen)
12071 save_CPPFLAGS="$CPPFLAGS"
12072 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12073
12074 save_LDFLAGS="$LDFLAGS"
12075 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12076
12077 save_LIBS="$LIBS"
12078 LIBS="$lt_cv_dlopen_libs $LIBS"
12079
12080 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12081echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12082if test "${lt_cv_dlopen_self+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084else
12085 if test "$cross_compiling" = yes; then :
12086 lt_cv_dlopen_self=cross
12087else
12088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12089 lt_status=$lt_dlunknown
12090 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +000012091#line 12091 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012092#include "confdefs.h"
12093
12094#if HAVE_DLFCN_H
12095#include <dlfcn.h>
12096#endif
12097
12098#include <stdio.h>
12099
12100#ifdef RTLD_GLOBAL
12101# define LT_DLGLOBAL RTLD_GLOBAL
12102#else
12103# ifdef DL_GLOBAL
12104# define LT_DLGLOBAL DL_GLOBAL
12105# else
12106# define LT_DLGLOBAL 0
12107# endif
12108#endif
12109
12110/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12111 find out it does not work in some platform. */
12112#ifndef LT_DLLAZY_OR_NOW
12113# ifdef RTLD_LAZY
12114# define LT_DLLAZY_OR_NOW RTLD_LAZY
12115# else
12116# ifdef DL_LAZY
12117# define LT_DLLAZY_OR_NOW DL_LAZY
12118# else
12119# ifdef RTLD_NOW
12120# define LT_DLLAZY_OR_NOW RTLD_NOW
12121# else
12122# ifdef DL_NOW
12123# define LT_DLLAZY_OR_NOW DL_NOW
12124# else
12125# define LT_DLLAZY_OR_NOW 0
12126# endif
12127# endif
12128# endif
12129# endif
12130#endif
12131
12132#ifdef __cplusplus
12133extern "C" void exit (int);
12134#endif
12135
12136void fnord() { int i=42;}
12137int main ()
12138{
12139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12140 int status = $lt_dlunknown;
12141
12142 if (self)
12143 {
12144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12145 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12146 /* dlclose (self); */
12147 }
12148
12149 exit (status);
12150}
12151EOF
12152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12153 (eval $ac_link) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12157 (./conftest; exit; ) 2>/dev/null
12158 lt_status=$?
12159 case x$lt_status in
12160 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12161 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12162 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12163 esac
12164 else :
12165 # compilation failed
12166 lt_cv_dlopen_self=no
12167 fi
12168fi
12169rm -fr conftest*
12170
12171
12172fi
12173echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12174echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12175
12176 if test "x$lt_cv_dlopen_self" = xyes; then
12177 LDFLAGS="$LDFLAGS $link_static_flag"
12178 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12179echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12180if test "${lt_cv_dlopen_self_static+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12182else
12183 if test "$cross_compiling" = yes; then :
12184 lt_cv_dlopen_self_static=cross
12185else
12186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12187 lt_status=$lt_dlunknown
12188 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +000012189#line 12189 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012190#include "confdefs.h"
12191
12192#if HAVE_DLFCN_H
12193#include <dlfcn.h>
12194#endif
12195
12196#include <stdio.h>
12197
12198#ifdef RTLD_GLOBAL
12199# define LT_DLGLOBAL RTLD_GLOBAL
12200#else
12201# ifdef DL_GLOBAL
12202# define LT_DLGLOBAL DL_GLOBAL
12203# else
12204# define LT_DLGLOBAL 0
12205# endif
12206#endif
12207
12208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12209 find out it does not work in some platform. */
12210#ifndef LT_DLLAZY_OR_NOW
12211# ifdef RTLD_LAZY
12212# define LT_DLLAZY_OR_NOW RTLD_LAZY
12213# else
12214# ifdef DL_LAZY
12215# define LT_DLLAZY_OR_NOW DL_LAZY
12216# else
12217# ifdef RTLD_NOW
12218# define LT_DLLAZY_OR_NOW RTLD_NOW
12219# else
12220# ifdef DL_NOW
12221# define LT_DLLAZY_OR_NOW DL_NOW
12222# else
12223# define LT_DLLAZY_OR_NOW 0
12224# endif
12225# endif
12226# endif
12227# endif
12228#endif
12229
12230#ifdef __cplusplus
12231extern "C" void exit (int);
12232#endif
12233
12234void fnord() { int i=42;}
12235int main ()
12236{
12237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12238 int status = $lt_dlunknown;
12239
12240 if (self)
12241 {
12242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12244 /* dlclose (self); */
12245 }
12246
12247 exit (status);
12248}
12249EOF
12250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12251 (eval $ac_link) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12255 (./conftest; exit; ) 2>/dev/null
12256 lt_status=$?
12257 case x$lt_status in
12258 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12259 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12260 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12261 esac
12262 else :
12263 # compilation failed
12264 lt_cv_dlopen_self_static=no
12265 fi
12266fi
12267rm -fr conftest*
12268
12269
12270fi
12271echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12272echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12273 fi
12274
12275 CPPFLAGS="$save_CPPFLAGS"
12276 LDFLAGS="$save_LDFLAGS"
12277 LIBS="$save_LIBS"
12278 ;;
12279 esac
12280
12281 case $lt_cv_dlopen_self in
12282 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12283 *) enable_dlopen_self=unknown ;;
12284 esac
12285
12286 case $lt_cv_dlopen_self_static in
12287 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12288 *) enable_dlopen_self_static=unknown ;;
12289 esac
12290fi
12291
12292
12293# The else clause should only fire when bootstrapping the
12294# libtool distribution, otherwise you forgot to ship ltmain.sh
12295# with your package, and you will get complaints that there are
12296# no rules to generate ltmain.sh.
12297if test -f "$ltmain"; then
12298 # See if we are running on zsh, and set the options which allow our commands through
12299 # without removal of \ escapes.
12300 if test -n "${ZSH_VERSION+set}" ; then
12301 setopt NO_GLOB_SUBST
12302 fi
12303 # Now quote all the things that may contain metacharacters while being
12304 # careful not to overquote the AC_SUBSTed values. We take copies of the
12305 # variables and quote the copies for generation of the libtool script.
12306 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12309 deplibs_check_method reload_flag reload_cmds need_locks \
12310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12311 lt_cv_sys_global_symbol_to_c_name_address \
12312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12313 old_postinstall_cmds old_postuninstall_cmds \
12314 compiler_CXX \
12315 CC_CXX \
12316 LD_CXX \
12317 lt_prog_compiler_wl_CXX \
12318 lt_prog_compiler_pic_CXX \
12319 lt_prog_compiler_static_CXX \
12320 lt_prog_compiler_no_builtin_flag_CXX \
12321 export_dynamic_flag_spec_CXX \
12322 thread_safe_flag_spec_CXX \
12323 whole_archive_flag_spec_CXX \
12324 enable_shared_with_static_runtimes_CXX \
12325 old_archive_cmds_CXX \
12326 old_archive_from_new_cmds_CXX \
12327 predep_objects_CXX \
12328 postdep_objects_CXX \
12329 predeps_CXX \
12330 postdeps_CXX \
12331 compiler_lib_search_path_CXX \
12332 archive_cmds_CXX \
12333 archive_expsym_cmds_CXX \
12334 postinstall_cmds_CXX \
12335 postuninstall_cmds_CXX \
12336 old_archive_from_expsyms_cmds_CXX \
12337 allow_undefined_flag_CXX \
12338 no_undefined_flag_CXX \
12339 export_symbols_cmds_CXX \
12340 hardcode_libdir_flag_spec_CXX \
12341 hardcode_libdir_flag_spec_ld_CXX \
12342 hardcode_libdir_separator_CXX \
12343 hardcode_automatic_CXX \
12344 module_cmds_CXX \
12345 module_expsym_cmds_CXX \
12346 lt_cv_prog_compiler_c_o_CXX \
12347 exclude_expsyms_CXX \
12348 include_expsyms_CXX; do
12349
12350 case $var in
12351 old_archive_cmds_CXX | \
12352 old_archive_from_new_cmds_CXX | \
12353 archive_cmds_CXX | \
12354 archive_expsym_cmds_CXX | \
12355 module_cmds_CXX | \
12356 module_expsym_cmds_CXX | \
12357 old_archive_from_expsyms_cmds_CXX | \
12358 export_symbols_cmds_CXX | \
12359 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12360 postinstall_cmds | postuninstall_cmds | \
12361 old_postinstall_cmds | old_postuninstall_cmds | \
12362 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12363 # Double-quote double-evaled strings.
12364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12365 ;;
12366 *)
12367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12368 ;;
12369 esac
12370 done
12371
12372 case $lt_echo in
12373 *'\$0 --fallback-echo"')
12374 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12375 ;;
12376 esac
12377
12378cfgfile="$ofile"
12379
12380 cat <<__EOF__ >> "$cfgfile"
12381# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12382
12383# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12384
12385# Shell to use when invoking shell scripts.
12386SHELL=$lt_SHELL
12387
12388# Whether or not to build shared libraries.
12389build_libtool_libs=$enable_shared
12390
12391# Whether or not to build static libraries.
12392build_old_libs=$enable_static
12393
12394# Whether or not to add -lc for building shared libraries.
12395build_libtool_need_lc=$archive_cmds_need_lc_CXX
12396
12397# Whether or not to disallow shared libs when runtime libs are static
12398allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12399
12400# Whether or not to optimize for fast installation.
12401fast_install=$enable_fast_install
12402
12403# The host system.
12404host_alias=$host_alias
12405host=$host
12406
12407# An echo program that does not interpret backslashes.
12408echo=$lt_echo
12409
12410# The archiver.
12411AR=$lt_AR
12412AR_FLAGS=$lt_AR_FLAGS
12413
12414# A C compiler.
12415LTCC=$lt_LTCC
12416
12417# A language-specific compiler.
12418CC=$lt_compiler_CXX
12419
12420# Is the compiler the GNU C compiler?
12421with_gcc=$GCC_CXX
12422
12423# An ERE matcher.
12424EGREP=$lt_EGREP
12425
12426# The linker used to build libraries.
12427LD=$lt_LD_CXX
12428
12429# Whether we need hard or soft links.
12430LN_S=$lt_LN_S
12431
12432# A BSD-compatible nm program.
12433NM=$lt_NM
12434
12435# A symbol stripping program
12436STRIP=$STRIP
12437
12438# Used to examine libraries when file_magic_cmd begins "file"
12439MAGIC_CMD=$MAGIC_CMD
12440
12441# Used on cygwin: DLL creation program.
12442DLLTOOL="$DLLTOOL"
12443
12444# Used on cygwin: object dumper.
12445OBJDUMP="$OBJDUMP"
12446
12447# Used on cygwin: assembler.
12448AS="$AS"
12449
12450# The name of the directory that contains temporary libtool files.
12451objdir=$objdir
12452
12453# How to create reloadable object files.
12454reload_flag=$lt_reload_flag
12455reload_cmds=$lt_reload_cmds
12456
12457# How to pass a linker flag through the compiler.
12458wl=$lt_lt_prog_compiler_wl_CXX
12459
12460# Object file suffix (normally "o").
12461objext="$ac_objext"
12462
12463# Old archive suffix (normally "a").
12464libext="$libext"
12465
12466# Shared library suffix (normally ".so").
12467shrext='$shrext'
12468
12469# Executable file suffix (normally "").
12470exeext="$exeext"
12471
12472# Additional compiler flags for building library objects.
12473pic_flag=$lt_lt_prog_compiler_pic_CXX
12474pic_mode=$pic_mode
12475
12476# What is the maximum length of a command?
12477max_cmd_len=$lt_cv_sys_max_cmd_len
12478
12479# Does compiler simultaneously support -c and -o options?
12480compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12481
12482# Must we lock files when doing compilation ?
12483need_locks=$lt_need_locks
12484
12485# Do we need the lib prefix for modules?
12486need_lib_prefix=$need_lib_prefix
12487
12488# Do we need a version for libraries?
12489need_version=$need_version
12490
12491# Whether dlopen is supported.
12492dlopen_support=$enable_dlopen
12493
12494# Whether dlopen of programs is supported.
12495dlopen_self=$enable_dlopen_self
12496
12497# Whether dlopen of statically linked programs is supported.
12498dlopen_self_static=$enable_dlopen_self_static
12499
12500# Compiler flag to prevent dynamic linking.
12501link_static_flag=$lt_lt_prog_compiler_static_CXX
12502
12503# Compiler flag to turn off builtin functions.
12504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12505
12506# Compiler flag to allow reflexive dlopens.
12507export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12508
12509# Compiler flag to generate shared objects directly from archives.
12510whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12511
12512# Compiler flag to generate thread-safe objects.
12513thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12514
12515# Library versioning type.
12516version_type=$version_type
12517
12518# Format of library name prefix.
12519libname_spec=$lt_libname_spec
12520
12521# List of archive names. First name is the real one, the rest are links.
12522# The last name is the one that the linker finds with -lNAME.
12523library_names_spec=$lt_library_names_spec
12524
12525# The coded name of the library, if different from the real name.
12526soname_spec=$lt_soname_spec
12527
12528# Commands used to build and install an old-style archive.
12529RANLIB=$lt_RANLIB
12530old_archive_cmds=$lt_old_archive_cmds_CXX
12531old_postinstall_cmds=$lt_old_postinstall_cmds
12532old_postuninstall_cmds=$lt_old_postuninstall_cmds
12533
12534# Create an old-style archive from a shared archive.
12535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12536
12537# Create a temporary old-style archive to link instead of a shared archive.
12538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12539
12540# Commands used to build and install a shared archive.
12541archive_cmds=$lt_archive_cmds_CXX
12542archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12543postinstall_cmds=$lt_postinstall_cmds
12544postuninstall_cmds=$lt_postuninstall_cmds
12545
12546# Commands used to build a loadable module (assumed same as above if empty)
12547module_cmds=$lt_module_cmds_CXX
12548module_expsym_cmds=$lt_module_expsym_cmds_CXX
12549
12550# Commands to strip libraries.
12551old_striplib=$lt_old_striplib
12552striplib=$lt_striplib
12553
12554# Dependencies to place before the objects being linked to create a
12555# shared library.
12556predep_objects=$lt_predep_objects_CXX
12557
12558# Dependencies to place after the objects being linked to create a
12559# shared library.
12560postdep_objects=$lt_postdep_objects_CXX
12561
12562# Dependencies to place before the objects being linked to create a
12563# shared library.
12564predeps=$lt_predeps_CXX
12565
12566# Dependencies to place after the objects being linked to create a
12567# shared library.
12568postdeps=$lt_postdeps_CXX
12569
12570# The library search path used internally by the compiler when linking
12571# a shared library.
12572compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12573
12574# Method to check whether dependent libraries are shared objects.
12575deplibs_check_method=$lt_deplibs_check_method
12576
12577# Command to use when deplibs_check_method == file_magic.
12578file_magic_cmd=$lt_file_magic_cmd
12579
12580# Flag that allows shared libraries with undefined symbols to be built.
12581allow_undefined_flag=$lt_allow_undefined_flag_CXX
12582
12583# Flag that forces no undefined symbols.
12584no_undefined_flag=$lt_no_undefined_flag_CXX
12585
12586# Commands used to finish a libtool library installation in a directory.
12587finish_cmds=$lt_finish_cmds
12588
12589# Same as above, but a single script fragment to be evaled but not shown.
12590finish_eval=$lt_finish_eval
12591
12592# Take the output of nm and produce a listing of raw symbols and C names.
12593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12594
12595# Transform the output of nm in a proper C declaration
12596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12597
12598# Transform the output of nm in a C name address pair
12599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12600
12601# This is the shared library runtime path variable.
12602runpath_var=$runpath_var
12603
12604# This is the shared library path variable.
12605shlibpath_var=$shlibpath_var
12606
12607# Is shlibpath searched before the hard-coded library search path?
12608shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12609
12610# How to hardcode a shared library path into an executable.
12611hardcode_action=$hardcode_action_CXX
12612
12613# Whether we should hardcode library paths into libraries.
12614hardcode_into_libs=$hardcode_into_libs
12615
12616# Flag to hardcode \$libdir into a binary during linking.
12617# This must work even if \$libdir does not exist.
12618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12619
12620# If ld is used when linking, flag to hardcode \$libdir into
12621# a binary during linking. This must work even if \$libdir does
12622# not exist.
12623hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12624
12625# Whether we need a single -rpath flag with a separated argument.
12626hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12627
12628# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12629# resulting binary.
12630hardcode_direct=$hardcode_direct_CXX
12631
12632# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12633# resulting binary.
12634hardcode_minus_L=$hardcode_minus_L_CXX
12635
12636# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12637# the resulting binary.
12638hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12639
12640# Set to yes if building a shared library automatically hardcodes DIR into the library
12641# and all subsequent libraries and executables linked against it.
12642hardcode_automatic=$hardcode_automatic_CXX
12643
12644# Variables whose values should be saved in libtool wrapper scripts and
12645# restored at relink time.
12646variables_saved_for_relink="$variables_saved_for_relink"
12647
12648# Whether libtool must link a program against all its dependency libraries.
12649link_all_deplibs=$link_all_deplibs_CXX
12650
12651# Compile-time system search path for libraries
12652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12653
12654# Run-time system search path for libraries
12655sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12656
12657# Fix the shell variable \$srcfile for the compiler.
12658fix_srcfile_path="$fix_srcfile_path_CXX"
12659
12660# Set to yes if exported symbols are required.
12661always_export_symbols=$always_export_symbols_CXX
12662
12663# The commands to list exported symbols.
12664export_symbols_cmds=$lt_export_symbols_cmds_CXX
12665
12666# The commands to extract the exported symbol list from a shared archive.
12667extract_expsyms_cmds=$lt_extract_expsyms_cmds
12668
12669# Symbols that should not be listed in the preloaded symbols.
12670exclude_expsyms=$lt_exclude_expsyms_CXX
12671
12672# Symbols that must always be exported.
12673include_expsyms=$lt_include_expsyms_CXX
12674
12675# ### END LIBTOOL TAG CONFIG: $tagname
12676
12677__EOF__
12678
12679
12680else
12681 # If there is no Makefile yet, we rely on a make rule to execute
12682 # `config.status --recheck' to rerun these tests and create the
12683 # libtool script then.
12684 test -f Makefile && make "$ltmain"
12685fi
12686
12687
12688ac_ext=c
12689ac_cpp='$CPP $CPPFLAGS'
12690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693
12694CC=$lt_save_CC
12695LDCXX=$LD
12696LD=$lt_save_LD
12697GCC=$lt_save_GCC
12698with_gnu_ldcxx=$with_gnu_ld
12699with_gnu_ld=$lt_save_with_gnu_ld
12700lt_cv_path_LDCXX=$lt_cv_path_LD
12701lt_cv_path_LD=$lt_save_path_LD
12702lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12703lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12704
12705 else
12706 tagname=""
12707 fi
12708 ;;
12709
12710 F77)
12711 if test -n "$F77" && test "X$F77" != "Xno"; then
12712
12713ac_ext=f
12714ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12715ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12717
12718
12719archive_cmds_need_lc_F77=no
12720allow_undefined_flag_F77=
12721always_export_symbols_F77=no
12722archive_expsym_cmds_F77=
12723export_dynamic_flag_spec_F77=
12724hardcode_direct_F77=no
12725hardcode_libdir_flag_spec_F77=
12726hardcode_libdir_flag_spec_ld_F77=
12727hardcode_libdir_separator_F77=
12728hardcode_minus_L_F77=no
12729hardcode_automatic_F77=no
12730module_cmds_F77=
12731module_expsym_cmds_F77=
12732link_all_deplibs_F77=unknown
12733old_archive_cmds_F77=$old_archive_cmds
12734no_undefined_flag_F77=
12735whole_archive_flag_spec_F77=
12736enable_shared_with_static_runtimes_F77=no
12737
12738# Source file extension for f77 test sources.
12739ac_ext=f
12740
12741# Object file extension for compiled f77 test sources.
12742objext=o
12743objext_F77=$objext
12744
12745# Code to be used in simple compile tests
12746lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12747
12748# Code to be used in simple link tests
12749lt_simple_link_test_code=" program t\n end\n"
12750
12751# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12752
12753# If no C compiler was specified, use CC.
12754LTCC=${LTCC-"$CC"}
12755
12756# Allow CC to be a program name with arguments.
12757compiler=$CC
12758
12759
12760# Allow CC to be a program name with arguments.
12761lt_save_CC="$CC"
12762CC=${F77-"f77"}
12763compiler=$CC
12764compiler_F77=$CC
12765cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12766
12767echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12768echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12769echo "$as_me:$LINENO: result: $can_build_shared" >&5
12770echo "${ECHO_T}$can_build_shared" >&6
12771
12772echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12773echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12774test "$can_build_shared" = "no" && enable_shared=no
12775
12776# On AIX, shared libraries and static libraries use the same namespace, and
12777# are all built from PIC.
12778case "$host_os" in
12779aix3*)
12780 test "$enable_shared" = yes && enable_static=no
12781 if test -n "$RANLIB"; then
12782 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12783 postinstall_cmds='$RANLIB $lib'
12784 fi
12785 ;;
12786aix4*)
12787 test "$enable_shared" = yes && enable_static=no
12788 ;;
12789esac
12790echo "$as_me:$LINENO: result: $enable_shared" >&5
12791echo "${ECHO_T}$enable_shared" >&6
12792
12793echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12794echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12795# Make sure either enable_shared or enable_static is yes.
12796test "$enable_shared" = yes || enable_static=yes
12797echo "$as_me:$LINENO: result: $enable_static" >&5
12798echo "${ECHO_T}$enable_static" >&6
12799
12800test "$ld_shlibs_F77" = no && can_build_shared=no
12801
12802GCC_F77="$G77"
12803LD_F77="$LD"
12804
12805lt_prog_compiler_wl_F77=
12806lt_prog_compiler_pic_F77=
12807lt_prog_compiler_static_F77=
12808
12809echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12810echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12811
12812 if test "$GCC" = yes; then
12813 lt_prog_compiler_wl_F77='-Wl,'
12814 lt_prog_compiler_static_F77='-static'
12815
12816 case $host_os in
12817 aix*)
12818 # All AIX code is PIC.
12819 if test "$host_cpu" = ia64; then
12820 # AIX 5 now supports IA64 processor
12821 lt_prog_compiler_static_F77='-Bstatic'
12822 fi
12823 ;;
12824
12825 amigaos*)
12826 # FIXME: we need at least 68020 code to build shared libraries, but
12827 # adding the `-m68020' flag to GCC prevents building anything better,
12828 # like `-m68040'.
12829 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12830 ;;
12831
12832 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12833 # PIC is the default for these OSes.
12834 ;;
12835
12836 mingw* | pw32* | os2*)
12837 # This hack is so that the source file can tell whether it is being
12838 # built for inclusion in a dll (and should export symbols for example).
12839 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12840 ;;
12841
12842 darwin* | rhapsody*)
12843 # PIC is the default on this platform
12844 # Common symbols not allowed in MH_DYLIB files
12845 lt_prog_compiler_pic_F77='-fno-common'
12846 ;;
12847
12848 msdosdjgpp*)
12849 # Just because we use GCC doesn't mean we suddenly get shared libraries
12850 # on systems that don't support them.
12851 lt_prog_compiler_can_build_shared_F77=no
12852 enable_shared=no
12853 ;;
12854
12855 sysv4*MP*)
12856 if test -d /usr/nec; then
12857 lt_prog_compiler_pic_F77=-Kconform_pic
12858 fi
12859 ;;
12860
12861 hpux*)
12862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12863 # not for PA HP-UX.
12864 case "$host_cpu" in
12865 hppa*64*|ia64*)
12866 # +Z the default
12867 ;;
12868 *)
12869 lt_prog_compiler_pic_F77='-fPIC'
12870 ;;
12871 esac
12872 ;;
12873
12874 *)
12875 lt_prog_compiler_pic_F77='-fPIC'
12876 ;;
12877 esac
12878 else
12879 # PORTME Check for flag to pass linker flags through the system compiler.
12880 case $host_os in
12881 aix*)
12882 lt_prog_compiler_wl_F77='-Wl,'
12883 if test "$host_cpu" = ia64; then
12884 # AIX 5 now supports IA64 processor
12885 lt_prog_compiler_static_F77='-Bstatic'
12886 else
12887 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12888 fi
12889 ;;
12890
12891 mingw* | pw32* | os2*)
12892 # This hack is so that the source file can tell whether it is being
12893 # built for inclusion in a dll (and should export symbols for example).
12894 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12895 ;;
12896
12897 hpux9* | hpux10* | hpux11*)
12898 lt_prog_compiler_wl_F77='-Wl,'
12899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12900 # not for PA HP-UX.
12901 case "$host_cpu" in
12902 hppa*64*|ia64*)
12903 # +Z the default
12904 ;;
12905 *)
12906 lt_prog_compiler_pic_F77='+Z'
12907 ;;
12908 esac
12909 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12910 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12911 ;;
12912
12913 irix5* | irix6* | nonstopux*)
12914 lt_prog_compiler_wl_F77='-Wl,'
12915 # PIC (with -KPIC) is the default.
12916 lt_prog_compiler_static_F77='-non_shared'
12917 ;;
12918
12919 newsos6)
12920 lt_prog_compiler_pic_F77='-KPIC'
12921 lt_prog_compiler_static_F77='-Bstatic'
12922 ;;
12923
12924 linux*)
12925 case $CC in
12926 icc|ecc)
12927 lt_prog_compiler_wl_F77='-Wl,'
12928 lt_prog_compiler_pic_F77='-KPIC'
12929 lt_prog_compiler_static_F77='-static'
12930 ;;
12931 ccc)
12932 lt_prog_compiler_wl_F77='-Wl,'
12933 # All Alpha code is PIC.
12934 lt_prog_compiler_static_F77='-non_shared'
12935 ;;
12936 esac
12937 ;;
12938
12939 osf3* | osf4* | osf5*)
12940 lt_prog_compiler_wl_F77='-Wl,'
12941 # All OSF/1 code is PIC.
12942 lt_prog_compiler_static_F77='-non_shared'
12943 ;;
12944
12945 sco3.2v5*)
12946 lt_prog_compiler_pic_F77='-Kpic'
12947 lt_prog_compiler_static_F77='-dn'
12948 ;;
12949
12950 solaris*)
12951 lt_prog_compiler_wl_F77='-Wl,'
12952 lt_prog_compiler_pic_F77='-KPIC'
12953 lt_prog_compiler_static_F77='-Bstatic'
12954 ;;
12955
12956 sunos4*)
12957 lt_prog_compiler_wl_F77='-Qoption ld '
12958 lt_prog_compiler_pic_F77='-PIC'
12959 lt_prog_compiler_static_F77='-Bstatic'
12960 ;;
12961
12962 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12963 lt_prog_compiler_wl_F77='-Wl,'
12964 lt_prog_compiler_pic_F77='-KPIC'
12965 lt_prog_compiler_static_F77='-Bstatic'
12966 ;;
12967
12968 sysv4*MP*)
12969 if test -d /usr/nec ;then
12970 lt_prog_compiler_pic_F77='-Kconform_pic'
12971 lt_prog_compiler_static_F77='-Bstatic'
12972 fi
12973 ;;
12974
12975 uts4*)
12976 lt_prog_compiler_pic_F77='-pic'
12977 lt_prog_compiler_static_F77='-Bstatic'
12978 ;;
12979
12980 *)
12981 lt_prog_compiler_can_build_shared_F77=no
12982 ;;
12983 esac
12984 fi
12985
12986echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12987echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12988
12989#
12990# Check to make sure the PIC flag actually works.
12991#
12992if test -n "$lt_prog_compiler_pic_F77"; then
12993 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12994echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12995if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997else
12998 lt_prog_compiler_pic_works_F77=no
12999 ac_outfile=conftest.$ac_objext
13000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13001 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13002 # Insert the option either (1) after the last *FLAGS variable, or
13003 # (2) before a word containing "conftest.", or (3) at the end.
13004 # Note that $ac_compile itself does not contain backslashes and begins
13005 # with a dollar sign (not a hyphen), so the echo should work correctly.
13006 # The option is referenced via a variable to avoid confusing sed.
13007 lt_compile=`echo "$ac_compile" | $SED \
13008 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13010 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000013011 (eval echo "\"\$as_me:13011: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013012 (eval "$lt_compile" 2>conftest.err)
13013 ac_status=$?
13014 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000013015 echo "$as_me:13015: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013016 if (exit $ac_status) && test -s "$ac_outfile"; then
13017 # The compiler can only warn and ignore the option if not recognized
13018 # So say no if there are warnings
13019 if test ! -s conftest.err; then
13020 lt_prog_compiler_pic_works_F77=yes
13021 fi
13022 fi
13023 $rm conftest*
13024
13025fi
13026echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13027echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13028
13029if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13030 case $lt_prog_compiler_pic_F77 in
13031 "" | " "*) ;;
13032 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13033 esac
13034else
13035 lt_prog_compiler_pic_F77=
13036 lt_prog_compiler_can_build_shared_F77=no
13037fi
13038
13039fi
13040case "$host_os" in
13041 # For platforms which do not support PIC, -DPIC is meaningless:
13042 *djgpp*)
13043 lt_prog_compiler_pic_F77=
13044 ;;
13045 *)
13046 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13047 ;;
13048esac
13049
13050echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13051echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13052if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054else
13055 lt_cv_prog_compiler_c_o_F77=no
13056 $rm -r conftest 2>/dev/null
13057 mkdir conftest
13058 cd conftest
13059 mkdir out
13060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13061
13062 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13063 # that will create temporary files in the current directory regardless of
13064 # the output directory. Thus, making CWD read-only will cause this test
13065 # to fail, enabling locking or at least warning the user not to do parallel
13066 # builds.
13067 chmod -w .
13068
13069 lt_compiler_flag="-o out/conftest2.$ac_objext"
13070 # Insert the option either (1) after the last *FLAGS variable, or
13071 # (2) before a word containing "conftest.", or (3) at the end.
13072 # Note that $ac_compile itself does not contain backslashes and begins
13073 # with a dollar sign (not a hyphen), so the echo should work correctly.
13074 lt_compile=`echo "$ac_compile" | $SED \
13075 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13077 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000013078 (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013079 (eval "$lt_compile" 2>out/conftest.err)
13080 ac_status=$?
13081 cat out/conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000013082 echo "$as_me:13082: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013083 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13084 then
13085 # The compiler can only warn and ignore the option if not recognized
13086 # So say no if there are warnings
13087 if test ! -s out/conftest.err; then
13088 lt_cv_prog_compiler_c_o_F77=yes
13089 fi
13090 fi
13091 chmod u+w .
13092 $rm conftest* out/*
13093 rmdir out
13094 cd ..
13095 rmdir conftest
13096 $rm conftest*
13097
13098fi
13099echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13100echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13101
13102
13103hard_links="nottested"
13104if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13105 # do not overwrite the value of need_locks provided by the user
13106 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13107echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13108 hard_links=yes
13109 $rm conftest*
13110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13111 touch conftest.a
13112 ln conftest.a conftest.b 2>&5 || hard_links=no
13113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13114 echo "$as_me:$LINENO: result: $hard_links" >&5
13115echo "${ECHO_T}$hard_links" >&6
13116 if test "$hard_links" = no; then
13117 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13118echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13119 need_locks=warn
13120 fi
13121else
13122 need_locks=no
13123fi
13124
13125echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13126echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13127
13128 runpath_var=
13129 allow_undefined_flag_F77=
13130 enable_shared_with_static_runtimes_F77=no
13131 archive_cmds_F77=
13132 archive_expsym_cmds_F77=
13133 old_archive_From_new_cmds_F77=
13134 old_archive_from_expsyms_cmds_F77=
13135 export_dynamic_flag_spec_F77=
13136 whole_archive_flag_spec_F77=
13137 thread_safe_flag_spec_F77=
13138 hardcode_libdir_flag_spec_F77=
13139 hardcode_libdir_flag_spec_ld_F77=
13140 hardcode_libdir_separator_F77=
13141 hardcode_direct_F77=no
13142 hardcode_minus_L_F77=no
13143 hardcode_shlibpath_var_F77=unsupported
13144 link_all_deplibs_F77=unknown
13145 hardcode_automatic_F77=no
13146 module_cmds_F77=
13147 module_expsym_cmds_F77=
13148 always_export_symbols_F77=no
13149 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13150 # include_expsyms should be a list of space-separated symbols to be *always*
13151 # included in the symbol list
13152 include_expsyms_F77=
13153 # exclude_expsyms can be an extended regexp of symbols to exclude
13154 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13155 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13156 # as well as any symbol that contains `d'.
13157 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13158 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13159 # platforms (ab)use it in PIC code, but their linkers get confused if
13160 # the symbol is explicitly referenced. Since portable code cannot
13161 # rely on this symbol name, it's probably fine to never include it in
13162 # preloaded symbol tables.
13163 extract_expsyms_cmds=
13164
13165 case $host_os in
13166 cygwin* | mingw* | pw32*)
13167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13168 # When not using gcc, we currently assume that we are using
13169 # Microsoft Visual C++.
13170 if test "$GCC" != yes; then
13171 with_gnu_ld=no
13172 fi
13173 ;;
13174 openbsd*)
13175 with_gnu_ld=no
13176 ;;
13177 esac
13178
13179 ld_shlibs_F77=yes
13180 if test "$with_gnu_ld" = yes; then
13181 # If archive_cmds runs LD, not CC, wlarc should be empty
13182 wlarc='${wl}'
13183
13184 # See if GNU ld supports shared libraries.
13185 case $host_os in
13186 aix3* | aix4* | aix5*)
13187 # On AIX/PPC, the GNU linker is very broken
13188 if test "$host_cpu" != ia64; then
13189 ld_shlibs_F77=no
13190 cat <<EOF 1>&2
13191
13192*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13193*** to be unable to reliably create shared libraries on AIX.
13194*** Therefore, libtool is disabling shared libraries support. If you
13195*** really care for shared libraries, you may want to modify your PATH
13196*** so that a non-GNU linker is found, and then restart.
13197
13198EOF
13199 fi
13200 ;;
13201
13202 amigaos*)
13203 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)'
13204 hardcode_libdir_flag_spec_F77='-L$libdir'
13205 hardcode_minus_L_F77=yes
13206
13207 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13208 # that the semantics of dynamic libraries on AmigaOS, at least up
13209 # to version 4, is to share data among multiple programs linked
13210 # with the same dynamic library. Since this doesn't match the
13211 # behavior of shared libraries on other platforms, we can't use
13212 # them.
13213 ld_shlibs_F77=no
13214 ;;
13215
13216 beos*)
13217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13218 allow_undefined_flag_F77=unsupported
13219 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13220 # support --undefined. This deserves some investigation. FIXME
13221 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13222 else
13223 ld_shlibs_F77=no
13224 fi
13225 ;;
13226
13227 cygwin* | mingw* | pw32*)
13228 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13229 # as there is no search path for DLLs.
13230 hardcode_libdir_flag_spec_F77='-L$libdir'
13231 allow_undefined_flag_F77=unsupported
13232 always_export_symbols_F77=no
13233 enable_shared_with_static_runtimes_F77=yes
13234 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13235
13236 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13237 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13238 # If the export-symbols file already is a .def file (1st line
13239 # is EXPORTS), use it as is; otherwise, prepend...
13240 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13241 cp $export_symbols $output_objdir/$soname.def;
13242 else
13243 echo EXPORTS > $output_objdir/$soname.def;
13244 cat $export_symbols >> $output_objdir/$soname.def;
13245 fi~
13246 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13247 else
13248 ld_shlibs=no
13249 fi
13250 ;;
13251
13252 netbsd*)
13253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13254 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13255 wlarc=
13256 else
13257 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13258 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13259 fi
13260 ;;
13261
13262 solaris* | sysv5*)
13263 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13264 ld_shlibs_F77=no
13265 cat <<EOF 1>&2
13266
13267*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13268*** create shared libraries on Solaris systems. Therefore, libtool
13269*** is disabling shared libraries support. We urge you to upgrade GNU
13270*** binutils to release 2.9.1 or newer. Another option is to modify
13271*** your PATH or compiler configuration so that the native linker is
13272*** used, and then restart.
13273
13274EOF
13275 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13276 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13277 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13278 else
13279 ld_shlibs_F77=no
13280 fi
13281 ;;
13282
13283 sunos4*)
13284 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13285 wlarc=
13286 hardcode_direct_F77=yes
13287 hardcode_shlibpath_var_F77=no
13288 ;;
13289
13290 *)
13291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13292 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13294 else
13295 ld_shlibs_F77=no
13296 fi
13297 ;;
13298 esac
13299
13300 if test "$ld_shlibs_F77" = yes; then
13301 runpath_var=LD_RUN_PATH
13302 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13303 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13304 # ancient GNU ld didn't support --whole-archive et. al.
13305 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13306 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13307 else
13308 whole_archive_flag_spec_F77=
13309 fi
13310 fi
13311 else
13312 # PORTME fill in a description of your system's linker (not GNU ld)
13313 case $host_os in
13314 aix3*)
13315 allow_undefined_flag_F77=unsupported
13316 always_export_symbols_F77=yes
13317 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'
13318 # Note: this linker hardcodes the directories in LIBPATH if there
13319 # are no directories specified by -L.
13320 hardcode_minus_L_F77=yes
13321 if test "$GCC" = yes && test -z "$link_static_flag"; then
13322 # Neither direct hardcoding nor static linking is supported with a
13323 # broken collect2.
13324 hardcode_direct_F77=unsupported
13325 fi
13326 ;;
13327
13328 aix4* | aix5*)
13329 if test "$host_cpu" = ia64; then
13330 # On IA64, the linker does run time linking by default, so we don't
13331 # have to do anything special.
13332 aix_use_runtimelinking=no
13333 exp_sym_flag='-Bexport'
13334 no_entry_flag=""
13335 else
13336 # If we're using GNU nm, then we don't want the "-C" option.
13337 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13338 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13339 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'
13340 else
13341 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'
13342 fi
13343 aix_use_runtimelinking=no
13344
13345 # Test if we are trying to use run time linking or normal
13346 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13347 # need to do runtime linking.
13348 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13349 for ld_flag in $LDFLAGS; do
13350 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13351 aix_use_runtimelinking=yes
13352 break
13353 fi
13354 done
13355 esac
13356
13357 exp_sym_flag='-bexport'
13358 no_entry_flag='-bnoentry'
13359 fi
13360
13361 # When large executables or shared objects are built, AIX ld can
13362 # have problems creating the table of contents. If linking a library
13363 # or program results in "error TOC overflow" add -mminimal-toc to
13364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13366
13367 archive_cmds_F77=''
13368 hardcode_direct_F77=yes
13369 hardcode_libdir_separator_F77=':'
13370 link_all_deplibs_F77=yes
13371
13372 if test "$GCC" = yes; then
13373 case $host_os in aix4.012|aix4.012.*)
13374 # We only want to do this on AIX 4.2 and lower, the check
13375 # below for broken collect2 doesn't work under 4.3+
13376 collect2name=`${CC} -print-prog-name=collect2`
13377 if test -f "$collect2name" && \
13378 strings "$collect2name" | grep resolve_lib_name >/dev/null
13379 then
13380 # We have reworked collect2
13381 hardcode_direct_F77=yes
13382 else
13383 # We have old collect2
13384 hardcode_direct_F77=unsupported
13385 # It fails to find uninstalled libraries when the uninstalled
13386 # path is not listed in the libpath. Setting hardcode_minus_L
13387 # to unsupported forces relinking
13388 hardcode_minus_L_F77=yes
13389 hardcode_libdir_flag_spec_F77='-L$libdir'
13390 hardcode_libdir_separator_F77=
13391 fi
13392 esac
13393 shared_flag='-shared'
13394 else
13395 # not using gcc
13396 if test "$host_cpu" = ia64; then
13397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13398 # chokes on -Wl,-G. The following line is correct:
13399 shared_flag='-G'
13400 else
13401 if test "$aix_use_runtimelinking" = yes; then
13402 shared_flag='${wl}-G'
13403 else
13404 shared_flag='${wl}-bM:SRE'
13405 fi
13406 fi
13407 fi
13408
13409 # It seems that -bexpall does not export symbols beginning with
13410 # underscore (_), so it is better to generate a list of symbols to export.
13411 always_export_symbols_F77=yes
13412 if test "$aix_use_runtimelinking" = yes; then
13413 # Warning - without using the other runtime loading flags (-brtl),
13414 # -berok will link without error, but may produce a broken library.
13415 allow_undefined_flag_F77='-berok'
13416 # Determine the default libpath from the value encoded in an empty executable.
13417 cat >conftest.$ac_ext <<_ACEOF
13418 program main
13419
13420 end
13421_ACEOF
13422rm -f conftest.$ac_objext conftest$ac_exeext
13423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13424 (eval $ac_link) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -s conftest$ac_exeext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434
13435aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13436}'`
13437# Check for a 64-bit object if we didn't find anything.
13438if 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; }
13439}'`; fi
13440else
13441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013442sed 's/^/| /' conftest.$ac_ext >&5
13443
John Criswell47fdd832003-07-14 16:52:07 +000013444fi
13445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13446if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13447
13448 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13449 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"
13450 else
13451 if test "$host_cpu" = ia64; then
13452 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13453 allow_undefined_flag_F77="-z nodefs"
13454 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"
13455 else
13456 # Determine the default libpath from the value encoded in an empty executable.
13457 cat >conftest.$ac_ext <<_ACEOF
13458 program main
13459
13460 end
13461_ACEOF
13462rm -f conftest.$ac_objext conftest$ac_exeext
13463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464 (eval $ac_link) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -s conftest$ac_exeext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474
13475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13476}'`
13477# Check for a 64-bit object if we didn't find anything.
13478if 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; }
13479}'`; fi
13480else
13481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013482sed 's/^/| /' conftest.$ac_ext >&5
13483
John Criswell47fdd832003-07-14 16:52:07 +000013484fi
13485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13487
13488 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13489 # Warning - without using the other run time loading flags,
13490 # -berok will link without error, but may produce a broken library.
13491 no_undefined_flag_F77=' ${wl}-bernotok'
13492 allow_undefined_flag_F77=' ${wl}-berok'
13493 # -bexpall does not export symbols beginning with underscore (_)
13494 always_export_symbols_F77=yes
13495 # Exported symbols can be pulled into shared objects from archives
13496 whole_archive_flag_spec_F77=' '
13497 archive_cmds_need_lc_F77=yes
13498 # This is similar to how AIX traditionally builds it's shared libraries.
13499 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'
13500 fi
13501 fi
13502 ;;
13503
13504 amigaos*)
13505 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)'
13506 hardcode_libdir_flag_spec_F77='-L$libdir'
13507 hardcode_minus_L_F77=yes
13508 # see comment about different semantics on the GNU ld section
13509 ld_shlibs_F77=no
13510 ;;
13511
13512 bsdi4*)
13513 export_dynamic_flag_spec_F77=-rdynamic
13514 ;;
13515
13516 cygwin* | mingw* | pw32*)
13517 # When not using gcc, we currently assume that we are using
13518 # Microsoft Visual C++.
13519 # hardcode_libdir_flag_spec is actually meaningless, as there is
13520 # no search path for DLLs.
13521 hardcode_libdir_flag_spec_F77=' '
13522 allow_undefined_flag_F77=unsupported
13523 # Tell ltmain to make .lib files, not .a files.
13524 libext=lib
13525 # Tell ltmain to make .dll files, not .so files.
13526 shrext=".dll"
13527 # FIXME: Setting linknames here is a bad hack.
13528 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13529 # The linker will automatically build a .lib file if we build a DLL.
13530 old_archive_From_new_cmds_F77='true'
13531 # FIXME: Should let the user specify the lib program.
13532 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13533 fix_srcfile_path='`cygpath -w "$srcfile"`'
13534 enable_shared_with_static_runtimes_F77=yes
13535 ;;
13536
13537 darwin* | rhapsody*)
13538 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13539 archive_cmds_need_lc_F77=no
13540 case "$host_os" in
13541 rhapsody* | darwin1.[012])
13542 allow_undefined_flag_F77='-undefined suppress'
13543 ;;
13544 *) # Darwin 1.3 on
13545 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13546 ;;
13547 esac
13548 # FIXME: Relying on posixy $() will cause problems for
13549 # cross-compilation, but unfortunately the echo tests do not
13550 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13551 # `"' quotes if we put them in here... so don't!
13552 lt_int_apple_cc_single_mod=no
13553 output_verbose_link_cmd='echo'
13554 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13555 lt_int_apple_cc_single_mod=yes
13556 fi
13557 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13558 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13559 else
13560 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'
13561 fi
13562 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13563 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13564 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13565 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}'
13566 else
13567 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}'
13568 fi
13569 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}'
13570 hardcode_direct_F77=no
13571 hardcode_automatic_F77=yes
13572 hardcode_shlibpath_var_F77=unsupported
13573 whole_archive_flag_spec_F77='-all_load $convenience'
13574 link_all_deplibs_F77=yes
13575 fi
13576 ;;
13577
13578 dgux*)
13579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13580 hardcode_libdir_flag_spec_F77='-L$libdir'
13581 hardcode_shlibpath_var_F77=no
13582 ;;
13583
13584 freebsd1*)
13585 ld_shlibs_F77=no
13586 ;;
13587
13588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13589 # support. Future versions do this automatically, but an explicit c++rt0.o
13590 # does not break anything, and helps significantly (at the cost of a little
13591 # extra space).
13592 freebsd2.2*)
13593 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13594 hardcode_libdir_flag_spec_F77='-R$libdir'
13595 hardcode_direct_F77=yes
13596 hardcode_shlibpath_var_F77=no
13597 ;;
13598
13599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13600 freebsd2*)
13601 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13602 hardcode_direct_F77=yes
13603 hardcode_minus_L_F77=yes
13604 hardcode_shlibpath_var_F77=no
13605 ;;
13606
13607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13608 freebsd*)
13609 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13610 hardcode_libdir_flag_spec_F77='-R$libdir'
13611 hardcode_direct_F77=yes
13612 hardcode_shlibpath_var_F77=no
13613 ;;
13614
13615 hpux9*)
13616 if test "$GCC" = yes; then
13617 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'
13618 else
13619 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'
13620 fi
13621 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13622 hardcode_libdir_separator_F77=:
13623 hardcode_direct_F77=yes
13624
13625 # hardcode_minus_L: Not really in the search PATH,
13626 # but as the default location of the library.
13627 hardcode_minus_L_F77=yes
13628 export_dynamic_flag_spec_F77='${wl}-E'
13629 ;;
13630
13631 hpux10* | hpux11*)
13632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13633 case "$host_cpu" in
13634 hppa*64*|ia64*)
13635 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13636 ;;
13637 *)
13638 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13639 ;;
13640 esac
13641 else
13642 case "$host_cpu" in
13643 hppa*64*|ia64*)
13644 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13645 ;;
13646 *)
13647 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13648 ;;
13649 esac
13650 fi
13651 if test "$with_gnu_ld" = no; then
13652 case "$host_cpu" in
13653 hppa*64*)
13654 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13655 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13656 hardcode_libdir_separator_F77=:
13657 hardcode_direct_F77=no
13658 hardcode_shlibpath_var_F77=no
13659 ;;
13660 ia64*)
13661 hardcode_libdir_flag_spec_F77='-L$libdir'
13662 hardcode_direct_F77=no
13663 hardcode_shlibpath_var_F77=no
13664
13665 # hardcode_minus_L: Not really in the search PATH,
13666 # but as the default location of the library.
13667 hardcode_minus_L_F77=yes
13668 ;;
13669 *)
13670 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13671 hardcode_libdir_separator_F77=:
13672 hardcode_direct_F77=yes
13673 export_dynamic_flag_spec_F77='${wl}-E'
13674
13675 # hardcode_minus_L: Not really in the search PATH,
13676 # but as the default location of the library.
13677 hardcode_minus_L_F77=yes
13678 ;;
13679 esac
13680 fi
13681 ;;
13682
13683 irix5* | irix6* | nonstopux*)
13684 if test "$GCC" = yes; then
13685 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'
13686 else
13687 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'
13688 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13689 fi
13690 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13691 hardcode_libdir_separator_F77=:
13692 link_all_deplibs_F77=yes
13693 ;;
13694
13695 netbsd*)
13696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13698 else
13699 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13700 fi
13701 hardcode_libdir_flag_spec_F77='-R$libdir'
13702 hardcode_direct_F77=yes
13703 hardcode_shlibpath_var_F77=no
13704 ;;
13705
13706 newsos6)
13707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13708 hardcode_direct_F77=yes
13709 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13710 hardcode_libdir_separator_F77=:
13711 hardcode_shlibpath_var_F77=no
13712 ;;
13713
13714 openbsd*)
13715 hardcode_direct_F77=yes
13716 hardcode_shlibpath_var_F77=no
13717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13718 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13719 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13720 export_dynamic_flag_spec_F77='${wl}-E'
13721 else
13722 case $host_os in
13723 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13724 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13725 hardcode_libdir_flag_spec_F77='-R$libdir'
13726 ;;
13727 *)
13728 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13729 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13730 ;;
13731 esac
13732 fi
13733 ;;
13734
13735 os2*)
13736 hardcode_libdir_flag_spec_F77='-L$libdir'
13737 hardcode_minus_L_F77=yes
13738 allow_undefined_flag_F77=unsupported
13739 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'
13740 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13741 ;;
13742
13743 osf3*)
13744 if test "$GCC" = yes; then
13745 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13746 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'
13747 else
13748 allow_undefined_flag_F77=' -expect_unresolved \*'
13749 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'
13750 fi
13751 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13752 hardcode_libdir_separator_F77=:
13753 ;;
13754
13755 osf4* | osf5*) # as osf3* with the addition of -msym flag
13756 if test "$GCC" = yes; then
13757 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13758 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'
13759 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13760 else
13761 allow_undefined_flag_F77=' -expect_unresolved \*'
13762 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'
13763 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~
13764 $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'
13765
13766 # Both c and cxx compiler support -rpath directly
13767 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13768 fi
13769 hardcode_libdir_separator_F77=:
13770 ;;
13771
13772 sco3.2v5*)
13773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13774 hardcode_shlibpath_var_F77=no
13775 export_dynamic_flag_spec_F77='${wl}-Bexport'
13776 runpath_var=LD_RUN_PATH
13777 hardcode_runpath_var=yes
13778 ;;
13779
13780 solaris*)
13781 no_undefined_flag_F77=' -z text'
13782 if test "$GCC" = yes; then
13783 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13785 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13786 else
13787 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13788 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13789 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13790 fi
13791 hardcode_libdir_flag_spec_F77='-R$libdir'
13792 hardcode_shlibpath_var_F77=no
13793 case $host_os in
13794 solaris2.[0-5] | solaris2.[0-5].*) ;;
13795 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13796 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13797 esac
13798 link_all_deplibs_F77=yes
13799 ;;
13800
13801 sunos4*)
13802 if test "x$host_vendor" = xsequent; then
13803 # Use $CC to link under sequent, because it throws in some extra .o
13804 # files that make .init and .fini sections work.
13805 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13806 else
13807 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13808 fi
13809 hardcode_libdir_flag_spec_F77='-L$libdir'
13810 hardcode_direct_F77=yes
13811 hardcode_minus_L_F77=yes
13812 hardcode_shlibpath_var_F77=no
13813 ;;
13814
13815 sysv4)
13816 case $host_vendor in
13817 sni)
13818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 hardcode_direct_F77=yes # is this really true???
13820 ;;
13821 siemens)
13822 ## LD is ld it makes a PLAMLIB
13823 ## CC just makes a GrossModule.
13824 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13825 reload_cmds_F77='$CC -r -o $output$reload_objs'
13826 hardcode_direct_F77=no
13827 ;;
13828 motorola)
13829 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13831 ;;
13832 esac
13833 runpath_var='LD_RUN_PATH'
13834 hardcode_shlibpath_var_F77=no
13835 ;;
13836
13837 sysv4.3*)
13838 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13839 hardcode_shlibpath_var_F77=no
13840 export_dynamic_flag_spec_F77='-Bexport'
13841 ;;
13842
13843 sysv4*MP*)
13844 if test -d /usr/nec; then
13845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_shlibpath_var_F77=no
13847 runpath_var=LD_RUN_PATH
13848 hardcode_runpath_var=yes
13849 ld_shlibs_F77=yes
13850 fi
13851 ;;
13852
13853 sysv4.2uw2*)
13854 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13855 hardcode_direct_F77=yes
13856 hardcode_minus_L_F77=no
13857 hardcode_shlibpath_var_F77=no
13858 hardcode_runpath_var=yes
13859 runpath_var=LD_RUN_PATH
13860 ;;
13861
13862 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13863 no_undefined_flag_F77='${wl}-z ${wl}text'
13864 if test "$GCC" = yes; then
13865 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13866 else
13867 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 fi
13869 runpath_var='LD_RUN_PATH'
13870 hardcode_shlibpath_var_F77=no
13871 ;;
13872
13873 sysv5*)
13874 no_undefined_flag_F77=' -z text'
13875 # $CC -shared without GNU ld will not create a library from C++
13876 # object files and a static libstdc++, better avoid it by now
13877 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13880 hardcode_libdir_flag_spec_F77=
13881 hardcode_shlibpath_var_F77=no
13882 runpath_var='LD_RUN_PATH'
13883 ;;
13884
13885 uts4*)
13886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13887 hardcode_libdir_flag_spec_F77='-L$libdir'
13888 hardcode_shlibpath_var_F77=no
13889 ;;
13890
13891 *)
13892 ld_shlibs_F77=no
13893 ;;
13894 esac
13895 fi
13896
13897echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13898echo "${ECHO_T}$ld_shlibs_F77" >&6
13899test "$ld_shlibs_F77" = no && can_build_shared=no
13900
13901variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13902if test "$GCC" = yes; then
13903 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13904fi
13905
13906#
13907# Do we need to explicitly link libc?
13908#
13909case "x$archive_cmds_need_lc_F77" in
13910x|xyes)
13911 # Assume -lc should be added
13912 archive_cmds_need_lc_F77=yes
13913
13914 if test "$enable_shared" = yes && test "$GCC" = yes; then
13915 case $archive_cmds_F77 in
13916 *'~'*)
13917 # FIXME: we may have to deal with multi-command sequences.
13918 ;;
13919 '$CC '*)
13920 # Test whether the compiler implicitly links with -lc since on some
13921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13922 # to ld, don't add -lc before -lgcc.
13923 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13924echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13925 $rm conftest*
13926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13927
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929 (eval $ac_compile) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } 2>conftest.err; then
13933 soname=conftest
13934 lib=conftest
13935 libobjs=conftest.$ac_objext
13936 deplibs=
13937 wl=$lt_prog_compiler_wl_F77
13938 compiler_flags=-v
13939 linker_flags=-v
13940 verstring=
13941 output_objdir=.
13942 libname=conftest
13943 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13944 allow_undefined_flag_F77=
13945 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13946 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }
13950 then
13951 archive_cmds_need_lc_F77=no
13952 else
13953 archive_cmds_need_lc_F77=yes
13954 fi
13955 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13956 else
13957 cat conftest.err 1>&5
13958 fi
13959 $rm conftest*
13960 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13961echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13962 ;;
13963 esac
13964 fi
13965 ;;
13966esac
13967
13968echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13969echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13970hardcode_action_F77=
13971if test -n "$hardcode_libdir_flag_spec_F77" || \
13972 test -n "$runpath_var F77" || \
13973 test "X$hardcode_automatic_F77"="Xyes" ; then
13974
13975 # We can hardcode non-existant directories.
13976 if test "$hardcode_direct_F77" != no &&
13977 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13978 # have to relink, otherwise we might link with an installed library
13979 # when we should be linking with a yet-to-be-installed one
13980 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13981 test "$hardcode_minus_L_F77" != no; then
13982 # Linking always hardcodes the temporary library directory.
13983 hardcode_action_F77=relink
13984 else
13985 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13986 hardcode_action_F77=immediate
13987 fi
13988else
13989 # We cannot hardcode anything, or else we can only hardcode existing
13990 # directories.
13991 hardcode_action_F77=unsupported
13992fi
13993echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13994echo "${ECHO_T}$hardcode_action_F77" >&6
13995
13996if test "$hardcode_action_F77" = relink; then
13997 # Fast installation is not supported
13998 enable_fast_install=no
13999elif test "$shlibpath_overrides_runpath" = yes ||
14000 test "$enable_shared" = no; then
14001 # Fast installation is not necessary
14002 enable_fast_install=needless
14003fi
14004
14005striplib=
14006old_striplib=
14007echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14008echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14009if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14010 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14011 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14012 echo "$as_me:$LINENO: result: yes" >&5
14013echo "${ECHO_T}yes" >&6
14014else
14015# FIXME - insert some real tests, host_os isn't really good enough
14016 case $host_os in
14017 darwin*)
14018 if test -n "$STRIP" ; then
14019 striplib="$STRIP -x"
14020 echo "$as_me:$LINENO: result: yes" >&5
14021echo "${ECHO_T}yes" >&6
14022 else
14023 echo "$as_me:$LINENO: result: no" >&5
14024echo "${ECHO_T}no" >&6
14025fi
14026 ;;
14027 *)
14028 echo "$as_me:$LINENO: result: no" >&5
14029echo "${ECHO_T}no" >&6
14030 ;;
14031 esac
14032fi
14033
14034echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14035echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14036library_names_spec=
14037libname_spec='lib$name'
14038soname_spec=
14039shrext=".so"
14040postinstall_cmds=
14041postuninstall_cmds=
14042finish_cmds=
14043finish_eval=
14044shlibpath_var=
14045shlibpath_overrides_runpath=unknown
14046version_type=none
14047dynamic_linker="$host_os ld.so"
14048sys_lib_dlsearch_path_spec="/lib /usr/lib"
14049if test "$GCC" = yes; then
14050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14051 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14052 # if the path contains ";" then we assume it to be the separator
14053 # otherwise default to the standard path separator (i.e. ":") - it is
14054 # assumed that no part of a normal pathname contains ";" but that should
14055 # okay in the real world where ";" in dirpaths is itself problematic.
14056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14057 else
14058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14059 fi
14060else
14061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14062fi
14063need_lib_prefix=unknown
14064hardcode_into_libs=no
14065
14066# when you set need_version to no, make sure it does not cause -set_version
14067# flags to be left without arguments
14068need_version=unknown
14069
14070case $host_os in
14071aix3*)
14072 version_type=linux
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14074 shlibpath_var=LIBPATH
14075
14076 # AIX 3 has no versioning support, so we append a major version to the name.
14077 soname_spec='${libname}${release}${shared_ext}$major'
14078 ;;
14079
14080aix4* | aix5*)
14081 version_type=linux
14082 need_lib_prefix=no
14083 need_version=no
14084 hardcode_into_libs=yes
14085 if test "$host_cpu" = ia64; then
14086 # AIX 5 supports IA64
14087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 else
14090 # With GCC up to 2.95.x, collect2 would create an import file
14091 # for dependence libraries. The import file would start with
14092 # the line `#! .'. This would cause the generated library to
14093 # depend on `.', always an invalid library. This was fixed in
14094 # development snapshots of GCC prior to 3.0.
14095 case $host_os in
14096 aix4 | aix4.[01] | aix4.[01].*)
14097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14098 echo ' yes '
14099 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14100 :
14101 else
14102 can_build_shared=no
14103 fi
14104 ;;
14105 esac
14106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14107 # soname into executable. Probably we can add versioning support to
14108 # collect2, so additional links can be useful in future.
14109 if test "$aix_use_runtimelinking" = yes; then
14110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14111 # instead of lib<name>.a to let people know that these are not
14112 # typical AIX shared libraries.
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114 else
14115 # We preserve .a as extension for shared libraries through AIX4.2
14116 # and later when we are not doing run time linking.
14117 library_names_spec='${libname}${release}.a $libname.a'
14118 soname_spec='${libname}${release}${shared_ext}$major'
14119 fi
14120 shlibpath_var=LIBPATH
14121 fi
14122 ;;
14123
14124amigaos*)
14125 library_names_spec='$libname.ixlibrary $libname.a'
14126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14127 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'
14128 ;;
14129
14130beos*)
14131 library_names_spec='${libname}${shared_ext}'
14132 dynamic_linker="$host_os ld.so"
14133 shlibpath_var=LIBRARY_PATH
14134 ;;
14135
14136bsdi4*)
14137 version_type=linux
14138 need_version=no
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14145 # the default ld.so.conf also contains /usr/contrib/lib and
14146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14147 # libtool to hard-code these into programs
14148 ;;
14149
14150cygwin* | mingw* | pw32*)
14151 version_type=windows
14152 shrext=".dll"
14153 need_version=no
14154 need_lib_prefix=no
14155
14156 case $GCC,$host_os in
14157 yes,cygwin* | yes,mingw* | yes,pw32*)
14158 library_names_spec='$libname.dll.a'
14159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14160 postinstall_cmds='base_file=`basename \${file}`~
14161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14162 dldir=$destdir/`dirname \$dlpath`~
14163 test -d \$dldir || mkdir -p \$dldir~
14164 $install_prog $dir/$dlname \$dldir/$dlname'
14165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14166 dlpath=$dir/\$dldll~
14167 $rm \$dlpath'
14168 shlibpath_overrides_runpath=yes
14169
14170 case $host_os in
14171 cygwin*)
14172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14174 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14175 ;;
14176 mingw*)
14177 # MinGW DLLs use traditional 'lib' prefix
14178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14181 # It is most probably a Windows format PATH printed by
14182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14183 # path with ; separators, and with drive letters. We can handle the
14184 # drive letters (cygwin fileutils understands them), so leave them,
14185 # especially as we might pass files found there to a mingw objdump,
14186 # which wouldn't understand a cygwinified path. Ahh.
14187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14188 else
14189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14190 fi
14191 ;;
14192 pw32*)
14193 # pw32 DLLs use 'pw' prefix rather than 'lib'
14194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14195 ;;
14196 esac
14197 ;;
14198
14199 *)
14200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14201 ;;
14202 esac
14203 dynamic_linker='Win32 ld.exe'
14204 # FIXME: first we should search . and the directory the executable is in
14205 shlibpath_var=PATH
14206 ;;
14207
14208darwin* | rhapsody*)
14209 dynamic_linker="$host_os dyld"
14210 version_type=darwin
14211 need_lib_prefix=no
14212 need_version=no
14213 # FIXME: Relying on posixy $() will cause problems for
14214 # cross-compilation, but unfortunately the echo tests do not
14215 # yet detect zsh echo's removal of \ escapes.
14216 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14217 soname_spec='${libname}${release}${major}$shared_ext'
14218 shlibpath_overrides_runpath=yes
14219 shlibpath_var=DYLD_LIBRARY_PATH
14220 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14221 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14222 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14223 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"`
14224 fi
14225 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14226 ;;
14227
14228dgux*)
14229 version_type=linux
14230 need_lib_prefix=no
14231 need_version=no
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14233 soname_spec='${libname}${release}${shared_ext}$major'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 ;;
14236
14237freebsd1*)
14238 dynamic_linker=no
14239 ;;
14240
14241freebsd*)
14242 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14243 version_type=freebsd-$objformat
14244 case $version_type in
14245 freebsd-elf*)
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14247 need_version=no
14248 need_lib_prefix=no
14249 ;;
14250 freebsd-*)
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14252 need_version=yes
14253 ;;
14254 esac
14255 shlibpath_var=LD_LIBRARY_PATH
14256 case $host_os in
14257 freebsd2*)
14258 shlibpath_overrides_runpath=yes
14259 ;;
14260 freebsd3.01* | freebsdelf3.01*)
14261 shlibpath_overrides_runpath=yes
14262 hardcode_into_libs=yes
14263 ;;
14264 *) # from 3.2 on
14265 shlibpath_overrides_runpath=no
14266 hardcode_into_libs=yes
14267 ;;
14268 esac
14269 ;;
14270
14271gnu*)
14272 version_type=linux
14273 need_lib_prefix=no
14274 need_version=no
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14276 soname_spec='${libname}${release}${shared_ext}$major'
14277 shlibpath_var=LD_LIBRARY_PATH
14278 hardcode_into_libs=yes
14279 ;;
14280
14281hpux9* | hpux10* | hpux11*)
14282 # Give a soname corresponding to the major version so that dld.sl refuses to
14283 # link against other versions.
14284 version_type=sunos
14285 need_lib_prefix=no
14286 need_version=no
14287 case "$host_cpu" in
14288 ia64*)
14289 shrext='.so'
14290 hardcode_into_libs=yes
14291 dynamic_linker="$host_os dld.so"
14292 shlibpath_var=LD_LIBRARY_PATH
14293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14295 soname_spec='${libname}${release}${shared_ext}$major'
14296 if test "X$HPUX_IA64_MODE" = X32; then
14297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14298 else
14299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14300 fi
14301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14302 ;;
14303 hppa*64*)
14304 shrext='.sl'
14305 hardcode_into_libs=yes
14306 dynamic_linker="$host_os dld.sl"
14307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310 soname_spec='${libname}${release}${shared_ext}$major'
14311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14313 ;;
14314 *)
14315 shrext='.sl'
14316 dynamic_linker="$host_os dld.sl"
14317 shlibpath_var=SHLIB_PATH
14318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320 soname_spec='${libname}${release}${shared_ext}$major'
14321 ;;
14322 esac
14323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14324 postinstall_cmds='chmod 555 $lib'
14325 ;;
14326
14327irix5* | irix6* | nonstopux*)
14328 case $host_os in
14329 nonstopux*) version_type=nonstopux ;;
14330 *)
14331 if test "$lt_cv_prog_gnu_ld" = yes; then
14332 version_type=linux
14333 else
14334 version_type=irix
14335 fi ;;
14336 esac
14337 need_lib_prefix=no
14338 need_version=no
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14341 case $host_os in
14342 irix5* | nonstopux*)
14343 libsuff= shlibsuff=
14344 ;;
14345 *)
14346 case $LD in # libtool.m4 will add one of these switches to LD
14347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14348 libsuff= shlibsuff= libmagic=32-bit;;
14349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14350 libsuff=32 shlibsuff=N32 libmagic=N32;;
14351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14352 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14353 *) libsuff= shlibsuff= libmagic=never-match;;
14354 esac
14355 ;;
14356 esac
14357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14358 shlibpath_overrides_runpath=no
14359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14361 hardcode_into_libs=yes
14362 ;;
14363
14364# No shared lib support for Linux oldld, aout, or coff.
14365linux*oldld* | linux*aout* | linux*coff*)
14366 dynamic_linker=no
14367 ;;
14368
14369# This must be Linux ELF.
14370linux*)
14371 version_type=linux
14372 need_lib_prefix=no
14373 need_version=no
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 shlibpath_overrides_runpath=no
14379 # This implies no fast_install, which is unacceptable.
14380 # Some rework will be needed to allow for fast_install
14381 # before this can be enabled.
14382 hardcode_into_libs=yes
14383
14384 # We used to test for /lib/ld.so.1 and disable shared libraries on
14385 # powerpc, because MkLinux only supported shared libraries with the
14386 # GNU dynamic linker. Since this was broken with cross compilers,
14387 # most powerpc-linux boxes support dynamic linking these days and
14388 # people can always --disable-shared, the test was removed, and we
14389 # assume the GNU/Linux dynamic linker is in use.
14390 dynamic_linker='GNU/Linux ld.so'
14391 ;;
14392
14393netbsd*)
14394 version_type=sunos
14395 need_lib_prefix=no
14396 need_version=no
14397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14400 dynamic_linker='NetBSD (a.out) ld.so'
14401 else
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 dynamic_linker='NetBSD ld.elf_so'
14405 fi
14406 shlibpath_var=LD_LIBRARY_PATH
14407 shlibpath_overrides_runpath=yes
14408 hardcode_into_libs=yes
14409 ;;
14410
14411newsos6)
14412 version_type=linux
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath=yes
14416 ;;
14417
14418nto-qnx)
14419 version_type=linux
14420 need_lib_prefix=no
14421 need_version=no
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 shlibpath_var=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath=yes
14426 ;;
14427
14428openbsd*)
14429 version_type=sunos
14430 need_lib_prefix=no
14431 need_version=no
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14436 case $host_os in
14437 openbsd2.[89] | openbsd2.[89].*)
14438 shlibpath_overrides_runpath=no
14439 ;;
14440 *)
14441 shlibpath_overrides_runpath=yes
14442 ;;
14443 esac
14444 else
14445 shlibpath_overrides_runpath=yes
14446 fi
14447 ;;
14448
14449os2*)
14450 libname_spec='$name'
14451 shrext=".dll"
14452 need_lib_prefix=no
14453 library_names_spec='$libname${shared_ext} $libname.a'
14454 dynamic_linker='OS/2 ld.exe'
14455 shlibpath_var=LIBPATH
14456 ;;
14457
14458osf3* | osf4* | osf5*)
14459 version_type=osf
14460 need_lib_prefix=no
14461 need_version=no
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14467 ;;
14468
14469sco3.2v5*)
14470 version_type=osf
14471 soname_spec='${libname}${release}${shared_ext}$major'
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 ;;
14475
14476solaris*)
14477 version_type=linux
14478 need_lib_prefix=no
14479 need_version=no
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 shlibpath_overrides_runpath=yes
14484 hardcode_into_libs=yes
14485 # ldd complains unless libraries are executable
14486 postinstall_cmds='chmod +x $lib'
14487 ;;
14488
14489sunos4*)
14490 version_type=sunos
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 shlibpath_overrides_runpath=yes
14495 if test "$with_gnu_ld" = yes; then
14496 need_lib_prefix=no
14497 fi
14498 need_version=yes
14499 ;;
14500
14501sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14502 version_type=linux
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 case $host_vendor in
14507 sni)
14508 shlibpath_overrides_runpath=no
14509 need_lib_prefix=no
14510 export_dynamic_flag_spec='${wl}-Blargedynsym'
14511 runpath_var=LD_RUN_PATH
14512 ;;
14513 siemens)
14514 need_lib_prefix=no
14515 ;;
14516 motorola)
14517 need_lib_prefix=no
14518 need_version=no
14519 shlibpath_overrides_runpath=no
14520 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14521 ;;
14522 esac
14523 ;;
14524
14525sysv4*MP*)
14526 if test -d /usr/nec ;then
14527 version_type=linux
14528 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14529 soname_spec='$libname${shared_ext}.$major'
14530 shlibpath_var=LD_LIBRARY_PATH
14531 fi
14532 ;;
14533
14534uts4*)
14535 version_type=linux
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537 soname_spec='${libname}${release}${shared_ext}$major'
14538 shlibpath_var=LD_LIBRARY_PATH
14539 ;;
14540
14541*)
14542 dynamic_linker=no
14543 ;;
14544esac
14545echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14546echo "${ECHO_T}$dynamic_linker" >&6
14547test "$dynamic_linker" = no && can_build_shared=no
14548
14549
14550# The else clause should only fire when bootstrapping the
14551# libtool distribution, otherwise you forgot to ship ltmain.sh
14552# with your package, and you will get complaints that there are
14553# no rules to generate ltmain.sh.
14554if test -f "$ltmain"; then
14555 # See if we are running on zsh, and set the options which allow our commands through
14556 # without removal of \ escapes.
14557 if test -n "${ZSH_VERSION+set}" ; then
14558 setopt NO_GLOB_SUBST
14559 fi
14560 # Now quote all the things that may contain metacharacters while being
14561 # careful not to overquote the AC_SUBSTed values. We take copies of the
14562 # variables and quote the copies for generation of the libtool script.
14563 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14564 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14565 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14566 deplibs_check_method reload_flag reload_cmds need_locks \
14567 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14568 lt_cv_sys_global_symbol_to_c_name_address \
14569 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14570 old_postinstall_cmds old_postuninstall_cmds \
14571 compiler_F77 \
14572 CC_F77 \
14573 LD_F77 \
14574 lt_prog_compiler_wl_F77 \
14575 lt_prog_compiler_pic_F77 \
14576 lt_prog_compiler_static_F77 \
14577 lt_prog_compiler_no_builtin_flag_F77 \
14578 export_dynamic_flag_spec_F77 \
14579 thread_safe_flag_spec_F77 \
14580 whole_archive_flag_spec_F77 \
14581 enable_shared_with_static_runtimes_F77 \
14582 old_archive_cmds_F77 \
14583 old_archive_from_new_cmds_F77 \
14584 predep_objects_F77 \
14585 postdep_objects_F77 \
14586 predeps_F77 \
14587 postdeps_F77 \
14588 compiler_lib_search_path_F77 \
14589 archive_cmds_F77 \
14590 archive_expsym_cmds_F77 \
14591 postinstall_cmds_F77 \
14592 postuninstall_cmds_F77 \
14593 old_archive_from_expsyms_cmds_F77 \
14594 allow_undefined_flag_F77 \
14595 no_undefined_flag_F77 \
14596 export_symbols_cmds_F77 \
14597 hardcode_libdir_flag_spec_F77 \
14598 hardcode_libdir_flag_spec_ld_F77 \
14599 hardcode_libdir_separator_F77 \
14600 hardcode_automatic_F77 \
14601 module_cmds_F77 \
14602 module_expsym_cmds_F77 \
14603 lt_cv_prog_compiler_c_o_F77 \
14604 exclude_expsyms_F77 \
14605 include_expsyms_F77; do
14606
14607 case $var in
14608 old_archive_cmds_F77 | \
14609 old_archive_from_new_cmds_F77 | \
14610 archive_cmds_F77 | \
14611 archive_expsym_cmds_F77 | \
14612 module_cmds_F77 | \
14613 module_expsym_cmds_F77 | \
14614 old_archive_from_expsyms_cmds_F77 | \
14615 export_symbols_cmds_F77 | \
14616 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14617 postinstall_cmds | postuninstall_cmds | \
14618 old_postinstall_cmds | old_postuninstall_cmds | \
14619 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14620 # Double-quote double-evaled strings.
14621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14622 ;;
14623 *)
14624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14625 ;;
14626 esac
14627 done
14628
14629 case $lt_echo in
14630 *'\$0 --fallback-echo"')
14631 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14632 ;;
14633 esac
14634
14635cfgfile="$ofile"
14636
14637 cat <<__EOF__ >> "$cfgfile"
14638# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14639
14640# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14641
14642# Shell to use when invoking shell scripts.
14643SHELL=$lt_SHELL
14644
14645# Whether or not to build shared libraries.
14646build_libtool_libs=$enable_shared
14647
14648# Whether or not to build static libraries.
14649build_old_libs=$enable_static
14650
14651# Whether or not to add -lc for building shared libraries.
14652build_libtool_need_lc=$archive_cmds_need_lc_F77
14653
14654# Whether or not to disallow shared libs when runtime libs are static
14655allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14656
14657# Whether or not to optimize for fast installation.
14658fast_install=$enable_fast_install
14659
14660# The host system.
14661host_alias=$host_alias
14662host=$host
14663
14664# An echo program that does not interpret backslashes.
14665echo=$lt_echo
14666
14667# The archiver.
14668AR=$lt_AR
14669AR_FLAGS=$lt_AR_FLAGS
14670
14671# A C compiler.
14672LTCC=$lt_LTCC
14673
14674# A language-specific compiler.
14675CC=$lt_compiler_F77
14676
14677# Is the compiler the GNU C compiler?
14678with_gcc=$GCC_F77
14679
14680# An ERE matcher.
14681EGREP=$lt_EGREP
14682
14683# The linker used to build libraries.
14684LD=$lt_LD_F77
14685
14686# Whether we need hard or soft links.
14687LN_S=$lt_LN_S
14688
14689# A BSD-compatible nm program.
14690NM=$lt_NM
14691
14692# A symbol stripping program
14693STRIP=$STRIP
14694
14695# Used to examine libraries when file_magic_cmd begins "file"
14696MAGIC_CMD=$MAGIC_CMD
14697
14698# Used on cygwin: DLL creation program.
14699DLLTOOL="$DLLTOOL"
14700
14701# Used on cygwin: object dumper.
14702OBJDUMP="$OBJDUMP"
14703
14704# Used on cygwin: assembler.
14705AS="$AS"
14706
14707# The name of the directory that contains temporary libtool files.
14708objdir=$objdir
14709
14710# How to create reloadable object files.
14711reload_flag=$lt_reload_flag
14712reload_cmds=$lt_reload_cmds
14713
14714# How to pass a linker flag through the compiler.
14715wl=$lt_lt_prog_compiler_wl_F77
14716
14717# Object file suffix (normally "o").
14718objext="$ac_objext"
14719
14720# Old archive suffix (normally "a").
14721libext="$libext"
14722
14723# Shared library suffix (normally ".so").
14724shrext='$shrext'
14725
14726# Executable file suffix (normally "").
14727exeext="$exeext"
14728
14729# Additional compiler flags for building library objects.
14730pic_flag=$lt_lt_prog_compiler_pic_F77
14731pic_mode=$pic_mode
14732
14733# What is the maximum length of a command?
14734max_cmd_len=$lt_cv_sys_max_cmd_len
14735
14736# Does compiler simultaneously support -c and -o options?
14737compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14738
14739# Must we lock files when doing compilation ?
14740need_locks=$lt_need_locks
14741
14742# Do we need the lib prefix for modules?
14743need_lib_prefix=$need_lib_prefix
14744
14745# Do we need a version for libraries?
14746need_version=$need_version
14747
14748# Whether dlopen is supported.
14749dlopen_support=$enable_dlopen
14750
14751# Whether dlopen of programs is supported.
14752dlopen_self=$enable_dlopen_self
14753
14754# Whether dlopen of statically linked programs is supported.
14755dlopen_self_static=$enable_dlopen_self_static
14756
14757# Compiler flag to prevent dynamic linking.
14758link_static_flag=$lt_lt_prog_compiler_static_F77
14759
14760# Compiler flag to turn off builtin functions.
14761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14762
14763# Compiler flag to allow reflexive dlopens.
14764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14765
14766# Compiler flag to generate shared objects directly from archives.
14767whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14768
14769# Compiler flag to generate thread-safe objects.
14770thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14771
14772# Library versioning type.
14773version_type=$version_type
14774
14775# Format of library name prefix.
14776libname_spec=$lt_libname_spec
14777
14778# List of archive names. First name is the real one, the rest are links.
14779# The last name is the one that the linker finds with -lNAME.
14780library_names_spec=$lt_library_names_spec
14781
14782# The coded name of the library, if different from the real name.
14783soname_spec=$lt_soname_spec
14784
14785# Commands used to build and install an old-style archive.
14786RANLIB=$lt_RANLIB
14787old_archive_cmds=$lt_old_archive_cmds_F77
14788old_postinstall_cmds=$lt_old_postinstall_cmds
14789old_postuninstall_cmds=$lt_old_postuninstall_cmds
14790
14791# Create an old-style archive from a shared archive.
14792old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14793
14794# Create a temporary old-style archive to link instead of a shared archive.
14795old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14796
14797# Commands used to build and install a shared archive.
14798archive_cmds=$lt_archive_cmds_F77
14799archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14800postinstall_cmds=$lt_postinstall_cmds
14801postuninstall_cmds=$lt_postuninstall_cmds
14802
14803# Commands used to build a loadable module (assumed same as above if empty)
14804module_cmds=$lt_module_cmds_F77
14805module_expsym_cmds=$lt_module_expsym_cmds_F77
14806
14807# Commands to strip libraries.
14808old_striplib=$lt_old_striplib
14809striplib=$lt_striplib
14810
14811# Dependencies to place before the objects being linked to create a
14812# shared library.
14813predep_objects=$lt_predep_objects_F77
14814
14815# Dependencies to place after the objects being linked to create a
14816# shared library.
14817postdep_objects=$lt_postdep_objects_F77
14818
14819# Dependencies to place before the objects being linked to create a
14820# shared library.
14821predeps=$lt_predeps_F77
14822
14823# Dependencies to place after the objects being linked to create a
14824# shared library.
14825postdeps=$lt_postdeps_F77
14826
14827# The library search path used internally by the compiler when linking
14828# a shared library.
14829compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14830
14831# Method to check whether dependent libraries are shared objects.
14832deplibs_check_method=$lt_deplibs_check_method
14833
14834# Command to use when deplibs_check_method == file_magic.
14835file_magic_cmd=$lt_file_magic_cmd
14836
14837# Flag that allows shared libraries with undefined symbols to be built.
14838allow_undefined_flag=$lt_allow_undefined_flag_F77
14839
14840# Flag that forces no undefined symbols.
14841no_undefined_flag=$lt_no_undefined_flag_F77
14842
14843# Commands used to finish a libtool library installation in a directory.
14844finish_cmds=$lt_finish_cmds
14845
14846# Same as above, but a single script fragment to be evaled but not shown.
14847finish_eval=$lt_finish_eval
14848
14849# Take the output of nm and produce a listing of raw symbols and C names.
14850global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14851
14852# Transform the output of nm in a proper C declaration
14853global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14854
14855# Transform the output of nm in a C name address pair
14856global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14857
14858# This is the shared library runtime path variable.
14859runpath_var=$runpath_var
14860
14861# This is the shared library path variable.
14862shlibpath_var=$shlibpath_var
14863
14864# Is shlibpath searched before the hard-coded library search path?
14865shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14866
14867# How to hardcode a shared library path into an executable.
14868hardcode_action=$hardcode_action_F77
14869
14870# Whether we should hardcode library paths into libraries.
14871hardcode_into_libs=$hardcode_into_libs
14872
14873# Flag to hardcode \$libdir into a binary during linking.
14874# This must work even if \$libdir does not exist.
14875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14876
14877# If ld is used when linking, flag to hardcode \$libdir into
14878# a binary during linking. This must work even if \$libdir does
14879# not exist.
14880hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14881
14882# Whether we need a single -rpath flag with a separated argument.
14883hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14884
14885# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14886# resulting binary.
14887hardcode_direct=$hardcode_direct_F77
14888
14889# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14890# resulting binary.
14891hardcode_minus_L=$hardcode_minus_L_F77
14892
14893# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14894# the resulting binary.
14895hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14896
14897# Set to yes if building a shared library automatically hardcodes DIR into the library
14898# and all subsequent libraries and executables linked against it.
14899hardcode_automatic=$hardcode_automatic_F77
14900
14901# Variables whose values should be saved in libtool wrapper scripts and
14902# restored at relink time.
14903variables_saved_for_relink="$variables_saved_for_relink"
14904
14905# Whether libtool must link a program against all its dependency libraries.
14906link_all_deplibs=$link_all_deplibs_F77
14907
14908# Compile-time system search path for libraries
14909sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14910
14911# Run-time system search path for libraries
14912sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14913
14914# Fix the shell variable \$srcfile for the compiler.
14915fix_srcfile_path="$fix_srcfile_path_F77"
14916
14917# Set to yes if exported symbols are required.
14918always_export_symbols=$always_export_symbols_F77
14919
14920# The commands to list exported symbols.
14921export_symbols_cmds=$lt_export_symbols_cmds_F77
14922
14923# The commands to extract the exported symbol list from a shared archive.
14924extract_expsyms_cmds=$lt_extract_expsyms_cmds
14925
14926# Symbols that should not be listed in the preloaded symbols.
14927exclude_expsyms=$lt_exclude_expsyms_F77
14928
14929# Symbols that must always be exported.
14930include_expsyms=$lt_include_expsyms_F77
14931
14932# ### END LIBTOOL TAG CONFIG: $tagname
14933
14934__EOF__
14935
14936
14937else
14938 # If there is no Makefile yet, we rely on a make rule to execute
14939 # `config.status --recheck' to rerun these tests and create the
14940 # libtool script then.
14941 test -f Makefile && make "$ltmain"
14942fi
14943
14944
14945ac_ext=c
14946ac_cpp='$CPP $CPPFLAGS'
14947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14949ac_compiler_gnu=$ac_cv_c_compiler_gnu
14950
14951CC="$lt_save_CC"
14952
14953 else
14954 tagname=""
14955 fi
14956 ;;
14957
14958 GCJ)
14959 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14960
14961
14962
14963# Source file extension for Java test sources.
14964ac_ext=java
14965
14966# Object file extension for compiled Java test sources.
14967objext=o
14968objext_GCJ=$objext
14969
14970# Code to be used in simple compile tests
14971lt_simple_compile_test_code="class foo {}\n"
14972
14973# Code to be used in simple link tests
14974lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14975
14976# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14977
14978# If no C compiler was specified, use CC.
14979LTCC=${LTCC-"$CC"}
14980
14981# Allow CC to be a program name with arguments.
14982compiler=$CC
14983
14984
14985# Allow CC to be a program name with arguments.
14986lt_save_CC="$CC"
14987CC=${GCJ-"gcj"}
14988compiler=$CC
14989compiler_GCJ=$CC
14990
14991# GCJ did not exist at the time GCC didn't implicitly link libc in.
14992archive_cmds_need_lc_GCJ=no
14993
14994## CAVEAT EMPTOR:
14995## There is no encapsulation within the following macros, do not change
14996## the running order or otherwise move them around unless you know exactly
14997## what you are doing...
14998
14999lt_prog_compiler_no_builtin_flag_GCJ=
15000
15001if test "$GCC" = yes; then
15002 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15003
15004 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15005echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15006if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15008else
15009 lt_cv_prog_compiler_rtti_exceptions=no
15010 ac_outfile=conftest.$ac_objext
15011 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15012 lt_compiler_flag="-fno-rtti -fno-exceptions"
15013 # Insert the option either (1) after the last *FLAGS variable, or
15014 # (2) before a word containing "conftest.", or (3) at the end.
15015 # Note that $ac_compile itself does not contain backslashes and begins
15016 # with a dollar sign (not a hyphen), so the echo should work correctly.
15017 # The option is referenced via a variable to avoid confusing sed.
15018 lt_compile=`echo "$ac_compile" | $SED \
15019 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15021 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000015022 (eval echo "\"\$as_me:15022: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015023 (eval "$lt_compile" 2>conftest.err)
15024 ac_status=$?
15025 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000015026 echo "$as_me:15026: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015027 if (exit $ac_status) && test -s "$ac_outfile"; then
15028 # The compiler can only warn and ignore the option if not recognized
15029 # So say no if there are warnings
15030 if test ! -s conftest.err; then
15031 lt_cv_prog_compiler_rtti_exceptions=yes
15032 fi
15033 fi
15034 $rm conftest*
15035
15036fi
15037echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15038echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15039
15040if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15041 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15042else
15043 :
15044fi
15045
15046fi
15047
15048lt_prog_compiler_wl_GCJ=
15049lt_prog_compiler_pic_GCJ=
15050lt_prog_compiler_static_GCJ=
15051
15052echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15053echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15054
15055 if test "$GCC" = yes; then
15056 lt_prog_compiler_wl_GCJ='-Wl,'
15057 lt_prog_compiler_static_GCJ='-static'
15058
15059 case $host_os in
15060 aix*)
15061 # All AIX code is PIC.
15062 if test "$host_cpu" = ia64; then
15063 # AIX 5 now supports IA64 processor
15064 lt_prog_compiler_static_GCJ='-Bstatic'
15065 fi
15066 ;;
15067
15068 amigaos*)
15069 # FIXME: we need at least 68020 code to build shared libraries, but
15070 # adding the `-m68020' flag to GCC prevents building anything better,
15071 # like `-m68040'.
15072 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15073 ;;
15074
15075 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15076 # PIC is the default for these OSes.
15077 ;;
15078
15079 mingw* | pw32* | os2*)
15080 # This hack is so that the source file can tell whether it is being
15081 # built for inclusion in a dll (and should export symbols for example).
15082 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15083 ;;
15084
15085 darwin* | rhapsody*)
15086 # PIC is the default on this platform
15087 # Common symbols not allowed in MH_DYLIB files
15088 lt_prog_compiler_pic_GCJ='-fno-common'
15089 ;;
15090
15091 msdosdjgpp*)
15092 # Just because we use GCC doesn't mean we suddenly get shared libraries
15093 # on systems that don't support them.
15094 lt_prog_compiler_can_build_shared_GCJ=no
15095 enable_shared=no
15096 ;;
15097
15098 sysv4*MP*)
15099 if test -d /usr/nec; then
15100 lt_prog_compiler_pic_GCJ=-Kconform_pic
15101 fi
15102 ;;
15103
15104 hpux*)
15105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15106 # not for PA HP-UX.
15107 case "$host_cpu" in
15108 hppa*64*|ia64*)
15109 # +Z the default
15110 ;;
15111 *)
15112 lt_prog_compiler_pic_GCJ='-fPIC'
15113 ;;
15114 esac
15115 ;;
15116
15117 *)
15118 lt_prog_compiler_pic_GCJ='-fPIC'
15119 ;;
15120 esac
15121 else
15122 # PORTME Check for flag to pass linker flags through the system compiler.
15123 case $host_os in
15124 aix*)
15125 lt_prog_compiler_wl_GCJ='-Wl,'
15126 if test "$host_cpu" = ia64; then
15127 # AIX 5 now supports IA64 processor
15128 lt_prog_compiler_static_GCJ='-Bstatic'
15129 else
15130 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15131 fi
15132 ;;
15133
15134 mingw* | pw32* | os2*)
15135 # This hack is so that the source file can tell whether it is being
15136 # built for inclusion in a dll (and should export symbols for example).
15137 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15138 ;;
15139
15140 hpux9* | hpux10* | hpux11*)
15141 lt_prog_compiler_wl_GCJ='-Wl,'
15142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15143 # not for PA HP-UX.
15144 case "$host_cpu" in
15145 hppa*64*|ia64*)
15146 # +Z the default
15147 ;;
15148 *)
15149 lt_prog_compiler_pic_GCJ='+Z'
15150 ;;
15151 esac
15152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15153 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15154 ;;
15155
15156 irix5* | irix6* | nonstopux*)
15157 lt_prog_compiler_wl_GCJ='-Wl,'
15158 # PIC (with -KPIC) is the default.
15159 lt_prog_compiler_static_GCJ='-non_shared'
15160 ;;
15161
15162 newsos6)
15163 lt_prog_compiler_pic_GCJ='-KPIC'
15164 lt_prog_compiler_static_GCJ='-Bstatic'
15165 ;;
15166
15167 linux*)
15168 case $CC in
15169 icc|ecc)
15170 lt_prog_compiler_wl_GCJ='-Wl,'
15171 lt_prog_compiler_pic_GCJ='-KPIC'
15172 lt_prog_compiler_static_GCJ='-static'
15173 ;;
15174 ccc)
15175 lt_prog_compiler_wl_GCJ='-Wl,'
15176 # All Alpha code is PIC.
15177 lt_prog_compiler_static_GCJ='-non_shared'
15178 ;;
15179 esac
15180 ;;
15181
15182 osf3* | osf4* | osf5*)
15183 lt_prog_compiler_wl_GCJ='-Wl,'
15184 # All OSF/1 code is PIC.
15185 lt_prog_compiler_static_GCJ='-non_shared'
15186 ;;
15187
15188 sco3.2v5*)
15189 lt_prog_compiler_pic_GCJ='-Kpic'
15190 lt_prog_compiler_static_GCJ='-dn'
15191 ;;
15192
15193 solaris*)
15194 lt_prog_compiler_wl_GCJ='-Wl,'
15195 lt_prog_compiler_pic_GCJ='-KPIC'
15196 lt_prog_compiler_static_GCJ='-Bstatic'
15197 ;;
15198
15199 sunos4*)
15200 lt_prog_compiler_wl_GCJ='-Qoption ld '
15201 lt_prog_compiler_pic_GCJ='-PIC'
15202 lt_prog_compiler_static_GCJ='-Bstatic'
15203 ;;
15204
15205 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15206 lt_prog_compiler_wl_GCJ='-Wl,'
15207 lt_prog_compiler_pic_GCJ='-KPIC'
15208 lt_prog_compiler_static_GCJ='-Bstatic'
15209 ;;
15210
15211 sysv4*MP*)
15212 if test -d /usr/nec ;then
15213 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15214 lt_prog_compiler_static_GCJ='-Bstatic'
15215 fi
15216 ;;
15217
15218 uts4*)
15219 lt_prog_compiler_pic_GCJ='-pic'
15220 lt_prog_compiler_static_GCJ='-Bstatic'
15221 ;;
15222
15223 *)
15224 lt_prog_compiler_can_build_shared_GCJ=no
15225 ;;
15226 esac
15227 fi
15228
15229echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15230echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15231
15232#
15233# Check to make sure the PIC flag actually works.
15234#
15235if test -n "$lt_prog_compiler_pic_GCJ"; then
15236 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15237echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15238if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240else
15241 lt_prog_compiler_pic_works_GCJ=no
15242 ac_outfile=conftest.$ac_objext
15243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15244 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15245 # Insert the option either (1) after the last *FLAGS variable, or
15246 # (2) before a word containing "conftest.", or (3) at the end.
15247 # Note that $ac_compile itself does not contain backslashes and begins
15248 # with a dollar sign (not a hyphen), so the echo should work correctly.
15249 # The option is referenced via a variable to avoid confusing sed.
15250 lt_compile=`echo "$ac_compile" | $SED \
15251 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15253 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000015254 (eval echo "\"\$as_me:15254: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015255 (eval "$lt_compile" 2>conftest.err)
15256 ac_status=$?
15257 cat conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000015258 echo "$as_me:15258: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015259 if (exit $ac_status) && test -s "$ac_outfile"; then
15260 # The compiler can only warn and ignore the option if not recognized
15261 # So say no if there are warnings
15262 if test ! -s conftest.err; then
15263 lt_prog_compiler_pic_works_GCJ=yes
15264 fi
15265 fi
15266 $rm conftest*
15267
15268fi
15269echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15270echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15271
15272if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15273 case $lt_prog_compiler_pic_GCJ in
15274 "" | " "*) ;;
15275 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15276 esac
15277else
15278 lt_prog_compiler_pic_GCJ=
15279 lt_prog_compiler_can_build_shared_GCJ=no
15280fi
15281
15282fi
15283case "$host_os" in
15284 # For platforms which do not support PIC, -DPIC is meaningless:
15285 *djgpp*)
15286 lt_prog_compiler_pic_GCJ=
15287 ;;
15288 *)
15289 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15290 ;;
15291esac
15292
15293echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15294echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15295if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297else
15298 lt_cv_prog_compiler_c_o_GCJ=no
15299 $rm -r conftest 2>/dev/null
15300 mkdir conftest
15301 cd conftest
15302 mkdir out
15303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15304
15305 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15306 # that will create temporary files in the current directory regardless of
15307 # the output directory. Thus, making CWD read-only will cause this test
15308 # to fail, enabling locking or at least warning the user not to do parallel
15309 # builds.
15310 chmod -w .
15311
15312 lt_compiler_flag="-o out/conftest2.$ac_objext"
15313 # Insert the option either (1) after the last *FLAGS variable, or
15314 # (2) before a word containing "conftest.", or (3) at the end.
15315 # Note that $ac_compile itself does not contain backslashes and begins
15316 # with a dollar sign (not a hyphen), so the echo should work correctly.
15317 lt_compile=`echo "$ac_compile" | $SED \
15318 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15320 -e 's:$: $lt_compiler_flag:'`
John Criswell48e3cb92003-09-12 16:31:43 +000015321 (eval echo "\"\$as_me:15321: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015322 (eval "$lt_compile" 2>out/conftest.err)
15323 ac_status=$?
15324 cat out/conftest.err >&5
John Criswell48e3cb92003-09-12 16:31:43 +000015325 echo "$as_me:15325: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15327 then
15328 # The compiler can only warn and ignore the option if not recognized
15329 # So say no if there are warnings
15330 if test ! -s out/conftest.err; then
15331 lt_cv_prog_compiler_c_o_GCJ=yes
15332 fi
15333 fi
15334 chmod u+w .
15335 $rm conftest* out/*
15336 rmdir out
15337 cd ..
15338 rmdir conftest
15339 $rm conftest*
15340
15341fi
15342echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15343echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15344
15345
15346hard_links="nottested"
15347if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15348 # do not overwrite the value of need_locks provided by the user
15349 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15350echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15351 hard_links=yes
15352 $rm conftest*
15353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15354 touch conftest.a
15355 ln conftest.a conftest.b 2>&5 || hard_links=no
15356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15357 echo "$as_me:$LINENO: result: $hard_links" >&5
15358echo "${ECHO_T}$hard_links" >&6
15359 if test "$hard_links" = no; then
15360 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15361echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15362 need_locks=warn
15363 fi
15364else
15365 need_locks=no
15366fi
15367
15368echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15369echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15370
15371 runpath_var=
15372 allow_undefined_flag_GCJ=
15373 enable_shared_with_static_runtimes_GCJ=no
15374 archive_cmds_GCJ=
15375 archive_expsym_cmds_GCJ=
15376 old_archive_From_new_cmds_GCJ=
15377 old_archive_from_expsyms_cmds_GCJ=
15378 export_dynamic_flag_spec_GCJ=
15379 whole_archive_flag_spec_GCJ=
15380 thread_safe_flag_spec_GCJ=
15381 hardcode_libdir_flag_spec_GCJ=
15382 hardcode_libdir_flag_spec_ld_GCJ=
15383 hardcode_libdir_separator_GCJ=
15384 hardcode_direct_GCJ=no
15385 hardcode_minus_L_GCJ=no
15386 hardcode_shlibpath_var_GCJ=unsupported
15387 link_all_deplibs_GCJ=unknown
15388 hardcode_automatic_GCJ=no
15389 module_cmds_GCJ=
15390 module_expsym_cmds_GCJ=
15391 always_export_symbols_GCJ=no
15392 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15393 # include_expsyms should be a list of space-separated symbols to be *always*
15394 # included in the symbol list
15395 include_expsyms_GCJ=
15396 # exclude_expsyms can be an extended regexp of symbols to exclude
15397 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15398 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15399 # as well as any symbol that contains `d'.
15400 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15401 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15402 # platforms (ab)use it in PIC code, but their linkers get confused if
15403 # the symbol is explicitly referenced. Since portable code cannot
15404 # rely on this symbol name, it's probably fine to never include it in
15405 # preloaded symbol tables.
15406 extract_expsyms_cmds=
15407
15408 case $host_os in
15409 cygwin* | mingw* | pw32*)
15410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15411 # When not using gcc, we currently assume that we are using
15412 # Microsoft Visual C++.
15413 if test "$GCC" != yes; then
15414 with_gnu_ld=no
15415 fi
15416 ;;
15417 openbsd*)
15418 with_gnu_ld=no
15419 ;;
15420 esac
15421
15422 ld_shlibs_GCJ=yes
15423 if test "$with_gnu_ld" = yes; then
15424 # If archive_cmds runs LD, not CC, wlarc should be empty
15425 wlarc='${wl}'
15426
15427 # See if GNU ld supports shared libraries.
15428 case $host_os in
15429 aix3* | aix4* | aix5*)
15430 # On AIX/PPC, the GNU linker is very broken
15431 if test "$host_cpu" != ia64; then
15432 ld_shlibs_GCJ=no
15433 cat <<EOF 1>&2
15434
15435*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15436*** to be unable to reliably create shared libraries on AIX.
15437*** Therefore, libtool is disabling shared libraries support. If you
15438*** really care for shared libraries, you may want to modify your PATH
15439*** so that a non-GNU linker is found, and then restart.
15440
15441EOF
15442 fi
15443 ;;
15444
15445 amigaos*)
15446 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)'
15447 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15448 hardcode_minus_L_GCJ=yes
15449
15450 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15451 # that the semantics of dynamic libraries on AmigaOS, at least up
15452 # to version 4, is to share data among multiple programs linked
15453 # with the same dynamic library. Since this doesn't match the
15454 # behavior of shared libraries on other platforms, we can't use
15455 # them.
15456 ld_shlibs_GCJ=no
15457 ;;
15458
15459 beos*)
15460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15461 allow_undefined_flag_GCJ=unsupported
15462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15463 # support --undefined. This deserves some investigation. FIXME
15464 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15465 else
15466 ld_shlibs_GCJ=no
15467 fi
15468 ;;
15469
15470 cygwin* | mingw* | pw32*)
15471 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15472 # as there is no search path for DLLs.
15473 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15474 allow_undefined_flag_GCJ=unsupported
15475 always_export_symbols_GCJ=no
15476 enable_shared_with_static_runtimes_GCJ=yes
15477 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15478
15479 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15481 # If the export-symbols file already is a .def file (1st line
15482 # is EXPORTS), use it as is; otherwise, prepend...
15483 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15484 cp $export_symbols $output_objdir/$soname.def;
15485 else
15486 echo EXPORTS > $output_objdir/$soname.def;
15487 cat $export_symbols >> $output_objdir/$soname.def;
15488 fi~
15489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15490 else
15491 ld_shlibs=no
15492 fi
15493 ;;
15494
15495 netbsd*)
15496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15497 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15498 wlarc=
15499 else
15500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15502 fi
15503 ;;
15504
15505 solaris* | sysv5*)
15506 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15507 ld_shlibs_GCJ=no
15508 cat <<EOF 1>&2
15509
15510*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15511*** create shared libraries on Solaris systems. Therefore, libtool
15512*** is disabling shared libraries support. We urge you to upgrade GNU
15513*** binutils to release 2.9.1 or newer. Another option is to modify
15514*** your PATH or compiler configuration so that the native linker is
15515*** used, and then restart.
15516
15517EOF
15518 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15519 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15520 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15521 else
15522 ld_shlibs_GCJ=no
15523 fi
15524 ;;
15525
15526 sunos4*)
15527 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528 wlarc=
15529 hardcode_direct_GCJ=yes
15530 hardcode_shlibpath_var_GCJ=no
15531 ;;
15532
15533 *)
15534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15537 else
15538 ld_shlibs_GCJ=no
15539 fi
15540 ;;
15541 esac
15542
15543 if test "$ld_shlibs_GCJ" = yes; then
15544 runpath_var=LD_RUN_PATH
15545 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15546 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15547 # ancient GNU ld didn't support --whole-archive et. al.
15548 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15549 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15550 else
15551 whole_archive_flag_spec_GCJ=
15552 fi
15553 fi
15554 else
15555 # PORTME fill in a description of your system's linker (not GNU ld)
15556 case $host_os in
15557 aix3*)
15558 allow_undefined_flag_GCJ=unsupported
15559 always_export_symbols_GCJ=yes
15560 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'
15561 # Note: this linker hardcodes the directories in LIBPATH if there
15562 # are no directories specified by -L.
15563 hardcode_minus_L_GCJ=yes
15564 if test "$GCC" = yes && test -z "$link_static_flag"; then
15565 # Neither direct hardcoding nor static linking is supported with a
15566 # broken collect2.
15567 hardcode_direct_GCJ=unsupported
15568 fi
15569 ;;
15570
15571 aix4* | aix5*)
15572 if test "$host_cpu" = ia64; then
15573 # On IA64, the linker does run time linking by default, so we don't
15574 # have to do anything special.
15575 aix_use_runtimelinking=no
15576 exp_sym_flag='-Bexport'
15577 no_entry_flag=""
15578 else
15579 # If we're using GNU nm, then we don't want the "-C" option.
15580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15582 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'
15583 else
15584 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'
15585 fi
15586 aix_use_runtimelinking=no
15587
15588 # Test if we are trying to use run time linking or normal
15589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15590 # need to do runtime linking.
15591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15592 for ld_flag in $LDFLAGS; do
15593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15594 aix_use_runtimelinking=yes
15595 break
15596 fi
15597 done
15598 esac
15599
15600 exp_sym_flag='-bexport'
15601 no_entry_flag='-bnoentry'
15602 fi
15603
15604 # When large executables or shared objects are built, AIX ld can
15605 # have problems creating the table of contents. If linking a library
15606 # or program results in "error TOC overflow" add -mminimal-toc to
15607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15609
15610 archive_cmds_GCJ=''
15611 hardcode_direct_GCJ=yes
15612 hardcode_libdir_separator_GCJ=':'
15613 link_all_deplibs_GCJ=yes
15614
15615 if test "$GCC" = yes; then
15616 case $host_os in aix4.012|aix4.012.*)
15617 # We only want to do this on AIX 4.2 and lower, the check
15618 # below for broken collect2 doesn't work under 4.3+
15619 collect2name=`${CC} -print-prog-name=collect2`
15620 if test -f "$collect2name" && \
15621 strings "$collect2name" | grep resolve_lib_name >/dev/null
15622 then
15623 # We have reworked collect2
15624 hardcode_direct_GCJ=yes
15625 else
15626 # We have old collect2
15627 hardcode_direct_GCJ=unsupported
15628 # It fails to find uninstalled libraries when the uninstalled
15629 # path is not listed in the libpath. Setting hardcode_minus_L
15630 # to unsupported forces relinking
15631 hardcode_minus_L_GCJ=yes
15632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15633 hardcode_libdir_separator_GCJ=
15634 fi
15635 esac
15636 shared_flag='-shared'
15637 else
15638 # not using gcc
15639 if test "$host_cpu" = ia64; then
15640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15641 # chokes on -Wl,-G. The following line is correct:
15642 shared_flag='-G'
15643 else
15644 if test "$aix_use_runtimelinking" = yes; then
15645 shared_flag='${wl}-G'
15646 else
15647 shared_flag='${wl}-bM:SRE'
15648 fi
15649 fi
15650 fi
15651
15652 # It seems that -bexpall does not export symbols beginning with
15653 # underscore (_), so it is better to generate a list of symbols to export.
15654 always_export_symbols_GCJ=yes
15655 if test "$aix_use_runtimelinking" = yes; then
15656 # Warning - without using the other runtime loading flags (-brtl),
15657 # -berok will link without error, but may produce a broken library.
15658 allow_undefined_flag_GCJ='-berok'
15659 # Determine the default libpath from the value encoded in an empty executable.
15660 cat >conftest.$ac_ext <<_ACEOF
15661#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015662/* confdefs.h. */
15663_ACEOF
15664cat confdefs.h >>conftest.$ac_ext
15665cat >>conftest.$ac_ext <<_ACEOF
15666/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015667
John Criswell47fdd832003-07-14 16:52:07 +000015668int
15669main ()
15670{
15671
15672 ;
15673 return 0;
15674}
15675_ACEOF
15676rm -f conftest.$ac_objext conftest$ac_exeext
15677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678 (eval $ac_link) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -s conftest$ac_exeext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688
15689aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15690}'`
15691# Check for a 64-bit object if we didn't find anything.
15692if 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; }
15693}'`; fi
15694else
15695 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015696sed 's/^/| /' conftest.$ac_ext >&5
15697
John Criswell47fdd832003-07-14 16:52:07 +000015698fi
15699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15700if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15701
15702 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15703 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"
15704 else
15705 if test "$host_cpu" = ia64; then
15706 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15707 allow_undefined_flag_GCJ="-z nodefs"
15708 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"
15709 else
15710 # Determine the default libpath from the value encoded in an empty executable.
15711 cat >conftest.$ac_ext <<_ACEOF
15712#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015713/* confdefs.h. */
15714_ACEOF
15715cat confdefs.h >>conftest.$ac_ext
15716cat >>conftest.$ac_ext <<_ACEOF
15717/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015718
John Criswell47fdd832003-07-14 16:52:07 +000015719int
15720main ()
15721{
15722
15723 ;
15724 return 0;
15725}
15726_ACEOF
15727rm -f conftest.$ac_objext conftest$ac_exeext
15728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739
15740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15741}'`
15742# Check for a 64-bit object if we didn't find anything.
15743if 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; }
15744}'`; fi
15745else
15746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015747sed 's/^/| /' conftest.$ac_ext >&5
15748
John Criswell47fdd832003-07-14 16:52:07 +000015749fi
15750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15751if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15752
15753 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15754 # Warning - without using the other run time loading flags,
15755 # -berok will link without error, but may produce a broken library.
15756 no_undefined_flag_GCJ=' ${wl}-bernotok'
15757 allow_undefined_flag_GCJ=' ${wl}-berok'
15758 # -bexpall does not export symbols beginning with underscore (_)
15759 always_export_symbols_GCJ=yes
15760 # Exported symbols can be pulled into shared objects from archives
15761 whole_archive_flag_spec_GCJ=' '
15762 archive_cmds_need_lc_GCJ=yes
15763 # This is similar to how AIX traditionally builds it's shared libraries.
15764 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'
15765 fi
15766 fi
15767 ;;
15768
15769 amigaos*)
15770 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)'
15771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15772 hardcode_minus_L_GCJ=yes
15773 # see comment about different semantics on the GNU ld section
15774 ld_shlibs_GCJ=no
15775 ;;
15776
15777 bsdi4*)
15778 export_dynamic_flag_spec_GCJ=-rdynamic
15779 ;;
15780
15781 cygwin* | mingw* | pw32*)
15782 # When not using gcc, we currently assume that we are using
15783 # Microsoft Visual C++.
15784 # hardcode_libdir_flag_spec is actually meaningless, as there is
15785 # no search path for DLLs.
15786 hardcode_libdir_flag_spec_GCJ=' '
15787 allow_undefined_flag_GCJ=unsupported
15788 # Tell ltmain to make .lib files, not .a files.
15789 libext=lib
15790 # Tell ltmain to make .dll files, not .so files.
15791 shrext=".dll"
15792 # FIXME: Setting linknames here is a bad hack.
15793 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15794 # The linker will automatically build a .lib file if we build a DLL.
15795 old_archive_From_new_cmds_GCJ='true'
15796 # FIXME: Should let the user specify the lib program.
15797 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15798 fix_srcfile_path='`cygpath -w "$srcfile"`'
15799 enable_shared_with_static_runtimes_GCJ=yes
15800 ;;
15801
15802 darwin* | rhapsody*)
15803 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15804 archive_cmds_need_lc_GCJ=no
15805 case "$host_os" in
15806 rhapsody* | darwin1.[012])
15807 allow_undefined_flag_GCJ='-undefined suppress'
15808 ;;
15809 *) # Darwin 1.3 on
15810 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15811 ;;
15812 esac
15813 # FIXME: Relying on posixy $() will cause problems for
15814 # cross-compilation, but unfortunately the echo tests do not
15815 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15816 # `"' quotes if we put them in here... so don't!
15817 lt_int_apple_cc_single_mod=no
15818 output_verbose_link_cmd='echo'
15819 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15820 lt_int_apple_cc_single_mod=yes
15821 fi
15822 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15823 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15824 else
15825 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'
15826 fi
15827 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15829 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15830 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}'
15831 else
15832 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}'
15833 fi
15834 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}'
15835 hardcode_direct_GCJ=no
15836 hardcode_automatic_GCJ=yes
15837 hardcode_shlibpath_var_GCJ=unsupported
15838 whole_archive_flag_spec_GCJ='-all_load $convenience'
15839 link_all_deplibs_GCJ=yes
15840 fi
15841 ;;
15842
15843 dgux*)
15844 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15846 hardcode_shlibpath_var_GCJ=no
15847 ;;
15848
15849 freebsd1*)
15850 ld_shlibs_GCJ=no
15851 ;;
15852
15853 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15854 # support. Future versions do this automatically, but an explicit c++rt0.o
15855 # does not break anything, and helps significantly (at the cost of a little
15856 # extra space).
15857 freebsd2.2*)
15858 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15859 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15860 hardcode_direct_GCJ=yes
15861 hardcode_shlibpath_var_GCJ=no
15862 ;;
15863
15864 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15865 freebsd2*)
15866 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15867 hardcode_direct_GCJ=yes
15868 hardcode_minus_L_GCJ=yes
15869 hardcode_shlibpath_var_GCJ=no
15870 ;;
15871
15872 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15873 freebsd*)
15874 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15875 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15876 hardcode_direct_GCJ=yes
15877 hardcode_shlibpath_var_GCJ=no
15878 ;;
15879
15880 hpux9*)
15881 if test "$GCC" = yes; then
15882 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'
15883 else
15884 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'
15885 fi
15886 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15887 hardcode_libdir_separator_GCJ=:
15888 hardcode_direct_GCJ=yes
15889
15890 # hardcode_minus_L: Not really in the search PATH,
15891 # but as the default location of the library.
15892 hardcode_minus_L_GCJ=yes
15893 export_dynamic_flag_spec_GCJ='${wl}-E'
15894 ;;
15895
15896 hpux10* | hpux11*)
15897 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15898 case "$host_cpu" in
15899 hppa*64*|ia64*)
15900 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15901 ;;
15902 *)
15903 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15904 ;;
15905 esac
15906 else
15907 case "$host_cpu" in
15908 hppa*64*|ia64*)
15909 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15910 ;;
15911 *)
15912 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15913 ;;
15914 esac
15915 fi
15916 if test "$with_gnu_ld" = no; then
15917 case "$host_cpu" in
15918 hppa*64*)
15919 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15920 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15921 hardcode_libdir_separator_GCJ=:
15922 hardcode_direct_GCJ=no
15923 hardcode_shlibpath_var_GCJ=no
15924 ;;
15925 ia64*)
15926 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15927 hardcode_direct_GCJ=no
15928 hardcode_shlibpath_var_GCJ=no
15929
15930 # hardcode_minus_L: Not really in the search PATH,
15931 # but as the default location of the library.
15932 hardcode_minus_L_GCJ=yes
15933 ;;
15934 *)
15935 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15936 hardcode_libdir_separator_GCJ=:
15937 hardcode_direct_GCJ=yes
15938 export_dynamic_flag_spec_GCJ='${wl}-E'
15939
15940 # hardcode_minus_L: Not really in the search PATH,
15941 # but as the default location of the library.
15942 hardcode_minus_L_GCJ=yes
15943 ;;
15944 esac
15945 fi
15946 ;;
15947
15948 irix5* | irix6* | nonstopux*)
15949 if test "$GCC" = yes; then
15950 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'
15951 else
15952 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'
15953 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15954 fi
15955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15956 hardcode_libdir_separator_GCJ=:
15957 link_all_deplibs_GCJ=yes
15958 ;;
15959
15960 netbsd*)
15961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15962 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15963 else
15964 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15965 fi
15966 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15967 hardcode_direct_GCJ=yes
15968 hardcode_shlibpath_var_GCJ=no
15969 ;;
15970
15971 newsos6)
15972 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973 hardcode_direct_GCJ=yes
15974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15975 hardcode_libdir_separator_GCJ=:
15976 hardcode_shlibpath_var_GCJ=no
15977 ;;
15978
15979 openbsd*)
15980 hardcode_direct_GCJ=yes
15981 hardcode_shlibpath_var_GCJ=no
15982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15983 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15985 export_dynamic_flag_spec_GCJ='${wl}-E'
15986 else
15987 case $host_os in
15988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15989 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15990 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15991 ;;
15992 *)
15993 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15995 ;;
15996 esac
15997 fi
15998 ;;
15999
16000 os2*)
16001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16002 hardcode_minus_L_GCJ=yes
16003 allow_undefined_flag_GCJ=unsupported
16004 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'
16005 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16006 ;;
16007
16008 osf3*)
16009 if test "$GCC" = yes; then
16010 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16011 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'
16012 else
16013 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16014 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'
16015 fi
16016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16017 hardcode_libdir_separator_GCJ=:
16018 ;;
16019
16020 osf4* | osf5*) # as osf3* with the addition of -msym flag
16021 if test "$GCC" = yes; then
16022 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16023 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'
16024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16025 else
16026 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16027 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'
16028 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~
16029 $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'
16030
16031 # Both c and cxx compiler support -rpath directly
16032 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16033 fi
16034 hardcode_libdir_separator_GCJ=:
16035 ;;
16036
16037 sco3.2v5*)
16038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16039 hardcode_shlibpath_var_GCJ=no
16040 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16041 runpath_var=LD_RUN_PATH
16042 hardcode_runpath_var=yes
16043 ;;
16044
16045 solaris*)
16046 no_undefined_flag_GCJ=' -z text'
16047 if test "$GCC" = yes; then
16048 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16051 else
16052 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16053 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16054 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16055 fi
16056 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16057 hardcode_shlibpath_var_GCJ=no
16058 case $host_os in
16059 solaris2.[0-5] | solaris2.[0-5].*) ;;
16060 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16061 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16062 esac
16063 link_all_deplibs_GCJ=yes
16064 ;;
16065
16066 sunos4*)
16067 if test "x$host_vendor" = xsequent; then
16068 # Use $CC to link under sequent, because it throws in some extra .o
16069 # files that make .init and .fini sections work.
16070 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16071 else
16072 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16073 fi
16074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16075 hardcode_direct_GCJ=yes
16076 hardcode_minus_L_GCJ=yes
16077 hardcode_shlibpath_var_GCJ=no
16078 ;;
16079
16080 sysv4)
16081 case $host_vendor in
16082 sni)
16083 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16084 hardcode_direct_GCJ=yes # is this really true???
16085 ;;
16086 siemens)
16087 ## LD is ld it makes a PLAMLIB
16088 ## CC just makes a GrossModule.
16089 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16090 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16091 hardcode_direct_GCJ=no
16092 ;;
16093 motorola)
16094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16096 ;;
16097 esac
16098 runpath_var='LD_RUN_PATH'
16099 hardcode_shlibpath_var_GCJ=no
16100 ;;
16101
16102 sysv4.3*)
16103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16104 hardcode_shlibpath_var_GCJ=no
16105 export_dynamic_flag_spec_GCJ='-Bexport'
16106 ;;
16107
16108 sysv4*MP*)
16109 if test -d /usr/nec; then
16110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_shlibpath_var_GCJ=no
16112 runpath_var=LD_RUN_PATH
16113 hardcode_runpath_var=yes
16114 ld_shlibs_GCJ=yes
16115 fi
16116 ;;
16117
16118 sysv4.2uw2*)
16119 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16120 hardcode_direct_GCJ=yes
16121 hardcode_minus_L_GCJ=no
16122 hardcode_shlibpath_var_GCJ=no
16123 hardcode_runpath_var=yes
16124 runpath_var=LD_RUN_PATH
16125 ;;
16126
16127 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16128 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16129 if test "$GCC" = yes; then
16130 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16131 else
16132 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16133 fi
16134 runpath_var='LD_RUN_PATH'
16135 hardcode_shlibpath_var_GCJ=no
16136 ;;
16137
16138 sysv5*)
16139 no_undefined_flag_GCJ=' -z text'
16140 # $CC -shared without GNU ld will not create a library from C++
16141 # object files and a static libstdc++, better avoid it by now
16142 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16145 hardcode_libdir_flag_spec_GCJ=
16146 hardcode_shlibpath_var_GCJ=no
16147 runpath_var='LD_RUN_PATH'
16148 ;;
16149
16150 uts4*)
16151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16153 hardcode_shlibpath_var_GCJ=no
16154 ;;
16155
16156 *)
16157 ld_shlibs_GCJ=no
16158 ;;
16159 esac
16160 fi
16161
16162echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16163echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16164test "$ld_shlibs_GCJ" = no && can_build_shared=no
16165
16166variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16167if test "$GCC" = yes; then
16168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16169fi
16170
16171#
16172# Do we need to explicitly link libc?
16173#
16174case "x$archive_cmds_need_lc_GCJ" in
16175x|xyes)
16176 # Assume -lc should be added
16177 archive_cmds_need_lc_GCJ=yes
16178
16179 if test "$enable_shared" = yes && test "$GCC" = yes; then
16180 case $archive_cmds_GCJ in
16181 *'~'*)
16182 # FIXME: we may have to deal with multi-command sequences.
16183 ;;
16184 '$CC '*)
16185 # Test whether the compiler implicitly links with -lc since on some
16186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16187 # to ld, don't add -lc before -lgcc.
16188 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16189echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16190 $rm conftest*
16191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16192
16193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_compile) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } 2>conftest.err; then
16198 soname=conftest
16199 lib=conftest
16200 libobjs=conftest.$ac_objext
16201 deplibs=
16202 wl=$lt_prog_compiler_wl_GCJ
16203 compiler_flags=-v
16204 linker_flags=-v
16205 verstring=
16206 output_objdir=.
16207 libname=conftest
16208 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16209 allow_undefined_flag_GCJ=
16210 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16211 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }
16215 then
16216 archive_cmds_need_lc_GCJ=no
16217 else
16218 archive_cmds_need_lc_GCJ=yes
16219 fi
16220 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16221 else
16222 cat conftest.err 1>&5
16223 fi
16224 $rm conftest*
16225 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16226echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16227 ;;
16228 esac
16229 fi
16230 ;;
16231esac
16232
16233echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16234echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16235hardcode_action_GCJ=
16236if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16237 test -n "$runpath_var GCJ" || \
16238 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16239
16240 # We can hardcode non-existant directories.
16241 if test "$hardcode_direct_GCJ" != no &&
16242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16243 # have to relink, otherwise we might link with an installed library
16244 # when we should be linking with a yet-to-be-installed one
16245 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16246 test "$hardcode_minus_L_GCJ" != no; then
16247 # Linking always hardcodes the temporary library directory.
16248 hardcode_action_GCJ=relink
16249 else
16250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16251 hardcode_action_GCJ=immediate
16252 fi
16253else
16254 # We cannot hardcode anything, or else we can only hardcode existing
16255 # directories.
16256 hardcode_action_GCJ=unsupported
16257fi
16258echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16259echo "${ECHO_T}$hardcode_action_GCJ" >&6
16260
16261if test "$hardcode_action_GCJ" = relink; then
16262 # Fast installation is not supported
16263 enable_fast_install=no
16264elif test "$shlibpath_overrides_runpath" = yes ||
16265 test "$enable_shared" = no; then
16266 # Fast installation is not necessary
16267 enable_fast_install=needless
16268fi
16269
16270striplib=
16271old_striplib=
16272echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16273echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16274if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16275 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16276 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16277 echo "$as_me:$LINENO: result: yes" >&5
16278echo "${ECHO_T}yes" >&6
16279else
16280# FIXME - insert some real tests, host_os isn't really good enough
16281 case $host_os in
16282 darwin*)
16283 if test -n "$STRIP" ; then
16284 striplib="$STRIP -x"
16285 echo "$as_me:$LINENO: result: yes" >&5
16286echo "${ECHO_T}yes" >&6
16287 else
16288 echo "$as_me:$LINENO: result: no" >&5
16289echo "${ECHO_T}no" >&6
16290fi
16291 ;;
16292 *)
16293 echo "$as_me:$LINENO: result: no" >&5
16294echo "${ECHO_T}no" >&6
16295 ;;
16296 esac
16297fi
16298
16299echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16300echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16301library_names_spec=
16302libname_spec='lib$name'
16303soname_spec=
16304shrext=".so"
16305postinstall_cmds=
16306postuninstall_cmds=
16307finish_cmds=
16308finish_eval=
16309shlibpath_var=
16310shlibpath_overrides_runpath=unknown
16311version_type=none
16312dynamic_linker="$host_os ld.so"
16313sys_lib_dlsearch_path_spec="/lib /usr/lib"
16314if test "$GCC" = yes; then
16315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16316 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16317 # if the path contains ";" then we assume it to be the separator
16318 # otherwise default to the standard path separator (i.e. ":") - it is
16319 # assumed that no part of a normal pathname contains ";" but that should
16320 # okay in the real world where ";" in dirpaths is itself problematic.
16321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16322 else
16323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16324 fi
16325else
16326 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16327fi
16328need_lib_prefix=unknown
16329hardcode_into_libs=no
16330
16331# when you set need_version to no, make sure it does not cause -set_version
16332# flags to be left without arguments
16333need_version=unknown
16334
16335case $host_os in
16336aix3*)
16337 version_type=linux
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16339 shlibpath_var=LIBPATH
16340
16341 # AIX 3 has no versioning support, so we append a major version to the name.
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 ;;
16344
16345aix4* | aix5*)
16346 version_type=linux
16347 need_lib_prefix=no
16348 need_version=no
16349 hardcode_into_libs=yes
16350 if test "$host_cpu" = ia64; then
16351 # AIX 5 supports IA64
16352 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 else
16355 # With GCC up to 2.95.x, collect2 would create an import file
16356 # for dependence libraries. The import file would start with
16357 # the line `#! .'. This would cause the generated library to
16358 # depend on `.', always an invalid library. This was fixed in
16359 # development snapshots of GCC prior to 3.0.
16360 case $host_os in
16361 aix4 | aix4.[01] | aix4.[01].*)
16362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16363 echo ' yes '
16364 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16365 :
16366 else
16367 can_build_shared=no
16368 fi
16369 ;;
16370 esac
16371 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16372 # soname into executable. Probably we can add versioning support to
16373 # collect2, so additional links can be useful in future.
16374 if test "$aix_use_runtimelinking" = yes; then
16375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16376 # instead of lib<name>.a to let people know that these are not
16377 # typical AIX shared libraries.
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 else
16380 # We preserve .a as extension for shared libraries through AIX4.2
16381 # and later when we are not doing run time linking.
16382 library_names_spec='${libname}${release}.a $libname.a'
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 fi
16385 shlibpath_var=LIBPATH
16386 fi
16387 ;;
16388
16389amigaos*)
16390 library_names_spec='$libname.ixlibrary $libname.a'
16391 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16392 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'
16393 ;;
16394
16395beos*)
16396 library_names_spec='${libname}${shared_ext}'
16397 dynamic_linker="$host_os ld.so"
16398 shlibpath_var=LIBRARY_PATH
16399 ;;
16400
16401bsdi4*)
16402 version_type=linux
16403 need_version=no
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16410 # the default ld.so.conf also contains /usr/contrib/lib and
16411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16412 # libtool to hard-code these into programs
16413 ;;
16414
16415cygwin* | mingw* | pw32*)
16416 version_type=windows
16417 shrext=".dll"
16418 need_version=no
16419 need_lib_prefix=no
16420
16421 case $GCC,$host_os in
16422 yes,cygwin* | yes,mingw* | yes,pw32*)
16423 library_names_spec='$libname.dll.a'
16424 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16425 postinstall_cmds='base_file=`basename \${file}`~
16426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16427 dldir=$destdir/`dirname \$dlpath`~
16428 test -d \$dldir || mkdir -p \$dldir~
16429 $install_prog $dir/$dlname \$dldir/$dlname'
16430 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16431 dlpath=$dir/\$dldll~
16432 $rm \$dlpath'
16433 shlibpath_overrides_runpath=yes
16434
16435 case $host_os in
16436 cygwin*)
16437 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16438 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16439 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16440 ;;
16441 mingw*)
16442 # MinGW DLLs use traditional 'lib' prefix
16443 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16444 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16445 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16446 # It is most probably a Windows format PATH printed by
16447 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16448 # path with ; separators, and with drive letters. We can handle the
16449 # drive letters (cygwin fileutils understands them), so leave them,
16450 # especially as we might pass files found there to a mingw objdump,
16451 # which wouldn't understand a cygwinified path. Ahh.
16452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16453 else
16454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16455 fi
16456 ;;
16457 pw32*)
16458 # pw32 DLLs use 'pw' prefix rather than 'lib'
16459 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16460 ;;
16461 esac
16462 ;;
16463
16464 *)
16465 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16466 ;;
16467 esac
16468 dynamic_linker='Win32 ld.exe'
16469 # FIXME: first we should search . and the directory the executable is in
16470 shlibpath_var=PATH
16471 ;;
16472
16473darwin* | rhapsody*)
16474 dynamic_linker="$host_os dyld"
16475 version_type=darwin
16476 need_lib_prefix=no
16477 need_version=no
16478 # FIXME: Relying on posixy $() will cause problems for
16479 # cross-compilation, but unfortunately the echo tests do not
16480 # yet detect zsh echo's removal of \ escapes.
16481 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16482 soname_spec='${libname}${release}${major}$shared_ext'
16483 shlibpath_overrides_runpath=yes
16484 shlibpath_var=DYLD_LIBRARY_PATH
16485 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16486 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16487 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16488 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"`
16489 fi
16490 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16491 ;;
16492
16493dgux*)
16494 version_type=linux
16495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 ;;
16501
16502freebsd1*)
16503 dynamic_linker=no
16504 ;;
16505
16506freebsd*)
16507 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16508 version_type=freebsd-$objformat
16509 case $version_type in
16510 freebsd-elf*)
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16512 need_version=no
16513 need_lib_prefix=no
16514 ;;
16515 freebsd-*)
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16517 need_version=yes
16518 ;;
16519 esac
16520 shlibpath_var=LD_LIBRARY_PATH
16521 case $host_os in
16522 freebsd2*)
16523 shlibpath_overrides_runpath=yes
16524 ;;
16525 freebsd3.01* | freebsdelf3.01*)
16526 shlibpath_overrides_runpath=yes
16527 hardcode_into_libs=yes
16528 ;;
16529 *) # from 3.2 on
16530 shlibpath_overrides_runpath=no
16531 hardcode_into_libs=yes
16532 ;;
16533 esac
16534 ;;
16535
16536gnu*)
16537 version_type=linux
16538 need_lib_prefix=no
16539 need_version=no
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 hardcode_into_libs=yes
16544 ;;
16545
16546hpux9* | hpux10* | hpux11*)
16547 # Give a soname corresponding to the major version so that dld.sl refuses to
16548 # link against other versions.
16549 version_type=sunos
16550 need_lib_prefix=no
16551 need_version=no
16552 case "$host_cpu" in
16553 ia64*)
16554 shrext='.so'
16555 hardcode_into_libs=yes
16556 dynamic_linker="$host_os dld.so"
16557 shlibpath_var=LD_LIBRARY_PATH
16558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560 soname_spec='${libname}${release}${shared_ext}$major'
16561 if test "X$HPUX_IA64_MODE" = X32; then
16562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16563 else
16564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16565 fi
16566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16567 ;;
16568 hppa*64*)
16569 shrext='.sl'
16570 hardcode_into_libs=yes
16571 dynamic_linker="$host_os dld.sl"
16572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16578 ;;
16579 *)
16580 shrext='.sl'
16581 dynamic_linker="$host_os dld.sl"
16582 shlibpath_var=SHLIB_PATH
16583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 ;;
16587 esac
16588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16589 postinstall_cmds='chmod 555 $lib'
16590 ;;
16591
16592irix5* | irix6* | nonstopux*)
16593 case $host_os in
16594 nonstopux*) version_type=nonstopux ;;
16595 *)
16596 if test "$lt_cv_prog_gnu_ld" = yes; then
16597 version_type=linux
16598 else
16599 version_type=irix
16600 fi ;;
16601 esac
16602 need_lib_prefix=no
16603 need_version=no
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16606 case $host_os in
16607 irix5* | nonstopux*)
16608 libsuff= shlibsuff=
16609 ;;
16610 *)
16611 case $LD in # libtool.m4 will add one of these switches to LD
16612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16613 libsuff= shlibsuff= libmagic=32-bit;;
16614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16615 libsuff=32 shlibsuff=N32 libmagic=N32;;
16616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16617 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16618 *) libsuff= shlibsuff= libmagic=never-match;;
16619 esac
16620 ;;
16621 esac
16622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16623 shlibpath_overrides_runpath=no
16624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16626 hardcode_into_libs=yes
16627 ;;
16628
16629# No shared lib support for Linux oldld, aout, or coff.
16630linux*oldld* | linux*aout* | linux*coff*)
16631 dynamic_linker=no
16632 ;;
16633
16634# This must be Linux ELF.
16635linux*)
16636 version_type=linux
16637 need_lib_prefix=no
16638 need_version=no
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 shlibpath_overrides_runpath=no
16644 # This implies no fast_install, which is unacceptable.
16645 # Some rework will be needed to allow for fast_install
16646 # before this can be enabled.
16647 hardcode_into_libs=yes
16648
16649 # We used to test for /lib/ld.so.1 and disable shared libraries on
16650 # powerpc, because MkLinux only supported shared libraries with the
16651 # GNU dynamic linker. Since this was broken with cross compilers,
16652 # most powerpc-linux boxes support dynamic linking these days and
16653 # people can always --disable-shared, the test was removed, and we
16654 # assume the GNU/Linux dynamic linker is in use.
16655 dynamic_linker='GNU/Linux ld.so'
16656 ;;
16657
16658netbsd*)
16659 version_type=sunos
16660 need_lib_prefix=no
16661 need_version=no
16662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16665 dynamic_linker='NetBSD (a.out) ld.so'
16666 else
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16668 soname_spec='${libname}${release}${shared_ext}$major'
16669 dynamic_linker='NetBSD ld.elf_so'
16670 fi
16671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=yes
16673 hardcode_into_libs=yes
16674 ;;
16675
16676newsos6)
16677 version_type=linux
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=yes
16681 ;;
16682
16683nto-qnx)
16684 version_type=linux
16685 need_lib_prefix=no
16686 need_version=no
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath=yes
16691 ;;
16692
16693openbsd*)
16694 version_type=sunos
16695 need_lib_prefix=no
16696 need_version=no
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16701 case $host_os in
16702 openbsd2.[89] | openbsd2.[89].*)
16703 shlibpath_overrides_runpath=no
16704 ;;
16705 *)
16706 shlibpath_overrides_runpath=yes
16707 ;;
16708 esac
16709 else
16710 shlibpath_overrides_runpath=yes
16711 fi
16712 ;;
16713
16714os2*)
16715 libname_spec='$name'
16716 shrext=".dll"
16717 need_lib_prefix=no
16718 library_names_spec='$libname${shared_ext} $libname.a'
16719 dynamic_linker='OS/2 ld.exe'
16720 shlibpath_var=LIBPATH
16721 ;;
16722
16723osf3* | osf4* | osf5*)
16724 version_type=osf
16725 need_lib_prefix=no
16726 need_version=no
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16732 ;;
16733
16734sco3.2v5*)
16735 version_type=osf
16736 soname_spec='${libname}${release}${shared_ext}$major'
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 ;;
16740
16741solaris*)
16742 version_type=linux
16743 need_lib_prefix=no
16744 need_version=no
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16746 soname_spec='${libname}${release}${shared_ext}$major'
16747 shlibpath_var=LD_LIBRARY_PATH
16748 shlibpath_overrides_runpath=yes
16749 hardcode_into_libs=yes
16750 # ldd complains unless libraries are executable
16751 postinstall_cmds='chmod +x $lib'
16752 ;;
16753
16754sunos4*)
16755 version_type=sunos
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=yes
16760 if test "$with_gnu_ld" = yes; then
16761 need_lib_prefix=no
16762 fi
16763 need_version=yes
16764 ;;
16765
16766sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16767 version_type=linux
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769 soname_spec='${libname}${release}${shared_ext}$major'
16770 shlibpath_var=LD_LIBRARY_PATH
16771 case $host_vendor in
16772 sni)
16773 shlibpath_overrides_runpath=no
16774 need_lib_prefix=no
16775 export_dynamic_flag_spec='${wl}-Blargedynsym'
16776 runpath_var=LD_RUN_PATH
16777 ;;
16778 siemens)
16779 need_lib_prefix=no
16780 ;;
16781 motorola)
16782 need_lib_prefix=no
16783 need_version=no
16784 shlibpath_overrides_runpath=no
16785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16786 ;;
16787 esac
16788 ;;
16789
16790sysv4*MP*)
16791 if test -d /usr/nec ;then
16792 version_type=linux
16793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16794 soname_spec='$libname${shared_ext}.$major'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 fi
16797 ;;
16798
16799uts4*)
16800 version_type=linux
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 ;;
16805
16806*)
16807 dynamic_linker=no
16808 ;;
16809esac
16810echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16811echo "${ECHO_T}$dynamic_linker" >&6
16812test "$dynamic_linker" = no && can_build_shared=no
16813
16814if test "x$enable_dlopen" != xyes; then
16815 enable_dlopen=unknown
16816 enable_dlopen_self=unknown
16817 enable_dlopen_self_static=unknown
16818else
16819 lt_cv_dlopen=no
16820 lt_cv_dlopen_libs=
16821
16822 case $host_os in
16823 beos*)
16824 lt_cv_dlopen="load_add_on"
16825 lt_cv_dlopen_libs=
16826 lt_cv_dlopen_self=yes
16827 ;;
16828
16829 mingw* | pw32*)
16830 lt_cv_dlopen="LoadLibrary"
16831 lt_cv_dlopen_libs=
16832 ;;
16833
16834 cygwin*)
16835 lt_cv_dlopen="dlopen"
16836 lt_cv_dlopen_libs=
16837 ;;
16838
16839 darwin*)
16840 # if libdl is installed we need to link against it
16841 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16842echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16843if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845else
16846 ac_check_lib_save_LIBS=$LIBS
16847LIBS="-ldl $LIBS"
16848cat >conftest.$ac_ext <<_ACEOF
16849#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016850/* confdefs.h. */
16851_ACEOF
16852cat confdefs.h >>conftest.$ac_ext
16853cat >>conftest.$ac_ext <<_ACEOF
16854/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016855
16856/* Override any gcc2 internal prototype to avoid an error. */
16857#ifdef __cplusplus
16858extern "C"
16859#endif
16860/* We use char because int might match the return type of a gcc2
16861 builtin and then its argument prototype would still apply. */
16862char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016863int
16864main ()
16865{
16866dlopen ();
16867 ;
16868 return 0;
16869}
16870_ACEOF
16871rm -f conftest.$ac_objext conftest$ac_exeext
16872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16873 (eval $ac_link) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 ac_cv_lib_dl_dlopen=yes
16884else
16885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016886sed 's/^/| /' conftest.$ac_ext >&5
16887
John Criswell47fdd832003-07-14 16:52:07 +000016888ac_cv_lib_dl_dlopen=no
16889fi
16890rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16891LIBS=$ac_check_lib_save_LIBS
16892fi
16893echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16894echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16895if test $ac_cv_lib_dl_dlopen = yes; then
16896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16897else
16898
16899 lt_cv_dlopen="dyld"
16900 lt_cv_dlopen_libs=
16901 lt_cv_dlopen_self=yes
16902
16903fi
16904
16905 ;;
16906
16907 *)
16908 echo "$as_me:$LINENO: checking for shl_load" >&5
16909echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16910if test "${ac_cv_func_shl_load+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912else
16913 cat >conftest.$ac_ext <<_ACEOF
16914#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016915/* confdefs.h. */
16916_ACEOF
16917cat confdefs.h >>conftest.$ac_ext
16918cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016920/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016921 which can conflict with char shl_load (); below.
16922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16923 <limits.h> exists even on freestanding compilers. */
16924#ifdef __STDC__
16925# include <limits.h>
16926#else
16927# include <assert.h>
16928#endif
John Criswell47fdd832003-07-14 16:52:07 +000016929/* Override any gcc2 internal prototype to avoid an error. */
16930#ifdef __cplusplus
16931extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016932{
John Criswell47fdd832003-07-14 16:52:07 +000016933#endif
16934/* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16936char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016937/* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940#if defined (__stub_shl_load) || defined (__stub___shl_load)
16941choke me
16942#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016943char (*f) () = shl_load;
16944#endif
16945#ifdef __cplusplus
16946}
John Criswell47fdd832003-07-14 16:52:07 +000016947#endif
16948
John Criswell0c38eaf2003-09-10 15:17:25 +000016949int
16950main ()
16951{
16952return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext conftest$ac_exeext
16958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -s conftest$ac_exeext'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; }; then
16969 ac_cv_func_shl_load=yes
16970else
16971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016972sed 's/^/| /' conftest.$ac_ext >&5
16973
John Criswell47fdd832003-07-14 16:52:07 +000016974ac_cv_func_shl_load=no
16975fi
16976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16977fi
16978echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16979echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16980if test $ac_cv_func_shl_load = yes; then
16981 lt_cv_dlopen="shl_load"
16982else
16983 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16984echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16985if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 ac_check_lib_save_LIBS=$LIBS
16989LIBS="-ldld $LIBS"
16990cat >conftest.$ac_ext <<_ACEOF
16991#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016992/* confdefs.h. */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016997
16998/* Override any gcc2 internal prototype to avoid an error. */
16999#ifdef __cplusplus
17000extern "C"
17001#endif
17002/* We use char because int might match the return type of a gcc2
17003 builtin and then its argument prototype would still apply. */
17004char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017005int
17006main ()
17007{
17008shl_load ();
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013rm -f conftest.$ac_objext conftest$ac_exeext
17014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -s conftest$ac_exeext'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_cv_lib_dld_shl_load=yes
17026else
17027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017028sed 's/^/| /' conftest.$ac_ext >&5
17029
John Criswell47fdd832003-07-14 16:52:07 +000017030ac_cv_lib_dld_shl_load=no
17031fi
17032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17033LIBS=$ac_check_lib_save_LIBS
17034fi
17035echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17036echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17037if test $ac_cv_lib_dld_shl_load = yes; then
17038 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17039else
17040 echo "$as_me:$LINENO: checking for dlopen" >&5
17041echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17042if test "${ac_cv_func_dlopen+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044else
17045 cat >conftest.$ac_ext <<_ACEOF
17046#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017047/* confdefs.h. */
17048_ACEOF
17049cat confdefs.h >>conftest.$ac_ext
17050cat >>conftest.$ac_ext <<_ACEOF
17051/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017052/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017053 which can conflict with char dlopen (); below.
17054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17055 <limits.h> exists even on freestanding compilers. */
17056#ifdef __STDC__
17057# include <limits.h>
17058#else
17059# include <assert.h>
17060#endif
John Criswell47fdd832003-07-14 16:52:07 +000017061/* Override any gcc2 internal prototype to avoid an error. */
17062#ifdef __cplusplus
17063extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017064{
John Criswell47fdd832003-07-14 16:52:07 +000017065#endif
17066/* We use char because int might match the return type of a gcc2
17067 builtin and then its argument prototype would still apply. */
17068char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017069/* The GNU C library defines this for functions which it implements
17070 to always fail with ENOSYS. Some functions are actually named
17071 something starting with __ and the normal name is an alias. */
17072#if defined (__stub_dlopen) || defined (__stub___dlopen)
17073choke me
17074#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017075char (*f) () = dlopen;
17076#endif
17077#ifdef __cplusplus
17078}
John Criswell47fdd832003-07-14 16:52:07 +000017079#endif
17080
John Criswell0c38eaf2003-09-10 15:17:25 +000017081int
17082main ()
17083{
17084return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017085 ;
17086 return 0;
17087}
17088_ACEOF
17089rm -f conftest.$ac_objext conftest$ac_exeext
17090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17091 (eval $ac_link) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 ac_cv_func_dlopen=yes
17102else
17103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017104sed 's/^/| /' conftest.$ac_ext >&5
17105
John Criswell47fdd832003-07-14 16:52:07 +000017106ac_cv_func_dlopen=no
17107fi
17108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17109fi
17110echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17111echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17112if test $ac_cv_func_dlopen = yes; then
17113 lt_cv_dlopen="dlopen"
17114else
17115 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17116echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17117if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 ac_check_lib_save_LIBS=$LIBS
17121LIBS="-ldl $LIBS"
17122cat >conftest.$ac_ext <<_ACEOF
17123#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017124/* confdefs.h. */
17125_ACEOF
17126cat confdefs.h >>conftest.$ac_ext
17127cat >>conftest.$ac_ext <<_ACEOF
17128/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017129
17130/* Override any gcc2 internal prototype to avoid an error. */
17131#ifdef __cplusplus
17132extern "C"
17133#endif
17134/* We use char because int might match the return type of a gcc2
17135 builtin and then its argument prototype would still apply. */
17136char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017137int
17138main ()
17139{
17140dlopen ();
17141 ;
17142 return 0;
17143}
17144_ACEOF
17145rm -f conftest.$ac_objext conftest$ac_exeext
17146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147 (eval $ac_link) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } &&
17151 { ac_try='test -s conftest$ac_exeext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_lib_dl_dlopen=yes
17158else
17159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017160sed 's/^/| /' conftest.$ac_ext >&5
17161
John Criswell47fdd832003-07-14 16:52:07 +000017162ac_cv_lib_dl_dlopen=no
17163fi
17164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17165LIBS=$ac_check_lib_save_LIBS
17166fi
17167echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17168echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17169if test $ac_cv_lib_dl_dlopen = yes; then
17170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17171else
17172 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17173echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17174if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17176else
17177 ac_check_lib_save_LIBS=$LIBS
17178LIBS="-lsvld $LIBS"
17179cat >conftest.$ac_ext <<_ACEOF
17180#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017181/* confdefs.h. */
17182_ACEOF
17183cat confdefs.h >>conftest.$ac_ext
17184cat >>conftest.$ac_ext <<_ACEOF
17185/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017186
17187/* Override any gcc2 internal prototype to avoid an error. */
17188#ifdef __cplusplus
17189extern "C"
17190#endif
17191/* We use char because int might match the return type of a gcc2
17192 builtin and then its argument prototype would still apply. */
17193char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017194int
17195main ()
17196{
17197dlopen ();
17198 ;
17199 return 0;
17200}
17201_ACEOF
17202rm -f conftest.$ac_objext conftest$ac_exeext
17203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204 (eval $ac_link) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } &&
17208 { ac_try='test -s conftest$ac_exeext'
17209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210 (eval $ac_try) 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_cv_lib_svld_dlopen=yes
17215else
17216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017217sed 's/^/| /' conftest.$ac_ext >&5
17218
John Criswell47fdd832003-07-14 16:52:07 +000017219ac_cv_lib_svld_dlopen=no
17220fi
17221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17222LIBS=$ac_check_lib_save_LIBS
17223fi
17224echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17225echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17226if test $ac_cv_lib_svld_dlopen = yes; then
17227 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17228else
17229 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17230echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17231if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233else
17234 ac_check_lib_save_LIBS=$LIBS
17235LIBS="-ldld $LIBS"
17236cat >conftest.$ac_ext <<_ACEOF
17237#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017238/* confdefs.h. */
17239_ACEOF
17240cat confdefs.h >>conftest.$ac_ext
17241cat >>conftest.$ac_ext <<_ACEOF
17242/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017243
17244/* Override any gcc2 internal prototype to avoid an error. */
17245#ifdef __cplusplus
17246extern "C"
17247#endif
17248/* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17250char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017251int
17252main ()
17253{
17254dld_link ();
17255 ;
17256 return 0;
17257}
17258_ACEOF
17259rm -f conftest.$ac_objext conftest$ac_exeext
17260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261 (eval $ac_link) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -s conftest$ac_exeext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_lib_dld_dld_link=yes
17272else
17273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017274sed 's/^/| /' conftest.$ac_ext >&5
17275
John Criswell47fdd832003-07-14 16:52:07 +000017276ac_cv_lib_dld_dld_link=no
17277fi
17278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17279LIBS=$ac_check_lib_save_LIBS
17280fi
17281echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17282echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17283if test $ac_cv_lib_dld_dld_link = yes; then
17284 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17285fi
17286
17287
17288fi
17289
17290
17291fi
17292
17293
17294fi
17295
17296
17297fi
17298
17299
17300fi
17301
17302 ;;
17303 esac
17304
17305 if test "x$lt_cv_dlopen" != xno; then
17306 enable_dlopen=yes
17307 else
17308 enable_dlopen=no
17309 fi
17310
17311 case $lt_cv_dlopen in
17312 dlopen)
17313 save_CPPFLAGS="$CPPFLAGS"
17314 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17315
17316 save_LDFLAGS="$LDFLAGS"
17317 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17318
17319 save_LIBS="$LIBS"
17320 LIBS="$lt_cv_dlopen_libs $LIBS"
17321
17322 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17323echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17324if test "${lt_cv_dlopen_self+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326else
17327 if test "$cross_compiling" = yes; then :
17328 lt_cv_dlopen_self=cross
17329else
17330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17331 lt_status=$lt_dlunknown
17332 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +000017333#line 17333 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017334#include "confdefs.h"
17335
17336#if HAVE_DLFCN_H
17337#include <dlfcn.h>
17338#endif
17339
17340#include <stdio.h>
17341
17342#ifdef RTLD_GLOBAL
17343# define LT_DLGLOBAL RTLD_GLOBAL
17344#else
17345# ifdef DL_GLOBAL
17346# define LT_DLGLOBAL DL_GLOBAL
17347# else
17348# define LT_DLGLOBAL 0
17349# endif
17350#endif
17351
17352/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17353 find out it does not work in some platform. */
17354#ifndef LT_DLLAZY_OR_NOW
17355# ifdef RTLD_LAZY
17356# define LT_DLLAZY_OR_NOW RTLD_LAZY
17357# else
17358# ifdef DL_LAZY
17359# define LT_DLLAZY_OR_NOW DL_LAZY
17360# else
17361# ifdef RTLD_NOW
17362# define LT_DLLAZY_OR_NOW RTLD_NOW
17363# else
17364# ifdef DL_NOW
17365# define LT_DLLAZY_OR_NOW DL_NOW
17366# else
17367# define LT_DLLAZY_OR_NOW 0
17368# endif
17369# endif
17370# endif
17371# endif
17372#endif
17373
17374#ifdef __cplusplus
17375extern "C" void exit (int);
17376#endif
17377
17378void fnord() { int i=42;}
17379int main ()
17380{
17381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17382 int status = $lt_dlunknown;
17383
17384 if (self)
17385 {
17386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17387 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17388 /* dlclose (self); */
17389 }
17390
17391 exit (status);
17392}
17393EOF
17394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17395 (eval $ac_link) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17399 (./conftest; exit; ) 2>/dev/null
17400 lt_status=$?
17401 case x$lt_status in
17402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17404 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17405 esac
17406 else :
17407 # compilation failed
17408 lt_cv_dlopen_self=no
17409 fi
17410fi
17411rm -fr conftest*
17412
17413
17414fi
17415echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17416echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17417
17418 if test "x$lt_cv_dlopen_self" = xyes; then
17419 LDFLAGS="$LDFLAGS $link_static_flag"
17420 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17421echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17422if test "${lt_cv_dlopen_self_static+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424else
17425 if test "$cross_compiling" = yes; then :
17426 lt_cv_dlopen_self_static=cross
17427else
17428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17429 lt_status=$lt_dlunknown
17430 cat > conftest.$ac_ext <<EOF
John Criswell48e3cb92003-09-12 16:31:43 +000017431#line 17431 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017432#include "confdefs.h"
17433
17434#if HAVE_DLFCN_H
17435#include <dlfcn.h>
17436#endif
17437
17438#include <stdio.h>
17439
17440#ifdef RTLD_GLOBAL
17441# define LT_DLGLOBAL RTLD_GLOBAL
17442#else
17443# ifdef DL_GLOBAL
17444# define LT_DLGLOBAL DL_GLOBAL
17445# else
17446# define LT_DLGLOBAL 0
17447# endif
17448#endif
17449
17450/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17451 find out it does not work in some platform. */
17452#ifndef LT_DLLAZY_OR_NOW
17453# ifdef RTLD_LAZY
17454# define LT_DLLAZY_OR_NOW RTLD_LAZY
17455# else
17456# ifdef DL_LAZY
17457# define LT_DLLAZY_OR_NOW DL_LAZY
17458# else
17459# ifdef RTLD_NOW
17460# define LT_DLLAZY_OR_NOW RTLD_NOW
17461# else
17462# ifdef DL_NOW
17463# define LT_DLLAZY_OR_NOW DL_NOW
17464# else
17465# define LT_DLLAZY_OR_NOW 0
17466# endif
17467# endif
17468# endif
17469# endif
17470#endif
17471
17472#ifdef __cplusplus
17473extern "C" void exit (int);
17474#endif
17475
17476void fnord() { int i=42;}
17477int main ()
17478{
17479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17480 int status = $lt_dlunknown;
17481
17482 if (self)
17483 {
17484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17485 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17486 /* dlclose (self); */
17487 }
17488
17489 exit (status);
17490}
17491EOF
17492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493 (eval $ac_link) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17497 (./conftest; exit; ) 2>/dev/null
17498 lt_status=$?
17499 case x$lt_status in
17500 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17501 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17502 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17503 esac
17504 else :
17505 # compilation failed
17506 lt_cv_dlopen_self_static=no
17507 fi
17508fi
17509rm -fr conftest*
17510
17511
17512fi
17513echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17514echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17515 fi
17516
17517 CPPFLAGS="$save_CPPFLAGS"
17518 LDFLAGS="$save_LDFLAGS"
17519 LIBS="$save_LIBS"
17520 ;;
17521 esac
17522
17523 case $lt_cv_dlopen_self in
17524 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17525 *) enable_dlopen_self=unknown ;;
17526 esac
17527
17528 case $lt_cv_dlopen_self_static in
17529 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17530 *) enable_dlopen_self_static=unknown ;;
17531 esac
17532fi
17533
17534
17535# The else clause should only fire when bootstrapping the
17536# libtool distribution, otherwise you forgot to ship ltmain.sh
17537# with your package, and you will get complaints that there are
17538# no rules to generate ltmain.sh.
17539if test -f "$ltmain"; then
17540 # See if we are running on zsh, and set the options which allow our commands through
17541 # without removal of \ escapes.
17542 if test -n "${ZSH_VERSION+set}" ; then
17543 setopt NO_GLOB_SUBST
17544 fi
17545 # Now quote all the things that may contain metacharacters while being
17546 # careful not to overquote the AC_SUBSTed values. We take copies of the
17547 # variables and quote the copies for generation of the libtool script.
17548 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17549 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17550 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17551 deplibs_check_method reload_flag reload_cmds need_locks \
17552 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17553 lt_cv_sys_global_symbol_to_c_name_address \
17554 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17555 old_postinstall_cmds old_postuninstall_cmds \
17556 compiler_GCJ \
17557 CC_GCJ \
17558 LD_GCJ \
17559 lt_prog_compiler_wl_GCJ \
17560 lt_prog_compiler_pic_GCJ \
17561 lt_prog_compiler_static_GCJ \
17562 lt_prog_compiler_no_builtin_flag_GCJ \
17563 export_dynamic_flag_spec_GCJ \
17564 thread_safe_flag_spec_GCJ \
17565 whole_archive_flag_spec_GCJ \
17566 enable_shared_with_static_runtimes_GCJ \
17567 old_archive_cmds_GCJ \
17568 old_archive_from_new_cmds_GCJ \
17569 predep_objects_GCJ \
17570 postdep_objects_GCJ \
17571 predeps_GCJ \
17572 postdeps_GCJ \
17573 compiler_lib_search_path_GCJ \
17574 archive_cmds_GCJ \
17575 archive_expsym_cmds_GCJ \
17576 postinstall_cmds_GCJ \
17577 postuninstall_cmds_GCJ \
17578 old_archive_from_expsyms_cmds_GCJ \
17579 allow_undefined_flag_GCJ \
17580 no_undefined_flag_GCJ \
17581 export_symbols_cmds_GCJ \
17582 hardcode_libdir_flag_spec_GCJ \
17583 hardcode_libdir_flag_spec_ld_GCJ \
17584 hardcode_libdir_separator_GCJ \
17585 hardcode_automatic_GCJ \
17586 module_cmds_GCJ \
17587 module_expsym_cmds_GCJ \
17588 lt_cv_prog_compiler_c_o_GCJ \
17589 exclude_expsyms_GCJ \
17590 include_expsyms_GCJ; do
17591
17592 case $var in
17593 old_archive_cmds_GCJ | \
17594 old_archive_from_new_cmds_GCJ | \
17595 archive_cmds_GCJ | \
17596 archive_expsym_cmds_GCJ | \
17597 module_cmds_GCJ | \
17598 module_expsym_cmds_GCJ | \
17599 old_archive_from_expsyms_cmds_GCJ | \
17600 export_symbols_cmds_GCJ | \
17601 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17602 postinstall_cmds | postuninstall_cmds | \
17603 old_postinstall_cmds | old_postuninstall_cmds | \
17604 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17605 # Double-quote double-evaled strings.
17606 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17607 ;;
17608 *)
17609 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17610 ;;
17611 esac
17612 done
17613
17614 case $lt_echo in
17615 *'\$0 --fallback-echo"')
17616 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17617 ;;
17618 esac
17619
17620cfgfile="$ofile"
17621
17622 cat <<__EOF__ >> "$cfgfile"
17623# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17624
17625# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17626
17627# Shell to use when invoking shell scripts.
17628SHELL=$lt_SHELL
17629
17630# Whether or not to build shared libraries.
17631build_libtool_libs=$enable_shared
17632
17633# Whether or not to build static libraries.
17634build_old_libs=$enable_static
17635
17636# Whether or not to add -lc for building shared libraries.
17637build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17638
17639# Whether or not to disallow shared libs when runtime libs are static
17640allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17641
17642# Whether or not to optimize for fast installation.
17643fast_install=$enable_fast_install
17644
17645# The host system.
17646host_alias=$host_alias
17647host=$host
17648
17649# An echo program that does not interpret backslashes.
17650echo=$lt_echo
17651
17652# The archiver.
17653AR=$lt_AR
17654AR_FLAGS=$lt_AR_FLAGS
17655
17656# A C compiler.
17657LTCC=$lt_LTCC
17658
17659# A language-specific compiler.
17660CC=$lt_compiler_GCJ
17661
17662# Is the compiler the GNU C compiler?
17663with_gcc=$GCC_GCJ
17664
17665# An ERE matcher.
17666EGREP=$lt_EGREP
17667
17668# The linker used to build libraries.
17669LD=$lt_LD_GCJ
17670
17671# Whether we need hard or soft links.
17672LN_S=$lt_LN_S
17673
17674# A BSD-compatible nm program.
17675NM=$lt_NM
17676
17677# A symbol stripping program
17678STRIP=$STRIP
17679
17680# Used to examine libraries when file_magic_cmd begins "file"
17681MAGIC_CMD=$MAGIC_CMD
17682
17683# Used on cygwin: DLL creation program.
17684DLLTOOL="$DLLTOOL"
17685
17686# Used on cygwin: object dumper.
17687OBJDUMP="$OBJDUMP"
17688
17689# Used on cygwin: assembler.
17690AS="$AS"
17691
17692# The name of the directory that contains temporary libtool files.
17693objdir=$objdir
17694
17695# How to create reloadable object files.
17696reload_flag=$lt_reload_flag
17697reload_cmds=$lt_reload_cmds
17698
17699# How to pass a linker flag through the compiler.
17700wl=$lt_lt_prog_compiler_wl_GCJ
17701
17702# Object file suffix (normally "o").
17703objext="$ac_objext"
17704
17705# Old archive suffix (normally "a").
17706libext="$libext"
17707
17708# Shared library suffix (normally ".so").
17709shrext='$shrext'
17710
17711# Executable file suffix (normally "").
17712exeext="$exeext"
17713
17714# Additional compiler flags for building library objects.
17715pic_flag=$lt_lt_prog_compiler_pic_GCJ
17716pic_mode=$pic_mode
17717
17718# What is the maximum length of a command?
17719max_cmd_len=$lt_cv_sys_max_cmd_len
17720
17721# Does compiler simultaneously support -c and -o options?
17722compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17723
17724# Must we lock files when doing compilation ?
17725need_locks=$lt_need_locks
17726
17727# Do we need the lib prefix for modules?
17728need_lib_prefix=$need_lib_prefix
17729
17730# Do we need a version for libraries?
17731need_version=$need_version
17732
17733# Whether dlopen is supported.
17734dlopen_support=$enable_dlopen
17735
17736# Whether dlopen of programs is supported.
17737dlopen_self=$enable_dlopen_self
17738
17739# Whether dlopen of statically linked programs is supported.
17740dlopen_self_static=$enable_dlopen_self_static
17741
17742# Compiler flag to prevent dynamic linking.
17743link_static_flag=$lt_lt_prog_compiler_static_GCJ
17744
17745# Compiler flag to turn off builtin functions.
17746no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17747
17748# Compiler flag to allow reflexive dlopens.
17749export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17750
17751# Compiler flag to generate shared objects directly from archives.
17752whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17753
17754# Compiler flag to generate thread-safe objects.
17755thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17756
17757# Library versioning type.
17758version_type=$version_type
17759
17760# Format of library name prefix.
17761libname_spec=$lt_libname_spec
17762
17763# List of archive names. First name is the real one, the rest are links.
17764# The last name is the one that the linker finds with -lNAME.
17765library_names_spec=$lt_library_names_spec
17766
17767# The coded name of the library, if different from the real name.
17768soname_spec=$lt_soname_spec
17769
17770# Commands used to build and install an old-style archive.
17771RANLIB=$lt_RANLIB
17772old_archive_cmds=$lt_old_archive_cmds_GCJ
17773old_postinstall_cmds=$lt_old_postinstall_cmds
17774old_postuninstall_cmds=$lt_old_postuninstall_cmds
17775
17776# Create an old-style archive from a shared archive.
17777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17778
17779# Create a temporary old-style archive to link instead of a shared archive.
17780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17781
17782# Commands used to build and install a shared archive.
17783archive_cmds=$lt_archive_cmds_GCJ
17784archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17785postinstall_cmds=$lt_postinstall_cmds
17786postuninstall_cmds=$lt_postuninstall_cmds
17787
17788# Commands used to build a loadable module (assumed same as above if empty)
17789module_cmds=$lt_module_cmds_GCJ
17790module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17791
17792# Commands to strip libraries.
17793old_striplib=$lt_old_striplib
17794striplib=$lt_striplib
17795
17796# Dependencies to place before the objects being linked to create a
17797# shared library.
17798predep_objects=$lt_predep_objects_GCJ
17799
17800# Dependencies to place after the objects being linked to create a
17801# shared library.
17802postdep_objects=$lt_postdep_objects_GCJ
17803
17804# Dependencies to place before the objects being linked to create a
17805# shared library.
17806predeps=$lt_predeps_GCJ
17807
17808# Dependencies to place after the objects being linked to create a
17809# shared library.
17810postdeps=$lt_postdeps_GCJ
17811
17812# The library search path used internally by the compiler when linking
17813# a shared library.
17814compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17815
17816# Method to check whether dependent libraries are shared objects.
17817deplibs_check_method=$lt_deplibs_check_method
17818
17819# Command to use when deplibs_check_method == file_magic.
17820file_magic_cmd=$lt_file_magic_cmd
17821
17822# Flag that allows shared libraries with undefined symbols to be built.
17823allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17824
17825# Flag that forces no undefined symbols.
17826no_undefined_flag=$lt_no_undefined_flag_GCJ
17827
17828# Commands used to finish a libtool library installation in a directory.
17829finish_cmds=$lt_finish_cmds
17830
17831# Same as above, but a single script fragment to be evaled but not shown.
17832finish_eval=$lt_finish_eval
17833
17834# Take the output of nm and produce a listing of raw symbols and C names.
17835global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17836
17837# Transform the output of nm in a proper C declaration
17838global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17839
17840# Transform the output of nm in a C name address pair
17841global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17842
17843# This is the shared library runtime path variable.
17844runpath_var=$runpath_var
17845
17846# This is the shared library path variable.
17847shlibpath_var=$shlibpath_var
17848
17849# Is shlibpath searched before the hard-coded library search path?
17850shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17851
17852# How to hardcode a shared library path into an executable.
17853hardcode_action=$hardcode_action_GCJ
17854
17855# Whether we should hardcode library paths into libraries.
17856hardcode_into_libs=$hardcode_into_libs
17857
17858# Flag to hardcode \$libdir into a binary during linking.
17859# This must work even if \$libdir does not exist.
17860hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17861
17862# If ld is used when linking, flag to hardcode \$libdir into
17863# a binary during linking. This must work even if \$libdir does
17864# not exist.
17865hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17866
17867# Whether we need a single -rpath flag with a separated argument.
17868hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17869
17870# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17871# resulting binary.
17872hardcode_direct=$hardcode_direct_GCJ
17873
17874# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17875# resulting binary.
17876hardcode_minus_L=$hardcode_minus_L_GCJ
17877
17878# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17879# the resulting binary.
17880hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17881
17882# Set to yes if building a shared library automatically hardcodes DIR into the library
17883# and all subsequent libraries and executables linked against it.
17884hardcode_automatic=$hardcode_automatic_GCJ
17885
17886# Variables whose values should be saved in libtool wrapper scripts and
17887# restored at relink time.
17888variables_saved_for_relink="$variables_saved_for_relink"
17889
17890# Whether libtool must link a program against all its dependency libraries.
17891link_all_deplibs=$link_all_deplibs_GCJ
17892
17893# Compile-time system search path for libraries
17894sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17895
17896# Run-time system search path for libraries
17897sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17898
17899# Fix the shell variable \$srcfile for the compiler.
17900fix_srcfile_path="$fix_srcfile_path_GCJ"
17901
17902# Set to yes if exported symbols are required.
17903always_export_symbols=$always_export_symbols_GCJ
17904
17905# The commands to list exported symbols.
17906export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17907
17908# The commands to extract the exported symbol list from a shared archive.
17909extract_expsyms_cmds=$lt_extract_expsyms_cmds
17910
17911# Symbols that should not be listed in the preloaded symbols.
17912exclude_expsyms=$lt_exclude_expsyms_GCJ
17913
17914# Symbols that must always be exported.
17915include_expsyms=$lt_include_expsyms_GCJ
17916
17917# ### END LIBTOOL TAG CONFIG: $tagname
17918
17919__EOF__
17920
17921
17922else
17923 # If there is no Makefile yet, we rely on a make rule to execute
17924 # `config.status --recheck' to rerun these tests and create the
17925 # libtool script then.
17926 test -f Makefile && make "$ltmain"
17927fi
17928
17929
17930ac_ext=c
17931ac_cpp='$CPP $CPPFLAGS'
17932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934ac_compiler_gnu=$ac_cv_c_compiler_gnu
17935
17936CC="$lt_save_CC"
17937
17938 else
17939 tagname=""
17940 fi
17941 ;;
17942
17943 RC)
17944
17945
17946
17947# Source file extension for RC test sources.
17948ac_ext=rc
17949
17950# Object file extension for compiled RC test sources.
17951objext=o
17952objext_RC=$objext
17953
17954# Code to be used in simple compile tests
17955lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17956
17957# Code to be used in simple link tests
17958lt_simple_link_test_code="$lt_simple_compile_test_code"
17959
17960# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17961
17962# If no C compiler was specified, use CC.
17963LTCC=${LTCC-"$CC"}
17964
17965# Allow CC to be a program name with arguments.
17966compiler=$CC
17967
17968
17969# Allow CC to be a program name with arguments.
17970lt_save_CC="$CC"
17971CC=${RC-"windres"}
17972compiler=$CC
17973compiler_RC=$CC
17974lt_cv_prog_compiler_c_o_RC=yes
17975
17976# The else clause should only fire when bootstrapping the
17977# libtool distribution, otherwise you forgot to ship ltmain.sh
17978# with your package, and you will get complaints that there are
17979# no rules to generate ltmain.sh.
17980if test -f "$ltmain"; then
17981 # See if we are running on zsh, and set the options which allow our commands through
17982 # without removal of \ escapes.
17983 if test -n "${ZSH_VERSION+set}" ; then
17984 setopt NO_GLOB_SUBST
17985 fi
17986 # Now quote all the things that may contain metacharacters while being
17987 # careful not to overquote the AC_SUBSTed values. We take copies of the
17988 # variables and quote the copies for generation of the libtool script.
17989 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17990 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17991 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17992 deplibs_check_method reload_flag reload_cmds need_locks \
17993 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17994 lt_cv_sys_global_symbol_to_c_name_address \
17995 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17996 old_postinstall_cmds old_postuninstall_cmds \
17997 compiler_RC \
17998 CC_RC \
17999 LD_RC \
18000 lt_prog_compiler_wl_RC \
18001 lt_prog_compiler_pic_RC \
18002 lt_prog_compiler_static_RC \
18003 lt_prog_compiler_no_builtin_flag_RC \
18004 export_dynamic_flag_spec_RC \
18005 thread_safe_flag_spec_RC \
18006 whole_archive_flag_spec_RC \
18007 enable_shared_with_static_runtimes_RC \
18008 old_archive_cmds_RC \
18009 old_archive_from_new_cmds_RC \
18010 predep_objects_RC \
18011 postdep_objects_RC \
18012 predeps_RC \
18013 postdeps_RC \
18014 compiler_lib_search_path_RC \
18015 archive_cmds_RC \
18016 archive_expsym_cmds_RC \
18017 postinstall_cmds_RC \
18018 postuninstall_cmds_RC \
18019 old_archive_from_expsyms_cmds_RC \
18020 allow_undefined_flag_RC \
18021 no_undefined_flag_RC \
18022 export_symbols_cmds_RC \
18023 hardcode_libdir_flag_spec_RC \
18024 hardcode_libdir_flag_spec_ld_RC \
18025 hardcode_libdir_separator_RC \
18026 hardcode_automatic_RC \
18027 module_cmds_RC \
18028 module_expsym_cmds_RC \
18029 lt_cv_prog_compiler_c_o_RC \
18030 exclude_expsyms_RC \
18031 include_expsyms_RC; do
18032
18033 case $var in
18034 old_archive_cmds_RC | \
18035 old_archive_from_new_cmds_RC | \
18036 archive_cmds_RC | \
18037 archive_expsym_cmds_RC | \
18038 module_cmds_RC | \
18039 module_expsym_cmds_RC | \
18040 old_archive_from_expsyms_cmds_RC | \
18041 export_symbols_cmds_RC | \
18042 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18043 postinstall_cmds | postuninstall_cmds | \
18044 old_postinstall_cmds | old_postuninstall_cmds | \
18045 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18046 # Double-quote double-evaled strings.
18047 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18048 ;;
18049 *)
18050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18051 ;;
18052 esac
18053 done
18054
18055 case $lt_echo in
18056 *'\$0 --fallback-echo"')
18057 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18058 ;;
18059 esac
18060
18061cfgfile="$ofile"
18062
18063 cat <<__EOF__ >> "$cfgfile"
18064# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18065
18066# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18067
18068# Shell to use when invoking shell scripts.
18069SHELL=$lt_SHELL
18070
18071# Whether or not to build shared libraries.
18072build_libtool_libs=$enable_shared
18073
18074# Whether or not to build static libraries.
18075build_old_libs=$enable_static
18076
18077# Whether or not to add -lc for building shared libraries.
18078build_libtool_need_lc=$archive_cmds_need_lc_RC
18079
18080# Whether or not to disallow shared libs when runtime libs are static
18081allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18082
18083# Whether or not to optimize for fast installation.
18084fast_install=$enable_fast_install
18085
18086# The host system.
18087host_alias=$host_alias
18088host=$host
18089
18090# An echo program that does not interpret backslashes.
18091echo=$lt_echo
18092
18093# The archiver.
18094AR=$lt_AR
18095AR_FLAGS=$lt_AR_FLAGS
18096
18097# A C compiler.
18098LTCC=$lt_LTCC
18099
18100# A language-specific compiler.
18101CC=$lt_compiler_RC
18102
18103# Is the compiler the GNU C compiler?
18104with_gcc=$GCC_RC
18105
18106# An ERE matcher.
18107EGREP=$lt_EGREP
18108
18109# The linker used to build libraries.
18110LD=$lt_LD_RC
18111
18112# Whether we need hard or soft links.
18113LN_S=$lt_LN_S
18114
18115# A BSD-compatible nm program.
18116NM=$lt_NM
18117
18118# A symbol stripping program
18119STRIP=$STRIP
18120
18121# Used to examine libraries when file_magic_cmd begins "file"
18122MAGIC_CMD=$MAGIC_CMD
18123
18124# Used on cygwin: DLL creation program.
18125DLLTOOL="$DLLTOOL"
18126
18127# Used on cygwin: object dumper.
18128OBJDUMP="$OBJDUMP"
18129
18130# Used on cygwin: assembler.
18131AS="$AS"
18132
18133# The name of the directory that contains temporary libtool files.
18134objdir=$objdir
18135
18136# How to create reloadable object files.
18137reload_flag=$lt_reload_flag
18138reload_cmds=$lt_reload_cmds
18139
18140# How to pass a linker flag through the compiler.
18141wl=$lt_lt_prog_compiler_wl_RC
18142
18143# Object file suffix (normally "o").
18144objext="$ac_objext"
18145
18146# Old archive suffix (normally "a").
18147libext="$libext"
18148
18149# Shared library suffix (normally ".so").
18150shrext='$shrext'
18151
18152# Executable file suffix (normally "").
18153exeext="$exeext"
18154
18155# Additional compiler flags for building library objects.
18156pic_flag=$lt_lt_prog_compiler_pic_RC
18157pic_mode=$pic_mode
18158
18159# What is the maximum length of a command?
18160max_cmd_len=$lt_cv_sys_max_cmd_len
18161
18162# Does compiler simultaneously support -c and -o options?
18163compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18164
18165# Must we lock files when doing compilation ?
18166need_locks=$lt_need_locks
18167
18168# Do we need the lib prefix for modules?
18169need_lib_prefix=$need_lib_prefix
18170
18171# Do we need a version for libraries?
18172need_version=$need_version
18173
18174# Whether dlopen is supported.
18175dlopen_support=$enable_dlopen
18176
18177# Whether dlopen of programs is supported.
18178dlopen_self=$enable_dlopen_self
18179
18180# Whether dlopen of statically linked programs is supported.
18181dlopen_self_static=$enable_dlopen_self_static
18182
18183# Compiler flag to prevent dynamic linking.
18184link_static_flag=$lt_lt_prog_compiler_static_RC
18185
18186# Compiler flag to turn off builtin functions.
18187no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18188
18189# Compiler flag to allow reflexive dlopens.
18190export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18191
18192# Compiler flag to generate shared objects directly from archives.
18193whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18194
18195# Compiler flag to generate thread-safe objects.
18196thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18197
18198# Library versioning type.
18199version_type=$version_type
18200
18201# Format of library name prefix.
18202libname_spec=$lt_libname_spec
18203
18204# List of archive names. First name is the real one, the rest are links.
18205# The last name is the one that the linker finds with -lNAME.
18206library_names_spec=$lt_library_names_spec
18207
18208# The coded name of the library, if different from the real name.
18209soname_spec=$lt_soname_spec
18210
18211# Commands used to build and install an old-style archive.
18212RANLIB=$lt_RANLIB
18213old_archive_cmds=$lt_old_archive_cmds_RC
18214old_postinstall_cmds=$lt_old_postinstall_cmds
18215old_postuninstall_cmds=$lt_old_postuninstall_cmds
18216
18217# Create an old-style archive from a shared archive.
18218old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18219
18220# Create a temporary old-style archive to link instead of a shared archive.
18221old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18222
18223# Commands used to build and install a shared archive.
18224archive_cmds=$lt_archive_cmds_RC
18225archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18226postinstall_cmds=$lt_postinstall_cmds
18227postuninstall_cmds=$lt_postuninstall_cmds
18228
18229# Commands used to build a loadable module (assumed same as above if empty)
18230module_cmds=$lt_module_cmds_RC
18231module_expsym_cmds=$lt_module_expsym_cmds_RC
18232
18233# Commands to strip libraries.
18234old_striplib=$lt_old_striplib
18235striplib=$lt_striplib
18236
18237# Dependencies to place before the objects being linked to create a
18238# shared library.
18239predep_objects=$lt_predep_objects_RC
18240
18241# Dependencies to place after the objects being linked to create a
18242# shared library.
18243postdep_objects=$lt_postdep_objects_RC
18244
18245# Dependencies to place before the objects being linked to create a
18246# shared library.
18247predeps=$lt_predeps_RC
18248
18249# Dependencies to place after the objects being linked to create a
18250# shared library.
18251postdeps=$lt_postdeps_RC
18252
18253# The library search path used internally by the compiler when linking
18254# a shared library.
18255compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18256
18257# Method to check whether dependent libraries are shared objects.
18258deplibs_check_method=$lt_deplibs_check_method
18259
18260# Command to use when deplibs_check_method == file_magic.
18261file_magic_cmd=$lt_file_magic_cmd
18262
18263# Flag that allows shared libraries with undefined symbols to be built.
18264allow_undefined_flag=$lt_allow_undefined_flag_RC
18265
18266# Flag that forces no undefined symbols.
18267no_undefined_flag=$lt_no_undefined_flag_RC
18268
18269# Commands used to finish a libtool library installation in a directory.
18270finish_cmds=$lt_finish_cmds
18271
18272# Same as above, but a single script fragment to be evaled but not shown.
18273finish_eval=$lt_finish_eval
18274
18275# Take the output of nm and produce a listing of raw symbols and C names.
18276global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18277
18278# Transform the output of nm in a proper C declaration
18279global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18280
18281# Transform the output of nm in a C name address pair
18282global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18283
18284# This is the shared library runtime path variable.
18285runpath_var=$runpath_var
18286
18287# This is the shared library path variable.
18288shlibpath_var=$shlibpath_var
18289
18290# Is shlibpath searched before the hard-coded library search path?
18291shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18292
18293# How to hardcode a shared library path into an executable.
18294hardcode_action=$hardcode_action_RC
18295
18296# Whether we should hardcode library paths into libraries.
18297hardcode_into_libs=$hardcode_into_libs
18298
18299# Flag to hardcode \$libdir into a binary during linking.
18300# This must work even if \$libdir does not exist.
18301hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18302
18303# If ld is used when linking, flag to hardcode \$libdir into
18304# a binary during linking. This must work even if \$libdir does
18305# not exist.
18306hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18307
18308# Whether we need a single -rpath flag with a separated argument.
18309hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18310
18311# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18312# resulting binary.
18313hardcode_direct=$hardcode_direct_RC
18314
18315# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18316# resulting binary.
18317hardcode_minus_L=$hardcode_minus_L_RC
18318
18319# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18320# the resulting binary.
18321hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18322
18323# Set to yes if building a shared library automatically hardcodes DIR into the library
18324# and all subsequent libraries and executables linked against it.
18325hardcode_automatic=$hardcode_automatic_RC
18326
18327# Variables whose values should be saved in libtool wrapper scripts and
18328# restored at relink time.
18329variables_saved_for_relink="$variables_saved_for_relink"
18330
18331# Whether libtool must link a program against all its dependency libraries.
18332link_all_deplibs=$link_all_deplibs_RC
18333
18334# Compile-time system search path for libraries
18335sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18336
18337# Run-time system search path for libraries
18338sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18339
18340# Fix the shell variable \$srcfile for the compiler.
18341fix_srcfile_path="$fix_srcfile_path_RC"
18342
18343# Set to yes if exported symbols are required.
18344always_export_symbols=$always_export_symbols_RC
18345
18346# The commands to list exported symbols.
18347export_symbols_cmds=$lt_export_symbols_cmds_RC
18348
18349# The commands to extract the exported symbol list from a shared archive.
18350extract_expsyms_cmds=$lt_extract_expsyms_cmds
18351
18352# Symbols that should not be listed in the preloaded symbols.
18353exclude_expsyms=$lt_exclude_expsyms_RC
18354
18355# Symbols that must always be exported.
18356include_expsyms=$lt_include_expsyms_RC
18357
18358# ### END LIBTOOL TAG CONFIG: $tagname
18359
18360__EOF__
18361
18362
18363else
18364 # If there is no Makefile yet, we rely on a make rule to execute
18365 # `config.status --recheck' to rerun these tests and create the
18366 # libtool script then.
18367 test -f Makefile && make "$ltmain"
18368fi
18369
18370
18371ac_ext=c
18372ac_cpp='$CPP $CPPFLAGS'
18373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375ac_compiler_gnu=$ac_cv_c_compiler_gnu
18376
18377CC="$lt_save_CC"
18378
18379 ;;
18380
18381 *)
18382 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18383echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18384 { (exit 1); exit 1; }; }
18385 ;;
18386 esac
18387
18388 # Append the new tag name to the list of available tags.
18389 if test -n "$tagname" ; then
18390 available_tags="$available_tags $tagname"
18391 fi
18392 fi
18393 done
18394 IFS="$lt_save_ifs"
18395
18396 # Now substitute the updated list of available tags.
18397 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18398 mv "${ofile}T" "$ofile"
18399 chmod +x "$ofile"
18400 else
18401 rm -f "${ofile}T"
18402 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18403echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18404 { (exit 1); exit 1; }; }
18405 fi
18406fi
John Criswell7a73b802003-06-30 21:59:07 +000018407
18408
18409
18410# This can be used to rebuild libtool when needed
18411LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18412
18413# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018414LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018415
18416# Prevent multiple expansion
18417
18418
18419
John Criswell47fdd832003-07-14 16:52:07 +000018420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
John Criswellde00db22003-08-25 16:49:54 +000018438# Extract the first word of "pwd", so it can be a program name with args.
18439set dummy pwd; ac_word=$2
18440echo "$as_me:$LINENO: checking for $ac_word" >&5
18441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18442if test "${ac_cv_path_RPWD+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444else
18445 case $RPWD in
18446 [\\/]* | ?:[\\/]*)
18447 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18448 ;;
18449 *)
18450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18451for as_dir in $PATH
18452do
18453 IFS=$as_save_IFS
18454 test -z "$as_dir" && as_dir=.
18455 for ac_exec_ext in '' $ac_executable_extensions; do
18456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18457 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18459 break 2
18460 fi
18461done
18462done
18463
18464 ;;
18465esac
18466fi
18467RPWD=$ac_cv_path_RPWD
18468
18469if test -n "$RPWD"; then
18470 echo "$as_me:$LINENO: result: $RPWD" >&5
18471echo "${ECHO_T}$RPWD" >&6
18472else
18473 echo "$as_me:$LINENO: result: no" >&5
18474echo "${ECHO_T}no" >&6
18475fi
18476
John Criswell7a73b802003-06-30 21:59:07 +000018477# Extract the first word of "ar", so it can be a program name with args.
18478set dummy ar; ac_word=$2
18479echo "$as_me:$LINENO: checking for $ac_word" >&5
18480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18481if test "${ac_cv_path_AR+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483else
18484 case $AR in
18485 [\\/]* | ?:[\\/]*)
18486 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18487 ;;
18488 *)
18489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490for as_dir in $PATH
18491do
18492 IFS=$as_save_IFS
18493 test -z "$as_dir" && as_dir=.
18494 for ac_exec_ext in '' $ac_executable_extensions; do
18495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18498 break 2
18499 fi
18500done
18501done
18502
18503 ;;
18504esac
18505fi
18506AR=$ac_cv_path_AR
18507
18508if test -n "$AR"; then
18509 echo "$as_me:$LINENO: result: $AR" >&5
18510echo "${ECHO_T}$AR" >&6
18511else
18512 echo "$as_me:$LINENO: result: no" >&5
18513echo "${ECHO_T}no" >&6
18514fi
18515
18516# Extract the first word of "sed", so it can be a program name with args.
18517set dummy sed; ac_word=$2
18518echo "$as_me:$LINENO: checking for $ac_word" >&5
18519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520if test "${ac_cv_path_SED+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522else
18523 case $SED in
18524 [\\/]* | ?:[\\/]*)
18525 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18526 ;;
18527 *)
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529for as_dir in $PATH
18530do
18531 IFS=$as_save_IFS
18532 test -z "$as_dir" && as_dir=.
18533 for ac_exec_ext in '' $ac_executable_extensions; do
18534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537 break 2
18538 fi
18539done
18540done
18541
18542 ;;
18543esac
18544fi
18545SED=$ac_cv_path_SED
18546
18547if test -n "$SED"; then
18548 echo "$as_me:$LINENO: result: $SED" >&5
18549echo "${ECHO_T}$SED" >&6
18550else
18551 echo "$as_me:$LINENO: result: no" >&5
18552echo "${ECHO_T}no" >&6
18553fi
18554
18555# Extract the first word of "rm", so it can be a program name with args.
18556set dummy rm; ac_word=$2
18557echo "$as_me:$LINENO: checking for $ac_word" >&5
18558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18559if test "${ac_cv_path_RM+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561else
18562 case $RM in
18563 [\\/]* | ?:[\\/]*)
18564 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18565 ;;
18566 *)
18567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18568for as_dir in $PATH
18569do
18570 IFS=$as_save_IFS
18571 test -z "$as_dir" && as_dir=.
18572 for ac_exec_ext in '' $ac_executable_extensions; do
18573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18574 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18576 break 2
18577 fi
18578done
18579done
18580
18581 ;;
18582esac
18583fi
18584RM=$ac_cv_path_RM
18585
18586if test -n "$RM"; then
18587 echo "$as_me:$LINENO: result: $RM" >&5
18588echo "${ECHO_T}$RM" >&6
18589else
18590 echo "$as_me:$LINENO: result: no" >&5
18591echo "${ECHO_T}no" >&6
18592fi
18593
18594# Extract the first word of "echo", so it can be a program name with args.
18595set dummy echo; ac_word=$2
18596echo "$as_me:$LINENO: checking for $ac_word" >&5
18597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18598if test "${ac_cv_path_ECHO+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600else
18601 case $ECHO in
18602 [\\/]* | ?:[\\/]*)
18603 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18604 ;;
18605 *)
18606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607for as_dir in $PATH
18608do
18609 IFS=$as_save_IFS
18610 test -z "$as_dir" && as_dir=.
18611 for ac_exec_ext in '' $ac_executable_extensions; do
18612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18613 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18615 break 2
18616 fi
18617done
18618done
18619
18620 ;;
18621esac
18622fi
18623ECHO=$ac_cv_path_ECHO
18624
18625if test -n "$ECHO"; then
18626 echo "$as_me:$LINENO: result: $ECHO" >&5
18627echo "${ECHO_T}$ECHO" >&6
18628else
18629 echo "$as_me:$LINENO: result: no" >&5
18630echo "${ECHO_T}no" >&6
18631fi
18632
18633# Extract the first word of "mkdir", so it can be a program name with args.
18634set dummy mkdir; ac_word=$2
18635echo "$as_me:$LINENO: checking for $ac_word" >&5
18636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18637if test "${ac_cv_path_MKDIR+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640 case $MKDIR in
18641 [\\/]* | ?:[\\/]*)
18642 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18643 ;;
18644 *)
18645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646for as_dir in $PATH
18647do
18648 IFS=$as_save_IFS
18649 test -z "$as_dir" && as_dir=.
18650 for ac_exec_ext in '' $ac_executable_extensions; do
18651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18652 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18654 break 2
18655 fi
18656done
18657done
18658
18659 ;;
18660esac
18661fi
18662MKDIR=$ac_cv_path_MKDIR
18663
18664if test -n "$MKDIR"; then
18665 echo "$as_me:$LINENO: result: $MKDIR" >&5
18666echo "${ECHO_T}$MKDIR" >&6
18667else
18668 echo "$as_me:$LINENO: result: no" >&5
18669echo "${ECHO_T}no" >&6
18670fi
18671
18672# Extract the first word of "date", so it can be a program name with args.
18673set dummy date; ac_word=$2
18674echo "$as_me:$LINENO: checking for $ac_word" >&5
18675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676if test "${ac_cv_path_DATE+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679 case $DATE in
18680 [\\/]* | ?:[\\/]*)
18681 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18682 ;;
18683 *)
18684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685for as_dir in $PATH
18686do
18687 IFS=$as_save_IFS
18688 test -z "$as_dir" && as_dir=.
18689 for ac_exec_ext in '' $ac_executable_extensions; do
18690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693 break 2
18694 fi
18695done
18696done
18697
18698 ;;
18699esac
18700fi
18701DATE=$ac_cv_path_DATE
18702
18703if test -n "$DATE"; then
18704 echo "$as_me:$LINENO: result: $DATE" >&5
18705echo "${ECHO_T}$DATE" >&6
18706else
18707 echo "$as_me:$LINENO: result: no" >&5
18708echo "${ECHO_T}no" >&6
18709fi
18710
18711# Extract the first word of "mv", so it can be a program name with args.
18712set dummy mv; ac_word=$2
18713echo "$as_me:$LINENO: checking for $ac_word" >&5
18714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18715if test "${ac_cv_path_MV+set}" = set; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
18717else
18718 case $MV in
18719 [\\/]* | ?:[\\/]*)
18720 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18721 ;;
18722 *)
18723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724for as_dir in $PATH
18725do
18726 IFS=$as_save_IFS
18727 test -z "$as_dir" && as_dir=.
18728 for ac_exec_ext in '' $ac_executable_extensions; do
18729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18732 break 2
18733 fi
18734done
18735done
18736
18737 ;;
18738esac
18739fi
18740MV=$ac_cv_path_MV
18741
18742if test -n "$MV"; then
18743 echo "$as_me:$LINENO: result: $MV" >&5
18744echo "${ECHO_T}$MV" >&6
18745else
18746 echo "$as_me:$LINENO: result: no" >&5
18747echo "${ECHO_T}no" >&6
18748fi
18749
18750# Extract the first word of "dot", so it can be a program name with args.
18751set dummy dot; ac_word=$2
18752echo "$as_me:$LINENO: checking for $ac_word" >&5
18753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18754if test "${ac_cv_path_DOT+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18756else
18757 case $DOT in
18758 [\\/]* | ?:[\\/]*)
18759 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18760 ;;
18761 *)
18762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18763for as_dir in $PATH
18764do
18765 IFS=$as_save_IFS
18766 test -z "$as_dir" && as_dir=.
18767 for ac_exec_ext in '' $ac_executable_extensions; do
18768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18769 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18771 break 2
18772 fi
18773done
18774done
18775
18776 ;;
18777esac
18778fi
18779DOT=$ac_cv_path_DOT
18780
18781if test -n "$DOT"; then
18782 echo "$as_me:$LINENO: result: $DOT" >&5
18783echo "${ECHO_T}$DOT" >&6
18784else
18785 echo "$as_me:$LINENO: result: no" >&5
18786echo "${ECHO_T}no" >&6
18787fi
18788
18789# Extract the first word of "etags", so it can be a program name with args.
18790set dummy etags; ac_word=$2
18791echo "$as_me:$LINENO: checking for $ac_word" >&5
18792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18793if test "${ac_cv_path_ETAGS+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795else
18796 case $ETAGS in
18797 [\\/]* | ?:[\\/]*)
18798 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18799 ;;
18800 *)
18801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802for as_dir in $PATH
18803do
18804 IFS=$as_save_IFS
18805 test -z "$as_dir" && as_dir=.
18806 for ac_exec_ext in '' $ac_executable_extensions; do
18807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18808 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18810 break 2
18811 fi
18812done
18813done
18814
18815 ;;
18816esac
18817fi
18818ETAGS=$ac_cv_path_ETAGS
18819
18820if test -n "$ETAGS"; then
18821 echo "$as_me:$LINENO: result: $ETAGS" >&5
18822echo "${ECHO_T}$ETAGS" >&6
18823else
18824 echo "$as_me:$LINENO: result: no" >&5
18825echo "${ECHO_T}no" >&6
18826fi
18827
18828# Extract the first word of "purify", so it can be a program name with args.
18829set dummy purify; ac_word=$2
18830echo "$as_me:$LINENO: checking for $ac_word" >&5
18831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18832if test "${ac_cv_path_PURIFY+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834else
18835 case $PURIFY in
18836 [\\/]* | ?:[\\/]*)
18837 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18838 ;;
18839 *)
18840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841for as_dir in $PATH
18842do
18843 IFS=$as_save_IFS
18844 test -z "$as_dir" && as_dir=.
18845 for ac_exec_ext in '' $ac_executable_extensions; do
18846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18847 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18849 break 2
18850 fi
18851done
18852done
18853
18854 ;;
18855esac
18856fi
18857PURIFY=$ac_cv_path_PURIFY
18858
18859if test -n "$PURIFY"; then
18860 echo "$as_me:$LINENO: result: $PURIFY" >&5
18861echo "${ECHO_T}$PURIFY" >&6
18862else
18863 echo "$as_me:$LINENO: result: no" >&5
18864echo "${ECHO_T}no" >&6
18865fi
18866
John Criswellde00db22003-08-25 16:49:54 +000018867# Extract the first word of "python", so it can be a program name with args.
18868set dummy python; ac_word=$2
18869echo "$as_me:$LINENO: checking for $ac_word" >&5
18870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18871if test "${ac_cv_path_PYTHON+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873else
18874 case $PYTHON in
18875 [\\/]* | ?:[\\/]*)
18876 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18877 ;;
18878 *)
18879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18880for as_dir in $PATH
18881do
18882 IFS=$as_save_IFS
18883 test -z "$as_dir" && as_dir=.
18884 for ac_exec_ext in '' $ac_executable_extensions; do
18885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18886 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18888 break 2
18889 fi
18890done
18891done
18892
18893 ;;
18894esac
18895fi
18896PYTHON=$ac_cv_path_PYTHON
18897
18898if test -n "$PYTHON"; then
18899 echo "$as_me:$LINENO: result: $PYTHON" >&5
18900echo "${ECHO_T}$PYTHON" >&6
18901else
18902 echo "$as_me:$LINENO: result: no" >&5
18903echo "${ECHO_T}no" >&6
18904fi
18905
18906# Extract the first word of "qmtest", so it can be a program name with args.
18907set dummy qmtest; ac_word=$2
18908echo "$as_me:$LINENO: checking for $ac_word" >&5
18909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18910if test "${ac_cv_path_QMTEST+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912else
18913 case $QMTEST in
18914 [\\/]* | ?:[\\/]*)
18915 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18916 ;;
18917 *)
18918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919for as_dir in $PATH
18920do
18921 IFS=$as_save_IFS
18922 test -z "$as_dir" && as_dir=.
18923 for ac_exec_ext in '' $ac_executable_extensions; do
18924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18925 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18927 break 2
18928 fi
18929done
18930done
18931
18932 ;;
18933esac
18934fi
18935QMTEST=$ac_cv_path_QMTEST
18936
18937if test -n "$QMTEST"; then
18938 echo "$as_me:$LINENO: result: $QMTEST" >&5
18939echo "${ECHO_T}$QMTEST" >&6
18940else
18941 echo "$as_me:$LINENO: result: no" >&5
18942echo "${ECHO_T}no" >&6
18943fi
18944
18945
18946pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18947pymajor=`echo $pyversion | cut -d. -f1`
18948pyminor=`echo $pyversion | cut -d. -f2`
18949
18950if test "$pymajor" -ge "2"
18951then
18952 if test "$pymajor" -eq "2"
18953 then
18954 if test "$pyminor" -lt "2"
18955 then
18956 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18957echo "$as_me: error: Python 2.2 or greater required" >&2;}
18958 { (exit 1); exit 1; }; }
18959 fi
18960 fi
18961else
18962 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18963echo "$as_me: error: Python 2.2 or greater required" >&2;}
18964 { (exit 1); exit 1; }; }
18965fi
John Criswell7a73b802003-06-30 21:59:07 +000018966
18967
18968
18969
18970
18971echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18972echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18973if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976 ac_check_lib_save_LIBS=$LIBS
18977LIBS="-lelf $LIBS"
18978cat >conftest.$ac_ext <<_ACEOF
18979#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018980/* confdefs.h. */
18981_ACEOF
18982cat confdefs.h >>conftest.$ac_ext
18983cat >>conftest.$ac_ext <<_ACEOF
18984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018985
18986/* Override any gcc2 internal prototype to avoid an error. */
18987#ifdef __cplusplus
18988extern "C"
18989#endif
18990/* We use char because int might match the return type of a gcc2
18991 builtin and then its argument prototype would still apply. */
18992char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018993int
18994main ()
18995{
18996elf_begin ();
18997 ;
18998 return 0;
18999}
19000_ACEOF
19001rm -f conftest.$ac_objext conftest$ac_exeext
19002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19003 (eval $ac_link) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 ac_cv_lib_elf_elf_begin=yes
19014else
19015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019016sed 's/^/| /' conftest.$ac_ext >&5
19017
John Criswell7a73b802003-06-30 21:59:07 +000019018ac_cv_lib_elf_elf_begin=no
19019fi
19020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19021LIBS=$ac_check_lib_save_LIBS
19022fi
19023echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19024echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19025if test $ac_cv_lib_elf_elf_begin = yes; then
19026 cat >>confdefs.h <<_ACEOF
19027#define HAVE_LIBELF 1
19028_ACEOF
19029
19030 LIBS="-lelf $LIBS"
19031
19032fi
19033
19034
19035echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19036echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19037if test "${ac_cv_search_dlopen+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039else
19040 ac_func_search_save_LIBS=$LIBS
19041ac_cv_search_dlopen=no
19042cat >conftest.$ac_ext <<_ACEOF
19043#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019044/* confdefs.h. */
19045_ACEOF
19046cat confdefs.h >>conftest.$ac_ext
19047cat >>conftest.$ac_ext <<_ACEOF
19048/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019049
19050/* Override any gcc2 internal prototype to avoid an error. */
19051#ifdef __cplusplus
19052extern "C"
19053#endif
19054/* We use char because int might match the return type of a gcc2
19055 builtin and then its argument prototype would still apply. */
19056char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019057int
19058main ()
19059{
19060dlopen ();
19061 ;
19062 return 0;
19063}
19064_ACEOF
19065rm -f conftest.$ac_objext conftest$ac_exeext
19066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
19071 { ac_try='test -s conftest$ac_exeext'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
19077 ac_cv_search_dlopen="none required"
19078else
19079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019080sed 's/^/| /' conftest.$ac_ext >&5
19081
John Criswell7a73b802003-06-30 21:59:07 +000019082fi
19083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19084if test "$ac_cv_search_dlopen" = no; then
19085 for ac_lib in dl; do
19086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19087 cat >conftest.$ac_ext <<_ACEOF
19088#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019089/* confdefs.h. */
19090_ACEOF
19091cat confdefs.h >>conftest.$ac_ext
19092cat >>conftest.$ac_ext <<_ACEOF
19093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019094
19095/* Override any gcc2 internal prototype to avoid an error. */
19096#ifdef __cplusplus
19097extern "C"
19098#endif
19099/* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19101char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019102int
19103main ()
19104{
19105dlopen ();
19106 ;
19107 return 0;
19108}
19109_ACEOF
19110rm -f conftest.$ac_objext conftest$ac_exeext
19111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112 (eval $ac_link) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try='test -s conftest$ac_exeext'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 ac_cv_search_dlopen="-l$ac_lib"
19123break
19124else
19125 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019126sed 's/^/| /' conftest.$ac_ext >&5
19127
John Criswell7a73b802003-06-30 21:59:07 +000019128fi
19129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19130 done
19131fi
19132LIBS=$ac_func_search_save_LIBS
19133fi
19134echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19135echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19136if test "$ac_cv_search_dlopen" != no; then
19137 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19138
19139else
19140 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19141echo "$as_me: error: dlopen() required but not found" >&2;}
19142 { (exit 1); exit 1; }; }
19143fi
19144
19145
19146echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19147echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19148if test "${ac_cv_search_mallinfo+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150else
19151 ac_func_search_save_LIBS=$LIBS
19152ac_cv_search_mallinfo=no
19153cat >conftest.$ac_ext <<_ACEOF
19154#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019160
19161/* Override any gcc2 internal prototype to avoid an error. */
19162#ifdef __cplusplus
19163extern "C"
19164#endif
19165/* We use char because int might match the return type of a gcc2
19166 builtin and then its argument prototype would still apply. */
19167char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019168int
19169main ()
19170{
19171mallinfo ();
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext conftest$ac_exeext
19177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19178 (eval $ac_link) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 ac_cv_search_mallinfo="none required"
19189else
19190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019191sed 's/^/| /' conftest.$ac_ext >&5
19192
John Criswell7a73b802003-06-30 21:59:07 +000019193fi
19194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19195if test "$ac_cv_search_mallinfo" = no; then
19196 for ac_lib in malloc; do
19197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19198 cat >conftest.$ac_ext <<_ACEOF
19199#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019205
19206/* Override any gcc2 internal prototype to avoid an error. */
19207#ifdef __cplusplus
19208extern "C"
19209#endif
19210/* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19212char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019213int
19214main ()
19215{
19216mallinfo ();
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext conftest$ac_exeext
19222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223 (eval $ac_link) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_cv_search_mallinfo="-l$ac_lib"
19234break
19235else
19236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019237sed 's/^/| /' conftest.$ac_ext >&5
19238
John Criswell7a73b802003-06-30 21:59:07 +000019239fi
19240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19241 done
19242fi
19243LIBS=$ac_func_search_save_LIBS
19244fi
19245echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19246echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19247if test "$ac_cv_search_mallinfo" != no; then
19248 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19249 cat >>confdefs.h <<\_ACEOF
19250#define HAVE_MALLINFO 1
19251_ACEOF
19252
19253fi
19254
19255
19256
19257echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19258echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19259if test "${ac_cv_header_stdc+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19261else
19262 cat >conftest.$ac_ext <<_ACEOF
19263#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019264/* confdefs.h. */
19265_ACEOF
19266cat confdefs.h >>conftest.$ac_ext
19267cat >>conftest.$ac_ext <<_ACEOF
19268/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019269#include <stdlib.h>
19270#include <stdarg.h>
19271#include <string.h>
19272#include <float.h>
19273
John Criswell0c38eaf2003-09-10 15:17:25 +000019274int
19275main ()
19276{
19277
19278 ;
19279 return 0;
19280}
John Criswell7a73b802003-06-30 21:59:07 +000019281_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019282rm -f conftest.$ac_objext
19283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19284 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019285 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019287 (exit $ac_status); } &&
19288 { ac_try='test -s conftest.$ac_objext'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019294 ac_cv_header_stdc=yes
19295else
19296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019297sed 's/^/| /' conftest.$ac_ext >&5
19298
19299ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019300fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019301rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019302
19303if test $ac_cv_header_stdc = yes; then
19304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19305 cat >conftest.$ac_ext <<_ACEOF
19306#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019307/* confdefs.h. */
19308_ACEOF
19309cat confdefs.h >>conftest.$ac_ext
19310cat >>conftest.$ac_ext <<_ACEOF
19311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019312#include <string.h>
19313
19314_ACEOF
19315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019316 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019317 :
19318else
19319 ac_cv_header_stdc=no
19320fi
19321rm -f conftest*
19322
19323fi
19324
19325if test $ac_cv_header_stdc = yes; then
19326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19327 cat >conftest.$ac_ext <<_ACEOF
19328#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019329/* confdefs.h. */
19330_ACEOF
19331cat confdefs.h >>conftest.$ac_ext
19332cat >>conftest.$ac_ext <<_ACEOF
19333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019334#include <stdlib.h>
19335
19336_ACEOF
19337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019338 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019339 :
19340else
19341 ac_cv_header_stdc=no
19342fi
19343rm -f conftest*
19344
19345fi
19346
19347if test $ac_cv_header_stdc = yes; then
19348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19349 if test "$cross_compiling" = yes; then
19350 :
19351else
19352 cat >conftest.$ac_ext <<_ACEOF
19353#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019354/* confdefs.h. */
19355_ACEOF
19356cat confdefs.h >>conftest.$ac_ext
19357cat >>conftest.$ac_ext <<_ACEOF
19358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019359#include <ctype.h>
19360#if ((' ' & 0x0FF) == 0x020)
19361# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19362# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19363#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019364# define ISLOWER(c) \
19365 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019366 || ('j' <= (c) && (c) <= 'r') \
19367 || ('s' <= (c) && (c) <= 'z'))
19368# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19369#endif
19370
19371#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19372int
19373main ()
19374{
19375 int i;
19376 for (i = 0; i < 256; i++)
19377 if (XOR (islower (i), ISLOWER (i))
19378 || toupper (i) != TOUPPER (i))
19379 exit(2);
19380 exit (0);
19381}
19382_ACEOF
19383rm -f conftest$ac_exeext
19384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19385 (eval $ac_link) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390 (eval $ac_try) 2>&5
19391 ac_status=$?
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; }; then
19394 :
19395else
19396 echo "$as_me: program exited with status $ac_status" >&5
19397echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019398sed 's/^/| /' conftest.$ac_ext >&5
19399
John Criswell7a73b802003-06-30 21:59:07 +000019400( exit $ac_status )
19401ac_cv_header_stdc=no
19402fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019403rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019404fi
19405fi
19406fi
19407echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19408echo "${ECHO_T}$ac_cv_header_stdc" >&6
19409if test $ac_cv_header_stdc = yes; then
19410
19411cat >>confdefs.h <<\_ACEOF
19412#define STDC_HEADERS 1
19413_ACEOF
19414
19415fi
19416
19417echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19418echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19419if test "${ac_cv_header_sys_wait_h+set}" = set; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19421else
19422 cat >conftest.$ac_ext <<_ACEOF
19423#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019424/* confdefs.h. */
19425_ACEOF
19426cat confdefs.h >>conftest.$ac_ext
19427cat >>conftest.$ac_ext <<_ACEOF
19428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019429#include <sys/types.h>
19430#include <sys/wait.h>
19431#ifndef WEXITSTATUS
19432# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19433#endif
19434#ifndef WIFEXITED
19435# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19436#endif
19437
John Criswell7a73b802003-06-30 21:59:07 +000019438int
19439main ()
19440{
19441 int s;
19442 wait (&s);
19443 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19444 ;
19445 return 0;
19446}
19447_ACEOF
19448rm -f conftest.$ac_objext
19449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19450 (eval $ac_compile) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_cv_header_sys_wait_h=yes
19461else
19462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019463sed 's/^/| /' conftest.$ac_ext >&5
19464
John Criswell7a73b802003-06-30 21:59:07 +000019465ac_cv_header_sys_wait_h=no
19466fi
19467rm -f conftest.$ac_objext conftest.$ac_ext
19468fi
19469echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19470echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19471if test $ac_cv_header_sys_wait_h = yes; then
19472
19473cat >>confdefs.h <<\_ACEOF
19474#define HAVE_SYS_WAIT_H 1
19475_ACEOF
19476
19477fi
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19489do
19490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19491if eval "test \"\${$as_ac_Header+set}\" = set"; then
19492 echo "$as_me:$LINENO: checking for $ac_header" >&5
19493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19494if eval "test \"\${$as_ac_Header+set}\" = set"; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19496fi
19497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19499else
19500 # Is the header compilable?
19501echo "$as_me:$LINENO: checking $ac_header usability" >&5
19502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19503cat >conftest.$ac_ext <<_ACEOF
19504#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019505/* confdefs.h. */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019510$ac_includes_default
19511#include <$ac_header>
19512_ACEOF
19513rm -f conftest.$ac_objext
19514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515 (eval $ac_compile) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -s conftest.$ac_objext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_header_compiler=yes
19526else
19527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019528sed 's/^/| /' conftest.$ac_ext >&5
19529
John Criswell7a73b802003-06-30 21:59:07 +000019530ac_header_compiler=no
19531fi
19532rm -f conftest.$ac_objext conftest.$ac_ext
19533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19534echo "${ECHO_T}$ac_header_compiler" >&6
19535
19536# Is the header present?
19537echo "$as_me:$LINENO: checking $ac_header presence" >&5
19538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19539cat >conftest.$ac_ext <<_ACEOF
19540#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019541/* confdefs.h. */
19542_ACEOF
19543cat confdefs.h >>conftest.$ac_ext
19544cat >>conftest.$ac_ext <<_ACEOF
19545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019546#include <$ac_header>
19547_ACEOF
19548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19550 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019551 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019552 rm -f conftest.er1
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } >/dev/null; then
19556 if test -s conftest.err; then
19557 ac_cpp_err=$ac_c_preproc_warn_flag
19558 else
19559 ac_cpp_err=
19560 fi
19561else
19562 ac_cpp_err=yes
19563fi
19564if test -z "$ac_cpp_err"; then
19565 ac_header_preproc=yes
19566else
19567 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019568sed 's/^/| /' conftest.$ac_ext >&5
19569
John Criswell7a73b802003-06-30 21:59:07 +000019570 ac_header_preproc=no
19571fi
19572rm -f conftest.err conftest.$ac_ext
19573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19574echo "${ECHO_T}$ac_header_preproc" >&6
19575
19576# So? What about this header?
19577case $ac_header_compiler:$ac_header_preproc in
19578 yes:no )
19579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19583 (
19584 cat <<\_ASBOX
19585## ------------------------------------ ##
19586## Report this to bug-autoconf@gnu.org. ##
19587## ------------------------------------ ##
19588_ASBOX
19589 ) |
19590 sed "s/^/$as_me: WARNING: /" >&2
19591 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019592 no:yes )
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19599 (
19600 cat <<\_ASBOX
19601## ------------------------------------ ##
19602## Report this to bug-autoconf@gnu.org. ##
19603## ------------------------------------ ##
19604_ASBOX
19605 ) |
19606 sed "s/^/$as_me: WARNING: /" >&2
19607 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019608esac
19609echo "$as_me:$LINENO: checking for $ac_header" >&5
19610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19611if eval "test \"\${$as_ac_Header+set}\" = set"; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613else
19614 eval "$as_ac_Header=$ac_header_preproc"
19615fi
19616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618
19619fi
19620if test `eval echo '${'$as_ac_Header'}'` = yes; then
19621 cat >>confdefs.h <<_ACEOF
19622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19623_ACEOF
19624
19625fi
19626
19627done
19628
19629
19630
19631
19632
19633
19634for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19635do
19636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19637if eval "test \"\${$as_ac_Header+set}\" = set"; then
19638 echo "$as_me:$LINENO: checking for $ac_header" >&5
19639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19640if eval "test \"\${$as_ac_Header+set}\" = set"; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642fi
19643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19645else
19646 # Is the header compilable?
19647echo "$as_me:$LINENO: checking $ac_header usability" >&5
19648echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19649cat >conftest.$ac_ext <<_ACEOF
19650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019656$ac_includes_default
19657#include <$ac_header>
19658_ACEOF
19659rm -f conftest.$ac_objext
19660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661 (eval $ac_compile) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
19665 { ac_try='test -s conftest.$ac_objext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_header_compiler=yes
19672else
19673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019674sed 's/^/| /' conftest.$ac_ext >&5
19675
John Criswell7a73b802003-06-30 21:59:07 +000019676ac_header_compiler=no
19677fi
19678rm -f conftest.$ac_objext conftest.$ac_ext
19679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19680echo "${ECHO_T}$ac_header_compiler" >&6
19681
19682# Is the header present?
19683echo "$as_me:$LINENO: checking $ac_header presence" >&5
19684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19685cat >conftest.$ac_ext <<_ACEOF
19686#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019692#include <$ac_header>
19693_ACEOF
19694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19696 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019697 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } >/dev/null; then
19702 if test -s conftest.err; then
19703 ac_cpp_err=$ac_c_preproc_warn_flag
19704 else
19705 ac_cpp_err=
19706 fi
19707else
19708 ac_cpp_err=yes
19709fi
19710if test -z "$ac_cpp_err"; then
19711 ac_header_preproc=yes
19712else
19713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019714sed 's/^/| /' conftest.$ac_ext >&5
19715
John Criswell7a73b802003-06-30 21:59:07 +000019716 ac_header_preproc=no
19717fi
19718rm -f conftest.err conftest.$ac_ext
19719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19720echo "${ECHO_T}$ac_header_preproc" >&6
19721
19722# So? What about this header?
19723case $ac_header_compiler:$ac_header_preproc in
19724 yes:no )
19725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19729 (
19730 cat <<\_ASBOX
19731## ------------------------------------ ##
19732## Report this to bug-autoconf@gnu.org. ##
19733## ------------------------------------ ##
19734_ASBOX
19735 ) |
19736 sed "s/^/$as_me: WARNING: /" >&2
19737 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019738 no:yes )
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19745 (
19746 cat <<\_ASBOX
19747## ------------------------------------ ##
19748## Report this to bug-autoconf@gnu.org. ##
19749## ------------------------------------ ##
19750_ASBOX
19751 ) |
19752 sed "s/^/$as_me: WARNING: /" >&2
19753 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019754esac
19755echo "$as_me:$LINENO: checking for $ac_header" >&5
19756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19757if eval "test \"\${$as_ac_Header+set}\" = set"; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759else
19760 eval "$as_ac_Header=$ac_header_preproc"
19761fi
19762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19764
19765fi
19766if test `eval echo '${'$as_ac_Header'}'` = yes; then
19767 cat >>confdefs.h <<_ACEOF
19768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19769_ACEOF
19770
19771fi
19772
19773done
19774
19775
19776
19777
19778for ac_header in dlfcn.h link.h
19779do
19780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19781if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782 echo "$as_me:$LINENO: checking for $ac_header" >&5
19783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19784if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786fi
19787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19789else
19790 # Is the header compilable?
19791echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19793cat >conftest.$ac_ext <<_ACEOF
19794#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019795/* confdefs.h. */
19796_ACEOF
19797cat confdefs.h >>conftest.$ac_ext
19798cat >>conftest.$ac_ext <<_ACEOF
19799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019800$ac_includes_default
19801#include <$ac_header>
19802_ACEOF
19803rm -f conftest.$ac_objext
19804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805 (eval $ac_compile) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 ac_header_compiler=yes
19816else
19817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019818sed 's/^/| /' conftest.$ac_ext >&5
19819
John Criswell7a73b802003-06-30 21:59:07 +000019820ac_header_compiler=no
19821fi
19822rm -f conftest.$ac_objext conftest.$ac_ext
19823echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19824echo "${ECHO_T}$ac_header_compiler" >&6
19825
19826# Is the header present?
19827echo "$as_me:$LINENO: checking $ac_header presence" >&5
19828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19829cat >conftest.$ac_ext <<_ACEOF
19830#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019831/* confdefs.h. */
19832_ACEOF
19833cat confdefs.h >>conftest.$ac_ext
19834cat >>conftest.$ac_ext <<_ACEOF
19835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019836#include <$ac_header>
19837_ACEOF
19838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19840 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019841 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019842 rm -f conftest.er1
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } >/dev/null; then
19846 if test -s conftest.err; then
19847 ac_cpp_err=$ac_c_preproc_warn_flag
19848 else
19849 ac_cpp_err=
19850 fi
19851else
19852 ac_cpp_err=yes
19853fi
19854if test -z "$ac_cpp_err"; then
19855 ac_header_preproc=yes
19856else
19857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019858sed 's/^/| /' conftest.$ac_ext >&5
19859
John Criswell7a73b802003-06-30 21:59:07 +000019860 ac_header_preproc=no
19861fi
19862rm -f conftest.err conftest.$ac_ext
19863echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19864echo "${ECHO_T}$ac_header_preproc" >&6
19865
19866# So? What about this header?
19867case $ac_header_compiler:$ac_header_preproc in
19868 yes:no )
19869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19870echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19873 (
19874 cat <<\_ASBOX
19875## ------------------------------------ ##
19876## Report this to bug-autoconf@gnu.org. ##
19877## ------------------------------------ ##
19878_ASBOX
19879 ) |
19880 sed "s/^/$as_me: WARNING: /" >&2
19881 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019882 no:yes )
19883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19889 (
19890 cat <<\_ASBOX
19891## ------------------------------------ ##
19892## Report this to bug-autoconf@gnu.org. ##
19893## ------------------------------------ ##
19894_ASBOX
19895 ) |
19896 sed "s/^/$as_me: WARNING: /" >&2
19897 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019898esac
19899echo "$as_me:$LINENO: checking for $ac_header" >&5
19900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19901if eval "test \"\${$as_ac_Header+set}\" = set"; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903else
19904 eval "$as_ac_Header=$ac_header_preproc"
19905fi
19906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19908
19909fi
19910if test `eval echo '${'$as_ac_Header'}'` = yes; then
19911 cat >>confdefs.h <<_ACEOF
19912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19913_ACEOF
19914
19915fi
19916
19917done
19918
19919
19920
John Criswell7a73b802003-06-30 21:59:07 +000019921echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19922echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19923if test "${ac_cv_c_const+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925else
19926 cat >conftest.$ac_ext <<_ACEOF
19927#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019933
John Criswell7a73b802003-06-30 21:59:07 +000019934int
19935main ()
19936{
19937/* FIXME: Include the comments suggested by Paul. */
19938#ifndef __cplusplus
19939 /* Ultrix mips cc rejects this. */
19940 typedef int charset[2];
19941 const charset x;
19942 /* SunOS 4.1.1 cc rejects this. */
19943 char const *const *ccp;
19944 char **p;
19945 /* NEC SVR4.0.2 mips cc rejects this. */
19946 struct point {int x, y;};
19947 static struct point const zero = {0,0};
19948 /* AIX XL C 1.02.0.0 rejects this.
19949 It does not let you subtract one const X* pointer from another in
19950 an arm of an if-expression whose if-part is not a constant
19951 expression */
19952 const char *g = "string";
19953 ccp = &g + (g ? g-g : 0);
19954 /* HPUX 7.0 cc rejects these. */
19955 ++ccp;
19956 p = (char**) ccp;
19957 ccp = (char const *const *) p;
19958 { /* SCO 3.2v4 cc rejects this. */
19959 char *t;
19960 char const *s = 0 ? (char *) 0 : (char const *) 0;
19961
19962 *t++ = 0;
19963 }
19964 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19965 int x[] = {25, 17};
19966 const int *foo = &x[0];
19967 ++foo;
19968 }
19969 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19970 typedef const int *iptr;
19971 iptr p = 0;
19972 ++p;
19973 }
19974 { /* AIX XL C 1.02.0.0 rejects this saying
19975 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19976 struct s { int j; const int *ap[3]; };
19977 struct s *b; b->j = 5;
19978 }
19979 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19980 const int foo = 10;
19981 }
19982#endif
19983
19984 ;
19985 return 0;
19986}
19987_ACEOF
19988rm -f conftest.$ac_objext
19989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990 (eval $ac_compile) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_c_const=yes
20001else
20002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020003sed 's/^/| /' conftest.$ac_ext >&5
20004
John Criswell7a73b802003-06-30 21:59:07 +000020005ac_cv_c_const=no
20006fi
20007rm -f conftest.$ac_objext conftest.$ac_ext
20008fi
20009echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20010echo "${ECHO_T}$ac_cv_c_const" >&6
20011if test $ac_cv_c_const = no; then
20012
20013cat >>confdefs.h <<\_ACEOF
20014#define const
20015_ACEOF
20016
20017fi
20018
20019echo "$as_me:$LINENO: checking for inline" >&5
20020echo $ECHO_N "checking for inline... $ECHO_C" >&6
20021if test "${ac_cv_c_inline+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024 ac_cv_c_inline=no
20025for ac_kw in inline __inline__ __inline; do
20026 cat >conftest.$ac_ext <<_ACEOF
20027#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020033#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020034typedef int foo_t;
20035static $ac_kw foo_t static_foo () {return 0; }
20036$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020037#endif
20038
20039_ACEOF
20040rm -f conftest.$ac_objext
20041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20042 (eval $ac_compile) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -s conftest.$ac_objext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20052 ac_cv_c_inline=$ac_kw; break
20053else
20054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020055sed 's/^/| /' conftest.$ac_ext >&5
20056
John Criswell7a73b802003-06-30 21:59:07 +000020057fi
20058rm -f conftest.$ac_objext conftest.$ac_ext
20059done
20060
20061fi
20062echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20063echo "${ECHO_T}$ac_cv_c_inline" >&6
20064case $ac_cv_c_inline in
20065 inline | yes) ;;
20066 no)
20067cat >>confdefs.h <<\_ACEOF
20068#define inline
20069_ACEOF
20070 ;;
20071 *) cat >>confdefs.h <<_ACEOF
20072#define inline $ac_cv_c_inline
20073_ACEOF
20074 ;;
20075esac
20076
20077
20078echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20079echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20080if test "${ac_cv_c_bigendian+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20082else
20083 # See if sys/param.h defines the BYTE_ORDER macro.
20084cat >conftest.$ac_ext <<_ACEOF
20085#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020091#include <sys/types.h>
20092#include <sys/param.h>
20093
John Criswell7a73b802003-06-30 21:59:07 +000020094int
20095main ()
20096{
20097#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20098 bogus endian macros
20099#endif
20100
20101 ;
20102 return 0;
20103}
20104_ACEOF
20105rm -f conftest.$ac_objext
20106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20107 (eval $ac_compile) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
20111 { ac_try='test -s conftest.$ac_objext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 # It does; now see whether it defined to BIG_ENDIAN or not.
20118cat >conftest.$ac_ext <<_ACEOF
20119#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020120/* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020125#include <sys/types.h>
20126#include <sys/param.h>
20127
John Criswell7a73b802003-06-30 21:59:07 +000020128int
20129main ()
20130{
20131#if BYTE_ORDER != BIG_ENDIAN
20132 not big endian
20133#endif
20134
20135 ;
20136 return 0;
20137}
20138_ACEOF
20139rm -f conftest.$ac_objext
20140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -s conftest.$ac_objext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_c_bigendian=yes
20152else
20153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020154sed 's/^/| /' conftest.$ac_ext >&5
20155
John Criswell7a73b802003-06-30 21:59:07 +000020156ac_cv_c_bigendian=no
20157fi
20158rm -f conftest.$ac_objext conftest.$ac_ext
20159else
20160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020161sed 's/^/| /' conftest.$ac_ext >&5
20162
John Criswell7a73b802003-06-30 21:59:07 +000020163# It does not; compile a test program.
20164if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020165 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020166 ac_cv_c_bigendian=unknown
20167 cat >conftest.$ac_ext <<_ACEOF
20168#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020174short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20175short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20176void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20177short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20178short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20179void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020180int
20181main ()
20182{
20183 _ascii (); _ebcdic ();
20184 ;
20185 return 0;
20186}
20187_ACEOF
20188rm -f conftest.$ac_objext
20189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190 (eval $ac_compile) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } &&
20194 { ac_try='test -s conftest.$ac_objext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020200 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020201 ac_cv_c_bigendian=yes
20202fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020203if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020204 if test "$ac_cv_c_bigendian" = unknown; then
20205 ac_cv_c_bigendian=no
20206 else
20207 # finding both strings is unlikely to happen, but who knows?
20208 ac_cv_c_bigendian=unknown
20209 fi
20210fi
20211else
20212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020213sed 's/^/| /' conftest.$ac_ext >&5
20214
John Criswell7a73b802003-06-30 21:59:07 +000020215fi
20216rm -f conftest.$ac_objext conftest.$ac_ext
20217else
20218 cat >conftest.$ac_ext <<_ACEOF
20219#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020220/* confdefs.h. */
20221_ACEOF
20222cat confdefs.h >>conftest.$ac_ext
20223cat >>conftest.$ac_ext <<_ACEOF
20224/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020225int
20226main ()
20227{
20228 /* Are we little or big endian? From Harbison&Steele. */
20229 union
20230 {
20231 long l;
20232 char c[sizeof (long)];
20233 } u;
20234 u.l = 1;
20235 exit (u.c[sizeof (long) - 1] == 1);
20236}
20237_ACEOF
20238rm -f conftest$ac_exeext
20239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20240 (eval $ac_link) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_c_bigendian=no
20250else
20251 echo "$as_me: program exited with status $ac_status" >&5
20252echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020253sed 's/^/| /' conftest.$ac_ext >&5
20254
John Criswell7a73b802003-06-30 21:59:07 +000020255( exit $ac_status )
20256ac_cv_c_bigendian=yes
20257fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020258rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020259fi
20260fi
20261rm -f conftest.$ac_objext conftest.$ac_ext
20262fi
20263echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20264echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20265case $ac_cv_c_bigendian in
20266 yes)
20267 cat >>confdefs.h <<\_ACEOF
20268#define ENDIAN_BIG 1
20269_ACEOF
20270 ;;
20271 no)
20272 cat >>confdefs.h <<\_ACEOF
20273#define ENDIAN_LITTLE 1
20274_ACEOF
20275 ;;
20276 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020277 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020278presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020279echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020280presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20281 { (exit 1); exit 1; }; } ;;
20282esac
20283
20284
20285echo "$as_me:$LINENO: checking for pid_t" >&5
20286echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20287if test "${ac_cv_type_pid_t+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289else
20290 cat >conftest.$ac_ext <<_ACEOF
20291#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020292/* confdefs.h. */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
20296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020297$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020298int
20299main ()
20300{
20301if ((pid_t *) 0)
20302 return 0;
20303if (sizeof (pid_t))
20304 return 0;
20305 ;
20306 return 0;
20307}
20308_ACEOF
20309rm -f conftest.$ac_objext
20310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20311 (eval $ac_compile) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } &&
20315 { ac_try='test -s conftest.$ac_objext'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_cv_type_pid_t=yes
20322else
20323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020324sed 's/^/| /' conftest.$ac_ext >&5
20325
John Criswell7a73b802003-06-30 21:59:07 +000020326ac_cv_type_pid_t=no
20327fi
20328rm -f conftest.$ac_objext conftest.$ac_ext
20329fi
20330echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20331echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20332if test $ac_cv_type_pid_t = yes; then
20333 :
20334else
20335
20336cat >>confdefs.h <<_ACEOF
20337#define pid_t int
20338_ACEOF
20339
20340fi
20341
20342echo "$as_me:$LINENO: checking for size_t" >&5
20343echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20344if test "${ac_cv_type_size_t+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20346else
20347 cat >conftest.$ac_ext <<_ACEOF
20348#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020349/* confdefs.h. */
20350_ACEOF
20351cat confdefs.h >>conftest.$ac_ext
20352cat >>conftest.$ac_ext <<_ACEOF
20353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020354$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020355int
20356main ()
20357{
20358if ((size_t *) 0)
20359 return 0;
20360if (sizeof (size_t))
20361 return 0;
20362 ;
20363 return 0;
20364}
20365_ACEOF
20366rm -f conftest.$ac_objext
20367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20368 (eval $ac_compile) 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -s conftest.$ac_objext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_type_size_t=yes
20379else
20380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020381sed 's/^/| /' conftest.$ac_ext >&5
20382
John Criswell7a73b802003-06-30 21:59:07 +000020383ac_cv_type_size_t=no
20384fi
20385rm -f conftest.$ac_objext conftest.$ac_ext
20386fi
20387echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20388echo "${ECHO_T}$ac_cv_type_size_t" >&6
20389if test $ac_cv_type_size_t = yes; then
20390 :
20391else
20392
20393cat >>confdefs.h <<_ACEOF
20394#define size_t unsigned
20395_ACEOF
20396
20397fi
20398
20399echo "$as_me:$LINENO: checking for int64_t" >&5
20400echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20401if test "${ac_cv_type_int64_t+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20403else
20404 cat >conftest.$ac_ext <<_ACEOF
20405#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020406/* confdefs.h. */
20407_ACEOF
20408cat confdefs.h >>conftest.$ac_ext
20409cat >>conftest.$ac_ext <<_ACEOF
20410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020411$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020412int
20413main ()
20414{
20415if ((int64_t *) 0)
20416 return 0;
20417if (sizeof (int64_t))
20418 return 0;
20419 ;
20420 return 0;
20421}
20422_ACEOF
20423rm -f conftest.$ac_objext
20424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20425 (eval $ac_compile) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -s conftest.$ac_objext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_type_int64_t=yes
20436else
20437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020438sed 's/^/| /' conftest.$ac_ext >&5
20439
John Criswell7a73b802003-06-30 21:59:07 +000020440ac_cv_type_int64_t=no
20441fi
20442rm -f conftest.$ac_objext conftest.$ac_ext
20443fi
20444echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20445echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20446if test $ac_cv_type_int64_t = yes; then
20447
20448cat >>confdefs.h <<_ACEOF
20449#define HAVE_INT64_T 1
20450_ACEOF
20451
20452
20453else
20454 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20455echo "$as_me: error: Type int64_t required but not found" >&2;}
20456 { (exit 1); exit 1; }; }
20457fi
20458
20459echo "$as_me:$LINENO: checking for uint64_t" >&5
20460echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20461if test "${ac_cv_type_uint64_t+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463else
20464 cat >conftest.$ac_ext <<_ACEOF
20465#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020466/* confdefs.h. */
20467_ACEOF
20468cat confdefs.h >>conftest.$ac_ext
20469cat >>conftest.$ac_ext <<_ACEOF
20470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020471$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020472int
20473main ()
20474{
20475if ((uint64_t *) 0)
20476 return 0;
20477if (sizeof (uint64_t))
20478 return 0;
20479 ;
20480 return 0;
20481}
20482_ACEOF
20483rm -f conftest.$ac_objext
20484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485 (eval $ac_compile) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 ac_cv_type_uint64_t=yes
20496else
20497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020498sed 's/^/| /' conftest.$ac_ext >&5
20499
John Criswell7a73b802003-06-30 21:59:07 +000020500ac_cv_type_uint64_t=no
20501fi
20502rm -f conftest.$ac_objext conftest.$ac_ext
20503fi
20504echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20505echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20506if test $ac_cv_type_uint64_t = yes; then
20507
20508cat >>confdefs.h <<_ACEOF
20509#define HAVE_UINT64_T 1
20510_ACEOF
20511
20512
20513else
20514 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20515echo "$as_me: error: Type uint64_t required but not found" >&2;}
20516 { (exit 1); exit 1; }; }
20517fi
20518
20519echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20520echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20521if test "${ac_cv_header_time+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20523else
20524 cat >conftest.$ac_ext <<_ACEOF
20525#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020526/* confdefs.h. */
20527_ACEOF
20528cat confdefs.h >>conftest.$ac_ext
20529cat >>conftest.$ac_ext <<_ACEOF
20530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020531#include <sys/types.h>
20532#include <sys/time.h>
20533#include <time.h>
20534
John Criswell7a73b802003-06-30 21:59:07 +000020535int
20536main ()
20537{
20538if ((struct tm *) 0)
20539return 0;
20540 ;
20541 return 0;
20542}
20543_ACEOF
20544rm -f conftest.$ac_objext
20545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20546 (eval $ac_compile) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
20550 { ac_try='test -s conftest.$ac_objext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_header_time=yes
20557else
20558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020559sed 's/^/| /' conftest.$ac_ext >&5
20560
John Criswell7a73b802003-06-30 21:59:07 +000020561ac_cv_header_time=no
20562fi
20563rm -f conftest.$ac_objext conftest.$ac_ext
20564fi
20565echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20566echo "${ECHO_T}$ac_cv_header_time" >&6
20567if test $ac_cv_header_time = yes; then
20568
20569cat >>confdefs.h <<\_ACEOF
20570#define TIME_WITH_SYS_TIME 1
20571_ACEOF
20572
20573fi
20574
20575echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20576echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20577if test "${ac_cv_struct_tm+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579else
20580 cat >conftest.$ac_ext <<_ACEOF
20581#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020582/* confdefs.h. */
20583_ACEOF
20584cat confdefs.h >>conftest.$ac_ext
20585cat >>conftest.$ac_ext <<_ACEOF
20586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020587#include <sys/types.h>
20588#include <time.h>
20589
John Criswell7a73b802003-06-30 21:59:07 +000020590int
20591main ()
20592{
20593struct tm *tp; tp->tm_sec;
20594 ;
20595 return 0;
20596}
20597_ACEOF
20598rm -f conftest.$ac_objext
20599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600 (eval $ac_compile) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } &&
20604 { ac_try='test -s conftest.$ac_objext'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_cv_struct_tm=time.h
20611else
20612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020613sed 's/^/| /' conftest.$ac_ext >&5
20614
John Criswell7a73b802003-06-30 21:59:07 +000020615ac_cv_struct_tm=sys/time.h
20616fi
20617rm -f conftest.$ac_objext conftest.$ac_ext
20618fi
20619echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20620echo "${ECHO_T}$ac_cv_struct_tm" >&6
20621if test $ac_cv_struct_tm = sys/time.h; then
20622
20623cat >>confdefs.h <<\_ACEOF
20624#define TM_IN_SYS_TIME 1
20625_ACEOF
20626
20627fi
20628
20629
John Criswell7a73b802003-06-30 21:59:07 +000020630echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20631echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20632if test "${ac_cv_cxx_namespaces+set}" = set; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20634else
20635
20636
20637 ac_ext=cc
20638ac_cpp='$CXXCPP $CPPFLAGS'
20639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20642
20643 cat >conftest.$ac_ext <<_ACEOF
20644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020645/* confdefs.h. */
20646_ACEOF
20647cat confdefs.h >>conftest.$ac_ext
20648cat >>conftest.$ac_ext <<_ACEOF
20649/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020650namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020651int
20652main ()
20653{
20654using namespace Outer::Inner; return i;
20655 ;
20656 return 0;
20657}
20658_ACEOF
20659rm -f conftest.$ac_objext
20660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20661 (eval $ac_compile) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
20665 { ac_try='test -s conftest.$ac_objext'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_cxx_namespaces=yes
20672else
20673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020674sed 's/^/| /' conftest.$ac_ext >&5
20675
John Criswell7a73b802003-06-30 21:59:07 +000020676ac_cv_cxx_namespaces=no
20677fi
20678rm -f conftest.$ac_objext conftest.$ac_ext
20679 ac_ext=c
20680ac_cpp='$CPP $CPPFLAGS'
20681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20683ac_compiler_gnu=$ac_cv_c_compiler_gnu
20684
20685
20686fi
20687echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20688echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20689if test "$ac_cv_cxx_namespaces" = yes; then
20690
20691cat >>confdefs.h <<\_ACEOF
20692#define HAVE_NAMESPACES
20693_ACEOF
20694
20695fi
20696
20697echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20698echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20699if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20701else
20702
20703
20704
20705 ac_ext=cc
20706ac_cpp='$CXXCPP $CPPFLAGS'
20707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20710
20711 cat >conftest.$ac_ext <<_ACEOF
20712#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020713/* confdefs.h. */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020718#include <ext/hash_map>
20719#ifdef HAVE_NAMESPACES
20720using namespace std;
20721#endif
John Criswell7a73b802003-06-30 21:59:07 +000020722int
20723main ()
20724{
20725hash_map<int, int> t; return 0;
20726 ;
20727 return 0;
20728}
20729_ACEOF
20730rm -f conftest.$ac_objext
20731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732 (eval $ac_compile) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
20736 { ac_try='test -s conftest.$ac_objext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_cxx_have_ext_hash_map=std
20743else
20744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020745sed 's/^/| /' conftest.$ac_ext >&5
20746
John Criswell7a73b802003-06-30 21:59:07 +000020747ac_cv_cxx_have_ext_hash_map=no
20748fi
20749rm -f conftest.$ac_objext conftest.$ac_ext
20750 cat >conftest.$ac_ext <<_ACEOF
20751#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020752/* confdefs.h. */
20753_ACEOF
20754cat confdefs.h >>conftest.$ac_ext
20755cat >>conftest.$ac_ext <<_ACEOF
20756/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020757#include <ext/hash_map>
20758#ifdef HAVE_NAMESPACES
20759using namespace __gnu_cxx;
20760#endif
John Criswell7a73b802003-06-30 21:59:07 +000020761int
20762main ()
20763{
20764hash_map<int, int> t; return 0;
20765 ;
20766 return 0;
20767}
20768_ACEOF
20769rm -f conftest.$ac_objext
20770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20771 (eval $ac_compile) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } &&
20775 { ac_try='test -s conftest.$ac_objext'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 ac_cv_cxx_have_ext_hash_map=gnu
20782else
20783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020784sed 's/^/| /' conftest.$ac_ext >&5
20785
John Criswell7a73b802003-06-30 21:59:07 +000020786ac_cv_cxx_have_ext_hash_map=no
20787fi
20788rm -f conftest.$ac_objext conftest.$ac_ext
20789 ac_ext=c
20790ac_cpp='$CPP $CPPFLAGS'
20791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793ac_compiler_gnu=$ac_cv_c_compiler_gnu
20794
20795
20796fi
20797echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20798echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20799if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20800
20801cat >>confdefs.h <<\_ACEOF
20802#define HAVE_STD_EXT_HASH_MAP
20803_ACEOF
20804
20805fi
20806if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20807
20808cat >>confdefs.h <<\_ACEOF
20809#define HAVE_GNU_EXT_HASH_MAP
20810_ACEOF
20811
20812fi
20813
20814echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20815echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20816if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818else
20819
20820
20821
20822 ac_ext=cc
20823ac_cpp='$CXXCPP $CPPFLAGS'
20824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20827
20828 cat >conftest.$ac_ext <<_ACEOF
20829#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020830/* confdefs.h. */
20831_ACEOF
20832cat confdefs.h >>conftest.$ac_ext
20833cat >>conftest.$ac_ext <<_ACEOF
20834/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020835#include <ext/hash_set>
20836#ifdef HAVE_NAMESPACES
20837using namespace std;
20838#endif
John Criswell7a73b802003-06-30 21:59:07 +000020839int
20840main ()
20841{
20842hash_set<int> t; return 0;
20843 ;
20844 return 0;
20845}
20846_ACEOF
20847rm -f conftest.$ac_objext
20848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849 (eval $ac_compile) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
20853 { ac_try='test -s conftest.$ac_objext'
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; }; then
20859 ac_cv_cxx_have_ext_hash_set=std
20860else
20861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020862sed 's/^/| /' conftest.$ac_ext >&5
20863
John Criswell7a73b802003-06-30 21:59:07 +000020864ac_cv_cxx_have_ext_hash_set=no
20865fi
20866rm -f conftest.$ac_objext conftest.$ac_ext
20867 cat >conftest.$ac_ext <<_ACEOF
20868#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020869/* confdefs.h. */
20870_ACEOF
20871cat confdefs.h >>conftest.$ac_ext
20872cat >>conftest.$ac_ext <<_ACEOF
20873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020874#include <ext/hash_set>
20875#ifdef HAVE_NAMESPACES
20876using namespace __gnu_cxx;
20877#endif
John Criswell7a73b802003-06-30 21:59:07 +000020878int
20879main ()
20880{
20881hash_set<int> t; return 0;
20882 ;
20883 return 0;
20884}
20885_ACEOF
20886rm -f conftest.$ac_objext
20887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888 (eval $ac_compile) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } &&
20892 { ac_try='test -s conftest.$ac_objext'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 ac_cv_cxx_have_ext_hash_set=gnu
20899else
20900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020901sed 's/^/| /' conftest.$ac_ext >&5
20902
John Criswell7a73b802003-06-30 21:59:07 +000020903ac_cv_cxx_have_ext_hash_set=no
20904fi
20905rm -f conftest.$ac_objext conftest.$ac_ext
20906 ac_ext=c
20907ac_cpp='$CPP $CPPFLAGS'
20908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910ac_compiler_gnu=$ac_cv_c_compiler_gnu
20911
20912
20913fi
20914echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20915echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20916if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20917
20918cat >>confdefs.h <<\_ACEOF
20919#define HAVE_STD_EXT_HASH_SET
20920_ACEOF
20921
20922fi
20923if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20924
20925cat >>confdefs.h <<\_ACEOF
20926#define HAVE_GNU_EXT_HASH_SET
20927_ACEOF
20928
20929fi
20930
20931echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20932echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20933if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935else
20936
20937
20938
20939 ac_ext=cc
20940ac_cpp='$CXXCPP $CPPFLAGS'
20941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20944
20945 cat >conftest.$ac_ext <<_ACEOF
20946#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020947/* confdefs.h. */
20948_ACEOF
20949cat confdefs.h >>conftest.$ac_ext
20950cat >>conftest.$ac_ext <<_ACEOF
20951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020952#include <ext/slist>
20953#ifdef HAVE_NAMESPACES
20954using namespace std;
20955#endif
John Criswell7a73b802003-06-30 21:59:07 +000020956int
20957main ()
20958{
20959slist<int> s; return 0;
20960 ;
20961 return 0;
20962}
20963_ACEOF
20964rm -f conftest.$ac_objext
20965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20966 (eval $ac_compile) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } &&
20970 { ac_try='test -s conftest.$ac_objext'
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 ac_cv_cxx_have_ext_slist=std
20977else
20978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020979sed 's/^/| /' conftest.$ac_ext >&5
20980
John Criswell7a73b802003-06-30 21:59:07 +000020981ac_cv_cxx_have_ext_slist=no
20982fi
20983rm -f conftest.$ac_objext conftest.$ac_ext
20984 cat >conftest.$ac_ext <<_ACEOF
20985#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020986/* confdefs.h. */
20987_ACEOF
20988cat confdefs.h >>conftest.$ac_ext
20989cat >>conftest.$ac_ext <<_ACEOF
20990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020991#include <ext/slist>
20992#ifdef HAVE_NAMESPACES
20993using namespace __gnu_cxx;
20994#endif
John Criswell7a73b802003-06-30 21:59:07 +000020995int
20996main ()
20997{
20998slist<int> s; return 0;
20999 ;
21000 return 0;
21001}
21002_ACEOF
21003rm -f conftest.$ac_objext
21004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005 (eval $ac_compile) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -s conftest.$ac_objext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_cxx_have_ext_slist=gnu
21016else
21017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021018sed 's/^/| /' conftest.$ac_ext >&5
21019
John Criswell7a73b802003-06-30 21:59:07 +000021020ac_cv_cxx_have_ext_slist=no
21021fi
21022rm -f conftest.$ac_objext conftest.$ac_ext
21023
21024 ac_ext=c
21025ac_cpp='$CPP $CPPFLAGS'
21026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_c_compiler_gnu
21029
21030
21031fi
21032echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21033echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21034if test "$ac_cv_cxx_have_ext_slist" = std; then
21035
21036cat >>confdefs.h <<\_ACEOF
21037#define HAVE_EXT_SLIST std
21038_ACEOF
21039
21040fi
21041if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21042
21043cat >>confdefs.h <<\_ACEOF
21044#define HAVE_EXT_SLIST gnu
21045_ACEOF
21046
21047fi
21048
21049echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21050echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21051if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053else
21054
21055
21056
21057 ac_ext=cc
21058ac_cpp='$CXXCPP $CPPFLAGS'
21059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21062
21063 cat >conftest.$ac_ext <<_ACEOF
21064#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021065/* confdefs.h. */
21066_ACEOF
21067cat confdefs.h >>conftest.$ac_ext
21068cat >>conftest.$ac_ext <<_ACEOF
21069/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021070#include <iterator>
21071#ifdef HAVE_NAMESPACES
21072using namespace std;
21073#endif
John Criswell7a73b802003-06-30 21:59:07 +000021074int
21075main ()
21076{
21077iterator<int,int,int> t; return 0;
21078 ;
21079 return 0;
21080}
21081_ACEOF
21082rm -f conftest.$ac_objext
21083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21084 (eval $ac_compile) 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } &&
21088 { ac_try='test -s conftest.$ac_objext'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 ac_cv_cxx_have_std_iterator=yes
21095else
21096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021097sed 's/^/| /' conftest.$ac_ext >&5
21098
John Criswell7a73b802003-06-30 21:59:07 +000021099ac_cv_cxx_have_std_iterator=no
21100fi
21101rm -f conftest.$ac_objext conftest.$ac_ext
21102 ac_ext=c
21103ac_cpp='$CPP $CPPFLAGS'
21104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106ac_compiler_gnu=$ac_cv_c_compiler_gnu
21107
21108
21109fi
21110echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21111echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21112if test "$ac_cv_cxx_have_std_iterator" = yes; then
21113
21114cat >>confdefs.h <<\_ACEOF
21115#define HAVE_STD_ITERATOR
21116_ACEOF
21117
21118fi
21119
21120echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21121echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21122if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21124else
21125
21126
21127
21128 ac_ext=cc
21129ac_cpp='$CXXCPP $CPPFLAGS'
21130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21133
21134 cat >conftest.$ac_ext <<_ACEOF
21135#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021136/* confdefs.h. */
21137_ACEOF
21138cat confdefs.h >>conftest.$ac_ext
21139cat >>conftest.$ac_ext <<_ACEOF
21140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021141#include <iterator>
21142#ifdef HAVE_NAMESPACES
21143using namespace std;
21144#endif
John Criswell7a73b802003-06-30 21:59:07 +000021145int
21146main ()
21147{
John Criswellc78022e2003-07-29 19:11:58 +000021148bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021149 ;
21150 return 0;
21151}
21152_ACEOF
21153rm -f conftest.$ac_objext
21154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21155 (eval $ac_compile) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -s conftest.$ac_objext'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; }; then
21165 ac_cv_cxx_have_bi_iterator=yes
21166else
21167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021168sed 's/^/| /' conftest.$ac_ext >&5
21169
John Criswell7a73b802003-06-30 21:59:07 +000021170ac_cv_cxx_have_bi_iterator=no
21171fi
21172rm -f conftest.$ac_objext conftest.$ac_ext
21173 ac_ext=c
21174ac_cpp='$CPP $CPPFLAGS'
21175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177ac_compiler_gnu=$ac_cv_c_compiler_gnu
21178
21179
21180fi
21181echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21182echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21183if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21184
21185cat >>confdefs.h <<\_ACEOF
21186#define HAVE_BI_ITERATOR
21187_ACEOF
21188
21189fi
21190
21191echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21192echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21193if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195else
21196
21197
21198
21199 ac_ext=cc
21200ac_cpp='$CXXCPP $CPPFLAGS'
21201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21204
21205 cat >conftest.$ac_ext <<_ACEOF
21206#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021207/* confdefs.h. */
21208_ACEOF
21209cat confdefs.h >>conftest.$ac_ext
21210cat >>conftest.$ac_ext <<_ACEOF
21211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021212#include <iterator>
21213#ifdef HAVE_NAMESPACES
21214using namespace std;
21215#endif
John Criswell7a73b802003-06-30 21:59:07 +000021216int
21217main ()
21218{
John Criswellc78022e2003-07-29 19:11:58 +000021219forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021220 ;
21221 return 0;
21222}
21223_ACEOF
21224rm -f conftest.$ac_objext
21225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226 (eval $ac_compile) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -s conftest.$ac_objext'
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; }; then
21236 ac_cv_cxx_have_fwd_iterator=yes
21237else
21238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021239sed 's/^/| /' conftest.$ac_ext >&5
21240
John Criswell7a73b802003-06-30 21:59:07 +000021241ac_cv_cxx_have_fwd_iterator=no
21242fi
21243rm -f conftest.$ac_objext conftest.$ac_ext
21244 ac_ext=c
21245ac_cpp='$CPP $CPPFLAGS'
21246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21248ac_compiler_gnu=$ac_cv_c_compiler_gnu
21249
21250
21251fi
21252echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21253echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21254if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21255
21256cat >>confdefs.h <<\_ACEOF
21257#define HAVE_FWD_ITERATOR
21258_ACEOF
21259
21260fi
21261
21262
21263# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21264# for constant arguments. Useless!
21265echo "$as_me:$LINENO: checking for working alloca.h" >&5
21266echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21267if test "${ac_cv_working_alloca_h+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21269else
21270 cat >conftest.$ac_ext <<_ACEOF
21271#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021272/* confdefs.h. */
21273_ACEOF
21274cat confdefs.h >>conftest.$ac_ext
21275cat >>conftest.$ac_ext <<_ACEOF
21276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021277#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021278int
21279main ()
21280{
21281char *p = (char *) alloca (2 * sizeof (int));
21282 ;
21283 return 0;
21284}
21285_ACEOF
21286rm -f conftest.$ac_objext conftest$ac_exeext
21287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21288 (eval $ac_link) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } &&
21292 { ac_try='test -s conftest$ac_exeext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 ac_cv_working_alloca_h=yes
21299else
21300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021301sed 's/^/| /' conftest.$ac_ext >&5
21302
John Criswell7a73b802003-06-30 21:59:07 +000021303ac_cv_working_alloca_h=no
21304fi
21305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21306fi
21307echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21308echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21309if test $ac_cv_working_alloca_h = yes; then
21310
21311cat >>confdefs.h <<\_ACEOF
21312#define HAVE_ALLOCA_H 1
21313_ACEOF
21314
21315fi
21316
21317echo "$as_me:$LINENO: checking for alloca" >&5
21318echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21319if test "${ac_cv_func_alloca_works+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21321else
21322 cat >conftest.$ac_ext <<_ACEOF
21323#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021324/* confdefs.h. */
21325_ACEOF
21326cat confdefs.h >>conftest.$ac_ext
21327cat >>conftest.$ac_ext <<_ACEOF
21328/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021329#ifdef __GNUC__
21330# define alloca __builtin_alloca
21331#else
21332# ifdef _MSC_VER
21333# include <malloc.h>
21334# define alloca _alloca
21335# else
21336# if HAVE_ALLOCA_H
21337# include <alloca.h>
21338# else
21339# ifdef _AIX
21340 #pragma alloca
21341# else
21342# ifndef alloca /* predefined by HP cc +Olibcalls */
21343char *alloca ();
21344# endif
21345# endif
21346# endif
21347# endif
21348#endif
21349
John Criswell7a73b802003-06-30 21:59:07 +000021350int
21351main ()
21352{
21353char *p = (char *) alloca (1);
21354 ;
21355 return 0;
21356}
21357_ACEOF
21358rm -f conftest.$ac_objext conftest$ac_exeext
21359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360 (eval $ac_link) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -s conftest$ac_exeext'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370 ac_cv_func_alloca_works=yes
21371else
21372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021373sed 's/^/| /' conftest.$ac_ext >&5
21374
John Criswell7a73b802003-06-30 21:59:07 +000021375ac_cv_func_alloca_works=no
21376fi
21377rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21378fi
21379echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21380echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21381
21382if test $ac_cv_func_alloca_works = yes; then
21383
21384cat >>confdefs.h <<\_ACEOF
21385#define HAVE_ALLOCA 1
21386_ACEOF
21387
21388else
21389 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21390# that cause trouble. Some versions do not even contain alloca or
21391# contain a buggy version. If you still want to use their alloca,
21392# use ar to extract alloca.o from them instead of compiling alloca.c.
21393
21394ALLOCA=alloca.$ac_objext
21395
21396cat >>confdefs.h <<\_ACEOF
21397#define C_ALLOCA 1
21398_ACEOF
21399
21400
21401echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21402echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21403if test "${ac_cv_os_cray+set}" = set; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21405else
21406 cat >conftest.$ac_ext <<_ACEOF
21407#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021408/* confdefs.h. */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021413#if defined(CRAY) && ! defined(CRAY2)
21414webecray
21415#else
21416wenotbecray
21417#endif
21418
21419_ACEOF
21420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021421 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021422 ac_cv_os_cray=yes
21423else
21424 ac_cv_os_cray=no
21425fi
21426rm -f conftest*
21427
21428fi
21429echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21430echo "${ECHO_T}$ac_cv_os_cray" >&6
21431if test $ac_cv_os_cray = yes; then
21432 for ac_func in _getb67 GETB67 getb67; do
21433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21434echo "$as_me:$LINENO: checking for $ac_func" >&5
21435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21436if eval "test \"\${$as_ac_var+set}\" = set"; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438else
21439 cat >conftest.$ac_ext <<_ACEOF
21440#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021441/* confdefs.h. */
21442_ACEOF
21443cat confdefs.h >>conftest.$ac_ext
21444cat >>conftest.$ac_ext <<_ACEOF
21445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021446/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021447 which can conflict with char $ac_func (); below.
21448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21449 <limits.h> exists even on freestanding compilers. */
21450#ifdef __STDC__
21451# include <limits.h>
21452#else
21453# include <assert.h>
21454#endif
John Criswell7a73b802003-06-30 21:59:07 +000021455/* Override any gcc2 internal prototype to avoid an error. */
21456#ifdef __cplusplus
21457extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021458{
John Criswell7a73b802003-06-30 21:59:07 +000021459#endif
21460/* We use char because int might match the return type of a gcc2
21461 builtin and then its argument prototype would still apply. */
21462char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021463/* The GNU C library defines this for functions which it implements
21464 to always fail with ENOSYS. Some functions are actually named
21465 something starting with __ and the normal name is an alias. */
21466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21467choke me
21468#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021469char (*f) () = $ac_func;
21470#endif
21471#ifdef __cplusplus
21472}
John Criswell7a73b802003-06-30 21:59:07 +000021473#endif
21474
John Criswell0c38eaf2003-09-10 15:17:25 +000021475int
21476main ()
21477{
21478return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021479 ;
21480 return 0;
21481}
21482_ACEOF
21483rm -f conftest.$ac_objext conftest$ac_exeext
21484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21485 (eval $ac_link) 2>&5
21486 ac_status=$?
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
21489 { ac_try='test -s conftest$ac_exeext'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 eval "$as_ac_var=yes"
21496else
21497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021498sed 's/^/| /' conftest.$ac_ext >&5
21499
John Criswell7a73b802003-06-30 21:59:07 +000021500eval "$as_ac_var=no"
21501fi
21502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21503fi
21504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21505echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21506if test `eval echo '${'$as_ac_var'}'` = yes; then
21507
21508cat >>confdefs.h <<_ACEOF
21509#define CRAY_STACKSEG_END $ac_func
21510_ACEOF
21511
21512 break
21513fi
21514
21515 done
21516fi
21517
21518echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21519echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21520if test "${ac_cv_c_stack_direction+set}" = set; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21522else
21523 if test "$cross_compiling" = yes; then
21524 ac_cv_c_stack_direction=0
21525else
21526 cat >conftest.$ac_ext <<_ACEOF
21527#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021528/* confdefs.h. */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021533int
21534find_stack_direction ()
21535{
21536 static char *addr = 0;
21537 auto char dummy;
21538 if (addr == 0)
21539 {
21540 addr = &dummy;
21541 return find_stack_direction ();
21542 }
21543 else
21544 return (&dummy > addr) ? 1 : -1;
21545}
21546
21547int
21548main ()
21549{
21550 exit (find_stack_direction () < 0);
21551}
21552_ACEOF
21553rm -f conftest$ac_exeext
21554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_cv_c_stack_direction=1
21565else
21566 echo "$as_me: program exited with status $ac_status" >&5
21567echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021568sed 's/^/| /' conftest.$ac_ext >&5
21569
John Criswell7a73b802003-06-30 21:59:07 +000021570( exit $ac_status )
21571ac_cv_c_stack_direction=-1
21572fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021573rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021574fi
21575fi
21576echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21577echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21578
21579cat >>confdefs.h <<_ACEOF
21580#define STACK_DIRECTION $ac_cv_c_stack_direction
21581_ACEOF
21582
21583
21584fi
21585
21586if test $ac_cv_c_compiler_gnu = yes; then
21587 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21588echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21589if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21591else
21592 ac_pattern="Autoconf.*'x'"
21593 cat >conftest.$ac_ext <<_ACEOF
21594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021595/* confdefs.h. */
21596_ACEOF
21597cat confdefs.h >>conftest.$ac_ext
21598cat >>conftest.$ac_ext <<_ACEOF
21599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021600#include <sgtty.h>
21601Autoconf TIOCGETP
21602_ACEOF
21603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021604 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021605 ac_cv_prog_gcc_traditional=yes
21606else
21607 ac_cv_prog_gcc_traditional=no
21608fi
21609rm -f conftest*
21610
21611
21612 if test $ac_cv_prog_gcc_traditional = no; then
21613 cat >conftest.$ac_ext <<_ACEOF
21614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021620#include <termio.h>
21621Autoconf TCGETA
21622_ACEOF
21623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021624 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021625 ac_cv_prog_gcc_traditional=yes
21626fi
21627rm -f conftest*
21628
21629 fi
21630fi
21631echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21632echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21633 if test $ac_cv_prog_gcc_traditional = yes; then
21634 CC="$CC -traditional"
21635 fi
21636fi
21637
21638echo "$as_me:$LINENO: checking for working memcmp" >&5
21639echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21640if test "${ac_cv_func_memcmp_working+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21642else
21643 if test "$cross_compiling" = yes; then
21644 ac_cv_func_memcmp_working=no
21645else
21646 cat >conftest.$ac_ext <<_ACEOF
21647#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021648/* confdefs.h. */
21649_ACEOF
21650cat confdefs.h >>conftest.$ac_ext
21651cat >>conftest.$ac_ext <<_ACEOF
21652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021653
John Criswell7a73b802003-06-30 21:59:07 +000021654int
21655main ()
21656{
21657
21658 /* Some versions of memcmp are not 8-bit clean. */
21659 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21660 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21661 exit (1);
21662
21663 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21664 or more and with at least one buffer not starting on a 4-byte boundary.
21665 William Lewis provided this test program. */
21666 {
21667 char foo[21];
21668 char bar[21];
21669 int i;
21670 for (i = 0; i < 4; i++)
21671 {
21672 char *a = foo + i;
21673 char *b = bar + i;
21674 strcpy (a, "--------01111111");
21675 strcpy (b, "--------10000000");
21676 if (memcmp (a, b, 16) >= 0)
21677 exit (1);
21678 }
21679 exit (0);
21680 }
21681
21682 ;
21683 return 0;
21684}
21685_ACEOF
21686rm -f conftest$ac_exeext
21687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21688 (eval $ac_link) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 ac_cv_func_memcmp_working=yes
21698else
21699 echo "$as_me: program exited with status $ac_status" >&5
21700echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021701sed 's/^/| /' conftest.$ac_ext >&5
21702
John Criswell7a73b802003-06-30 21:59:07 +000021703( exit $ac_status )
21704ac_cv_func_memcmp_working=no
21705fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021706rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021707fi
21708fi
21709echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21710echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21711test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21712
21713
21714
21715for ac_header in stdlib.h unistd.h
21716do
21717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21718if eval "test \"\${$as_ac_Header+set}\" = set"; then
21719 echo "$as_me:$LINENO: checking for $ac_header" >&5
21720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21721if eval "test \"\${$as_ac_Header+set}\" = set"; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21723fi
21724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21726else
21727 # Is the header compilable?
21728echo "$as_me:$LINENO: checking $ac_header usability" >&5
21729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21730cat >conftest.$ac_ext <<_ACEOF
21731#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021732/* confdefs.h. */
21733_ACEOF
21734cat confdefs.h >>conftest.$ac_ext
21735cat >>conftest.$ac_ext <<_ACEOF
21736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021737$ac_includes_default
21738#include <$ac_header>
21739_ACEOF
21740rm -f conftest.$ac_objext
21741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21742 (eval $ac_compile) 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
21746 { ac_try='test -s conftest.$ac_objext'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752 ac_header_compiler=yes
21753else
21754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021755sed 's/^/| /' conftest.$ac_ext >&5
21756
John Criswell7a73b802003-06-30 21:59:07 +000021757ac_header_compiler=no
21758fi
21759rm -f conftest.$ac_objext conftest.$ac_ext
21760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21761echo "${ECHO_T}$ac_header_compiler" >&6
21762
21763# Is the header present?
21764echo "$as_me:$LINENO: checking $ac_header presence" >&5
21765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21766cat >conftest.$ac_ext <<_ACEOF
21767#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021768/* confdefs.h. */
21769_ACEOF
21770cat confdefs.h >>conftest.$ac_ext
21771cat >>conftest.$ac_ext <<_ACEOF
21772/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021773#include <$ac_header>
21774_ACEOF
21775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21777 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021778 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021779 rm -f conftest.er1
21780 cat conftest.err >&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } >/dev/null; then
21783 if test -s conftest.err; then
21784 ac_cpp_err=$ac_c_preproc_warn_flag
21785 else
21786 ac_cpp_err=
21787 fi
21788else
21789 ac_cpp_err=yes
21790fi
21791if test -z "$ac_cpp_err"; then
21792 ac_header_preproc=yes
21793else
21794 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021795sed 's/^/| /' conftest.$ac_ext >&5
21796
John Criswell7a73b802003-06-30 21:59:07 +000021797 ac_header_preproc=no
21798fi
21799rm -f conftest.err conftest.$ac_ext
21800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21801echo "${ECHO_T}$ac_header_preproc" >&6
21802
21803# So? What about this header?
21804case $ac_header_compiler:$ac_header_preproc in
21805 yes:no )
21806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21810 (
21811 cat <<\_ASBOX
21812## ------------------------------------ ##
21813## Report this to bug-autoconf@gnu.org. ##
21814## ------------------------------------ ##
21815_ASBOX
21816 ) |
21817 sed "s/^/$as_me: WARNING: /" >&2
21818 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021819 no:yes )
21820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21826 (
21827 cat <<\_ASBOX
21828## ------------------------------------ ##
21829## Report this to bug-autoconf@gnu.org. ##
21830## ------------------------------------ ##
21831_ASBOX
21832 ) |
21833 sed "s/^/$as_me: WARNING: /" >&2
21834 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021835esac
21836echo "$as_me:$LINENO: checking for $ac_header" >&5
21837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21838if eval "test \"\${$as_ac_Header+set}\" = set"; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21840else
21841 eval "$as_ac_Header=$ac_header_preproc"
21842fi
21843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21845
21846fi
21847if test `eval echo '${'$as_ac_Header'}'` = yes; then
21848 cat >>confdefs.h <<_ACEOF
21849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21850_ACEOF
21851
21852fi
21853
21854done
21855
21856
21857for ac_func in getpagesize
21858do
21859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21860echo "$as_me:$LINENO: checking for $ac_func" >&5
21861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21862if eval "test \"\${$as_ac_var+set}\" = set"; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864else
21865 cat >conftest.$ac_ext <<_ACEOF
21866#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021867/* confdefs.h. */
21868_ACEOF
21869cat confdefs.h >>conftest.$ac_ext
21870cat >>conftest.$ac_ext <<_ACEOF
21871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021872/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021873 which can conflict with char $ac_func (); below.
21874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21875 <limits.h> exists even on freestanding compilers. */
21876#ifdef __STDC__
21877# include <limits.h>
21878#else
21879# include <assert.h>
21880#endif
John Criswell7a73b802003-06-30 21:59:07 +000021881/* Override any gcc2 internal prototype to avoid an error. */
21882#ifdef __cplusplus
21883extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021884{
John Criswell7a73b802003-06-30 21:59:07 +000021885#endif
21886/* We use char because int might match the return type of a gcc2
21887 builtin and then its argument prototype would still apply. */
21888char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021889/* The GNU C library defines this for functions which it implements
21890 to always fail with ENOSYS. Some functions are actually named
21891 something starting with __ and the normal name is an alias. */
21892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21893choke me
21894#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021895char (*f) () = $ac_func;
21896#endif
21897#ifdef __cplusplus
21898}
John Criswell7a73b802003-06-30 21:59:07 +000021899#endif
21900
John Criswell0c38eaf2003-09-10 15:17:25 +000021901int
21902main ()
21903{
21904return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021905 ;
21906 return 0;
21907}
21908_ACEOF
21909rm -f conftest.$ac_objext conftest$ac_exeext
21910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21911 (eval $ac_link) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } &&
21915 { ac_try='test -s conftest$ac_exeext'
21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917 (eval $ac_try) 2>&5
21918 ac_status=$?
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 eval "$as_ac_var=yes"
21922else
21923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021924sed 's/^/| /' conftest.$ac_ext >&5
21925
John Criswell7a73b802003-06-30 21:59:07 +000021926eval "$as_ac_var=no"
21927fi
21928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21929fi
21930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21931echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21932if test `eval echo '${'$as_ac_var'}'` = yes; then
21933 cat >>confdefs.h <<_ACEOF
21934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21935_ACEOF
21936
21937fi
21938done
21939
21940echo "$as_me:$LINENO: checking for working mmap" >&5
21941echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21942if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21943 echo $ECHO_N "(cached) $ECHO_C" >&6
21944else
21945 if test "$cross_compiling" = yes; then
21946 ac_cv_func_mmap_fixed_mapped=no
21947else
21948 cat >conftest.$ac_ext <<_ACEOF
21949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021950/* confdefs.h. */
21951_ACEOF
21952cat confdefs.h >>conftest.$ac_ext
21953cat >>conftest.$ac_ext <<_ACEOF
21954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021955$ac_includes_default
21956/* malloc might have been renamed as rpl_malloc. */
21957#undef malloc
21958
21959/* Thanks to Mike Haertel and Jim Avera for this test.
21960 Here is a matrix of mmap possibilities:
21961 mmap private not fixed
21962 mmap private fixed at somewhere currently unmapped
21963 mmap private fixed at somewhere already mapped
21964 mmap shared not fixed
21965 mmap shared fixed at somewhere currently unmapped
21966 mmap shared fixed at somewhere already mapped
21967 For private mappings, we should verify that changes cannot be read()
21968 back from the file, nor mmap's back from the file at a different
21969 address. (There have been systems where private was not correctly
21970 implemented like the infamous i386 svr4.0, and systems where the
21971 VM page cache was not coherent with the file system buffer cache
21972 like early versions of FreeBSD and possibly contemporary NetBSD.)
21973 For shared mappings, we should conversely verify that changes get
21974 propagated back to all the places they're supposed to be.
21975
21976 Grep wants private fixed already mapped.
21977 The main things grep needs to know about mmap are:
21978 * does it exist and is it safe to write into the mmap'd area
21979 * how to use it (BSD variants) */
21980
21981#include <fcntl.h>
21982#include <sys/mman.h>
21983
21984#if !STDC_HEADERS && !HAVE_STDLIB_H
21985char *malloc ();
21986#endif
21987
21988/* This mess was copied from the GNU getpagesize.h. */
21989#if !HAVE_GETPAGESIZE
21990/* Assume that all systems that can run configure have sys/param.h. */
21991# if !HAVE_SYS_PARAM_H
21992# define HAVE_SYS_PARAM_H 1
21993# endif
21994
21995# ifdef _SC_PAGESIZE
21996# define getpagesize() sysconf(_SC_PAGESIZE)
21997# else /* no _SC_PAGESIZE */
21998# if HAVE_SYS_PARAM_H
21999# include <sys/param.h>
22000# ifdef EXEC_PAGESIZE
22001# define getpagesize() EXEC_PAGESIZE
22002# else /* no EXEC_PAGESIZE */
22003# ifdef NBPG
22004# define getpagesize() NBPG * CLSIZE
22005# ifndef CLSIZE
22006# define CLSIZE 1
22007# endif /* no CLSIZE */
22008# else /* no NBPG */
22009# ifdef NBPC
22010# define getpagesize() NBPC
22011# else /* no NBPC */
22012# ifdef PAGESIZE
22013# define getpagesize() PAGESIZE
22014# endif /* PAGESIZE */
22015# endif /* no NBPC */
22016# endif /* no NBPG */
22017# endif /* no EXEC_PAGESIZE */
22018# else /* no HAVE_SYS_PARAM_H */
22019# define getpagesize() 8192 /* punt totally */
22020# endif /* no HAVE_SYS_PARAM_H */
22021# endif /* no _SC_PAGESIZE */
22022
22023#endif /* no HAVE_GETPAGESIZE */
22024
22025int
22026main ()
22027{
22028 char *data, *data2, *data3;
22029 int i, pagesize;
22030 int fd;
22031
22032 pagesize = getpagesize ();
22033
22034 /* First, make a file with some known garbage in it. */
22035 data = (char *) malloc (pagesize);
22036 if (!data)
22037 exit (1);
22038 for (i = 0; i < pagesize; ++i)
22039 *(data + i) = rand ();
22040 umask (0);
22041 fd = creat ("conftest.mmap", 0600);
22042 if (fd < 0)
22043 exit (1);
22044 if (write (fd, data, pagesize) != pagesize)
22045 exit (1);
22046 close (fd);
22047
22048 /* Next, try to mmap the file at a fixed address which already has
22049 something else allocated at it. If we can, also make sure that
22050 we see the same garbage. */
22051 fd = open ("conftest.mmap", O_RDWR);
22052 if (fd < 0)
22053 exit (1);
22054 data2 = (char *) malloc (2 * pagesize);
22055 if (!data2)
22056 exit (1);
22057 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22058 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22059 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22060 exit (1);
22061 for (i = 0; i < pagesize; ++i)
22062 if (*(data + i) != *(data2 + i))
22063 exit (1);
22064
22065 /* Finally, make sure that changes to the mapped area do not
22066 percolate back to the file as seen by read(). (This is a bug on
22067 some variants of i386 svr4.0.) */
22068 for (i = 0; i < pagesize; ++i)
22069 *(data2 + i) = *(data2 + i) + 1;
22070 data3 = (char *) malloc (pagesize);
22071 if (!data3)
22072 exit (1);
22073 if (read (fd, data3, pagesize) != pagesize)
22074 exit (1);
22075 for (i = 0; i < pagesize; ++i)
22076 if (*(data + i) != *(data3 + i))
22077 exit (1);
22078 close (fd);
22079 exit (0);
22080}
22081_ACEOF
22082rm -f conftest$ac_exeext
22083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22084 (eval $ac_link) 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22090 ac_status=$?
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; }; then
22093 ac_cv_func_mmap_fixed_mapped=yes
22094else
22095 echo "$as_me: program exited with status $ac_status" >&5
22096echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022097sed 's/^/| /' conftest.$ac_ext >&5
22098
John Criswell7a73b802003-06-30 21:59:07 +000022099( exit $ac_status )
22100ac_cv_func_mmap_fixed_mapped=no
22101fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022102rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022103fi
22104fi
22105echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22106echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22107if test $ac_cv_func_mmap_fixed_mapped = yes; then
22108
22109cat >>confdefs.h <<\_ACEOF
22110#define HAVE_MMAP 1
22111_ACEOF
22112
22113fi
22114rm -f conftest.mmap
22115
22116echo "$as_me:$LINENO: checking for mmap of files" >&5
22117echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22118if test "${ac_cv_func_mmap_file+set}" = set; then
22119 echo $ECHO_N "(cached) $ECHO_C" >&6
22120else
22121
22122
22123 ac_ext=c
22124ac_cpp='$CPP $CPPFLAGS'
22125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22127ac_compiler_gnu=$ac_cv_c_compiler_gnu
22128
22129 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022130 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22131See \`config.log' for more details." >&5
22132echo "$as_me: error: cannot run test program while cross compiling
22133See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022134 { (exit 1); exit 1; }; }
22135else
22136 cat >conftest.$ac_ext <<_ACEOF
22137#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022138/* confdefs.h. */
22139_ACEOF
22140cat confdefs.h >>conftest.$ac_ext
22141cat >>conftest.$ac_ext <<_ACEOF
22142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022143
22144#ifdef HAVE_SYS_MMAN_H
22145#include <sys/mman.h>
22146#endif
22147
22148#ifdef HAVE_SYS_TYPES_H
22149#include <sys/types.h>
22150#endif
22151
22152#ifdef HAVE_FCNTL_H
22153#include <fcntl.h>
22154#endif
22155
22156 int fd;
22157 int main () {
22158 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22159_ACEOF
22160rm -f conftest$ac_exeext
22161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22162 (eval $ac_link) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171 ac_cv_func_mmap_file=yes
22172else
22173 echo "$as_me: program exited with status $ac_status" >&5
22174echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022175sed 's/^/| /' conftest.$ac_ext >&5
22176
John Criswell7a73b802003-06-30 21:59:07 +000022177( exit $ac_status )
22178ac_cv_func_mmap_file=no
22179fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022180rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022181fi
22182 ac_ext=c
22183ac_cpp='$CPP $CPPFLAGS'
22184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186ac_compiler_gnu=$ac_cv_c_compiler_gnu
22187
22188
22189fi
22190echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22191echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22192if test "$ac_cv_func_mmap_file" = yes; then
22193 cat >>confdefs.h <<\_ACEOF
22194#define HAVE_MMAP_FILE 1
22195_ACEOF
22196
22197 MMAP_FILE=yes
22198
22199fi
22200
22201if test ${ac_cv_func_mmap_file} = "no"
22202then
22203 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22204echo "$as_me: error: mmap() of files required but not found" >&2;}
22205 { (exit 1); exit 1; }; }
22206fi
22207echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22208echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22209if test "${ac_cv_header_mmap_anon+set}" = set; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22211else
22212
22213
22214 ac_ext=c
22215ac_cpp='$CPP $CPPFLAGS'
22216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22218ac_compiler_gnu=$ac_cv_c_compiler_gnu
22219
22220 cat >conftest.$ac_ext <<_ACEOF
22221#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022222/* confdefs.h. */
22223_ACEOF
22224cat confdefs.h >>conftest.$ac_ext
22225cat >>conftest.$ac_ext <<_ACEOF
22226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022227#include <sys/mman.h>
22228 #include <unistd.h>
22229 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022230int
22231main ()
22232{
22233mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22234 ;
22235 return 0;
22236}
22237_ACEOF
22238rm -f conftest.$ac_objext
22239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22240 (eval $ac_compile) 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } &&
22244 { ac_try='test -s conftest.$ac_objext'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; }; then
22250 ac_cv_header_mmap_anon=yes
22251else
22252 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022253sed 's/^/| /' conftest.$ac_ext >&5
22254
John Criswell7a73b802003-06-30 21:59:07 +000022255ac_cv_header_mmap_anon=no
22256fi
22257rm -f conftest.$ac_objext conftest.$ac_ext
22258 ac_ext=c
22259ac_cpp='$CPP $CPPFLAGS'
22260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22262ac_compiler_gnu=$ac_cv_c_compiler_gnu
22263
22264
22265fi
22266echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22267echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22268if test "$ac_cv_header_mmap_anon" = yes; then
22269 cat >>confdefs.h <<\_ACEOF
22270#define HAVE_MMAP_ANONYMOUS 1
22271_ACEOF
22272
22273fi
22274
22275echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22276echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22277if test "${ac_cv_type_signal+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279else
22280 cat >conftest.$ac_ext <<_ACEOF
22281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022282/* confdefs.h. */
22283_ACEOF
22284cat confdefs.h >>conftest.$ac_ext
22285cat >>conftest.$ac_ext <<_ACEOF
22286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022287#include <sys/types.h>
22288#include <signal.h>
22289#ifdef signal
22290# undef signal
22291#endif
22292#ifdef __cplusplus
22293extern "C" void (*signal (int, void (*)(int)))(int);
22294#else
22295void (*signal ()) ();
22296#endif
22297
John Criswell7a73b802003-06-30 21:59:07 +000022298int
22299main ()
22300{
22301int i;
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306rm -f conftest.$ac_objext
22307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22308 (eval $ac_compile) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } &&
22312 { ac_try='test -s conftest.$ac_objext'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 ac_cv_type_signal=void
22319else
22320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022321sed 's/^/| /' conftest.$ac_ext >&5
22322
John Criswell7a73b802003-06-30 21:59:07 +000022323ac_cv_type_signal=int
22324fi
22325rm -f conftest.$ac_objext conftest.$ac_ext
22326fi
22327echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22328echo "${ECHO_T}$ac_cv_type_signal" >&6
22329
22330cat >>confdefs.h <<_ACEOF
22331#define RETSIGTYPE $ac_cv_type_signal
22332_ACEOF
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22345do
22346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22347echo "$as_me:$LINENO: checking for $ac_func" >&5
22348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22349if eval "test \"\${$as_ac_var+set}\" = set"; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351else
22352 cat >conftest.$ac_ext <<_ACEOF
22353#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022354/* confdefs.h. */
22355_ACEOF
22356cat confdefs.h >>conftest.$ac_ext
22357cat >>conftest.$ac_ext <<_ACEOF
22358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022359/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022360 which can conflict with char $ac_func (); below.
22361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22362 <limits.h> exists even on freestanding compilers. */
22363#ifdef __STDC__
22364# include <limits.h>
22365#else
22366# include <assert.h>
22367#endif
John Criswell7a73b802003-06-30 21:59:07 +000022368/* Override any gcc2 internal prototype to avoid an error. */
22369#ifdef __cplusplus
22370extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022371{
John Criswell7a73b802003-06-30 21:59:07 +000022372#endif
22373/* We use char because int might match the return type of a gcc2
22374 builtin and then its argument prototype would still apply. */
22375char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022376/* The GNU C library defines this for functions which it implements
22377 to always fail with ENOSYS. Some functions are actually named
22378 something starting with __ and the normal name is an alias. */
22379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22380choke me
22381#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022382char (*f) () = $ac_func;
22383#endif
22384#ifdef __cplusplus
22385}
John Criswell7a73b802003-06-30 21:59:07 +000022386#endif
22387
John Criswell0c38eaf2003-09-10 15:17:25 +000022388int
22389main ()
22390{
22391return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022392 ;
22393 return 0;
22394}
22395_ACEOF
22396rm -f conftest.$ac_objext conftest$ac_exeext
22397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22398 (eval $ac_link) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); } &&
22402 { ac_try='test -s conftest$ac_exeext'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22405 ac_status=$?
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 eval "$as_ac_var=yes"
22409else
22410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022411sed 's/^/| /' conftest.$ac_ext >&5
22412
John Criswell7a73b802003-06-30 21:59:07 +000022413eval "$as_ac_var=no"
22414fi
22415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22416fi
22417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22418echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22419if test `eval echo '${'$as_ac_var'}'` = yes; then
22420 cat >>confdefs.h <<_ACEOF
22421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22422_ACEOF
22423
22424fi
22425done
22426
22427
22428
22429echo "$as_me:$LINENO: checking for mmap" >&5
22430echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22431if test "${ac_cv_func_mmap+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433else
22434 cat >conftest.$ac_ext <<_ACEOF
22435#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022436/* confdefs.h. */
22437_ACEOF
22438cat confdefs.h >>conftest.$ac_ext
22439cat >>conftest.$ac_ext <<_ACEOF
22440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022441/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022442 which can conflict with char mmap (); below.
22443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22444 <limits.h> exists even on freestanding compilers. */
22445#ifdef __STDC__
22446# include <limits.h>
22447#else
22448# include <assert.h>
22449#endif
John Criswell7a73b802003-06-30 21:59:07 +000022450/* Override any gcc2 internal prototype to avoid an error. */
22451#ifdef __cplusplus
22452extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022453{
John Criswell7a73b802003-06-30 21:59:07 +000022454#endif
22455/* We use char because int might match the return type of a gcc2
22456 builtin and then its argument prototype would still apply. */
22457char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022458/* The GNU C library defines this for functions which it implements
22459 to always fail with ENOSYS. Some functions are actually named
22460 something starting with __ and the normal name is an alias. */
22461#if defined (__stub_mmap) || defined (__stub___mmap)
22462choke me
22463#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022464char (*f) () = mmap;
22465#endif
22466#ifdef __cplusplus
22467}
John Criswell7a73b802003-06-30 21:59:07 +000022468#endif
22469
John Criswell0c38eaf2003-09-10 15:17:25 +000022470int
22471main ()
22472{
22473return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022474 ;
22475 return 0;
22476}
22477_ACEOF
22478rm -f conftest.$ac_objext conftest$ac_exeext
22479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22480 (eval $ac_link) 2>&5
22481 ac_status=$?
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
22484 { ac_try='test -s conftest$ac_exeext'
22485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486 (eval $ac_try) 2>&5
22487 ac_status=$?
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; }; then
22490 ac_cv_func_mmap=yes
22491else
22492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022493sed 's/^/| /' conftest.$ac_ext >&5
22494
John Criswell7a73b802003-06-30 21:59:07 +000022495ac_cv_func_mmap=no
22496fi
22497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22498fi
22499echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22500echo "${ECHO_T}$ac_cv_func_mmap" >&6
22501if test $ac_cv_func_mmap = yes; then
22502 :
22503else
22504 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22505echo "$as_me: error: Function mmap() required but not found" >&2;}
22506 { (exit 1); exit 1; }; }
22507fi
22508
22509echo "$as_me:$LINENO: checking for mprotect" >&5
22510echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22511if test "${ac_cv_func_mprotect+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22513else
22514 cat >conftest.$ac_ext <<_ACEOF
22515#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022516/* confdefs.h. */
22517_ACEOF
22518cat confdefs.h >>conftest.$ac_ext
22519cat >>conftest.$ac_ext <<_ACEOF
22520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022521/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022522 which can conflict with char mprotect (); below.
22523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22524 <limits.h> exists even on freestanding compilers. */
22525#ifdef __STDC__
22526# include <limits.h>
22527#else
22528# include <assert.h>
22529#endif
John Criswell7a73b802003-06-30 21:59:07 +000022530/* Override any gcc2 internal prototype to avoid an error. */
22531#ifdef __cplusplus
22532extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022533{
John Criswell7a73b802003-06-30 21:59:07 +000022534#endif
22535/* We use char because int might match the return type of a gcc2
22536 builtin and then its argument prototype would still apply. */
22537char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022538/* The GNU C library defines this for functions which it implements
22539 to always fail with ENOSYS. Some functions are actually named
22540 something starting with __ and the normal name is an alias. */
22541#if defined (__stub_mprotect) || defined (__stub___mprotect)
22542choke me
22543#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022544char (*f) () = mprotect;
22545#endif
22546#ifdef __cplusplus
22547}
John Criswell7a73b802003-06-30 21:59:07 +000022548#endif
22549
John Criswell0c38eaf2003-09-10 15:17:25 +000022550int
22551main ()
22552{
22553return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022554 ;
22555 return 0;
22556}
22557_ACEOF
22558rm -f conftest.$ac_objext conftest$ac_exeext
22559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22560 (eval $ac_link) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
22564 { ac_try='test -s conftest$ac_exeext'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 ac_cv_func_mprotect=yes
22571else
22572 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022573sed 's/^/| /' conftest.$ac_ext >&5
22574
John Criswell7a73b802003-06-30 21:59:07 +000022575ac_cv_func_mprotect=no
22576fi
22577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22578fi
22579echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22580echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22581if test $ac_cv_func_mprotect = yes; then
22582 :
22583else
22584 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22585echo "$as_me: error: Function mprotect() required but not found" >&2;}
22586 { (exit 1); exit 1; }; }
22587fi
22588
22589
John Criswellb13092b2003-07-22 21:00:24 +000022590
John Criswell7a73b802003-06-30 21:59:07 +000022591# Check whether --enable-purify or --disable-purify was given.
22592if test "${enable_purify+set}" = set; then
22593 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022594
22595else
John Criswellb13092b2003-07-22 21:00:24 +000022596 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022597fi;
John Criswellb13092b2003-07-22 21:00:24 +000022598if test ${enableval} = "no"
22599then
22600 ENABLE_PURIFY=
22601
22602else
22603 ENABLE_PURIFY=ENABLE_PURIFY=1
22604
22605fi
22606
John Criswell7a73b802003-06-30 21:59:07 +000022607# Check whether --enable-optimized or --disable-optimized was given.
22608if test "${enable_optimized+set}" = set; then
22609 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022610
22611else
John Criswellb13092b2003-07-22 21:00:24 +000022612 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022613fi;
John Criswellb13092b2003-07-22 21:00:24 +000022614if test ${enableval} = "no"
22615then
22616 ENABLE_OPTIMIZED=
22617
22618else
22619 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22620
22621fi
22622
John Criswell7a73b802003-06-30 21:59:07 +000022623# Check whether --enable-spec or --disable-spec was given.
22624if test "${enable_spec+set}" = set; then
22625 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022626
22627else
John Criswellb13092b2003-07-22 21:00:24 +000022628 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022629fi;
John Criswellb13092b2003-07-22 21:00:24 +000022630if test ${enableval} = "no"
22631then
22632 USE_SPEC=
22633
22634else
22635 USE_SPEC=USE_SPEC=1
22636
22637fi
22638
John Criswell7a73b802003-06-30 21:59:07 +000022639# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22640if test "${enable_precompiled_bytecode+set}" = set; then
22641 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022642
22643else
John Criswellb13092b2003-07-22 21:00:24 +000022644 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022645fi;
John Criswellb13092b2003-07-22 21:00:24 +000022646if test ${enableval} = "no"
22647then
22648 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022649
John Criswellb13092b2003-07-22 21:00:24 +000022650else
22651 UPB=USE_PRECOMPILED_BYTECODE=1
22652
22653fi
John Criswellf02dbf02003-07-22 20:07:49 +000022654
22655
22656# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22657if test "${enable_llc_diffs+set}" = set; then
22658 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022659
22660else
John Criswellb13092b2003-07-22 21:00:24 +000022661 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022662fi;
John Criswellb13092b2003-07-22 21:00:24 +000022663if test ${enableval} = "no"
22664then
22665 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022666
John Criswellb13092b2003-07-22 21:00:24 +000022667else
22668 DISABLE_LLC_DIFFS=
22669
22670fi
22671
22672# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022673if test "${enable_jit+set}" = set; then
22674 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022675
22676else
John Criswellc78022e2003-07-29 19:11:58 +000022677 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022678fi;
John Criswellb13092b2003-07-22 21:00:24 +000022679
22680if test ${enableval} = "no"
22681then
22682 JIT=
22683
22684else
John Criswellc78022e2003-07-29 19:11:58 +000022685 case $target in
22686 *i*86*)
22687 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022688
John Criswellc78022e2003-07-29 19:11:58 +000022689 ;;
22690 *sparc*)
22691 JIT=TARGET_HAS_JIT=1
22692
22693 ;;
22694 *)
22695 JIT=
22696
22697 ;;
22698 esac
John Criswellb13092b2003-07-22 21:00:24 +000022699fi
John Criswell7a73b802003-06-30 21:59:07 +000022700
22701
John Criswellc78022e2003-07-29 19:11:58 +000022702
John Criswell7a73b802003-06-30 21:59:07 +000022703# Check whether --with-spec or --without-spec was given.
22704if test "${with_spec+set}" = set; then
22705 withval="$with_spec"
22706 SPEC_ROOT=$withval
22707
22708else
22709 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22710
22711fi;
22712
John Criswellc78022e2003-07-29 19:11:58 +000022713
John Criswell7a73b802003-06-30 21:59:07 +000022714# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22715if test "${with_llvmgccdir+set}" = set; then
22716 withval="$with_llvmgccdir"
22717 LLVMGCCDIR=$withval
22718
22719fi;
22720
John Criswellc78022e2003-07-29 19:11:58 +000022721
John Criswell7a73b802003-06-30 21:59:07 +000022722# Check whether --with-bcrepos or --without-bcrepos was given.
22723if test "${with_bcrepos+set}" = set; then
22724 withval="$with_bcrepos"
22725 BCR=$withval
22726
22727else
22728 BCR=/home/vadve/lattner/LLVMPrograms
22729
22730fi;
22731
John Criswellc78022e2003-07-29 19:11:58 +000022732
John Criswell7a73b802003-06-30 21:59:07 +000022733# Check whether --with-papi or --without-papi was given.
22734if test "${with_papi+set}" = set; then
22735 withval="$with_papi"
22736 PAPIDIR=$withval
22737
22738else
John Criswellde00db22003-08-25 16:49:54 +000022739 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022740
22741fi;
22742
John Criswell7a73b802003-06-30 21:59:07 +000022743
22744# Check whether --with-purify or --without-purify was given.
22745if test "${with_purify+set}" = set; then
22746 withval="$with_purify"
22747 PURIFY=$withval
22748
22749fi;
22750
John Criswellde00db22003-08-25 16:49:54 +000022751
John Criswell0c38eaf2003-09-10 15:17:25 +000022752 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022753cat >confcache <<\_ACEOF
22754# This file is a shell script that caches the results of configure
22755# tests run on this system so they can be shared between configure
22756# scripts and configure runs, see configure's option --config-cache.
22757# It is not useful on other systems. If it contains results you don't
22758# want to keep, you may remove or edit it.
22759#
22760# config.status only pays attention to the cache file if you give it
22761# the --recheck option to rerun configure.
22762#
John Criswell0c38eaf2003-09-10 15:17:25 +000022763# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022764# loading this file, other *unset* `ac_cv_foo' will be assigned the
22765# following values.
22766
22767_ACEOF
22768
22769# The following way of writing the cache mishandles newlines in values,
22770# but we know of no workaround that is simple, portable, and efficient.
22771# So, don't put newlines in cache variables' values.
22772# Ultrix sh set writes to stderr and can't be redirected directly,
22773# and sets the high bit in the cache file unless we assign to the vars.
22774{
22775 (set) 2>&1 |
22776 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22777 *ac_space=\ *)
22778 # `set' does not quote correctly, so add quotes (double-quote
22779 # substitution turns \\\\ into \\, and sed turns \\ into \).
22780 sed -n \
22781 "s/'/'\\\\''/g;
22782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22783 ;;
22784 *)
22785 # `set' quotes correctly as required by POSIX, so do not add quotes.
22786 sed -n \
22787 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22788 ;;
22789 esac;
22790} |
22791 sed '
22792 t clear
22793 : clear
22794 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22795 t end
22796 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22797 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022798if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022799 if test -w $cache_file; then
22800 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22801 cat confcache >$cache_file
22802 else
22803 echo "not updating unwritable cache $cache_file"
22804 fi
22805fi
22806rm -f confcache
22807
22808test "x$prefix" = xNONE && prefix=$ac_default_prefix
22809# Let make expand exec_prefix.
22810test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22811
22812# VPATH may cause trouble with some makes, so we remove $(srcdir),
22813# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22814# trailing colons and then remove the whole line if VPATH becomes empty
22815# (actually we leave an empty line to preserve line numbers).
22816if test "x$srcdir" = x.; then
22817 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22818s/:*\$(srcdir):*/:/;
22819s/:*\${srcdir}:*/:/;
22820s/:*@srcdir@:*/:/;
22821s/^\([^=]*=[ ]*\):*/\1/;
22822s/:*$//;
22823s/^[^=]*=[ ]*$//;
22824}'
22825fi
22826
22827DEFS=-DHAVE_CONFIG_H
22828
John Criswell0c38eaf2003-09-10 15:17:25 +000022829ac_libobjs=
22830ac_ltlibobjs=
22831for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22832 # 1. Remove the extension, and $U if already installed.
22833 ac_i=`echo "$ac_i" |
22834 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22835 # 2. Add them.
22836 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22837 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22838done
22839LIBOBJS=$ac_libobjs
22840
22841LTLIBOBJS=$ac_ltlibobjs
22842
22843
John Criswell7a73b802003-06-30 21:59:07 +000022844
22845: ${CONFIG_STATUS=./config.status}
22846ac_clean_files_save=$ac_clean_files
22847ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22848{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22849echo "$as_me: creating $CONFIG_STATUS" >&6;}
22850cat >$CONFIG_STATUS <<_ACEOF
22851#! $SHELL
22852# Generated by $as_me.
22853# Run this file to recreate the current configuration.
22854# Compiler output produced by configure, useful for debugging
22855# configure, is in config.log if it exists.
22856
22857debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022858ac_cs_recheck=false
22859ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022860SHELL=\${CONFIG_SHELL-$SHELL}
22861_ACEOF
22862
22863cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022864## --------------------- ##
22865## M4sh Initialization. ##
22866## --------------------- ##
22867
22868# Be Bourne compatible
22869if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22870 emulate sh
22871 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022872 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22873 # is contrary to our usage. Disable this feature.
22874 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022875elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22876 set -o posix
22877fi
22878
John Criswell7a73b802003-06-30 21:59:07 +000022879# Support unset when possible.
22880if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22881 as_unset=unset
22882else
22883 as_unset=false
22884fi
22885
John Criswell0c38eaf2003-09-10 15:17:25 +000022886
22887# Work around bugs in pre-3.0 UWIN ksh.
22888$as_unset ENV MAIL MAILPATH
22889PS1='$ '
22890PS2='> '
22891PS4='+ '
22892
22893# NLS nuisances.
22894for as_var in \
22895 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22896 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22897 LC_TELEPHONE LC_TIME
22898do
22899 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22900 eval $as_var=C; export $as_var
22901 else
22902 $as_unset $as_var
22903 fi
22904done
22905
22906# Required to use basename.
22907if expr a : '\(a\)' >/dev/null 2>&1; then
22908 as_expr=expr
22909else
22910 as_expr=false
22911fi
22912
22913if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22914 as_basename=basename
22915else
22916 as_basename=false
22917fi
John Criswell7a73b802003-06-30 21:59:07 +000022918
22919
22920# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022921as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22923 X"$0" : 'X\(//\)$' \| \
22924 X"$0" : 'X\(/\)$' \| \
22925 . : '\(.\)' 2>/dev/null ||
22926echo X/"$0" |
22927 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22928 /^X\/\(\/\/\)$/{ s//\1/; q; }
22929 /^X\/\(\/\).*/{ s//\1/; q; }
22930 s/.*/./; q'`
22931
John Criswell0c38eaf2003-09-10 15:17:25 +000022932
John Criswell7a73b802003-06-30 21:59:07 +000022933# PATH needs CR, and LINENO needs CR and PATH.
22934# Avoid depending upon Character Ranges.
22935as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22936as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22937as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22938as_cr_digits='0123456789'
22939as_cr_alnum=$as_cr_Letters$as_cr_digits
22940
22941# The user is always right.
22942if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022943 echo "#! /bin/sh" >conf$$.sh
22944 echo "exit 0" >>conf$$.sh
22945 chmod +x conf$$.sh
22946 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022947 PATH_SEPARATOR=';'
22948 else
22949 PATH_SEPARATOR=:
22950 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022951 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022952fi
22953
22954
22955 as_lineno_1=$LINENO
22956 as_lineno_2=$LINENO
22957 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22958 test "x$as_lineno_1" != "x$as_lineno_2" &&
22959 test "x$as_lineno_3" = "x$as_lineno_2" || {
22960 # Find who we are. Look in the path if we contain no path at all
22961 # relative or not.
22962 case $0 in
22963 *[\\/]* ) as_myself=$0 ;;
22964 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22965for as_dir in $PATH
22966do
22967 IFS=$as_save_IFS
22968 test -z "$as_dir" && as_dir=.
22969 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22970done
22971
22972 ;;
22973 esac
22974 # We did not find ourselves, most probably we were run as `sh COMMAND'
22975 # in which case we are not to be found in the path.
22976 if test "x$as_myself" = x; then
22977 as_myself=$0
22978 fi
22979 if test ! -f "$as_myself"; then
22980 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22981echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22982 { (exit 1); exit 1; }; }
22983 fi
22984 case $CONFIG_SHELL in
22985 '')
22986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22988do
22989 IFS=$as_save_IFS
22990 test -z "$as_dir" && as_dir=.
22991 for as_base in sh bash ksh sh5; do
22992 case $as_dir in
22993 /*)
22994 if ("$as_dir/$as_base" -c '
22995 as_lineno_1=$LINENO
22996 as_lineno_2=$LINENO
22997 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22998 test "x$as_lineno_1" != "x$as_lineno_2" &&
22999 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023000 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23001 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023002 CONFIG_SHELL=$as_dir/$as_base
23003 export CONFIG_SHELL
23004 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23005 fi;;
23006 esac
23007 done
23008done
23009;;
23010 esac
23011
23012 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23013 # uniformly replaced by the line number. The first 'sed' inserts a
23014 # line-number line before each line; the second 'sed' does the real
23015 # work. The second script uses 'N' to pair each line-number line
23016 # with the numbered line, and appends trailing '-' during
23017 # substitution so that $LINENO is not a special case at line end.
23018 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23019 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23020 sed '=' <$as_myself |
23021 sed '
23022 N
23023 s,$,-,
23024 : loop
23025 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23026 t loop
23027 s,-$,,
23028 s,^['$as_cr_digits']*\n,,
23029 ' >$as_me.lineno &&
23030 chmod +x $as_me.lineno ||
23031 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23032echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23033 { (exit 1); exit 1; }; }
23034
23035 # Don't try to exec as it changes $[0], causing all sort of problems
23036 # (the dirname of $[0] is not the place where we might find the
23037 # original and so on. Autoconf is especially sensible to this).
23038 . ./$as_me.lineno
23039 # Exit status is that of the last command.
23040 exit
23041}
23042
23043
23044case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23045 *c*,-n*) ECHO_N= ECHO_C='
23046' ECHO_T=' ' ;;
23047 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23048 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23049esac
23050
23051if expr a : '\(a\)' >/dev/null 2>&1; then
23052 as_expr=expr
23053else
23054 as_expr=false
23055fi
23056
23057rm -f conf$$ conf$$.exe conf$$.file
23058echo >conf$$.file
23059if ln -s conf$$.file conf$$ 2>/dev/null; then
23060 # We could just check for DJGPP; but this test a) works b) is more generic
23061 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23062 if test -f conf$$.exe; then
23063 # Don't use ln at all; we don't have any links
23064 as_ln_s='cp -p'
23065 else
23066 as_ln_s='ln -s'
23067 fi
23068elif ln conf$$.file conf$$ 2>/dev/null; then
23069 as_ln_s=ln
23070else
23071 as_ln_s='cp -p'
23072fi
23073rm -f conf$$ conf$$.exe conf$$.file
23074
John Criswell0c38eaf2003-09-10 15:17:25 +000023075if mkdir -p . 2>/dev/null; then
23076 as_mkdir_p=:
23077else
23078 as_mkdir_p=false
23079fi
23080
John Criswell7a73b802003-06-30 21:59:07 +000023081as_executable_p="test -f"
23082
23083# Sed expression to map a string onto a valid CPP name.
23084as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23085
23086# Sed expression to map a string onto a valid variable name.
23087as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23088
23089
23090# IFS
23091# We need space, tab and new line, in precisely that order.
23092as_nl='
23093'
23094IFS=" $as_nl"
23095
23096# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023097$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023098
23099exec 6>&1
23100
23101# Open the log real soon, to keep \$[0] and so on meaningful, and to
23102# report actual input values of CONFIG_FILES etc. instead of their
23103# values after options handling. Logging --version etc. is OK.
23104exec 5>>config.log
23105{
23106 echo
23107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23108## Running $as_me. ##
23109_ASBOX
23110} >&5
23111cat >&5 <<_CSEOF
23112
23113This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023114generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023115
23116 CONFIG_FILES = $CONFIG_FILES
23117 CONFIG_HEADERS = $CONFIG_HEADERS
23118 CONFIG_LINKS = $CONFIG_LINKS
23119 CONFIG_COMMANDS = $CONFIG_COMMANDS
23120 $ $0 $@
23121
23122_CSEOF
23123echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23124echo >&5
23125_ACEOF
23126
23127# Files that config.status was made for.
23128if test -n "$ac_config_files"; then
23129 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23130fi
23131
23132if test -n "$ac_config_headers"; then
23133 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23134fi
23135
23136if test -n "$ac_config_links"; then
23137 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23138fi
23139
23140if test -n "$ac_config_commands"; then
23141 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23142fi
23143
23144cat >>$CONFIG_STATUS <<\_ACEOF
23145
23146ac_cs_usage="\
23147\`$as_me' instantiates files from templates according to the
23148current configuration.
23149
23150Usage: $0 [OPTIONS] [FILE]...
23151
23152 -h, --help print this help, then exit
23153 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023154 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023155 -d, --debug don't remove temporary files
23156 --recheck update $as_me by reconfiguring in the same conditions
23157 --file=FILE[:TEMPLATE]
23158 instantiate the configuration file FILE
23159 --header=FILE[:TEMPLATE]
23160 instantiate the configuration header FILE
23161
23162Configuration files:
23163$config_files
23164
23165Configuration headers:
23166$config_headers
23167
John Criswellc764fbc2003-09-06 15:17:13 +000023168Configuration commands:
23169$config_commands
23170
John Criswell7a73b802003-06-30 21:59:07 +000023171Report bugs to <bug-autoconf@gnu.org>."
23172_ACEOF
23173
23174cat >>$CONFIG_STATUS <<_ACEOF
23175ac_cs_version="\\
23176[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023177configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023178 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23179
23180Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23181Free Software Foundation, Inc.
23182This config.status script is free software; the Free Software Foundation
23183gives unlimited permission to copy, distribute and modify it."
23184srcdir=$srcdir
23185INSTALL="$INSTALL"
23186_ACEOF
23187
23188cat >>$CONFIG_STATUS <<\_ACEOF
23189# If no file are specified by the user, then we need to provide default
23190# value. By we need to know if files were specified by the user.
23191ac_need_defaults=:
23192while test $# != 0
23193do
23194 case $1 in
23195 --*=*)
23196 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23197 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023198 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023199 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023200 -*)
23201 ac_option=$1
23202 ac_optarg=$2
23203 ac_shift=shift
23204 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023205 *) # This is not an option, so the user has probably given explicit
23206 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023207 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023208 ac_need_defaults=false;;
23209 esac
23210
John Criswell0c38eaf2003-09-10 15:17:25 +000023211 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023212 # Handling of the options.
23213_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023214cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23216 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023217 --version | --vers* | -V )
23218 echo "$ac_cs_version"; exit 0 ;;
23219 --he | --h)
23220 # Conflict between --help and --header
23221 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23222Try \`$0 --help' for more information." >&5
23223echo "$as_me: error: ambiguous option: $1
23224Try \`$0 --help' for more information." >&2;}
23225 { (exit 1); exit 1; }; };;
23226 --help | --hel | -h )
23227 echo "$ac_cs_usage"; exit 0 ;;
23228 --debug | --d* | -d )
23229 debug=: ;;
23230 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023231 $ac_shift
23232 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023233 ac_need_defaults=false;;
23234 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023235 $ac_shift
23236 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023237 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23240 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023241
23242 # This is an error.
23243 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23244Try \`$0 --help' for more information." >&5
23245echo "$as_me: error: unrecognized option: $1
23246Try \`$0 --help' for more information." >&2;}
23247 { (exit 1); exit 1; }; } ;;
23248
23249 *) ac_config_targets="$ac_config_targets $1" ;;
23250
23251 esac
23252 shift
23253done
23254
John Criswell0c38eaf2003-09-10 15:17:25 +000023255ac_configure_extra_args=
23256
23257if $ac_cs_silent; then
23258 exec 6>/dev/null
23259 ac_configure_extra_args="$ac_configure_extra_args --silent"
23260fi
23261
23262_ACEOF
23263cat >>$CONFIG_STATUS <<_ACEOF
23264if \$ac_cs_recheck; then
23265 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23266 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23267fi
23268
John Criswell7a73b802003-06-30 21:59:07 +000023269_ACEOF
23270
John Criswellc764fbc2003-09-06 15:17:13 +000023271cat >>$CONFIG_STATUS <<_ACEOF
23272#
23273# INIT-COMMANDS section.
23274#
John Criswell7a73b802003-06-30 21:59:07 +000023275
John Criswellc764fbc2003-09-06 15:17:13 +000023276${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23277${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23278${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23279${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23280${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23281${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23282${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23283${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23284${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23285${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23286${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23287${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23288${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23289${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23290${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023293${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23296${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23297${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23301${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23307${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23311${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023314${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023316${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23317${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23318${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23319${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023320${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023321${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023322${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23323${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023324${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23325${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23326${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23327${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23328${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23329${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23330${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23331${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23332${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23333${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23334${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23335${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23336${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23337${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23338${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023419${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23442${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23443${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23449${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23451
23452_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023453
23454
23455
23456cat >>$CONFIG_STATUS <<\_ACEOF
23457for ac_config_target in $ac_config_targets
23458do
23459 case "$ac_config_target" in
23460 # Handling of arguments.
23461 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023462 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23463 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23464 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23465 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23466 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23467 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23468 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23469 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23470 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23471 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23472 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23473 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23474 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23475 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23476 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23477 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23478 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023479 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23480 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23481 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23482 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23483 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23484 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23485 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23486 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23487 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23488 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23489 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23490 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23491 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23492 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23493 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23494 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23495 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23496 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23497 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23498 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23499 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023500 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23501 "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023502 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23503 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23504 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23505 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023506 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023507 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023508 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23509 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023510 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23511 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23512 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23513 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23514 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23515 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23516 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23517 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23518 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23519 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23520 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23521 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23522 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23523 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23524 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23525 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23526 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23527 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23528 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23529 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23530 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23531 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023532 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023533 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23534 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23535 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23536 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23537 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23538 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23539 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23540 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23541 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23542 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23543 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23544 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23545 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23546 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23547 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23548 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23549 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23550 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023551 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23552 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023553 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23554 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023555 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23556 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23557 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23558 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23559 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23560 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23561 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23562 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23563 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23564 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23565 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23566 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23567 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23568 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23569 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23570 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23571 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23572 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23573 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23574 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23575 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23576 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23577 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23578 "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 +000023579 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023580 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23581 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23582 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23583 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23584 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23585 "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 +000023586 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023587 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023588 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23589 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23590 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23591 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23592 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023593 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23594 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23595 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023596 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23597 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23598 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23599 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23600 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23601 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023602 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023603 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023604 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023605 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23606 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23607 "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23608 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23609 "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23610 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23611 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23612 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23613 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23614 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23615 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23616 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23617 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23618 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23619 "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 ;;
24317 runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024318 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24319 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24320 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24321 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 +000024322 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 +000024323 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 +000024324 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24325 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 +000024326 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24327 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24328 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24329 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24330 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24331 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24332 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24333 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24334 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24335 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24336 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24337 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24338 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24339 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24340 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24341 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24342 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24343 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24344 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24345 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24346 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24347 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 +000024348 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 +000024349 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 ;;
24350 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 ;;
24351 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 ;;
24352 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 ;;
24353 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 ;;
24354 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 ;;
24355 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 ;;
24356 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 ;;
24357 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 ;;
24358 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 ;;
24359 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 ;;
24360 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 ;;
24361 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 ;;
24362 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 ;;
24363 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 ;;
24364 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24365 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24366 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 +000024367 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24368 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 +000024369 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 ;;
24370 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 +000024371 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24372 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 ;;
24373 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 ;;
24374 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 ;;
24375 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 ;;
24376 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 ;;
24377 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 ;;
24378 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 ;;
24379 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 ;;
24380 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 ;;
24381 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 ;;
24382 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 ;;
24383 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 ;;
24384 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 ;;
24385 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 ;;
24386 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 ;;
24387 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 ;;
24388 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 ;;
24389 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 ;;
24390 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 ;;
24391 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 ;;
24392 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 ;;
24393 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 ;;
24394 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 +000024395 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 +000024396 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 ;;
24397 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 ;;
24398 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 ;;
24399 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 ;;
24400 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 ;;
24401 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 +000024402 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 +000024403 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 +000024404 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24405 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24406 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24407 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 ;;
24408 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 +000024409 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24410 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24411 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 +000024412 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24413 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24414 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 ;;
24415 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 ;;
24416 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 ;;
24417 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 +000024418 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 +000024419 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 +000024420 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 +000024421 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24422 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24423 tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24424 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24425 tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24426 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24427 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24428 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24429 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24430 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24431 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24432 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24433 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24434 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24435 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24436 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24437 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24438 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24439 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24440 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24441 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24442 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24443 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24444 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24445 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24446 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24447 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24448 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24449 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24450 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24451 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24452 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24453 esac
24454done
24455_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024456
24457cat >>$CONFIG_STATUS <<\_ACEOF
24458
24459{ (exit 0); exit 0; }
24460_ACEOF
24461chmod +x $CONFIG_STATUS
24462ac_clean_files=$ac_clean_files_save
24463
24464
24465# configure is writing to config.log, and then calls config.status.
24466# config.status does its own redirection, appending to config.log.
24467# Unfortunately, on DOS this fails, as config.log is still kept open
24468# by configure, so config.status won't be able to write to it; its
24469# output is simply discarded. So we exec the FD to /dev/null,
24470# effectively closing config.log, so it can be properly (re)opened and
24471# appended to by config.status. When coming back to configure, we
24472# need to make the FD available again.
24473if test "$no_create" != yes; then
24474 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024475 ac_config_status_args=
24476 test "$silent" = yes &&
24477 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024478 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024480 exec 5>>config.log
24481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24482 # would make configure fail if this is the last instruction.
24483 $ac_cs_success || { (exit 1); exit 1; }
24484fi
24485